/* ─────────────────────────────────────────────────────────────
   Reminly landing — mirrors the app's own design tokens.
   Teal accent, generous radii, theme-aware (light + dark).

   The app is Android-only, so every product mock here is a phone
   frame rather than a desktop window.
   ───────────────────────────────────────────────────────────── */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Radii track the app's Radii class — deliberately rounder than
     stock Material 3; that softness is the app's whole feel. */
  --radius-chip: 8px;
  --radius-card: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;

  /* Light theme — matches AppTheme.light */
  --surface-0: #ffffff;
  --surface-1: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #52606d;
  --text-faint: #8593a3;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-soft: #d9f5f1;
  /* Semantic colours, straight from SemanticColors.light */
  --success: #22c55e;
  --success-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --neutral: #6b7280;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.09);

  --grid-line: rgba(15, 23, 42, 0.045);
  --glow-a: rgba(20, 184, 166, 0.13);
  --glow-b: rgba(20, 184, 166, 0.08);
}

:root.dark {
  --surface-0: #12181a;
  --surface-1: #0e1416;
  --surface-2: #1a2225;
  --surface-3: #232d31;
  --border: #232d31;
  --border-strong: #33403f;
  --text: #e6edeb;
  --text-muted: #9fb0ad;
  --text-faint: #6f817e;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-soft: #10312f;
  --success: #4ade80;
  --success-soft: #10281a;
  --warning: #fbbf24;
  --warning-soft: #2c2113;
  --danger: #f87171;
  --danger-soft: #2c1616;
  --neutral: #9ca3af;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.5);

  --grid-line: rgba(255, 255, 255, 0.035);
  --glow-a: rgba(45, 212, 191, 0.16);
  --glow-b: rgba(56, 189, 248, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface-1);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* ─── Backdrop ───────────────────────────────────────────────
   Fixed, behind everything: a fine grid + two soft teal glows.
   Pure CSS, CSP-safe, theme-aware. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 45% at 78% 8%,  var(--glow-b) 0%, transparent 60%),
    radial-gradient(55% 50% at 12% 2%,  var(--glow-a) 0%, transparent 55%),
    radial-gradient(90% 60% at 50% -10%, var(--glow-a) 0%, transparent 65%);
  pointer-events: none;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: none; }

/* ─── Brand logo (the real app icon) ─────────────────────── */
.brand-logo {
  border-radius: 9px;
  flex: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-1) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.header-nav a:hover { color: var(--text); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-0);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.icon-moon { display: none; }
:root.dark .icon-sun { display: none; }
:root.dark .icon-moon { display: block; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #06302c;
  box-shadow: 0 1px 2px rgba(20, 184, 166, 0.25), 0 8px 24px rgba(20, 184, 166, 0.26);
}
:root.dark .btn-primary { color: #05201f; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

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

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 720;
  margin: 0 0 22px;
}
.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 31rem;
  margin: 0 0 30px;
}
.lede em { color: var(--text); font-style: italic; }

.hero-cta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.version-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-0);
}
.hero-fine { font-size: 0.85rem; color: var(--text-faint); margin: 0; }

/* ─── Phone mock (shared by hero + showcase) ─────────────── */
.hero-shot { display: flex; justify-content: center; position: relative; }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow-a), transparent 72%);
  filter: blur(20px);
}

/* The device frame: a rounded slab with a thin bezel, holding a
   scaled-down but structurally faithful copy of the real screen.

   The fixed aspect ratio is what keeps every mock the same size no
   matter how much content it holds — without it a frame collapses to
   its content and, in a centred showcase row, the screen spills past
   the rounded corners. Overflow inside .screen is clipped instead,
   exactly as a real phone would cut off a long list. */
.phone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 660;
  background: var(--surface-1);
  border: 9px solid var(--surface-3);
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
:root.dark .phone { border-color: #2b3639; }

/* Status bar — time on the left, the usual glyph cluster on the right. */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px 5px;
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--text-muted);
  background: var(--surface-1);
}
.status-icons { display: flex; align-items: center; gap: 4px; letter-spacing: -0.5px; }

