/* ---------- design tokens ---------- */
:root {
  --bg: #0a0e0d;
  --bg-elev: #0e1413;
  --surface: #131817;
  --surface-2: #1a201e;
  --border: #232a28;
  --border-strong: #2e3633;

  --text: #e8ebe9;
  --text-muted: #8b9491;
  --text-dim: #5d6562;

  --accent: #7dd3a0;
  --accent-strong: #a3e3bd;
  --accent-warm: #e8b54a;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 32px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03), 0 24px 48px -24px rgba(0,0,0,0.7);
  --shadow-shot: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px var(--border);

  /* Sticky-nav height (used as scroll-offset anchor below + by the JS
     smooth-scroll handler in index.html). Approximate; the nav is
     14px padding-block × 2 plus a ~40px control. */
  --nav-h: 72px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* CSS fallback for when the JS handler in index.html isn't available
   (or while it's still parsing). The JS path uses the same offset, so
   the two never disagree. */
section { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  /* Mute incidental motion (transitions/animations across the page)
     for users who've asked the OS to reduce it. Smooth scroll is
     disabled too — a vestibular-impaired user explicitly opted out
     of motion and the previous override worked against that. The
     in-page anchor jump still works; it's just instant. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  section[id]:target h2 { animation: anchor-landed 1400ms ease-out 1 !important; }
}

/* Subtle "you arrived here" cue — when the URL hash matches a section,
   its h2 briefly tints toward the accent then fades back. Cheap visual
   feedback that the click did something. */
section[id]:target h2 {
  animation: anchor-landed 1400ms ease-out 1;
}
@keyframes anchor-landed {
  0%   { color: var(--accent); }
  60%  { color: var(--accent); }
  100% { color: var(--text); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.muted { color: var(--text-muted); }
.small { font-size: 0.88rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ---------- typography ---------- */
h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--text-muted); max-width: 60ch; text-wrap: pretty; }
.section-lede { font-size: 1.05rem; color: var(--text-muted); max-width: 60ch; margin-bottom: 48px; text-wrap: balance; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
}
.brand-name { font-size: 0.95rem; color: var(--text-muted); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { white-space: nowrap; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #0a0e0d;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); color: #0a0e0d; }
.btn-ghost {
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- App Store badge ---------- */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: #000;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.app-store-badge:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.6);
}
.app-store-badge .apple-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.app-store-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.app-store-stack .small {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.app-store-stack .big {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.app-store-badge-large {
  padding: 14px 28px;
}
.app-store-badge-large .apple-icon { width: 32px; height: 32px; }
.app-store-badge-large .small { font-size: 0.78rem; }
/* Pre-launch state: the badge isn't a real anchor yet. Reads as a
   "coming soon" status pill instead of an actionable link. */
.app-store-badge--disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.app-store-badge--disabled:hover {
  transform: none;
  box-shadow: none;
}
.app-store-badge-large .big { font-size: 1.35rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto auto;
  width: 50%;
  height: 80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }
.hero .lede { margin-bottom: 32px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.hero-meta {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 56px;
}
.hero-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-shot);
  background: var(--bg-elev);
}
.hero-shot img,
.hero-shot video { display: block; width: 100%; height: auto; }

/* ---------- stats strip ----------
   A thin band of quantified, all-true proof right under the hero. Numbers
   only — every value is verifiable (5s sample cadence, 8 shipped locales,
   no network, no subscription). See the HTML comment in index.html for the
   deliberately-omitted footprint stat. */
.stats {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}
.stats-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.stat-value {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.stat-unit {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}
.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 26ch;
  text-wrap: balance;
}

/* ---------- why grid ---------- */
.why { padding-block: 96px; border-top: 1px solid var(--border); }
.why h2 { margin-bottom: 48px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-grid article {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.why-grid h3 { margin-bottom: 8px; }
.why-grid p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- audience / who it's for ---------- */
.audience { padding-block: 96px; border-top: 1px solid var(--border); }
.audience h2 { margin-bottom: 12px; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.audience-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.audience-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.audience-card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- feature rows ---------- */
.features { padding-block: 96px; border-top: 1px solid var(--border); }
.features > .container > h2 { margin-bottom: 64px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding-block: 48px;
}
.feature.reversed .feature-text { order: 2; }
.feature.reversed .feature-shot { order: 1; }
.feature-text h3 { font-size: 1.65rem; margin-bottom: 16px; }
.feature-text p { color: var(--text-muted); }
.feature-text ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}
.feature-text ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.feature-text ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.feature-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-shot);
  background: var(--bg-elev);
}
.feature-shot img { width: 100%; height: auto; }

/* Click-to-zoom affordance on the screenshots that have a -full.png
   counterpart. The badge sits top-right of the shot, idles dim, and
   lifts to full opacity on hover/focus; cursor: zoom-in reinforces it.
   Kept always-visible (not hover-only) so touch users see it too. */
.shot-zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.shot-zoom .shot-zoom-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 14, 13, 0.66);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.62;
  transform: scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.shot-zoom .shot-zoom-badge svg { width: 20px; height: 20px; }
.shot-zoom:hover .shot-zoom-badge,
.shot-zoom:focus-visible .shot-zoom-badge { opacity: 1; transform: scale(1); }
.shot-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* The exported-PDF shot is already a framed macOS Preview window, so it
   wants none of the .feature-shot panel chrome (elevated background,
   border ring, drop shadow) and isn't click-to-zoom. Strip the panel
   and just cap the tall portrait page's height + centre it so it
   doesn't dominate the feature row. The two-class
   `.feature-shot.feature-shot--doc img` selector outranks
   `.feature-shot img { width: 100% }` above. */
.feature-shot--doc {
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.feature-shot.feature-shot--doc img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
}

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 32px;
  }
  .feature.reversed .feature-text { order: initial; }
  .feature.reversed .feature-shot { order: initial; }
}

/* ---------- privacy ---------- */
.privacy {
  padding-block: 96px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 5%, transparent));
}
.privacy-inner { max-width: 760px; }
.privacy h2 { margin-bottom: 16px; }
.privacy .lede { margin-bottom: 24px; }
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.privacy-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- pricing ---------- */
.pricing { padding-block: 96px; border-top: 1px solid var(--border); }
.pricing-inner { text-align: center; }
.pricing-inner .section-lede { margin-inline: auto; }
.pricing h2 { margin-bottom: 12px; }
.price-card {
  display: inline-block;
  margin-top: 24px;
  padding: 40px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
  min-width: 320px;
}
.price-tag {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 0 0 4px;
  color: var(--text);
}
.price-tag .currency {
  font-size: 1.6rem;
  margin-top: 12px;
  color: var(--text-muted);
}
.price-tag .amount {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-note {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.price-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card .app-store-badge { width: 100%; justify-content: center; }
.price-card > .small { text-align: center; margin-top: 16px; margin-bottom: 0; }
/* Risk-reversal line under the buy CTA — answers the "no free trial"
   objection at the moment of decision. Slightly louder than .small. */
.price-reassure {
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}
.price-reassure strong { color: var(--text); }
/* The money-back guarantee, under the buy buttons: its own highlighted line. */
.price-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}
.price-guarantee svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.price-guarantee strong { color: var(--accent-strong); }

/* ---------- faq ---------- */
.faq { padding-block: 96px; border-top: 1px solid var(--border); }
.faq h2 { margin-bottom: 40px; }
.faq-list {
  display: grid;
  gap: 12px;
  margin: 0;
}
.faq-item {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq-item dt {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.02rem;
}
.faq-item dd {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  background: var(--bg-elev);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
/* Location tagline sits on its own row below the brand/links/copyright
   row, spanning the full width and centered. Stacking it under the
   copyright in the right column made it overhang into the center column
   because it is wider than the © line. */
.footer-location {
  grid-column: 1 / -1;
  text-align: center;
  margin: 4px 0 0;
}
.footer-location span[role="img"] { font-style: normal; }
.copyright { text-align: right; margin: 0; }

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .copyright { text-align: center; }
}

/* ---------- a11y helper ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- hero video ---------- */
/* The hero (3t.mp4) is an autoplay-muted-loop <video>; it sizes via
   `.hero-shot` above (img + video share `width:100%; height:auto`). An
   inline script near </body> pauses it under prefers-reduced-motion
   (WCAG 2.2.2 — autoplay motion runs longer than 5s). */

/* ---------- Goals card (live render of the app's Overview goals strip) -----
   A faithful port of web/src/components/{GoalsProgress.tsx,Goals.css} —
   rendered in HTML instead of screenshotted so it stays crisp at any width
   and follows the page theme. Trimmed to the two states shown: on-track
   (neutral) and approaching (amber, with the warning-band glow). The fill
   color + halo blend from --bar-color toward --bar-target as --bar-pulse
   climbs across the 75%–100% band; keep these rules in sync with the app's
   Goals.css if that file changes. The page-wide prefers-reduced-motion rule
   above freezes the breathing keyframe (the static halo baseline remains). */
.feature-shot--ui {
  /* Reads as the app window the cards float in: keep the default .feature-shot
     frame (dark bg, rounded, 1px shadow ring) and pad so the cards sit inset.
     Column flex so the Goals + Reminders cards stack the way the app's Overview
     shows them, centered in the frame with a gap between. */
  padding: clamp(20px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.goals-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 16px 40px -28px rgba(0,0,0,0.7);
  padding: 20px 24px;
}
.goals-card-title {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.goals-progress { display: flex; flex-direction: column; gap: 16px; }
.goals-progress-row {
  --bar-color: var(--text-muted);
  --bar-target: var(--bar-color);
  --bar-track: var(--surface);
  --bar-pulse: 0;
  font-size: 0.95rem;
}
.goals-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 8px;
  color: var(--text);
}
.goals-progress-target { font-weight: 500; }
.goals-progress-target > span:first-child { color: var(--text-muted); }
.goals-progress-when { color: var(--text-dim); font-weight: 400; font-size: 0.9em; }
.goals-progress-time { color: var(--text-muted); }
.goals-progress-pct { color: var(--bar-color); font-weight: 500; }
.goals-progress-track {
  height: 8px;
  background: var(--bar-track);
  border-radius: 4px;
  /* Visible (not hidden) so the fill's glow halo can radiate past the edges. */
  overflow: visible;
}
.goals-progress-fill {
  height: 100%;
  background: color-mix(in oklch, var(--bar-color) calc((1 - var(--bar-pulse)) * 100%), var(--bar-target));
  border-radius: 4px;
  box-shadow:
    0 0 calc(var(--bar-pulse) * 10px) calc(var(--bar-pulse) * 1.5px)
    color-mix(in oklch, var(--bar-color) calc((1 - var(--bar-pulse)) * 100%), var(--bar-target));
  animation: goals-progress-glow 2s ease-in-out infinite;
}
@keyframes goals-progress-glow {
  0%, 100% {
    box-shadow:
      0 0 calc(var(--bar-pulse) * 6px) 0
      color-mix(in oklch, var(--bar-color) calc((1 - var(--bar-pulse)) * 100%), var(--bar-target));
    opacity: 1;
  }
  50% {
    box-shadow:
      0 0 calc(var(--bar-pulse) * 18px) calc(var(--bar-pulse) * 3px)
      color-mix(in oklch, var(--bar-color) calc((1 - var(--bar-pulse)) * 100%), var(--bar-target));
    opacity: calc(1 - var(--bar-pulse) * 0.12);
  }
}
/* Status palette → marketing tokens: ok = neutral text (don't draw the eye),
   warn = amber (about to land). at_least goals head toward the green accent
   as they near 100% (--toward-success sets the blend target). */
.goals-status-ok   { --bar-color: var(--text); }
.goals-status-warn { --bar-color: var(--accent-warm); }
.goals-progress-row--toward-success { --bar-target: var(--accent); }
/* Reminders head toward "time to act" as the next nudge nears. The app
   blends --warning→--danger (orange→red); the marketing palette has no
   red, and the app's rendered blend reads orange at these percentages
   anyway, so we target a vivid orange that matches the in-app screenshot
   without dropping a jarring pure-red bar onto the dark-green page. */
.goals-progress-row--toward-danger { --bar-target: #f5821f; }

/* ---------- "Speaks your language" slideshow ----------
   The dashboard screenshots (lngN.png, cropped to a 663×425 close-up) are
   stacked and cross-faded with one shared keyframe + staggered delays —
   crisp PNGs instead of a GIF, no JS. 8 frames × 1s = an 8s loop; each frame
   fades in, holds, then fades out so its slot overlaps the next by the fade
   duration (and the last frame → first overlaps cleanly at the loop seam).
   The slot/hold percentages below are tied to the frame count (11 frames,
   1s each: 100/11 ≈ 9.09%) — if you add/remove a frame, retune the
   duration, the delays and the keyframe. The
   page-wide prefers-reduced-motion rule kills the animation; the first
   frame's base opacity:1 leaves English showing as a static still. */
.lang-slideshow {
  position: relative;
  aspect-ratio: 663 / 425; /* match the cropped frames; absolute kids add no height */
}
/* Two classes beats `.feature-shot img` (class+element) so height:100% wins. */
.feature-shot--lang .lang-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  animation: lang-cycle 11s linear infinite;
}
.feature-shot--lang .lang-frame:first-child { opacity: 1; }
.lang-frame:nth-child(1) { animation-delay: 0s; }
.lang-frame:nth-child(2) { animation-delay: 1s; }
.lang-frame:nth-child(3) { animation-delay: 2s; }
.lang-frame:nth-child(4) { animation-delay: 3s; }
.lang-frame:nth-child(5) { animation-delay: 4s; }
.lang-frame:nth-child(6) { animation-delay: 5s; }
.lang-frame:nth-child(7) { animation-delay: 6s; }
.lang-frame:nth-child(8) { animation-delay: 7s; }
.lang-frame:nth-child(9) { animation-delay: 8s; }
.lang-frame:nth-child(10) { animation-delay: 9s; }
.lang-frame:nth-child(11) { animation-delay: 10s; }
@keyframes lang-cycle {
  0%      { opacity: 0; }
  1.636%  { opacity: 1; } /* fade in (~0.18s) */
  9.091%  { opacity: 1; } /* hold (~1s) */
  10.727% { opacity: 0; } /* fade out (~0.18s), overlapping the next frame */
  100%    { opacity: 0; }
}

/* ---------- testimonials ---------- */
.testimonials {
  padding-block: 64px;
  border-top: 1px solid var(--border);
}
.testimonials .eyebrow { text-align: center; margin-bottom: 32px; }
.testimonial-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.testimonial .quote {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}
.testimonial .cite {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.testimonial .cite strong { color: var(--text); font-weight: 600; }
.testimonial-todo {
  margin-top: 20px;
  text-align: center;
  font-style: italic;
  color: var(--text-dim);
}

/* ---------- mechanic / how it works ---------- */
.mechanic {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}
.mechanic h2 { text-align: center; }
.mechanic .section-lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.mechanic-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.mechanic-steps li {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mechanic-steps h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.mechanic-steps p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ---------- comparison table ---------- */
.compare {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table thead th {
  text-align: left;
  padding: 18px 20px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table tbody th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tbody td {
  padding: 16px 20px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-3t-col {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
}
.compare-table thead .compare-3t-col {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 700;
}
.compare-3t-col strong { color: var(--text); }

/* ---------- legal sub-page ----------
   The privacy page's body, under its .page-hero: long-form prose, so we
   constrain the measure for readability and keep h2s flush-left. */
.legal { padding-block: 8px 96px; }
.legal-inner { max-width: 760px; }
.legal-meta { margin-top: -8px; margin-bottom: 32px; }
.legal h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.35rem;
  text-align: left;
}
.legal h3 { margin-top: 32px; margin-bottom: 12px; }
.legal p { color: var(--text-muted); }
.legal ul, .legal ol {
  margin: 0 0 1em;
  padding-left: 24px;
  color: var(--text-muted);
}
.legal li { margin-bottom: 10px; }
.legal li strong { color: var(--text); }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-strong); }

/* Release notes: one section per version, newest first, on the legal
   page layout; the version is the section's heading. */
.release-notes h2 { font-size: 1.75rem; }
.release-notes section + section { margin-top: 56px; border-top: 1px solid var(--border); }

.compare-note { margin-top: 16px; }

/* ---------- page hero (support, privacy) ----------
   The landing's hero (glow, eyebrow, big heading) on a sub-page: less
   padding and no screenshot. Used together with .hero. */
.page-hero { padding-top: 72px; padding-bottom: 56px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-bottom: 40px; }
.page-hero .legal-meta { margin: 0; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
/* Four cards: one row, then two by two, then one column; never three
   and one left over. */
@media (max-width: 1080px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }
.help-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.help-card:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.help-card-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.help-card-title { font-size: 1.2rem; font-weight: 600; }
.help-card-text { color: var(--text-muted); font-size: 0.95rem; }
/* "Quick fixes for: Every system · macOS · Windows · Linux" — pills
   that jump to the sections below. */
.os-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.os-jump .muted { margin-right: 4px; }
.os-jump a {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
}
.os-jump a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Support page sections: a heading per system over FAQ-style cards. */
.support-section { padding-block: 64px; border-top: 1px solid var(--border); scroll-margin-top: var(--nav-h); }
/* Full container width, like the hero above, with the cards in two
   columns (one on narrow screens) to keep lines a readable length. */
.support-section h2 { margin-bottom: 28px; }
.support-section .faq-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.support-section .faq-item a,
.support-box a { color: var(--accent); }
.support-section .faq-item a:hover,
.support-box a:hover { color: var(--accent-strong); }
/* An answer longer than one paragraph: paragraphs and a list. */
.support-section .faq-item dd p:last-child { margin-bottom: 0; }
.support-section .faq-item dd ul { padding-left: 20px; margin: 0; }
.support-section .faq-item dd li + li { margin-top: 6px; }
.support-section code,
.support-section kbd,
.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 16px;
}
.support-box {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.support-box h3 { margin-bottom: 12px; }
.support-box p, .support-box ol { color: var(--text-muted); }
.support-box p:last-child { margin-bottom: 0; }
.support-box ol { padding-left: 20px; margin: 0 0 1em; }
.support-box li { margin-bottom: 6px; }

/* ---------- screenshot lightbox ---------- */
/* Full-viewport modal <dialog> that shows a screenshot's -full.png at
   native resolution. The dialog stretches edge-to-edge and is transparent;
   the dark wash is the ::backdrop. The image is flex-centered and capped at
   the padded viewport with object aspect preserved (max-width/height + auto),
   so it never upscales past 1:1 of the box — "see the full image" without
   stretching. Empty space around it is the click-to-close target. */
.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: rgba(5, 7, 7, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-shot);
}
.lightbox-close {
  position: fixed;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.lightbox-close:hover {
  background: var(--surface-2);
  color: var(--accent-strong);
  transform: scale(1.06);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- download ---------- */
.download { padding-block: 96px; border-top: 1px solid var(--border); }
.download-inner { text-align: center; }
.download-inner .section-lede { margin-inline: auto; }
.download-grid {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.download-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.download-card h3 { margin: 0; }
.download-card p { margin: 0 0 12px; }
.download-card > .btn { margin-top: auto; }
.download-card--soon .btn { cursor: default; opacity: 0.6; }
.download-card--soon .btn:hover { color: var(--text-muted); border-color: var(--border-strong); }
/* A release's cards (scripts/release-site.sh writes them): the buttons
   with a note under them, and the visitor's system marked with the same
   badge as extension.html's browser cards. */
.download-card.is-yours { border-color: var(--accent); }
.download-card h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
/* Their three rows (system, the line under it, the buttons) line up
   across the cards, so each card's first button sits beside the others'
   although Linux has three. */
.download-card[data-os] {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 8px;
  align-items: start;
  justify-items: center;
  text-align: center;
}
.download-card[data-os] p { margin: 0; }
.download-get { display: grid; gap: 10px; width: 100%; margin-top: 10px; }
.download-get .btn { justify-content: center; text-align: center; }
.download-card p.download-note { margin-top: 4px; }
/* A card's VirusTotal report (release-site.sh's VIRUSTOTAL): a fourth
   row, in every card once one has it so the rows still line up, with the
   line at the card's bottom edge. Small and grey, link included. */
.download-grid:has(.download-vt) .download-card[data-os] { grid-row: span 4; }
.download-card p.download-vt { align-self: end; margin-top: 10px; font-size: 0.75rem; color: var(--text-muted); }
.download-vt a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.download-vt a:hover { color: var(--accent); text-decoration-color: currentColor; }
/* The checksums, folded away under the cards. */
.download-sums { max-width: 760px; margin: 28px auto 0; text-align: left; }
.download-sums summary { cursor: pointer; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.download-sums summary:hover { color: var(--text); }
.download-sums p { margin: 12px 0 0; }
.download-sums p code { white-space: nowrap; }
.download-sums dl { margin: 16px 0 0; display: grid; gap: 10px; }
.download-sums dt { font-size: 0.85rem; }
.download-sums dd { margin: 2px 0 0; }
.download-sums dd code { display: block; font-size: 0.75rem; word-break: break-all; color: var(--text-muted); }
/* A file's VirusTotal report, under its checksum (release-site.sh's VIRUSTOTAL). */
.download-sums dd a { font-size: 0.75rem; }

/* ---------- plans (Free and Pro side by side) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 24px auto 0;
  align-items: stretch;
}
.plan-grid .price-card {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  min-width: 0;
  padding: 36px 32px;
}
.price-card--pro { border-color: var(--accent); }
.plan-name { margin: 0 0 12px; text-align: center; font-size: 1.1rem; color: var(--text-muted); }
.price-tag .period { align-self: flex-end; margin: 0 0 8px 6px; color: var(--text-muted); font-size: 1.1rem; }
.plan-grid .price-features { flex: 1; }
.plan-cta { width: 100%; justify-content: center; text-align: center; }
.plan-buy { display: grid; gap: 10px; }
.plan-buy .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.plan-note { margin-top: 28px; }
.plan-note a { color: var(--accent); }
/* <button> does not inherit the page font by default. */
button.btn { font-family: inherit; background-color: transparent; }
button.btn-primary { background-color: var(--accent); }

/* ---------- Browser extension page (extension.html) ---------- */
/* The visitor's own browser: a note under the hero and a marked card. */
.ext-yours {
  margin: 0;
  padding: 14px 18px;
  max-width: 60ch;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.ext-card { scroll-margin-top: calc(var(--nav-h) + 16px); }
.ext-card.is-yours,
.ext-card.is-linked { border-color: var(--accent); }
.ext-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ext-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0e0d;
}
.ext-actions { margin-top: 18px; }
.support-box code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
/* Buttons inside the cards keep their own colors (.support-box a is a link color). */
.support-box a.btn-primary, .support-box a.btn-primary:hover { color: #0a0e0d; }
.support-box a.btn-ghost { color: var(--text-muted); }
.support-box a.btn-ghost:hover { color: var(--text); }
/* A store button whose listing isn't published yet. */
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
