/* Golden Hour Affirmations: "Golden Hour Dusk" glass theme.
   Palette and type are documented in docs/web/03-visual-spec.md. */

:root {
  --lilac: #D9CBF2;
  --orchid: #F4C3DA;
  --peach: #FFD9B8;
  --honey: #F5BE5E;
  --rose: #E9A0B4;
  --plum: #5A3F7C;
  --ink: #3D2A55;
  --ink-soft: #5B4A72;
  --white: #FFF6EE;

  --glass: rgba(255, 246, 238, 0.46);
  --glass-strong: rgba(255, 246, 238, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset,
            0 20px 50px -24px rgba(61, 42, 85, 0.35),
            0 2px 8px -2px rgba(61, 42, 85, 0.08);
  --blur: blur(22px) saturate(160%);

  --serif: "Baskervville", "Libre Baskerville", Baskerville, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --wrap: 1120px;
  --gutter: 20px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lilac);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 8px; }

/* ---------- Sky: fixed dusk gradient with slow light blooms ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--lilac) 0%, #E8C9E6 38%, var(--orchid) 58%, var(--peach) 100%);
  overflow: hidden;
}
.sky span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.sky span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: #CDB8F0; }
.sky span:nth-child(2) { width: 38vmax; height: 38vmax; right: -10vmax; top: 18vh; background: #F7B6D2; animation-duration: 32s; }
.sky span:nth-child(3) { width: 34vmax; height: 34vmax; left: 20vw; bottom: -14vmax; background: #FFD2A6; opacity: 0.35; animation-duration: 38s; }
.sky span:nth-child(4) { width: 18vmax; height: 18vmax; right: 18vw; bottom: 6vh; background: var(--honey); opacity: 0.16; animation-duration: 44s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vh, 0) scale(1.12); }
}

/* ---------- Layout ---------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.center { text-align: center; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; }
h3 { font-size: 1.6rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--plum); }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 18px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 40em; }
.center .lede { margin-inline: auto; }
.small { font-size: 0.86rem; color: var(--ink-soft); }
.rule { width: 72px; height: 2px; background: var(--honey); border: 0; margin: 22px 0; border-radius: 2px; }
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(90, 63, 124, 0.7), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-primary:hover { color: var(--white); background: #4C3369; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(90, 63, 124, 0.75), 0 0 0 4px rgba(245, 190, 94, 0.45); }
.btn-glass {
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.btn-glass:hover { color: var(--ink); background: rgba(255, 246, 238, 0.85); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; }
.text-link:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
}
.topbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mark { width: 40px; height: 40px; flex: none; border-radius: 11px; box-shadow: 0 2px 10px rgba(180, 90, 170, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.nav { display: flex; gap: 4px; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.55); color: var(--ink); }
.topbar .btn { min-height: 44px; padding: 0 20px; font-size: 0.88rem; white-space: nowrap; }
.menu-btn { display: none; }

/* ---------- Hero: centred logo over a rising-sun horizon ---------- */

.hero {
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-top: clamp(112px, 13vw, 140px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg path { vector-effect: non-scaling-stroke; }
.hero-bg .rays { stroke: var(--plum); stroke-width: 1.2; stroke-linecap: round; stroke-opacity: 0.16; }
.hero-bg .horizon { stroke: var(--plum); stroke-width: 1.5; stroke-opacity: 0.4; }
.hero-bg .wave { fill: none; stroke: var(--plum); stroke-width: 1.3; stroke-opacity: 0.26; }
.hero-bg .wave.thin { stroke-width: 1; stroke-opacity: 0.18; }
.hero-bg .glow { animation: breathe 9s ease-in-out infinite; }
.hero-bg .sun, .hero-bg .glow, .hero-bg .horizon, .hero-bg .wave { display: none; } /* founder 2026-11-05: no sun (or its horizon) at the bottom of the hero */
@keyframes breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo-mark {
  width: clamp(320px, 36vw, 480px);
  max-width: 100%;
  height: auto;
  margin: -72px auto -34px;
  position: relative;
  z-index: -1;
  pointer-events: none;
}
.hero h1 { max-width: 19ch; margin-bottom: 18px; }
.hero .lede { margin: 0 auto 34px; }
.hero .cta-row { justify-content: center; }
.hero .cta-row .btn-primary { font-size: calc(0.95rem + 2px); } /* "Find My Frequency (Skool)", 2px larger (founder 2026-11-07) */
.tagline { font-size: 0.72rem; letter-spacing: 0.3em; color: var(--plum); opacity: 0.85; }
.hero-tagline { margin: 40px 0 0; font-weight: 600; opacity: 1; line-height: 2; }
.tagline span { white-space: nowrap; }
.tagline .t2::before { content: " · "; }
.hero-tagline::before { content: ""; display: block; width: 56px; height: 2px; margin: 0 auto 16px; border-radius: 2px; background: var(--honey); }

/* ---------- Intro video ---------- */

.video-frame { padding: 12px; margin-top: 40px; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--orchid); object-fit: cover; }
.after-video { margin-top: 32px; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { padding: 30px; }
.card h3 { margin: 18px 0 10px; }
.card p { margin: 0; color: var(--ink-soft); }
.icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(244, 195, 218, 0.6));
  border: 1px solid var(--glass-edge);
}
.icon svg { width: 40px; height: 40px; stroke: var(--plum); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; color: var(--rose); float: right; }

