/* =====================================================================
   Benjamin Lubell Swim Lessons — styles
   North Star: "The Sunlit Backyard Pool". Theme is driven by the CSS
   variables in :root. Change those to rebrand. See DESIGN.md.
   ===================================================================== */

:root {
  /* Brand colors (blue-water palette + one gold accent) */
  --blue-900: #0b3d5c;
  --blue-700: #0e6ba8;
  --blue-500: #1f97d4;
  --blue-300: #7fcdee;
  --blue-100: #e3f4fb;
  --blue-50:  #f0f9fd;
  --teal: #16b6b6;
  --teal-ink: #0c7a7a;      /* darker teal for text/AA confirmation states */
  --sun: #ffb83d;           /* the ONE gold accent — CTAs + hero underline only */
  --sun-hover: #ffc560;
  --sun-dark: #f59e1b;      /* amber — star ratings only */
  --red: #dc2626;           /* clear red — pain-point X marks */
  --ink: #143447;
  --ink-soft: #3c5160;      /* AA-tuned secondary text */
  --white: #ffffff;
  --bg: #f5fbfe;
  --card: #ffffff;
  --line: #d9ecf5;

  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 107, 168, 0.12);
  --shadow-sm: 0 4px 14px rgba(14, 107, 168, 0.10);
  --maxw: 1140px;
  --header-h: 72px;
  --section-y: clamp(56px, 7vw, 92px);

  /* Motion — named easings; no ease-in / bounce / elastic anywhere */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }
a { color: var(--blue-700); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* Accessible focus + skip link */
:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 2px; border-radius: 6px; }
.btn-primary:focus-visible { outline-color: var(--blue-900); }
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 200;
  background: var(--blue-900); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transform: translateY(-200%); transition: transform .15s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Inline SVG icons */
.ic { width: 22px; height: 22px; flex: none; color: var(--blue-700); }
.ic-inline { width: 1em; height: 1em; vertical-align: -0.15em; }
.ic-star { color: var(--sun-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; white-space: nowrap;
  text-decoration: none; border: none; cursor: pointer; border-radius: 999px;
  padding: 12px 24px; font-size: 1rem; text-align: center; min-height: 44px;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .14s var(--ease-out), border-color .14s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--white); color: var(--blue-700); border: 2px solid var(--blue-300); }
.btn-phone { background: var(--white); color: var(--blue-900); border: 2px solid var(--blue-300); }
.btn-phone .ic { color: var(--teal); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--sun-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
  .btn-ghost:hover { border-color: var(--blue-500); background: var(--blue-100); }
  .btn-phone:hover { border-color: var(--blue-500); background: var(--blue-50); }
}

/* ---------- Top banner (5-star) ---------- */
.topbar { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--blue-900); color: #fff; padding: 7px 16px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .01em; text-align: center; }
.topbar-stars { display: inline-flex; gap: 2px; }
.topbar-stars .ic-star { width: 15px; height: 15px; color: var(--sun); }
@media (max-width: 420px) { .topbar { font-size: .76rem; padding: 6px 12px; gap: 7px; } .topbar-stars .ic-star { width: 13px; height: 13px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,249,253,0.82); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(20,52,71,.04), 0 6px 20px -14px rgba(11,61,92,.45);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark svg { width: 40px; height: 40px; display: block; }
.brand-mark rect { fill: var(--blue-700); }
.brand-mark .brand-wave { color: #fff; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-weight: 600; font-size: .72rem; color: var(--blue-700); letter-spacing: .04em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .96rem; }
.primary-nav a:not(.btn):not(.nav-phone) {
  padding: 9px 13px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
.primary-nav a.active { color: var(--blue-700); background: var(--blue-100); }
.nav-cta { color: var(--ink) !important; margin-left: 4px; }
.primary-nav a.nav-phone { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; margin-left: 10px; color: var(--blue-900) !important; font-weight: 800; font-size: 1rem; text-decoration: none; }
.nav-phone .ic-inline { color: var(--teal); }
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:not(.btn):not(.nav-phone):hover { color: var(--blue-700); background: var(--blue-100); }
  .primary-nav a.nav-phone:hover { color: var(--blue-700) !important; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 11px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(11,61,92,.4); z-index: 40; }
.nav-backdrop.show { display: block; }
body.menu-open { overflow: hidden; }

/* ---------- Section basics ---------- */
section { padding: var(--section-y) 0; }
.section-head { margin-bottom: 36px; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.012em; line-height: 1.1; text-wrap: balance; text-align: center; margin: 0 0 12px; color: var(--blue-900); }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 auto; max-width: 38em; font-size: 1.08rem; }
.section-sub.left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--blue-700); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin: 0 0 12px; }
.section-head .eyebrow { justify-content: center; width: 100%; }

