/* Pulse — marketing site. Mirrors the app's palette:
   cream #F4F1E8, warm-dark #0E0C08, signal red #91231C, gold #C9A227. */
:root {
  --bg: #F4F1E8;
  --paper: #FDFBF4;
  --ink: #0A0A0A;
  --muted: #6F6A60;
  --signal: #91231C;
  --gold: #C9A227;
  --hair: rgba(10,10,10,0.10);
  --radius: 16px;
  --maxw: 980px;
  /* Full-bleed page gutter. Used for nav/main/footer side padding AND for the
     hero backdrop's horizontal bleed, so the aurora reaches the screen edges
     without ever overflowing past them (no horizontal scrollbar). */
  --page-pad: clamp(20px, 6vw, 120px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / nav */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244,241,232,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -0.5px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); display: inline-block; }
.navlinks a { color: var(--ink); font-size: 14px; margin-left: 20px; opacity: 0.75; }
.navlinks a:hover { opacity: 1; text-decoration: none; }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Hero — copy + device side by side */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 56px; padding: 72px 0 56px; flex-wrap: wrap;
}
.hero-copy { flex: 1 1 380px; max-width: 540px; }
.hero h1 { font-size: clamp(40px, 7vw, 62px); line-height: 1.04; letter-spacing: -2px; font-weight: 700; }
.hero h1 .accent { color: var(--signal); }
.hero p.sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); margin: 20px 0 0; }
.hero-actions { margin-top: 30px; }
.hero-device { flex: 0 0 auto; }

.cta {
  display: inline-block;
  background: var(--signal); color: #fff; font-weight: 600; font-size: 16px;
  padding: 15px 32px; border-radius: 9999px;
}
.cta:hover { text-decoration: none; opacity: 0.92; }
.cta.secondary { background: transparent; color: var(--signal); border: 1.5px solid var(--signal); margin-left: 8px; }

