/*
 * The marketing landing page at https://mybabylog.net/ (REQ-0108).
 *
 * Every colour, radius, shadow, duration and easing below resolves to a
 * token defined in `/assets/brand.css`, which copies them verbatim from the
 * brandbook. This file owns layout and composition only — it never invents
 * a palette value, and it never hard-codes a colour the brandbook does not
 * define. The one exception is the two `#FFFFFF` marks inside the store
 * badges, which are Apple's and Google's own artwork.
 *
 * The page is a mobile-first single column that grows into a two-column
 * hero and multi-column grids from the tablet breakpoint up.
 */

/* ========================================================================
   LAYOUT PRIMITIVES
   ===================================================================== */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: var(--sp-16);
}

@media (min-width: 768px) {
  .section { padding-block: var(--sp-20); }
}

.section-sunken {
  background: var(--surface-sunken);
  border-block: var(--bw-hairline) solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto var(--sp-12);
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-fill);
}

.section-title {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: var(--fw-bold);
}

.section-lede {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
}

/* Decorative reveal — see site.js: anything not revealed by the observer
   (no JS, reduced motion) is shown immediately instead. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Without JavaScript nothing may stay hidden. */
.no-js .reveal { opacity: 1; transform: none; }

/* ========================================================================
   HEADER
   ===================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: var(--bw-hairline) solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--elev-2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 64px;
  padding-block: var(--sp-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  font-weight: var(--fw-bold);
  font-size: 16px;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--elev-1);
}

.site-nav {
  display: none;
  gap: var(--sp-5);
  margin-inline: auto;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--fw-medium);
  padding-block: var(--sp-2);
}

.site-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* On a phone the four theme chips plus the language pair would wrap into a
   two-line header and eat the fold, so the theme switch moves below the
   masthead into its own scrollable row. */
.header-switches {
  display: none;
  align-items: center;
  gap: var(--sp-2);
}

.mobile-switches {
  display: flex;
  gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-3);
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-switches::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-switches { display: flex; }
  .mobile-switches { display: none; }
}

.header-cta { flex: 0 0 auto; }
.header-cta svg { width: 16px; height: 16px; }

/* The masthead now carries brand + language + download. Below this width the
   three no longer fit on one line, and the wordmark is the one whose meaning
   the logo beside it already carries. */
@media (max-width: 560px) {
  .site-header .brand span { display: none; }
  .header-cta { padding-inline: var(--sp-3); }
}

/* ========================================================================
   BUTTONS
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--ctl-h-md);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  border: var(--bw-hairline) solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  box-shadow: 0 6px 18px var(--accent-shadow);
}

.btn-primary:hover { box-shadow: 0 10px 26px var(--accent-shadow); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { background: var(--surface-2); }

.btn-sm {
  min-height: var(--ctl-h-sm);
  padding: var(--sp-2) var(--sp-4);
  font-size: 14px;
}

/* ========================================================================
   HERO
   ===================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-12) var(--sp-16);
}

/* Two soft identity-coloured washes behind the hero. They are the only
   place the accent ramp is used as atmosphere rather than as a control
   colour, and they are what makes switching identity feel like a different
   product skin rather than a recoloured button. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: var(--r-full);
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 520px; height: 520px;
  top: -220px; left: -140px;
  background: var(--accent-grad);
}

.hero::after {
  width: 420px; height: 420px;
  bottom: -200px; right: -120px;
  background: var(--memory-grad);
  opacity: 0.28;
}

:root[data-theme="dark"] .hero::before { opacity: 0.32; }
:root[data-theme="dark"] .hero::after { opacity: 0.20; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-16);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  box-shadow: var(--elev-1);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text-2);
}

.hero-badge .pill {
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: var(--fw-black);
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-600), var(--accent-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-theme="dark"] .hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-300), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  margin: 0 0 var(--sp-8);
  max-width: 34rem;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* ---- Store badges ---------------------------------------------------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-5) 10px var(--sp-4);
  min-height: var(--ctl-h-lg);
  border-radius: var(--r-md);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  text-decoration: none;
  border: var(--bw-hairline) solid var(--border-strong);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.store-badge:hover { box-shadow: var(--elev-3); }
.store-badge:active { transform: scale(0.97); }

/* No listing is live yet, so the badge is deliberately not a link: a dead
   store link is worse than an honest "coming soon". `aria-disabled` plus
   the cursor tell assistive tech and the pointer the same thing. */
.store-badge[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}

