/*
Theme Name: Pulze
Theme URI: https://health-pulze.com
Author: Pulze
Description: Tema di presentazione per Pulze, l'app che mette sulla stessa mappa i defibrillatori (DAE) e i soccorritori BLSD più vicini. Landing page one-page con modulo di pre-iscrizione.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pulze
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------------------------------------------------------------
   Token
   --------------------------------------------------------------- */
:root {
  --blue: #0b2a54;        /* verde segnaletica DAE */
  --blue-deep: #061c3c;
  --navy: #051631;
  --blue-tint: #e8eef8;
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #0f1a2e;
  --ink-2: #3d4a63;
  --ink-3: #6f7b93;
  --line: #d6dde9;
  --red: #d41b22;        /* rosso urgenza */
  --red-tint: #fbe4e5;
  --amber: #e0a100;
  --amber-tint: #fff4d6;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap;
}

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-deep);
}
.eyebrow::before { content: ""; width: 16px; height: 2.5px; background: var(--red); box-shadow: 0 -5px 0 var(--red), 0 5px 0 var(--red); }
.eyebrow.on-dark { color: #9cc4ff; }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b5161c; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #eef2fa; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,42,84,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; transition: background .3s;
}
.site-header.is-light { background: rgba(245,247,251,.92); color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand-mark { height: 40px; width: auto; }
.brand-word { height: 20px; width: auto; }
.site-header .brand-dark { display: none; }
.site-header .brand-light { display: block; }
.site-header.is-light .brand-dark { display: block; }
.site-header.is-light .brand-light { display: none; }
.brand .custom-logo { height: 40px; width: auto; }
.nav-primary ul { display: flex; gap: 28px; }
.nav-primary a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.nav-primary a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.header-cta { padding: 11px 20px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-primary { position: absolute; left: 0; right: 0; top: 72px; padding: 16px var(--gutter) 24px; background: var(--blue-deep); color: #fff; display: none; }
  .site-header.is-light .nav-primary { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 14px; }
  .header-cta { display: none; }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue); color: #fff;
  padding-block: clamp(56px, 8vw, 110px) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(212,27,34,.22), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(0,0,0,.18), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 78px); font-weight: 800; letter-spacing: -0.035em; line-height: .98;
  margin-top: 22px;
}
.hero h1 em { font-style: normal; color: #ff5a60; }
.hero-lead { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 52ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.75); }