/* App bar — greeting + date, matching _GreetingAppBar. */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px 12px;
  background: var(--surface-1);
}
.ab-title { min-width: 0; }
.ab-title strong { display: block; font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.ab-title small { display: block; font-size: 0.62rem; color: var(--text-faint); }
.ab-actions { display: flex; gap: 4px; flex: none; color: var(--text-muted); }
.ab-actions svg { width: 17px; height: 17px; display: block; }

/* Body of the phone screen. Anything past the bottom is clipped by the
   frame rather than overflowing it — the same thing a real screen does. */
.screen {
  flex: 1;
  padding: 0 14px 12px;
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

/* Progress card — ring + copy, per _ProgressCard. */
.progress-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface-0);
  border-radius: var(--radius-card);
  padding: 16px;
}
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { width: 68px; height: 68px; transform: rotate(-90deg); }
/* fill/stroke are set as attributes too: an SVG circle defaults to
   fill:black, so a stale stylesheet degrades to a ring, not a disc. */
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  /* r=27 → circumference ≈ 169.6. 5/8 done → offset ≈ 63.6 */
  stroke-dasharray: 169.6;
  stroke-dashoffset: 63.6;
}
.ring-mid {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.ring-mid strong { font-size: 0.86rem; font-weight: 700; }
.ring-mid small { font-size: 0.52rem; color: var(--text-faint); }
.pc-copy strong { display: block; font-size: 0.82rem; font-weight: 650; }
.pc-copy small { display: block; font-size: 0.68rem; color: var(--text-faint); margin-top: 2px; }

/* Section label — uppercase, tracked, with an optional count. */
.sec-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: -6px;
}
.sec-label.danger { color: var(--danger); }

/* Task list — one card, rows divided by hairlines, per _TaskCard. */
.task-card {
  background: var(--surface-0);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  position: relative;
}
.task-row + .task-row::before {
  content: "";
  position: absolute;
  left: 44px; right: 0; top: 0;
  border-top: 1px solid var(--border);
}

/* Checkbox — 6px radius square, filled teal when checked (app default). */
.cb {
  width: 17px; height: 17px;
  flex: none;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  color: transparent;
}
.cb svg { width: 10px; height: 10px; }
.cb.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
:root.dark .cb.on { color: #05201f; }

.tr-meta { flex: 1; min-width: 0; }
.tr-meta > strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Completed: strikethrough + dimmed, never removed — the user must
   still see what they finished. */
.task-row.done .tr-meta > strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: var(--text-faint);
}
.tr-sub { display: block; font-size: 0.62rem; color: var(--danger); margin-top: 3px; }
.tr-note { display: block; font-size: 0.62rem; color: var(--text-muted); margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip {
  font-size: 0.56rem;
  font-weight: 650;
  line-height: 1.6;
  padding: 1px 7px;
  border-radius: var(--radius-chip);
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-muted);
}
.chip.high { background: var(--danger-soft); color: var(--danger); }
.chip.med { background: var(--warning-soft); color: var(--warning); }
.chip.low { background: var(--surface-2); color: var(--neutral); }
.chip.bell { display: inline-flex; align-items: center; gap: 3px; }
.chip.bell svg { width: 8px; height: 8px; }

/* Upcoming rows use a calendar glyph instead of a checkbox. */
.tr-ic {
  width: 17px; height: 17px;
  flex: none;
  margin-top: 1px;
  display: grid; place-items: center;
  color: var(--text-faint);
}
.tr-ic svg { width: 14px; height: 14px; }