/* ---------- HERO (full-bleed photo + overlaid copy) ---------- */
.hero {
  /* Swap the hero photo here (or drop a new file at images/hero.jpg). */
  --hero-photo: url('images/hero.jpg');
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 clamp(104px, 15vh, 168px);
}
/* Background photo fills the section; the gradient is a graceful fallback shown
   only if images/hero.jpg is missing. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; background-color: var(--blue-900);
  background-image: var(--hero-photo, none),
    linear-gradient(158deg, #1b5f8a 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  background-size: cover, cover; background-position: center 28%, center; background-repeat: no-repeat, no-repeat;
}
/* Scrim — stronger on the left where the copy sits, plus a base darken for AA text. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,32,48,.88) 0%, rgba(8,32,48,.64) 44%, rgba(8,32,48,.22) 80%, rgba(8,32,48,.10) 100%),
    linear-gradient(to top, rgba(8,32,48,.55) 0%, rgba(8,32,48,0) 36%);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 16vh, 180px); overflow: hidden; z-index: 1; pointer-events: none; }
.wave-anim { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave-anim--back path { fill: var(--blue-300); opacity: .42; }
.wave-anim--front path { fill: var(--blue-100); opacity: .30; }
.wave-anim--back { animation: waveX 13s linear infinite; }
.wave-anim--front { animation: waveX 9s linear infinite; }
@keyframes waveX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 640px; }

.hero .eyebrow { color: #eaf6fd; background: rgba(255,255,255,.16); padding: 7px 13px; border-radius: 999px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hero .eyebrow .ic-inline { color: var(--blue-300); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 4.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; margin: 0 0 16px; color: #fff; text-shadow: 0 2px 24px rgba(4,18,28,.42); }
.hero h1 .hl { color: #fff; position: relative; white-space: nowrap; }
.hero h1 .hl-underline { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.34em; color: var(--sun); overflow: visible; pointer-events: none; }
html.js .hero h1 .hl-underline path { stroke-dasharray: 320; stroke-dashoffset: 320; }
html.js body.is-loaded .hero h1 .hl-underline path { transition: stroke-dashoffset .7s var(--ease-out) .55s; stroke-dashoffset: 0; }
.lede { font-size: 1.24rem; color: rgba(255,255,255,.93); max-width: 30em; margin: 0 0 26px; text-shadow: 0 1px 14px rgba(4,18,28,.38); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

/* Scroll-down cue — flows the eye into the next section (#frustration) */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(96px, 13vh, 142px); transform: translateX(-50%);
  z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,.9); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
}
.scroll-cue svg { width: 26px; height: 26px; }
/* When the hero copy (the trust badges) would grow into the centered cue on
   short / zoomed-in viewports, JS adds .is-aside to slide "My story" into the
   open gutter beside the copy — so it never blurs over the badges and never
   disappears. On roomy screens it stays centered. */