/* Illustrazione rete (dal logo: cuore + persone in cerchio) */
.net-wrap { position: relative; display: flex; justify-content: center; padding-bottom: 110px; }
.net { width: min(560px, 100%); height: auto; overflow: visible; }
.net .ring { fill: none; stroke: #fff; stroke-dasharray: 4 8; stroke-linecap: round; }
.net .ring-near { stroke-opacity: .55; stroke-width: 1.5; }
.net .ring-far { stroke-opacity: .2; stroke-width: 1.2; }
.net .ring-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: rgba(255,255,255,.75); paint-order: stroke; stroke: var(--blue); stroke-width: 8px; stroke-linejoin: round; }
.net .pulse-ring { fill: none; stroke: #ff5a60; stroke-width: 2; }
.net .accept-line { stroke: #ff5a60; stroke-width: 2.5; stroke-dasharray: 6 6; fill: none; animation: dash 1.2s linear infinite; }
.net .ecg-in { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.net .rescuer { --pbg: #fff; --pfg: var(--blue); }
.net .rescuer-accepted { --pbg: var(--red); --pfg: #fff; filter: drop-shadow(0 0 12px rgba(255,90,96,.6)); }
.net .rescuer-far { opacity: .35; }
@keyframes dash { to { stroke-dashoffset: -24; } }

.hero-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(360px, 92%); background: #fff; border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 30px 60px -20px rgba(5,22,49,.6); color: var(--ink); font-family: var(--font-body);
}
.hero-card .alert-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.hero-card .alert-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
.hero-card h4 { font-family: var(--font-display); font-size: 17px; margin-top: 6px; }
.hero-card .meta { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.hero-card .meta b { font-family: var(--font-mono); color: var(--blue); font-weight: 500; }
.hero-card .row { display: flex; gap: 8px; margin-top: 12px; }
.hero-card .row span { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.hero-card .accept { background: var(--red); color: #fff; }
.hero-card .decline { background: var(--paper); color: var(--ink-2); }
@keyframes blink { 50% { opacity: .2; } }

/* Hero ECG line */
.hero-ecg { margin-top: clamp(40px, 6vw, 72px); width: 100%; height: 110px; }
.hero-ecg path { fill: none; stroke: url(#ecgGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-ecg .ecg-trace { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: trace 6s linear infinite; }
.hero-ecg .ecg-ghost { opacity: .22; }
@keyframes trace { 0% { stroke-dashoffset: 2400; } 80% { stroke-dashoffset: 0; opacity: 1; } 95% { opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .net-wrap { order: 2; margin-top: 12px; padding-bottom: 120px; }
  .net { width: min(440px, 100%); }
}

/* ---------------------------------------------------------------
   Minutes strip (the signature)
   --------------------------------------------------------------- */
.minutes { background: var(--white); color: var(--ink); padding-block: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.minutes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.minutes h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; margin-top: 14px; }
.minutes p.lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 50ch; }
.minutes-source { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.minutes .eyebrow { color: var(--red); }

.clock-panel { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(5,22,49,.5); }
.clock-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.clock-min { font-family: var(--font-mono); font-size: clamp(56px, 7vw, 92px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.clock-min small { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-left: 8px; }
.clock-surv { text-align: right; }
.clock-surv b { display: block; font-family: var(--font-mono); font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; color: #9cc4ff; transition: color .3s; }
.clock-surv span { font-size: 13px; color: rgba(255,255,255,.6); }
.clock-bar { position: relative; height: 12px; border-radius: 6px; background: rgba(255,255,255,.12); margin-top: 22px; overflow: hidden; }
.clock-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #9cc4ff, #4f8df5); transition: width .35s var(--ease), background .35s; }
.clock-bar i.is-mid { background: linear-gradient(90deg, #ff5a60, #e0a100); }
.clock-bar i.is-low { background: linear-gradient(90deg, #ff8e97, var(--red)); }
.clock-range { width: 100%; margin-top: 26px; accent-color: #fff; cursor: pointer; }
.clock-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5); margin-top: 6px; }
.clock-events { margin-top: 24px; display: grid; gap: 10px; }
.clock-event { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid transparent; opacity: .35; transition: opacity .3s, border-color .3s, background .3s; }
.clock-event.is-on { opacity: 1; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.clock-event .t { font-family: var(--font-mono); font-size: 12px; color: #9cc4ff; padding-top: 3px; }
.clock-event b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.clock-event span { font-size: 13px; color: rgba(255,255,255,.7); }
.clock-event.pulze .t { color: #ff5a60; }
@media (max-width: 900px) { .minutes-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   How it works (sequence)
   --------------------------------------------------------------- */
.how { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px 28px; min-height: 100%;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--blue-deep);
}
.step-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-top: 18px; }
.step-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 21px; font-weight: 700; margin-top: 18px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.step-arrow { position: absolute; right: -16px; top: 50%; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transform: translateY(-50%); z-index: 1; }
.step:last-child .step-arrow { display: none; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(2) .step-arrow { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step-arrow { display: none; } }

/* ---------------------------------------------------------------
   Two audiences
   --------------------------------------------------------------- */
.audiences { background: var(--white); }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud {
  border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 44px); position: relative; overflow: hidden;
}
.aud-dae { background: var(--blue-tint); }
.aud-res { background: var(--navy); color: #fff; }
.aud h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-top: 14px; }
.aud > p { margin-top: 16px; font-size: 17px; max-width: 46ch; }
.aud-dae > p { color: var(--ink-2); }
.aud-res > p { color: rgba(255,255,255,.8); }
.aud-list { margin-top: 26px; display: grid; gap: 14px; }
.aud-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 15.5px; }
.aud-list svg { width: 22px; height: 22px; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.aud-dae .aud-list svg { stroke: var(--blue-deep); }
.aud-res .aud-list svg { stroke: #9cc4ff; }
.aud-list b { font-weight: 700; }
.aud .btn { margin-top: 30px; }

/* AED card mock */
.dae-card {
  margin-top: 30px; background: var(--white); border-radius: 18px; padding: 18px 20px;
  border: 1px solid var(--line); font-size: 14px;
}
.dae-card .hd { display: flex; justify-content: space-between; align-items: center; }
.dae-card .hd b { font-family: var(--font-display); font-size: 16px; }
.dae-card .status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); }
.dae-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 14px 0 0; }
.dae-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.dae-card dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 13px; }
.dae-card dd.warn { color: var(--amber); }
.dae-card .reminder { margin-top: 14px; display: flex; gap: 10px; align-items: center; background: var(--amber-tint); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.dae-card .reminder svg { width: 18px; height: 18px; stroke: var(--amber); fill: none; stroke-width: 2; flex: none; }

/* Consent mock */
.consent-card { margin-top: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px 20px; font-size: 14px; }
.consent-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.consent-card .row:last-child { border-bottom: 0; }
.consent-card .row span { color: rgba(255,255,255,.85); }
.toggle { width: 42px; height: 24px; border-radius: 12px; background: #4f8df5; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.toggle.off { background: rgba(255,255,255,.25); }
.toggle.off::after { right: auto; left: 3px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Trust
   --------------------------------------------------------------- */
.trust { background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.trust-item svg { width: 30px; height: 30px; stroke: var(--blue-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h3 { font-size: 20px; margin-top: 18px; font-weight: 700; }
.trust-item p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Mission
   --------------------------------------------------------------- */
.mission { background: var(--white); }
.mission-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.mission h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; margin-top: 14px; }
.mission .lead { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.mission-quote { margin-top: 28px; padding-left: 20px; border-left: 4px solid var(--blue); font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--navy); }
.support { display: grid; gap: 14px; }
.support li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.support li svg { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); padding: 10px; stroke: var(--blue-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.support b { display: block; font-family: var(--font-display); font-size: 17px; }
.support span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Sign-up
   --------------------------------------------------------------- */
.signup { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.signup::before { content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 360px; background: url("img/mark-white.png") no-repeat center / contain; opacity: .06; pointer-events: none; }
.signup .container { position: relative; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.signup h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; margin-top: 14px; }
.signup .lead { margin-top: 18px; font-size: 18px; color: rgba(255,255,255,.88); max-width: 46ch; }
.signup-form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.signup-form .field { display: grid; gap: 6px; margin-bottom: 16px; }
.signup-form label { font-weight: 600; font-size: 14px; }
.signup-form input[type=text], .signup-form input[type=email], .signup-form select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper);
}
.signup-form input:focus, .signup-form select:focus { outline: none; border-color: var(--blue); background: #fff; }
.role-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-picker label { position: relative; display: block; text-align: center; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.role-picker input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role-picker input:checked + span { color: var(--blue-deep); }
.role-picker label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.role-picker label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.consent input { margin-top: 4px; accent-color: var(--blue); }
.signup-form .btn { width: 100%; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.form-msg.ok { background: var(--blue-tint); color: var(--blue-deep); }
.form-msg.err { background: var(--red-tint); color: #a11a25; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; } .role-picker { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding-block: 48px 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo img { width: 190px; height: auto; }
.footer-about { margin-top: 14px; max-width: 40ch; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; }
.footer-disclaimer { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.5); max-width: 90ch; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Inner pages (fallback)
   --------------------------------------------------------------- */
.page-content { padding-block: 64px; max-width: 760px; }
.page-content h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
.page-content p, .page-content li { margin-bottom: 1em; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1em; }
.page-content ul { list-style: disc; }

/* ---------------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ecg .ecg-trace { animation: none; stroke-dashoffset: 0; }
  .phone-card .alert-tag i { animation: none; }
  .btn:hover { transform: none; }
}