/* Bottom navigation — 5 destinations, pill indicator on the active one. */
.nav-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface-0);
  border-top: 1px solid var(--border);
  padding: 7px 4px 9px;
  flex: none;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text-faint);
}
.nav-item svg { width: 17px; height: 17px; display: block; }
.nav-ic {
  padding: 3px 13px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.nav-item.active { color: var(--accent); font-weight: 650; }
.nav-item.active .nav-ic { background: var(--accent-soft); }

/* FAB, floating over the list at the bottom-right of the screen. */
.fab {
  position: absolute;
  right: 16px;
  bottom: 74px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 42%, transparent);
}
:root.dark .fab { color: #05201f; }
.fab svg { width: 20px; height: 20px; }

/* ─── Dashboard mock internals ───────────────────────────── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stat {
  background: var(--surface-0);
  border-radius: 16px;
  padding: 10px 11px;
}
.stat-top { display: flex; align-items: center; gap: 5px; color: var(--text-faint); }
.stat-top svg { width: 12px; height: 12px; }
.stat-top span { font-size: 0.56rem; font-weight: 600; }
.stat strong { display: block; font-size: 0.95rem; font-weight: 700; margin-top: 3px; }
.stat.fire .stat-top { color: var(--warning); }
.stat.fire strong { color: var(--warning); }
.stat.ok .stat-top { color: var(--success); }
.stat.ok strong { color: var(--success); }
.stat.bad .stat-top { color: var(--danger); }
.stat.bad strong { color: var(--danger); }

.bar-row { display: flex; flex-direction: column; gap: 5px; }
.bar-head { display: flex; align-items: baseline; justify-content: space-between; }
.bar-head span { font-size: 0.66rem; font-weight: 600; }
.bar-head small { font-size: 0.58rem; color: var(--text-faint); }
.bar-track { height: 9px; background: var(--surface-3); border-radius: var(--radius-chip); overflow: hidden; }
.bar-track b { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-chip); }

/* 14-day completion strip — each cell shaded by that day's rate. */
.heat { display: flex; gap: 3px; }
.heat i {
  flex: 1;
  height: 26px;
  border-radius: var(--radius-chip);
  background: var(--surface-3);
}

/* ─── Calendar mock internals ────────────────────────────── */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--text-muted);
  padding: 0 2px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--surface-0);
  border-radius: var(--radius-card);
  padding: 12px 10px;
}
.cal-grid .dow {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--text-faint);
  text-align: center;
  padding-bottom: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 9px;
}
.cal-day.out { color: var(--text-faint); opacity: 0.4; }
/* The completion dot under each date — the day's status at a glance. */
.cal-day::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: transparent;
}
.cal-day.full::after { background: var(--success); }
.cal-day.part::after { background: var(--warning); }
.cal-day.miss::after { background: var(--danger); }
.cal-day.pend::after { background: var(--border-strong); }
.cal-day.today {
  background: var(--accent);
  color: #fff;
}
:root.dark .cal-day.today { color: #05201f; }
.cal-day.today::after { background: rgba(255, 255, 255, 0.85); }

.legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 0.56rem; color: var(--text-faint); }
.legend i { width: 6px; height: 6px; border-radius: 50%; }

/* ─── Focus mock internals ───────────────────────────────── */
.focus-screen { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 0.58rem;
  font-weight: 600;
}
.seg span { padding: 4px 11px; color: var(--text-muted); }
.seg span.on { background: var(--accent-soft); color: var(--accent); }

.dial { position: relative; display: grid; place-items: center; }
.dial svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.dial-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  /* r=64 → circumference ≈ 402. ~68% remaining of a 25:00 block. */
  stroke-dasharray: 402;
  stroke-dashoffset: 129;
}
.dial-mid { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dial-mid strong { font-size: 1.55rem; font-weight: 650; letter-spacing: -0.02em; }
.dial-mid small { font-size: 0.56rem; color: var(--text-faint); }

.focus-ctrl { display: flex; align-items: center; gap: 12px; }
.fc-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
}
:root.dark .fc-main { color: #05201f; }
.fc-main svg { width: 13px; height: 13px; }
.fc-ghost {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 650;
}
.focus-note { margin: 0; max-width: 220px; font-size: 0.6rem; line-height: 1.5; color: var(--text-faint); }
.focus-linked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-0);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-muted);
}
.focus-linked i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── Notification mock ──────────────────────────────────── */
/* A floating Android heads-up notification, used in the reminder
   showcase to show what actually reaches the user. */
