/* ==========================================================================
   Murmurs website – shared styles
   Colours and type follow the iOS app: SF Pro (system font), brand blue,
   grouped backgrounds, white cards, soft atmospheric gradients.
   ========================================================================== */

:root {
  --brand: #2c5ce0;            /* Murmurs blue, from the app icon */
  --brand-strong: #1f49c4;
  --indigo: #6a56e6;           /* "Welcome back" purple */
  --teal: #4fb9c7;             /* library / recording teal */
  --pink: #c058e0;             /* consultation summary violet */
  --red: #e5484d;

  --bg: #f2f2f7;               /* iOS grouped background */
  --bg-elev: #ffffff;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #8e8e93;
  --line: rgba(0, 0, 0, 0.08);
  --word: #12141f;             /* wordmark colour in light mode */
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(20,30,80,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.06), 0 30px 60px -20px rgba(30,40,110,.28);

  --hero-dominant: 106, 86, 230;   /* rgb triplets for the atmospheric glow */
  --hero-accent: 79, 185, 199;
  --hero-glow-1: .30;
  --hero-glow-2: .16;
  --mark-opacity: .075;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4f7dff;
    --brand-strong: #6b91ff;
    --indigo: #8d7dff;
    --teal: #63c9d6;
    --pink: #d684f0;
    --bg: #000000;
    --bg-elev: #111114;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #7c7c82;
    --line: rgba(255, 255, 255, 0.10);
    --word: #ffffff;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.8);
    --hero-glow-1: .42;
    --hero-glow-2: .22;
    --mark-opacity: .11;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.022em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* Placeholders you still need to fill in (search the folder for "TBC") */
.tbc { background: #fff1c2; color: #7a5200; border-radius: 6px; padding: 0 6px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .tbc { background: #4a3a0a; color: #f7d98a; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 700 20px/1 var(--font-display); letter-spacing: -0.02em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; opacity: .82; }
.nav a:hover { opacity: 1; background: var(--line); color: var(--text); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav .btn { margin-left: 6px; opacity: 1; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-strong); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); width: 42px; height: 42px; border-radius: 999px; cursor: pointer; }
.menu-btn:hover { background: var(--line); }
.menu-btn svg { margin: auto; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 60px; left: 12px; right: 12px; flex-direction: column; align-items: stretch;
    background: var(--bg-elev); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 14px; font-size: 17px; border-radius: 12px; }
  .nav .btn { margin: 6px 0 0; text-align: center; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--font); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-sm { font-size: 14px; padding: 9px 15px; }

/* App Store button – placeholder until the app is live.
   When live, swap this for Apple's official badge (see README). */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.18); transition: transform .15s; }