.scroll-cue.is-aside { left: auto; right: clamp(20px, 4vw, 64px); transform: none; }
@media (prefers-reduced-motion: no-preference) { html.js .scroll-cue svg { animation: cueBob 1.8s var(--ease-in-out) infinite; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (hover: hover) and (pointer: fine) { .scroll-cue:hover { color: #fff; } }

/* Trust badges — one compact frosted cluster over the hero photo (no gold pills) */
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.trust-badges li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-sm); padding: 9px 14px; box-shadow: 0 6px 20px rgba(4,18,28,.22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.trust-badges .ic { color: var(--blue-700); }
.trust-badges .ic-star { color: var(--sun-dark); }
.trust-badges span { display: flex; flex-direction: column; line-height: 1.2; font-size: .78rem; color: var(--ink-soft); }
.trust-badges strong { font-family: var(--font-head); color: var(--blue-900); font-size: .98rem; }

/* Wave divider into the next section (renders by default; loops linearly) */
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; }
.wave-divider svg { width: 100%; height: clamp(44px, 6vw, 70px); display: block; }
.wave-divider path { fill: var(--blue-50); }

/* ---------- PARENT FRUSTRATION (centered empathy column) ---------- */
.frustration { background: var(--blue-50); padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.frustration-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

/* Image side — photo framed like the hero photo (opposite tilt for rhythm) */
.frustration-figure { position: relative; margin: 0; width: 100%; }
.frustration-figure::before { content: ""; position: absolute; inset: 0; transform: rotate(-3deg); background: var(--blue-300); opacity: .3; border-radius: var(--radius); }
.frustration-photo { position: relative; display: block; aspect-ratio: 4/5; width: 100%; height: auto; border-radius: var(--radius); border: 5px solid #fff; box-shadow: var(--shadow); background: var(--blue-100); transform: rotate(1.6deg); object-fit: cover; }

/* Text side — left aligned, fills the column */
.frustration-copy { max-width: 38em; }
.frustration .section-title { font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.12; margin-bottom: 12px; }
.frustration .section-sub { margin-bottom: 24px; font-size: 1.12rem; }
.pain-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.pain-list li { display: flex; align-items: center; gap: 13px; font-size: 1.12rem; color: var(--ink); font-weight: 600; }
.pain-list .ic { color: var(--red); opacity: 1; flex: none; }
.frustration-turn { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.22rem, 2.1vw, 1.48rem); line-height: 1.38; color: var(--ink); margin: 0 0 24px; }
.frustration-turn strong { color: var(--blue-700); }
@media (max-width: 900px) {
  .frustration-inner { grid-template-columns: 1fr; gap: 28px; }
  .frustration-copy { order: 1; max-width: none; }
  .frustration-figure { order: 2; max-width: 340px; margin: 0 auto; }
}

/* ---------- RESULTS: transformations + testimonials ---------- */
.results { background: var(--white); }
.transform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-bottom: 40px; }
.transform-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.transform-figure { margin: 0; overflow: hidden; }
.transform-photo { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; }
.transform-body { padding: 22px 26px 26px; }
.transform-body h3 { margin: 0 0 14px; color: var(--blue-700); font-size: 1.35rem; }
/* fearful -> confident arc — NO numbered chrome (numbers belong only to the Method).
   Muted dots mark in-progress states; an inline teal check marks the achieved state. */
.transform-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.transform-steps li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 1.02rem; }
.transform-steps li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); }
.transform-steps li.transform-now { color: var(--ink); font-weight: 700; }
.transform-steps li.transform-now::before { display: none; }
.transform-steps li.transform-now .ic { width: 20px; height: 20px; color: var(--teal); flex: none; }
.transform-steps strong { color: var(--ink); }

.testi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.testi-card { background: var(--blue-50); border-radius: var(--radius); padding: 26px; margin: 0; border: 1px solid var(--line); }
.testi-card .stars { display: flex; gap: 2px; margin-bottom: 12px; }
.testi-card .stars .ic { width: 18px; height: 18px; color: var(--sun-dark); }
.testi-card blockquote { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink); }
.testi-card figcaption { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }

/* Real parent video testimonials — portrait, framed like the hero photo.
   Order in the Results section: transformations -> videos -> text reviews. */