/* ---------- Sound ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ladder { padding: 22px; }
.ladder svg { width: 100%; height: auto; }
.ladder .wave { fill: none; stroke: var(--plum); stroke-width: 1.3; opacity: 0.55; }
.ladder .wave.main { stroke-width: 2.6; opacity: 1; }
.ladder text { font: 500 11px var(--sans); fill: var(--ink-soft); }
.ladder .spiral { fill: none; stroke: var(--honey); stroke-width: 2.2; }
.ladder .grid { fill: none; stroke: var(--plum); stroke-width: 0.8; opacity: 0.35; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.honest { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--honey); font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Tracks ---------- */

.pill {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.num { font-family: var(--serif); font-size: 1rem; color: var(--rose); }
.note { margin-top: 28px; }

/* ---------- Journey ---------- */

.journey { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: stop; }
.journey li { padding: 20px 18px; border-radius: var(--r-md); position: relative; }
.journey .hz { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.journey .hz small { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; margin-left: 3px; color: var(--plum); }
.journey .name { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.journey li.free { border-color: var(--honey); box-shadow: var(--shadow), 0 0 0 3px rgba(245, 190, 94, 0.35); }
.journey .tag { position: absolute; top: 12px; right: 12px; }
.bonus { margin-top: 26px; }

/* ---------- Challenge ---------- */

.challenge { padding: clamp(34px, 6vw, 64px); text-align: center; }
.suns { display: flex; justify-content: center; gap: clamp(10px, 3vw, 26px); margin: 34px 0 10px; }
.suns span {
  width: clamp(30px, 6vw, 46px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.6px solid var(--plum);
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}
.lit .suns span { background: var(--honey); border-color: var(--honey); box-shadow: 0 0 22px rgba(245, 190, 94, 0.8); color: var(--ink); }
.suns span:nth-child(2) { transition-delay: 0.15s; }
.suns span:nth-child(3) { transition-delay: 0.3s; }
.suns span:nth-child(4) { transition-delay: 0.45s; }
.suns span:nth-child(5) { transition-delay: 0.6s; }
.suns span:nth-child(6) { transition-delay: 0.75s; }
.suns span:nth-child(7) { transition-delay: 0.9s; }
.includes { list-style: none; padding: 0; margin: 22px auto 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Levels ---------- */

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.level { padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.level.feature { background: var(--glass-strong); border: 1.5px solid var(--honey); box-shadow: var(--shadow), 0 0 0 4px rgba(245, 190, 94, 0.22); }
.level .tag { position: absolute; top: -14px; left: 28px; }
.level .tier { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--plum); }
.level h3 { margin: 8px 0 14px; }
.price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.price-alt { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; min-height: 1.5em; }
.level ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.level li { padding: 8px 0 8px 28px; position: relative; font-size: 0.96rem; border-top: 1px solid rgba(90, 63, 124, 0.12); }
.level li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: rotate(-45deg); }
.level .btn { width: 100%; }
.levels-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.level.feature h3 { margin-top: 14px; }
.under { margin-top: 26px; }

/* ---------- Community ---------- */

.community { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.community .card { padding: 26px; }
.community h3 { font-size: 1.3rem; }

/* ---------- App ---------- */

.app-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 26px); margin-top: 52px; }
.device { margin: 0; width: clamp(150px, 15vw, 205px); flex: none; text-align: center; }
.device img {
  display: block; width: 100%; height: auto;
  border-radius: clamp(26px, 3.2vw, 38px);
  border: 7px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(61, 42, 85, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.device-main { width: clamp(170px, 17.5vw, 235px); margin-bottom: 26px; }
.device figcaption { margin-top: 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--plum); }
.app-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.app-feature { padding: 26px 28px; }
.app-feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.app-feature h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 16px; border-radius: 2px; background: var(--honey); }
.app-feature p { margin: 0; color: var(--ink-soft); }
.app-cta { margin-top: 44px; }
.app-cta .small { max-width: 34em; margin: 16px auto 0; }

@media (max-width: 1000px) {
  /* Five phones don't fit: swipe through them, the home screen and alarm first */
  .app-phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .app-phones::-webkit-scrollbar { display: none; }
  .device, .device-main { width: 210px; margin-bottom: 0; scroll-snap-align: center; }
  .device-main { order: -2; }
  .device-alarm { order: -1; }
}

/* Download App, not live yet */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.final .cta-row { justify-content: center; }
.btn-soon { gap: 9px; }
.btn-soon .btn-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-soon .soon {
  padding: 4px 9px; border-radius: 999px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(245, 190, 94, 0.32); color: #7A4F12;
}
.btn-soon.is-static { cursor: default; }
/* Apple's official "Download on the App Store" badge (black, en-us), shown unaltered; min 40px tall per Apple */
/* Frame = "A · Clear glass" (founder 2026-11-07): near-transparent glass, crisp white edge, top highlight, soft lift */
.appstore-badge {
  display: inline-flex; align-items: center; padding: 6px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), inset 0 -8px 16px -10px rgba(255, 255, 255, 0.55), 0 16px 34px -18px rgba(59, 42, 85, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(185%); backdrop-filter: blur(24px) saturate(185%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.appstore-badge img { display: block; height: 48px; width: auto; }
.appstore-badge:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), inset 0 -8px 16px -10px rgba(255, 255, 255, 0.6), 0 20px 38px -18px rgba(59, 42, 85, 0.6);
}
.appstore-badge:focus-visible { outline: 3px solid rgba(245, 190, 94, 0.9); outline-offset: 3px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); padding: 0 24px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-size: 1.22rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--plum); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); }