.store-badge[aria-disabled="true"]:hover { box-shadow: none; }
.store-badge[aria-disabled="true"]:active { transform: none; }

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-badge .badge-top {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge .badge-name {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

/* The one live way to get the app today. It sits below the two "coming soon"
   badges rather than among them, so it never reads as a third store. */
.direct-dl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.direct-dl svg { width: 20px; height: 20px; }

.store-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ---- Trust strip ------------------------------------------------------ */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: var(--bw-hairline) solid var(--border);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-3);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row svg {
  width: 15px;
  height: 15px;
  color: var(--accent-fill);
  flex: 0 0 auto;
}

/* ========================================================================
   PHONE MOCKUP — a real composition of the app's own tokens, not a picture.
   Because it is built from the same custom properties as everything else,
   it repaints with the theme switch, which is the whole point of showing it.
   ===================================================================== */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(300px, 82vw);
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg,
    color-mix(in oklab, var(--surface-inverse) 82%, var(--accent-600)),
    var(--surface-inverse));
  box-shadow: var(--elev-5), 0 40px 80px var(--accent-shadow);
  transform: rotate(-2.5deg);
  transition: transform var(--dur-slower) var(--ease-spring);
}

.phone:hover { transform: rotate(0deg) translateY(-6px); }

.phone-screen {
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.phone-notch {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::after {
  content: "";
  width: 92px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--surface-inverse);
}

.app-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4) var(--sp-3);
}

.baby-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 12px 5px 5px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  font-size: 12px;
  font-weight: var(--fw-semibold);
}

.baby-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--accent-grad);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: var(--fw-bold);
}

.app-header .spacer { margin-left: auto; }

.header-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: var(--bw-hairline) solid var(--border);
}

.app-body {
  flex: 1;
  padding: 0 var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.quick-tile {
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  color: var(--text-on-accent);
  box-shadow: var(--elev-2);
}

.quick-tile .glyph { font-size: 20px; line-height: 1; }

.quick-tile .label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}

.tile-sleep   { background: var(--sleep-grad); }
.tile-feeding { background: var(--feeding-grad); }
.tile-diaper  { background: var(--diaper-grad); }

.app-card {
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  box-shadow: var(--elev-1);
}

.app-card-title {
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-2);
}

.glance-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  text-align: center;
}

.glance-value {
  font-size: 17px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.glance-label {
  font-size: 9px;
  color: var(--text-3);
  font-weight: var(--fw-medium);
}

.v-sleep   { color: var(--sleep-base); }
.v-feeding { color: var(--feeding-base); }
.v-diaper  { color: var(--diaper-dark); }

.streak {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--achieve-soft);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
}

.streak .medal {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: var(--achieve-grad);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: 0 0 auto;
}

.streak .streak-title {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--achieve-ink);
}

.streak .streak-sub {
  font-size: 10px;
  color: var(--text-3);
}

.progress-track {
  height: 5px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--achieve-ink) 18%, transparent);
  margin-top: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 72%;
  border-radius: var(--r-full);
  background: var(--achieve-dark);
}

.mini-feed {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.mini-thumb {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--memory-grad);
  flex: 0 0 auto;
}

.mini-line {
  height: 7px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  margin-bottom: 5px;
}

.mini-line.w-70 { width: 70%; }
.mini-line.w-45 { width: 45%; }

.app-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3) var(--sp-4);
  border-top: var(--bw-hairline) solid var(--border);
  background: var(--surface);
}

.tab {
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 8px;
  font-weight: var(--fw-semibold);
  color: var(--text-3);
}

.tab .tab-glyph { font-size: 14px; }
.tab.is-active { color: var(--accent-fill); }

/* Floating proof chips around the phone */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  box-shadow: var(--elev-3);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  animation: float 5s var(--ease-in-out) infinite;
}

.float-chip .dot-domain {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  flex: 0 0 auto;
}

/* Each chip is parked beside a band of the mock screen that carries no
   text of its own — next to the notch, beside the streak card's empty
   right half, beside the feed row — so the overlap reads as deliberate
   layering instead of covering up a label or the tab bar. */
.chip-a { top: 2%; left: -7%; animation-delay: 0s; }
.chip-b { top: 48%; right: -9%; animation-delay: 1.6s; }
.chip-c { bottom: 24%; left: -9%; animation-delay: 3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (max-width: 560px) {
  .float-chip { display: none; }
}

/* ========================================================================
   FEATURE GRID
   ===================================================================== */

.feature-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--elev-1);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-4);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: var(--sp-4);
  box-shadow: var(--elev-2);
}

.i-feeding  { background: var(--feeding-grad); }
.i-sleep    { background: var(--sleep-grad); }
.i-growth   { background: var(--growth-grad); }
.i-medical  { background: var(--medical-grad); }
.i-memory   { background: var(--memory-grad); }
.i-achieve  { background: var(--achieve-grad); }
.i-supplies { background: var(--supplies-grad); }
.i-diaper   { background: var(--diaper-grad); }