.notif-shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notif {
  width: 100%;
  max-width: 330px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 13px 15px;
}
.n-head { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; color: var(--text-faint); }
.n-head img { width: 14px; height: 14px; border-radius: 4px; }
.n-head b { color: var(--text-muted); font-weight: 650; }
.n-body { margin: 7px 0 11px; }
.n-body strong { display: block; font-size: 0.85rem; font-weight: 650; }
.n-body small { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.n-actions { display: flex; gap: 18px; border-top: 1px solid var(--border); padding-top: 9px; }
.n-actions span { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.01em; }

/* ─── Showcase section ───────────────────────────────────── */
.showcase { padding-block: clamp(56px, 8vw, 88px); }
.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.show-row.reverse .show-copy { order: 2; }
.show-row.reverse .show-visual { order: 1; }
.show-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.show-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; }
.show-copy p { color: var(--text-muted); font-size: 1rem; margin: 0 0 18px; max-width: 30rem; }
.show-copy p:last-child { margin-bottom: 0; }
/* Supporting bullets under a showcase paragraph. */
.show-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.show-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.93rem; color: var(--text-muted);
}
.show-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.show-visual { display: flex; justify-content: center; }

/* ─── Section shared ─────────────────────────────────────── */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.section-head p { color: var(--text-muted); font-size: 1.02rem; margin: 0; }

.features, .download, .recurrence { padding-block: clamp(56px, 8vw, 88px); }

/* ─── Features ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: color-mix(in srgb, var(--surface-0) 82%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 13px;
  margin-bottom: 16px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ─── Recurrence strip ───────────────────────────────────── */
/* The recurrence engine is the product's core; it gets its own band
   rather than one feature card among nine. */
.rec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-0) 85%, transparent);
  backdrop-filter: blur(6px);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.rec-rules { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.rule {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.rule:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.rec-examples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rec-ex {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
}
.rec-ex strong { display: block; font-size: 0.9rem; font-weight: 650; }
.rec-ex small { display: block; font-size: 0.76rem; color: var(--text-faint); margin-top: 3px; }

/* ─── Download ───────────────────────────────────────────── */
.dl-lead {
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: center;
}
/* The recommended build, front and centre — most people want this one. */
.dl-primary {
  max-width: 520px;
  margin: 0 auto 26px;
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow);
  padding: 28px 26px;
  text-align: center;
}
.dl-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.dl-primary h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.dl-primary p { color: var(--text-faint); font-size: 0.86rem; margin: 0 0 20px; }
.dl-primary .btn { width: 100%; }
.dl-size { display: block; font-size: 0.76rem; color: var(--text-faint); margin-top: 12px; }

.dl-alt-head {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
}
.dl-card {
  background: color-mix(in srgb, var(--surface-0) 85%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.dl-card strong { display: block; font-size: 0.95rem; font-weight: 700; }
.dl-card small { display: block; font-size: 0.75rem; color: var(--text-faint); margin: 4px 0 14px; }
.dl-card .dl-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  padding-bottom: 1px;
}
.dl-card .dl-link:hover { border-bottom-style: solid; }

.dl-hint {
  max-width: 46rem;
  margin: 34px auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 22px;
}
.dl-hint strong { color: var(--text-muted); }

/* ─── Privacy band ───────────────────────────────────────── */
.privacy { padding-block: clamp(40px, 6vw, 72px); }
.privacy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-0) 85%, transparent);
  backdrop-filter: blur(6px);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  box-shadow: var(--shadow);
}
.privacy-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.privacy-card > p { color: var(--text-muted); max-width: 42rem; margin: 0 auto 28px; }
.no-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.no-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.no-list svg { width: 13px; height: 13px; color: var(--danger); flex: none; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { padding-block: clamp(48px, 7vw, 80px); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 940px;
  margin-inline: auto;
}
.faq-item {
  background: color-mix(in srgb, var(--surface-0) 82%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq-item summary {
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Chevron built from a pseudo-element so there's no icon to ship. */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--accent);
}
.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.faq-item strong { color: var(--text); }

/* ─── Enterprise / customization section ─────────────────── */
.enterprise { padding-block: clamp(40px, 7vw, 80px); }
.ent-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 26px;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface-0);
  box-shadow: var(--shadow);
}
.ent-card::after {
  /* soft rotating conic sheen in the corner */
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent, var(--glow-a), transparent 40%);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.8;
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.ent-copy { position: relative; max-width: 720px; }
.enterprise h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
  font-weight: 720;
  margin: 16px 0 14px;
}
.enterprise h2 em { color: var(--accent); font-style: italic; }
.ent-lede { color: var(--text-muted); font-size: 1.05rem; max-width: 40rem; margin: 0 0 30px; }