.store:hover { color: #fff; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; opacity: .8; letter-spacing: .02em; line-height: 1.2; }
.store strong { display: block; font: 600 19px/1.1 var(--font-display); letter-spacing: -0.01em; }
.store[aria-disabled="true"] { cursor: default; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #000; border-color: transparent; } .store:hover { color: #000; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 0; isolation: isolate; }
.atmos { position: absolute; inset: -60px 0 auto 0; height: min(980px, 115vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(var(--hero-dominant), var(--hero-glow-1)) 0%, rgba(var(--hero-dominant), calc(var(--hero-glow-1) * .6)) 30%, rgba(var(--hero-dominant), calc(var(--hero-glow-1) * .23)) 60%, transparent 85%),
    radial-gradient(ellipse 65% 55% at 100% 0%, rgba(var(--hero-accent), var(--hero-glow-2)) 0%, rgba(var(--hero-accent), calc(var(--hero-glow-2) * .55)) 40%, transparent 80%),
    radial-gradient(ellipse 50% 40% at 55% 30%, rgba(var(--hero-dominant), calc(var(--hero-glow-2) * .5)) 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.98) 30%, rgba(0,0,0,.8) 55%, rgba(0,0,0,.45) 72%, rgba(0,0,0,.15) 88%, transparent 100%);
  mask-image: linear-gradient(#000 0%, rgba(0,0,0,.98) 30%, rgba(0,0,0,.8) 55%, rgba(0,0,0,.45) 72%, rgba(0,0,0,.15) 88%, transparent 100%);
}
.atmos .mark { position: absolute; right: -7vw; top: 70px; width: min(520px, 62vw); transform: rotate(8deg); color: rgb(var(--hero-dominant)); opacity: var(--mark-opacity); will-change: transform; }
.halo { position: absolute; left: 50%; top: 150px; width: 760px; height: 560px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(44, 92, 224, .9), rgba(44, 92, 224, 0) 100%); opacity: 0; }

.hero-inner { text-align: center; }
.logo-anim { width: min(940px, 100%); margin: 0 auto; aspect-ratio: 760 / 150; overflow: visible; }
.logo-anim text { font-family: var(--font-display); font-weight: 700; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; margin: 8px auto 18px; text-wrap: balance; }
.hero h1 .serif { font-family: var(--font-serif); font-weight: 700; font-style: italic; letter-spacing: -0.02em; color: var(--brand); }
.hero .lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 auto 28px; text-wrap: balance; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .meta { margin-top: 16px; font-size: 14px; color: var(--faint); }
.sound-btn svg { width: 18px; height: 18px; }

/* Hero entrance – only hidden when JS is running the animation */
.js .reveal-after { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .hero.ready .reveal-after { opacity: 1; transform: none; }
.js .hero.ready .reveal-after.d1 { transition-delay: .08s; }
.js .hero.ready .reveal-after.d2 { transition-delay: .16s; }
.js .hero.ready .reveal-after.d3 { transition-delay: .28s; }

/* Phones fanned at the bottom of the hero */
.hero-phones { position: relative; height: clamp(360px, 52vw, 560px); margin: 54px -22px 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%); mask-image: linear-gradient(#000 60%, transparent 100%); }
.hero-phones .phone { position: absolute; top: 0; left: 50%; width: clamp(200px, 26vw, 290px); }
.hero-phones .p-left  { transform: translateX(-124%) translateY(56px) rotate(-7deg); }
.hero-phones .p-right { transform: translateX(24%) translateY(56px) rotate(7deg); }
.hero-phones .p-mid   { z-index: 2; transform: translateX(-50%); }
@media (max-width: 560px) {
  .hero-phones { height: 420px; }
  .hero-phones .p-left  { transform: translateX(-108%) translateY(48px) rotate(-7deg); }
  .hero-phones .p-right { transform: translateX(8%) translateY(48px) rotate(7deg); }
}

/* ---------- Device frame ---------- */
/* Bezel is sized from the phone itself (not its container), so it stays the same thickness at every size */
.phone { position: relative; aspect-ratio: 1170 / 2532; border-radius: 15% / 6.93%; background: linear-gradient(145deg, #2a2a2e, #0d0d0f); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone img { position: absolute; top: 1.48%; bottom: 1.48%; left: 3.2%; right: 3.2%; width: 93.6%; height: 97.04%; object-fit: cover; border-radius: 12.4% / 5.73%; background: #f2f2f7; }
.phone::after { content: ""; position: absolute; left: 50%; top: 4.6%; width: 29%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 12px; letter-spacing: .01em; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
.section-head p { font-size: 19px; color: var(--muted); margin: 0; text-wrap: pretty; }

/* Feature bento */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature { grid-column: span 6; background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid var(--line); }
.feature h3 { font-size: 25px; font-weight: 700; margin: 18px 0 10px; }
.feature p { color: var(--muted); margin: 0; }
.feature .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.feature .icon svg { width: 28px; height: 28px; }
.feature .tag { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.f-blue .icon, .f-blue .tag { background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand); }
.f-pink .icon, .f-pink .tag { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.f-teal .icon, .f-teal .tag { background: color-mix(in srgb, var(--teal) 18%, transparent); color: color-mix(in srgb, var(--teal) 75%, var(--text)); }
.f-indigo .icon, .f-indigo .tag { background: color-mix(in srgb, var(--indigo) 14%, transparent); color: var(--indigo); }
.feature::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; opacity: .5; pointer-events: none; }
.f-blue::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent); }
.f-pink::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--pink) 14%, transparent), transparent); }
.f-teal::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 18%, transparent), transparent); }
.f-indigo::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--indigo) 14%, transparent), transparent); }
@media (min-width: 900px) { .feature.wide { grid-column: span 7; } .feature.narrow { grid-column: span 5; } }
@media (max-width: 760px) { .feature, .feature.wide, .feature.narrow { grid-column: span 12; } }