.feature-card h3 {
  margin: 0 0 var(--sp-2);
  font-size: 17px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ========================================================================
   SPLIT SECTIONS
   ===================================================================== */

.split {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .split.reverse .split-visual { order: -1; }
}

.split-copy h2 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: var(--fw-bold);
}

.split-copy p {
  margin: 0 0 var(--sp-5);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
}

.check-list {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.check-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.check-list svg {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent-fill);
}

.check-list strong { color: var(--text); font-weight: var(--fw-semibold); }

/* ---- Roles card ------------------------------------------------------- */

.roles-card {
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  box-shadow: var(--elev-4);
}

.role-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: var(--bw-hairline) solid var(--border);
}

.role-row:last-child { border-bottom: 0; }

.role-avatar {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--text-on-accent);
  flex: 0 0 auto;
  background: var(--accent-grad);
}

.role-avatar.r-2 { background: var(--growth-grad); }
.role-avatar.r-3 { background: var(--feeding-grad); }
.role-avatar.r-4 { background: var(--supplies-grad); }

.role-name { font-size: 15px; font-weight: var(--fw-semibold); }
.role-desc { font-size: 12px; color: var(--text-3); line-height: 1.45; }

.role-tags {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 45%;
}

.role-tag {
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-3);
  border: var(--bw-hairline) solid var(--border);
}

.role-tag.on {
  background: var(--accent-100);
  color: var(--accent-800);
  border-color: var(--accent-200);
}

:root[data-theme="dark"] .role-tag.on {
  background: color-mix(in oklab, var(--accent-500) 26%, transparent);
  color: var(--accent-200);
  border-color: color-mix(in oklab, var(--accent-400) 40%, transparent);
}

/* ---- Offline visual --------------------------------------------------- */

.offline-card {
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--elev-4);
  display: grid;
  gap: var(--sp-4);
}

.sync-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: var(--bw-hairline) solid var(--border);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.sync-row .state {
  margin-left: auto;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--success-100);
  color: var(--success-800);
}

.sync-row .state.pending {
  background: var(--info-100);
  color: var(--info-800);
}

.sync-row .icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: 0 0 auto;
}

/* ========================================================================
   STAGES TIMELINE
   ===================================================================== */

.stage-track {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  counter-reset: stage;
}

@media (min-width: 720px) {
  .stage-track { grid-template-columns: repeat(5, 1fr); }
}

.stage {
  position: relative;
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  box-shadow: var(--elev-1);
}

.stage-dot {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  margin: 0 auto var(--sp-3);
  display: grid;
  place-items: center;
  font-size: 19px;
  background: var(--accent-100);
  border: var(--bw-thin) solid var(--accent-300);
}

:root[data-theme="dark"] .stage-dot {
  background: color-mix(in oklab, var(--accent-500) 22%, transparent);
  border-color: color-mix(in oklab, var(--accent-400) 45%, transparent);
}

.stage h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: var(--fw-bold);
}

.stage p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
}

/* ========================================================================
   FAQ
   ===================================================================== */

.faq {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-3);
}

.faq details {
  background: var(--surface);
  border: var(--bw-hairline) solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color var(--dur-base) var(--ease-out);
}

.faq details[open] { border-color: var(--border-strong); box-shadow: var(--elev-2); }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--ctl-h-touch);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: var(--fw-regular);
  color: var(--accent-fill);
  transition: transform var(--dur-base) var(--ease-out);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .answer {
  margin: var(--sp-2) 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ========================================================================
   CLOSING CTA
   ===================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
  background: var(--accent-grad);
  color: var(--text-on-accent);
  box-shadow: var(--elev-5);
}

.cta-band h2 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: var(--fw-black);
}

.cta-band p {
  margin: 0 auto var(--sp-8);
  max-width: 34rem;
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.94;
}

.cta-band .cta-row { justify-content: center; }

.cta-band .store-badge {
  background: oklch(100% 0 0 / 0.14);
  border-color: oklch(100% 0 0 / 0.35);
  color: var(--text-on-accent);
  backdrop-filter: blur(8px);
}

.cta-band .direct-dl {
  justify-content: center;
  margin: var(--sp-5) 0 0;
}

.cta-band .btn-ghost {
  border-color: transparent;
  box-shadow: var(--elev-3);
}

/* ========================================================================
   FOOTER
   ===================================================================== */

.site-footer {
  border-top: var(--bw-hairline) solid var(--border);
  padding-block: var(--sp-12) var(--sp-8);
  margin-top: var(--sp-20);
  background: var(--surface-sunken);
}

.footer-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-10);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-10); }
}

.footer-brand p {
  margin: var(--sp-3) 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 26rem;
}

.footer-col h4 {
  margin: 0 0 var(--sp-3);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  min-height: 24px;
}

.footer-col a:hover { color: var(--accent-fill); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: var(--bw-hairline) solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