.video-stories { margin-top: clamp(40px, 5vw, 56px); }
.reviews-block { margin-top: clamp(40px, 5vw, 56px); }
.block-head { text-align: center; color: var(--blue-700); font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 28px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 660px; margin: 0 auto; }
.video-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.testi-video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: var(--blue-900); border: 5px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-card figcaption { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }

/* ---------- THE METHOD (connected numbered step sequence) ---------- */
.method { background: var(--blue-50); }
.method-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.method-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 64px; height: 3px; background: var(--blue-300); border-radius: 2px; z-index: 0; }
.method-step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.method-ic { width: 26px; height: 26px; color: var(--blue-500); margin-bottom: 8px; }
.method-num { width: 58px; height: 58px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; box-shadow: 0 8px 18px rgba(14,107,168,.22), 0 0 0 6px var(--blue-50); margin-bottom: 16px; }
.method-step h3 { margin: 0 0 6px; font-size: 1.14rem; }
.method-step p { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 18em; }

/* ---------- WHY BEN (story + credentials split, used once) ---------- */
.why { background: var(--white); }
.why-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.why-copy .section-title { margin-bottom: 18px; }
.why-copy p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 16px; max-width: 36em; }
.why-copy p strong { color: var(--ink); }
.cred-list { list-style: none; padding: 18px 0; margin: 8px 0 26px; display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); }
.cred-list li:first-child { border-top: none; }
.cred-list .ic { color: var(--teal); }
.cred-list strong { color: var(--ink); }
.why-aside { position: relative; background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 26px; box-shadow: var(--shadow-sm); }
.why-quote { margin: 0 0 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; line-height: 1.4; color: var(--blue-900); }
.why-sign { margin: 18px 0 0; display: flex; align-items: center; gap: 14px; }
.why-portrait { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); background: var(--blue-100); }
.why-sign figcaption { display: flex; flex-direction: column; line-height: 1.25; }
.why-sign figcaption strong { font-family: var(--font-head); font-weight: 800; color: var(--blue-700); font-size: 1.04rem; }
.why-sign figcaption span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- BOOK (form + phone two-pane) ---------- */
.contact { background: var(--blue-50); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.08rem; max-width: 30em; }
.phone-cta { display: flex; align-items: center; gap: 12px; min-height: 56px; background: #fff; border: 2px solid var(--blue-300); border-radius: var(--radius-sm); padding: 12px 22px; margin: 20px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; color: var(--blue-900); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); }
.phone-cta .ic { color: var(--teal); flex: none; }
.phone-cta strong { color: var(--blue-700); }
@media (hover: hover) and (pointer: fine) { .phone-cta:hover { border-color: var(--blue-500); background: var(--blue-50); } }
.contact-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; font-weight: 600; }
.contact-points li { display: flex; align-items: center; gap: 10px; }
.contact-points .ic { color: var(--blue-700); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hp-field { position: absolute; left: -9999px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 12px 13px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); resize: vertical; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s var(--ease-out); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-reassure { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--ink-soft); font-size: .9rem; margin: 12px 0 0; }
.form-reassure .ic-inline { color: var(--teal); }
.form-status { text-align: center; font-weight: 700; margin: 10px 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--teal-ink); }
.form-status.err { color: #b91c1c; }

/* ---------- FAQ (accordion) ---------- */
.faq { background: var(--white); }
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-50); padding: 2px 18px; }
.faq-list summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; padding: 16px 28px 16px 0; min-height: 44px; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue-500); transition: transform .2s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Footer (warm close, not a SaaS grid) ---------- */
.site-footer { background: var(--blue-900); color: #cfe7f4; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: #fff; line-height: 1.2; }
.footer-brand small { font-weight: 600; font-size: .72rem; color: var(--blue-300); text-transform: uppercase; letter-spacing: .04em; }
.footer-brand .brand-mark rect { fill: rgba(255,255,255,.15); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #cfe7f4; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.footer-copy { width: 100%; font-size: .85rem; color: #a7cde2; margin: 8px 0 0; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: #fff; } }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 45; text-align: center; padding: 15px; border-radius: 999px; background: var(--sun); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 8px 24px rgba(11,61,92,.3); padding-bottom: calc(15px + env(safe-area-inset-bottom)); transform: translateY(140%); transition: transform .34s var(--ease-drawer); }
.mobile-cta.show { display: block; transform: translateY(0); }

/* =====================================================================
   MOTION — only: hero load entrance, hero wave loop, method-step reveal,
   transformation clip-path reveal, CTA hover/press. Nothing else moves.
   ===================================================================== */

/* Hero load entrance (driven by body.is-loaded, not scroll) */
html.js .hero-copy > *, html.js .hero-figure, html.js .trust-badges li {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
html.js body.is-loaded .hero-copy > *, html.js body.is-loaded .hero-figure, html.js body.is-loaded .trust-badges li { opacity: 1; transform: none; }
html.js .hero-media .hero-photo { transform: translateY(14px) rotate(-1.6deg); }
html.js body.is-loaded .hero-media .hero-photo { transform: rotate(-1.6deg); }
html.js body.is-loaded .hero-copy > *:nth-child(1) { transition-delay: .05s; }
html.js body.is-loaded .hero-copy > *:nth-child(2) { transition-delay: .12s; }
html.js body.is-loaded .hero-copy > *:nth-child(3) { transition-delay: .19s; }
html.js body.is-loaded .hero-copy > *:nth-child(4) { transition-delay: .26s; }
html.js body.is-loaded .hero-figure { transition-delay: .22s; }
html.js body.is-loaded .trust-badges li:nth-child(1) { transition-delay: .30s; }
html.js body.is-loaded .trust-badges li:nth-child(2) { transition-delay: .35s; }
html.js body.is-loaded .trust-badges li:nth-child(3) { transition-delay: .40s; }

/* Scroll reveals — ONLY method steps (staggered) + transformation media (clip wipe).
   Base states live inside no-preference so reduced-motion never hides content. */
@media (prefers-reduced-motion: no-preference) {
  html.js .method-step { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 65ms); }
  html.js .method-step.is-in { opacity: 1; transform: none; }
  html.js .transform-photo { clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out); }
  html.js .transform-card.is-in .transform-photo { clip-path: inset(0 0 0 0); }
}
.method-step:nth-child(1) { --i: 0; }
.method-step:nth-child(2) { --i: 1; }
.method-step:nth-child(3) { --i: 2; }
.method-step:nth-child(4) { --i: 3; }
.method-step:nth-child(5) { --i: 4; }

@media (hover: hover) and (pointer: fine) {
  .transform-card { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
  .transform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .hero { min-height: 78vh; padding: calc(var(--header-h) + 32px) 0 96px; }
  .scroll-cue { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .transform-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .method-track { grid-template-columns: 1fr 1fr 1fr; gap: 28px 16px; }
  .method-track::before { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 46;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .method-track { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .trust-badges { width: 100%; }
  .trust-badges li { flex: 1 1 100%; }
  .mobile-cta.show { display: block; }
  .video-grid { grid-template-columns: 1fr; max-width: 300px; }
}
@media (max-width: 420px) {
  .method-track { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reduced motion — fewer & gentler, never fully off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Wave is intentionally frozen (not slowed) for vestibular safety; CTA color
     feedback below is kept so the page still feels responsive. */
  .wave-anim { animation: none; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html.js .hero-copy > *, html.js .hero-figure, html.js .trust-badges li, html.js .method-step { opacity: 1 !important; transform: none !important; }
  html.js .hero-media .hero-photo { transform: rotate(-1.6deg) !important; }
  html.js .transform-photo { clip-path: none !important; }
  html.js .hero h1 .hl-underline path { stroke-dashoffset: 0 !important; }
  /* Keep color/opacity feedback on CTAs so they still feel alive */
  .btn-primary:active { transform: none; background: var(--sun-hover); }
}