/* Device / phone frame */
.device {
  width: 264px; padding: 11px; border-radius: 44px;
  background: linear-gradient(160deg, #1a1a1a, #050505);
  box-shadow: 0 34px 80px rgba(10,10,10,0.30), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.device img { width: 100%; display: block; border-radius: 33px; background: #0E0C08; }

/* Sections */
.section { padding: 52px 0; border-top: 1px solid var(--hair); }
.section.first { border-top: none; }
.section h2 { font-size: clamp(26px, 4vw, 33px); letter-spacing: -1px; margin-bottom: 8px; }
.section .lead { color: var(--muted); margin-bottom: 30px; font-size: 16px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 24px;
}
.card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(145,35,28,0.10); color: var(--signal);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 5px; letter-spacing: -0.2px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; }
.step .n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--signal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Screenshot showcase — phone frames */
.shots {
  display: flex; gap: 26px; overflow-x: auto; padding: 8px 4px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shot .device { width: 226px; }
.shot .cap { margin-top: 14px; color: var(--muted); font-size: 13.5px; max-width: 226px; }
.shot .cap b { color: var(--ink); display: block; font-size: 14.5px; margin-bottom: 2px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px; }
.plan.featured { border-color: var(--gold); box-shadow: 0 8px 30px rgba(201,162,39,0.12); }
.plan .tag { font-weight: 700; font-size: 16px; }
.plan .tag .badge { font-size: 11px; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.plan .price { font-size: 36px; font-weight: 700; letter-spacing: -1px; margin: 8px 0 16px; }
.plan ul { list-style: none; }
.plan li { padding: 6px 0; font-size: 14.5px; color: var(--ink); }
.plan li::before { content: "✓ "; color: var(--signal); font-weight: 700; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; padding: 2px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 0 16px; font-size: 14.5px; }

/* CTA band */
.band { text-align: center; background: var(--paper); border: 1px solid var(--hair); border-radius: 22px; padding: 48px 24px; }

/* Legal pages */
.legal { padding: 48px 0 80px; max-width: 760px; }
.legal h1 { font-size: 34px; letter-spacing: -1px; margin-bottom: 6px; }
.legal .eff { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2a2a2a; font-size: 15px; margin-bottom: 10px; }
.legal ul { margin-left: 20px; margin-bottom: 12px; }
.legal .banner {
  background: rgba(145,35,28,0.08);
  border: 1px solid rgba(145,35,28,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--signal);
  font-weight: 600;
  font-size: 13.5px;
  margin: 8px 0 24px;
}

/* Footer */
footer {
  border-top: 1px solid var(--hair); margin-top: 40px;
  padding: 32px 24px; text-align: center; color: var(--muted); font-size: 13.5px;
}
footer a { color: var(--muted); margin: 0 10px; }

@media (max-width: 720px) {
  .hero { padding-top: 48px; gap: 36px; }
  .hero-device { margin: 0 auto; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0C08; --paper: #181612; --ink: #F4F1E8; --muted: #A29C90;
    --signal: #D24438; --hair: rgba(244,241,232,0.12);
  }
  header { background: rgba(14,12,8,0.85); }
  .legal p, .legal li { color: #d8d3c7; }
  .device { box-shadow: 0 34px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.08); }
}

/* ============================================================
   Micro-interactions — make the page feel alive
   ============================================================ */

/* Brand dot: a living "pulse" ring, on-brand for the product. */
.brand .dot { position: relative; }
.brand .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--signal); opacity: 0.55;
  animation: pulsering 2.4s ease-out infinite;
}
@keyframes pulsering {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Nav links: sliding underline on hover. */
.navlinks a { position: relative; transition: opacity .2s ease; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--signal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.navlinks a:hover::after { transform: scaleX(1); }

/* Buttons: hover lift + press feedback. */
.cta {
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, opacity .2s ease, background .2s ease;
  will-change: transform;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(145,35,28,0.28); }
.cta:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 12px rgba(145,35,28,0.22); }
.cta.secondary:hover { box-shadow: 0 10px 22px rgba(145,35,28,0.16); background: rgba(145,35,28,0.06); }

/* Cards / steps / plans / shots: hover lift with a warmer shadow. */
.card, .step, .plan {
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}
.card:hover, .step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10,10,10,0.12);
  border-color: rgba(145,35,28,0.28);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(10,10,10,0.14); }
.plan.featured:hover { box-shadow: 0 20px 50px rgba(201,162,39,0.22); }

/* Card icon: gentle pop when its card is hovered. */
.card .ico { transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease; }
.card:hover .ico { transform: scale(1.12) rotate(-4deg); background: rgba(145,35,28,0.16); }

/* Step number: subtle spin-in feel on hover. */
.step .n { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.step:hover .n { transform: scale(1.1) rotate(6deg); }

/* Screenshot devices: lift + lighten shadow on hover. */
.shot .device { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.shot:hover .device { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 40px 90px rgba(10,10,10,0.35); }

/* FAQ: animate the open/close marker + reveal the answer. */
.faq summary::after { transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details { transition: border-color .25s ease, box-shadow .25s ease; }
.faq details[open] { box-shadow: 0 8px 24px rgba(10,10,10,0.07); }
.faq details[open] p { animation: faqfade .35s ease both; }
@keyframes faqfade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Footer links: same sliding underline cue. */
footer a { position: relative; transition: color .2s ease; }
footer a:hover { color: var(--ink); text-decoration: none; }

/* Scroll-reveal: only active once JS adds .reveal-on (no-JS sees everything). */
.reveal-on .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* Hero entrance on load. */
.reveal-on .hero-copy { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal-on .hero-device { animation: rise .8s cubic-bezier(.2,.7,.2,1) .12s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Scroll-progress bar — a thin signal-red line at the very top that fills as
   you scroll. Subtle "alive" cue that also aids orientation on long pages. */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--gold));
  z-index: 50; border-radius: 0 2px 2px 0;
  transition: width .08s linear;
}

/* "Free" tag on the Custom Workout card. */
.freetag {
  font-size: 11px; font-weight: 700; color: var(--signal);
  border: 1px solid var(--signal); border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: middle;
  letter-spacing: 0.2px;
}

/* Hero device: a slow, gentle float so the screenshot feels live (not static).
   Starts only after the load-in animation, and never under reduced-motion. */
.reveal-on .hero-device { animation: rise .8s cubic-bezier(.2,.7,.2,1) .12s both, floaty 6s ease-in-out 1s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Respect users who prefer less motion — disable all of the above. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand .dot::after { animation: none; display: none; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .reveal-on .hero-copy, .reveal-on .hero-device { animation: none; }
  .cta, .card, .step, .plan, .shot .device, .card .ico, .step .n { transition: none; }
  .cta:hover, .card:hover, .step:hover, .plan:hover, .shot:hover .device { transform: none; }
  .faq details[open] p { animation: none; }
  .scrollbar { display: none; }
}

/* ============================================================
   "Pro Max" layer — premium hero, motion, stat band, polish
   ============================================================ */

/* Hero: animated aurora glow + a drawing EKG "pulse" line behind the copy. */
.hero { position: relative; isolation: isolate; }
/* Horizontal bleed equals the page gutter, so the aurora/EKG backdrop reaches
   exactly the screen edges (full-bleed) without overflowing past them — no
   horizontal scrollbar. Vertical bleed (-16%/-8%) stays for a soft top/bottom
   fade and is clipped by the viewport, so it never adds scroll. */
.hero-bg { position: absolute; inset: -16% calc(-1 * var(--page-pad)) -8%; z-index: -1; overflow: hidden; pointer-events: none; }
/* Additive `screen` blend so the blooms read as glowing LIGHT on the dark hero
   (rich, premium) instead of flat colored discs. */
.aurora { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.9; mix-blend-mode: screen; }
.aurora.a1 { width: 560px; height: 560px; top: -120px; left: 4%;  background: radial-gradient(circle, rgba(145,35,28,0.85), transparent 70%); animation: drift1 19s ease-in-out infinite; }
.aurora.a2 { width: 480px; height: 480px; top: 0;      right: 0;   background: radial-gradient(circle, rgba(201,162,39,0.78), transparent 70%); animation: drift2 23s ease-in-out infinite; }
.aurora.a3 { width: 420px; height: 420px; bottom: -80px; left: 34%; background: radial-gradient(circle, rgba(145,35,28,0.62), transparent 70%); animation: drift3 21s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(46px,30px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,24px) scale(1.05); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-30px) scale(1.1); } }

.ekg { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 130px; color: var(--signal); opacity: 0.22; }
.ekg path { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.reveal-on .ekg path { animation: ekgdraw 3.0s cubic-bezier(.7,0,.3,1) .35s forwards; }
@keyframes ekgdraw { to { stroke-dashoffset: 0; } }

/* Hero kicker pill + section eyebrows. */
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--signal);
  background: rgba(145,35,28,0.08); border: 1px solid rgba(145,35,28,0.22);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--signal); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--signal); border-radius: 2px; }