/* ---------- Final CTA + footer ---------- */

.final { text-align: center; padding: clamp(48px, 8vw, 90px) clamp(24px, 5vw, 60px); overflow: hidden; position: relative; }
.final .horizon { position: absolute; left: 50%; bottom: -150px; width: 300px; height: 300px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #FFD47F 0%, var(--honey) 50%, rgba(245, 190, 94, 0) 70%); opacity: 0.55; pointer-events: none; }
.final > * { position: relative; }
.final .lede { margin: 18px auto 32px; }

footer { padding: 0 0 56px; margin-top: -40px; }
.foot { padding: 34px; display: grid; gap: 20px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; }
.foot-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-edge); }
.socials svg { width: 20px; height: 20px; stroke: var(--plum); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot p { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- Legal pages ---------- */

.doc { padding-top: 130px; }
.doc article { padding: clamp(28px, 5vw, 56px); max-width: 860px; margin-inline: auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc .meta { color: var(--ink-soft); font-size: 0.9rem; }
.todo { background: rgba(245, 190, 94, 0.35); padding: 0 4px; border-radius: 4px; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.5);
    color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .topbar .actions { display: flex; gap: 8px; align-items: center; }
  .topbar.open .nav {
    display: grid; position: absolute; top: 66px; right: var(--gutter); left: var(--gutter);
    padding: 10px; border-radius: var(--r-md);
    background: rgba(255, 246, 238, 0.9);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  }
  .topbar.open .nav a { padding: 14px 16px; font-size: 1rem; }
  .split { grid-template-columns: 1fr; }
  .cards, .levels { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .levels { gap: 30px; }
  .community { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .app-features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 961px) {
  .topbar .actions { display: flex; align-items: center; gap: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tagline span { display: block; }
  .tagline .t2::before { content: none; }
  .wordmark { font-size: 0.76rem; letter-spacing: 0.12em; gap: 8px; }
  .wordmark .mark { width: 36px; height: 36px; border-radius: 10px; }
  .logo-mark { width: 92%; margin: -30px auto -24px; }
  .topbar .bar { padding-left: 12px; gap: 8px; }
  .topbar .actions { gap: 6px; }
  .wordmark .long { display: none; }
  .topbar .btn { padding: 0 16px; }
  .community { grid-template-columns: 1fr; }
  .app-phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .app-phones::-webkit-scrollbar { display: none; }
  .device, .device-main { width: 64vw; max-width: 250px; margin-bottom: 0; scroll-snap-align: center; }
  .device-main { order: -2; }
  .device-alarm { order: -1; }
  .cta-row .btn-primary, .cta-row .btn-soon { width: 100%; }
  .card, .level { padding: 26px 22px; }
  .app-features { grid-template-columns: 1fr; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 1.08rem; }
}

/* Older browsers without backdrop-filter get a more solid panel */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn-glass { background: rgba(255, 246, 238, 0.86); }
  .appstore-badge { background: rgba(255, 255, 255, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky span, .hero-bg .glow { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .suns span { transition: none; }
}