/* Steps strip */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; counter-reset: step; }
.step { padding: 22px 24px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--card) 60%, transparent); border: 1px solid var(--line); }
.step b { display: block; font-size: 17px; margin-bottom: 4px; }
.step b::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 14px; vertical-align: 1px; }
.step span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Screenshot gallery */
.gallery-band { background: var(--bg-elev); }
@media (prefers-color-scheme: light) { .gallery-band { background: linear-gradient(180deg, var(--bg) 0%, #e9e9f3 100%); } }
.gallery { display: flex; gap: 34px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(22px, calc((100vw - var(--max)) / 2 + 22px)) 40px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; width: clamp(220px, 24vw, 270px); scroll-snap-align: center; }
.gallery figcaption { margin-top: 20px; text-align: center; font-size: 16px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.gallery-ctrl { display: flex; gap: 10px; justify-content: flex-end; margin-top: -24px; margin-bottom: 18px; }
.gallery-ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.gallery-ctrl button:hover { background: var(--line); }

/* Languages */
.lang-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.lang-card { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lang-card h3 { font-size: 22px; margin-bottom: 8px; }
.lang-card p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 500; border: 1px solid var(--line); }
.chips li span { color: var(--faint); font-weight: 400; margin-left: 6px; }
.chips li.soon { border-style: dashed; color: var(--muted); background: transparent; }
@media (max-width: 860px) { .lang-grid { grid-template-columns: 1fr; } }

/* Exams */
.exams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.exam { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.exam .code { font: 800 30px/1 var(--font-display); letter-spacing: -0.02em; background: linear-gradient(120deg, var(--brand), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exam .full { display: block; font-size: 14px; color: var(--faint); margin: 8px 0 14px; min-height: 2.6em; }
.exam p { margin: 0; color: var(--muted); font-size: 16px; }
.fine { font-size: 14px; color: var(--faint); margin-top: 22px; }
@media (max-width: 960px) { .exams { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .exams { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 20px; margin-bottom: 14px; }
.plan .price { font: 800 44px/1 var(--font-display); letter-spacing: -0.03em; }
.plan .per { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 15px; margin: 10px 0 22px; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233aa6b5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan.best { border: 2px solid var(--brand); box-shadow: 0 20px 50px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.plan .ribbon { position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2.2px solid var(--faint); border-bottom: 2.2px solid var(--faint); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a ol, .faq .a ul { padding-left: 22px; margin: 0 0 1em; }

/* CTA band */
.cta-band { text-align: center; border-radius: 32px; padding: clamp(48px, 8vw, 88px) 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2f6f8a 0%, #3b5aa8 50%, #5a4fb0 100%); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 45%), radial-gradient(circle at 10% 100%, rgba(255,255,255,.12), transparent 40%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 19px; opacity: .85; margin: 0 auto 28px; max-width: 34ch; }
.cta-band .mark-bg { position: absolute; right: -40px; bottom: -50px; width: 420px; opacity: .12; color: #fff; }
.cta-band .store { background: #fff; color: #000; }
.cta-band .store:hover { color: #000; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--muted); margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); letter-spacing: .01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer .brand, .site-footer .brand:hover { color: var(--text); }
.site-footer a:hover { color: var(--text); }
.site-footer .edu { margin-top: 14px; max-width: 36ch; }
.site-footer .legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: 54px 0 24px; position: relative; isolation: isolate; overflow: hidden; }
.page-hero .atmos { height: 520px; }
.page-hero .atmos .mark { width: min(420px, 60vw); top: 10px; }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.page-hero p { font-size: 20px; color: var(--muted); max-width: 46ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .cards-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.contact-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.contact-card .big { font: 700 clamp(20px, 3vw, 28px)/1.2 var(--font-display); letter-spacing: -0.02em; word-break: break-all; }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.kit a.asset { display: block; text-decoration: none; color: var(--text); background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.kit a.asset .thumb { aspect-ratio: 1; display: grid; place-items: center; background: #faf8f3; }
.kit a.asset .thumb.dark { background: #0b0b0d; }
.kit a.asset .thumb > img { max-height: 78%; max-width: 78%; }
.kit a.asset .thumb .phone { width: 36%; }
.kit a.asset span { display: block; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.kit a.asset span small { display: block; font-weight: 400; color: var(--faint); font-size: 13px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.swatch i { display: block; height: 72px; }
.swatch span { display: block; padding: 10px 12px; }
.swatch code { color: var(--faint); font-size: 13px; }

/* ---------- Scroll reveal ---------- */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .reveal-after { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .store { transition: none; }
}

/* ---------- iPad frame + live consultation ---------- */
.ipad { position: relative; aspect-ratio: var(--ar); border-radius: 6% / calc(6% * var(--ar)); background: linear-gradient(145deg, #2a2a2e, #0d0d0f); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.ipad > img, .ipad > video { position: absolute; left: 3.4%; right: 3.4%; top: calc(3.4% * var(--ar)); bottom: calc(3.4% * var(--ar)); width: 93.2%; height: calc(100% - 6.8% * var(--ar)); object-fit: cover; border-radius: 3% / calc(3% * var(--ar)); background: #000; display: block; }
.ipad > img { background: #f2f2f7; }
.live-band { background: #000; color: #f5f5f7; --muted: #a1a1a6; --faint: #8e8e93; --line: rgba(255,255,255,.12); overflow: hidden; }
.live-band .section-head p { color: #a1a1a6; }
.live-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 25% 45%, rgba(40,170,220,.20), transparent 70%), radial-gradient(ellipse 40% 35% at 70% 70%, rgba(235,120,60,.12), transparent 70%); }
.live-band .wrap { position: relative; }
.live-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.live-notes h3 { font-size: 24px; margin-bottom: 20px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.legend li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: #c7c7cc; }
.legend b { display: block; color: #fff; font-size: 17px; }
.dot { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; margin-top: 2px; }
.dot-orange { background: radial-gradient(circle, #ffd2a8 0 12%, #f07a3a 35%, rgba(240,122,58,.15) 72%, transparent 74%); }
.dot-blue { background: radial-gradient(circle, #d8fbff 0 12%, #23b5e0 35%, rgba(35,181,224,.15) 72%, transparent 74%); }
.dot-pattern { background:
  radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 72% 40%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 45% 75%, #fff 0 1.5px, transparent 2px),
  linear-gradient(35deg, transparent 47%, rgba(255,255,255,.35) 48% 52%, transparent 53%), linear-gradient(-60deg, transparent 47%, rgba(255,255,255,.25) 48% 52%, transparent 53%), #111; border: 1px solid rgba(255,255,255,.15); }
.dot-check { background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ipad-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: clamp(56px, 8vw, 96px); max-width: 980px; margin-left: auto; margin-right: auto; }
.ipad-pair figure { margin: 0; }
.ipad-pair figcaption { margin-top: 20px; text-align: center; color: #a1a1a6; font-size: 16px; }
.ipad-pair figcaption b { display: block; color: #fff; font-size: 18px; margin-bottom: 2px; }
.kit a.asset .thumb .ipad-thumb { width: 54%; }
@media (max-width: 820px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-grid > div:first-child { max-width: 440px; margin: 0 auto; width: 100%; }
  .ipad-pair { grid-template-columns: 1fr; max-width: 420px; }
}