/* Accent word: a slow red→gold→red shimmer sweep. */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--signal) 28%, var(--gold) 50%, var(--signal) 72%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5.5s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* Stat band — animated count-up numbers. */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 4px 0 44px; }
.stat {
  text-align: center; padding: 20px 10px; background: var(--paper);
  border: 1px solid var(--hair); border-radius: var(--radius);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,10,10,0.10); border-color: rgba(145,35,28,0.25); }
.stat .num { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -1.5px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.stat .num .pre, .stat .num .suf { color: var(--signal); }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
@media (max-width: 720px) { .statband { grid-template-columns: repeat(2, 1fr); } }

/* Nav: condense + add a shadow once you scroll; a solid CTA pill on the right. */
header { transition: background .3s ease, box-shadow .3s ease; }
header nav { transition: padding .3s ease; }
header.scrolled { box-shadow: 0 6px 24px rgba(10,10,10,0.07); }
header.scrolled nav { padding-top: 10px; padding-bottom: 10px; }
.navlinks .navcta {
  background: var(--signal); color: #fff !important; opacity: 1 !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease;
}
.navlinks .navcta::after { display: none !important; }
.navlinks .navcta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(145,35,28,0.28); }
@media (max-width: 560px) { .navlinks a:not(.navcta) { display: none; } }

/* Hero device: 3D tilt that follows the cursor (JS sets the transform). */
.hero-device { perspective: 1000px; }
#tilt .device { transition: transform .18s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  .reveal-on .ekg path { animation: none; stroke-dashoffset: 0; }
  .hero h1 .accent { animation: none; }
  .stat { transition: none; }
  .stat:hover { transform: none; }
  #tilt .device { transition: none; transform: none !important; }
}

/* ============================================================
   v2 — full-bleed layout · richer motion · mobile + iPad
   (these override the earlier centered-column rules)
   ============================================================ */

/* Fill the whole screen — content spans the viewport with responsive gutters
   instead of a narrow 980px column. Long text is capped for readability. */