.ent-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.ent-list li { display: flex; gap: 13px; align-items: flex-start; }
.ent-ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 13px;
}
.ent-ic svg { width: 19px; height: 19px; }
.ent-list strong { display: block; font-size: 0.98rem; font-weight: 650; margin-bottom: 2px; }
.ent-list small { color: var(--text-muted); font-size: 0.86rem; line-height: 1.45; }

.ent-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ent-cta .btn-primary { padding: 13px 26px; font-size: 1rem; }
.ent-mail {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border-strong);
  transition: color 0.15s, border-color 0.15s;
}
.ent-mail:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-0);
  padding-block: 40px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 0.95rem; }
.footer-brand small { color: var(--text-faint); font-size: 0.8rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.82rem; margin: 0; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.hero-shot::before { animation: float-glow 9s ease-in-out infinite; }
@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateY(-14px) scale(1.04); opacity: 1; }
}

/* Hero entrance — staggered fade-up on load */
.hero-copy > * { animation: fade-up 0.7s var(--ease) both; }
.hero-copy .eyebrow   { animation-delay: 0.02s; }
.hero-copy h1         { animation-delay: 0.08s; }
.hero-copy .lede      { animation-delay: 0.16s; }
.hero-copy .hero-cta  { animation-delay: 0.24s; }
.hero-copy .hero-fine { animation-delay: 0.32s; }
.hero-shot { animation: fade-in 1s var(--ease) 0.2s both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Scroll-reveal — JS toggles .is-visible when the element enters view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-stagger].is-visible > * {
  animation: fade-up 0.6s var(--ease) both;
}
.reveal[data-stagger].is-visible > *:nth-child(2) { animation-delay: 0.06s; }
.reveal[data-stagger].is-visible > *:nth-child(3) { animation-delay: 0.12s; }
.reveal[data-stagger].is-visible > *:nth-child(4) { animation-delay: 0.18s; }
.reveal[data-stagger].is-visible > *:nth-child(5) { animation-delay: 0.24s; }
.reveal[data-stagger].is-visible > *:nth-child(6) { animation-delay: 0.30s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .rec-examples { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  /* Centre the hero copy only — never the phone mock. The app's rows are
     left-aligned, and an inherited text-align would centre every task
     title and chip inside the frame. */
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .lede { margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; max-width: 420px; }
  .ent-list { grid-template-columns: 1fr; }
  /* Stack showcase rows; the reverse variant must un-reverse so the
     copy always leads on mobile. */
  .show-row, .show-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .show-row.reverse .show-copy { order: 1; }
  .show-row.reverse .show-visual { order: 2; }
  .show-copy p, .show-list { max-width: none; }
}
@media (max-width: 560px) {
  .header-nav { gap: 14px; }
  .header-nav a { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .rec-examples { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