nav         { max-width: 100%; }
header nav  { padding: 16px var(--page-pad); }
main        { max-width: 100%; margin: 0; padding: 0 var(--page-pad); }
footer      { padding-left: var(--page-pad); padding-right: var(--page-pad); }

.hero        { min-height: 86vh; padding: 40px 0 64px; }
.hero-copy   { max-width: 600px; }
.section .lead { max-width: 820px; }
.plans       { max-width: 760px; margin-left: auto; margin-right: auto; }  /* keep 2 plans tidy */

/* Use the extra width on big screens (feature grid widens, doesn't just gap). */
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* EKG: a lit pulse continuously travels the heartbeat line — alive, on-brand. */
.ekg { opacity: 0.32; height: 150px; filter: drop-shadow(0 0 8px rgba(145,35,28,0.45)); }
.ekg path { stroke-dasharray: 110 2600; stroke-dashoffset: 0; }
.reveal-on .ekg path { animation: ekgtravel 3.6s linear infinite; }
@keyframes ekgtravel { from { stroke-dashoffset: 2710; } to { stroke-dashoffset: 0; } }

/* A touch more aurora presence. */
.aurora.a1 { opacity: 0.62; }
.aurora.a2 { opacity: 0.56; }

/* CTA: a light sheen sweeps across on hover. */
.cta { position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.cta:hover::after { animation: sheen 0.85s ease; }
@keyframes sheen { from { left: -70%; } to { left: 130%; } }

/* 3D tilt scaffolding (JS sets the rotation on mouse-fine devices). */
.grid, .steps, .plans { perspective: 1200px; }
.card, .step, .plan { transform-style: preserve-3d; }

/* ── iPad / tablet (≤ 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 36px 0 48px; gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤ 720px) ─────────────────────────────────────── */
@media (max-width: 720px) {
  /* Tighter mobile gutter. Drive it through the SAME variable the hero
     backdrop bleed uses, so the aurora still reaches exactly the screen edges
     with zero horizontal overflow (nav/main/footer padding follow the var). */
  :root { --page-pad: 18px; }
  header nav { padding: 12px var(--page-pad); }
  .hero { flex-direction: column; text-align: center; gap: 26px; padding: 22px 0 40px; }
  .hero-copy { max-width: 100%; }
  .hero-actions { display: flex; flex-direction: column; gap: 12px; }
  .hero-actions .cta { display: block; margin: 0; }
  .cta.secondary { margin-left: 0; }
  .hero-device { margin: 0 auto; }
  .device { width: 232px; }
  .grid { grid-template-columns: 1fr; }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section .lead { max-width: 100%; }
  .navlinks a:not(.navcta) { display: none; }   /* phones: brand + "Get the app" only */
}

/* ── Tablets / iPad portrait (721–980px) ─────────────────────
   The hero copy + device wrap onto two lines here. Center both so the wrapped
   phone reads as intentional (instead of stranded left with empty space). */
@media (min-width: 721px) and (max-width: 980px) {
  .hero { justify-content: center; text-align: center; gap: 36px; }
  .hero-copy { max-width: 640px; flex-basis: 100%; }
  .hero-actions { justify-content: center; }
  .hero-device { margin: 0 auto; }
}

/* ── Small phones (≤ 380px) ───────────────────────────────── */
@media (max-width: 380px) {
  .device { width: 204px; }
  .hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on .ekg path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .cta::after, .cta:hover::after { display: none; animation: none; }
  .card, .step, .plan { transform: none !important; }
}


/* ── Mobile nav: hamburger (3 bars) reveals ALL tabs ─────────────────── */
.navtoggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; margin-left: auto; padding: 9px 10px;
  background: transparent; border: 0; cursor: pointer; border-radius: 10px;
  -webkit-tap-highlight-color: transparent; }
.navtoggle span { display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
  header nav { position: relative; }
  .navtoggle { display: flex; }
  .navlinks { position: absolute; top: calc(100% + 6px); left: var(--page-pad); right: var(--page-pad);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px;
    background: var(--paper); border: 1px solid var(--hair); border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.28); opacity: 0; transform: translateY(-8px);
    pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60; }
  .navlinks.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .navlinks a, .navlinks a:not(.navcta) { display: block; margin: 0; padding: 13px 14px;
    font-size: 15px; opacity: .92; border-radius: 10px; }
  .navlinks a:hover { background: var(--hair); opacity: 1; }
  .navlinks .navcta { margin-top: 6px; text-align: center; }
}
