/* =========================================================================
   Gutrack marketing site — shared stylesheet
   Tokens ported 1:1 from the app's real design system (lib/core/app_tokens.dart)
   — "calm clinical teal" — so the site matches the app, not a mood board.
   ========================================================================= */

:root {
  /* ---- Color: light theme (primary) — from AppTokens.light ---- */
  --surface: #F7FAFB;        /* app/page background — cool white */
  --card: #FFFFFF;           /* card surface */
  --chip: #EDF3F4;           /* icon buttons, chips */
  --canvas: #DCE7E9;         /* behind device mockups / alt bands */
  --track: #E2ECED;          /* bar & ring tracks */
  --divider: #EAF1F2;
  --hairline: #DBE6E8;       /* 1px borders */

  --accent: #0E7C86;         /* white text on this = 4.95:1 */
  --accent-pressed: #0A5D65; /* link ink on light bg = ~6.9:1 */
  --accent-fg: #FFFFFF;
  --teal-50: #EAF7F8;
  --teal-100: #CFEDEF;
  --teal-400: #38ABB3;

  --text-primary: #0E1F21;   /* ~16:1 on surface */
  --text-secondary: #33484A; /* ~8.8:1 */
  --text-muted: #5A6E70;     /* ~5.1:1 — AA body floor */
  --text-disabled: #93A6A8;  /* decorative only */

  /* Semantic risk tiers — green -> amber -> terracotta (red reserved for emergency) */
  --safe-fill: #12703E;   --safe-color: #0B5C30;  --safe-bg: #E4F1E8;
  --caution-fill: #B26A00; --caution-color: #8F5500; --caution-bg: #F5EBD6;
  --high-fill: #A83208;    --high-color: #8A2906;  --high-bg: #F7E6DE;
  --emergency-fill: #D72323; --emergency-color: #9E0F0F; --emergency-bg: #FBE5E5;

  /* ---- Color: dark band (from AppTokens.dark) — used for one contrast section ---- */
  --dark-surface: #0E1517;
  --dark-card: #172122;
  --dark-chip: #1F2C2D;
  --dark-hairline: #283637;
  --dark-accent: #56D0D6;
  --dark-text-primary: #EBF3F3;
  --dark-text-muted: #97A9AA;

  /* ---- Type ---- */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Spacing — app's 4pt grid, extended for web section rhythm ---- */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s20: 20px; --s24: 24px; --s32: 32px;
  --s40: 40px; --s48: 48px; --s64: 64px; --s80: 80px; --s96: 96px;

  /* ---- Radius — app tokens exactly ---- */
  --radius-input: 12px;
  --radius-card: 16px;
  --radius-card-lg: 20px;
  --radius-panel: 22px;
  --radius-pill: 999px;

  /* ---- Shadow — app uses NONE; separation is hairline + contrast + whitespace.
     We keep that rule for cards, and reserve a soft shadow only for the
     floating condensed nav and the hero device, which have no site equivalent
     in-app. ---- */
  --shadow-float: 0 12px 32px -12px rgba(10, 58, 63, 0.22);
  --shadow-device: 0 30px 60px -20px rgba(10, 58, 63, 0.28);

  --container-max: 1180px;
  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Cinematic dark-photo sections (hero, final CTA) ---- */
  --ink: #060F10;
  --glass-border-on-dark: rgba(255, 255, 255, 0.14);
  --glass-bg-on-dark: rgba(9, 22, 24, 0.55);
  --glow-teal: rgba(86, 208, 214, 0.38);

  /* Measured header height, set live by main.js; this is only the pre-JS/
     fallback estimate so the hero still lines up if JS hasn't run yet. */
  --header-h: 88px;
}

/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Photographic grain — fixed, whole-viewport, barely-there texture that keeps
   flat colour sections from feeling sterile. Pure CSS, no image request. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* ---------------------------------------------------------------------
   Scroll reveal — progressive enhancement only. Without the `.js` class
   (no JS, or JS failed) every `.reveal` element is simply visible; the
   IntersectionObserver in main.js adds `.is-visible` as sections enter view.
   --------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: var(--s12) var(--s20);
  border-radius: 0 0 var(--radius-input) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--s20);
}

section { padding-block: var(--s96); }
@media (max-width: 640px) {
  section { padding-block: var(--s48); }
}

.section-head { max-width: 640px; margin-bottom: var(--s48); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-pressed);
  background: var(--teal-100);
  padding: var(--s4) var(--s12);
  border-radius: var(--radius-pill);
  margin-bottom: var(--s16);
}
.eyebrow.on-dark { color: var(--dark-accent); background: var(--dark-chip); }

h2.section-title {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  margin-bottom: var(--s12);
}

.section-lede {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--s12);
  line-height: 1.5;
}

.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;
}

.text-center { text-align: center; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  min-height: 52px;
  padding: 17px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-pressed); }

.btn-secondary { background: var(--card); color: var(--text-primary); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-pressed); }

.btn-on-dark { background: var(--dark-accent); color: #04292C; }
.btn-on-dark:hover { background: #83E2E6; }

/* ---------------------------------------------------------------------
   Header / nav — condenses to a floating pill on scroll
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--s16);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.is-condensed .nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--hairline);
  box-shadow: var(--shadow-float);
}

/* Over the dark photographic hero, the nav rides transparent-on-photo until
   the page scrolls, then condenses into a dark frosted-glass pill instead
   of the light one — same shape, palette flips with what's behind it. */
.site-header.is-on-dark .brand,
.site-header.is-on-dark .nav-links a,
.site-header.is-on-dark .nav-toggle {
  color: rgba(255, 255, 255, 0.94);
}
.site-header.is-on-dark .nav-links a:hover { color: #fff; }
.site-header.is-on-dark .nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-on-dark.is-condensed .nav {
  background: var(--glass-bg-on-dark);
  backdrop-filter: saturate(180%) blur(16px);
  border-color: var(--glass-border-on-dark);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--transition-base);
}
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links { display: none; align-items: center; gap: var(--s32); }
.nav-links a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: var(--s8) 0;
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--accent-pressed); }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  transition: color var(--transition-base), background-color var(--transition-fast);
}
.nav-toggle:hover { background: var(--chip); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--s4);
  margin-top: var(--s8);
  padding: var(--s12);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: var(--s12) var(--s16);
  border-radius: var(--radius-input);
  font-weight: 600;
  color: var(--text-primary);
}
.mobile-menu a:hover { background: var(--chip); }
.mobile-menu .btn { margin-top: var(--s8); }
@media (min-width: 860px) { .mobile-menu { display: none !important; } }

/* ---------------------------------------------------------------------
   Trust strip — real, sourced-from-policy claims (no fabricated stats)
   --------------------------------------------------------------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s12);
  margin-top: var(--s24);
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: 10px var(--s16);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-chip svg { color: var(--accent); flex-shrink: 0; }

.trust-chip.on-dark {
  background: var(--glass-bg-on-dark);
  border-color: var(--glass-border-on-dark);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
}
.trust-chip.on-dark svg { color: var(--dark-accent); }

/* ---------------------------------------------------------------------
   Hero — full-bleed cinematic photo, dark teal gradient wash, grain,
   staggered headline. Structural cues (huge type, floating nav, device
   stack) modeled on calai.app / calz.me; the "calm clinical teal" palette,
   copy and product facts stay Gutrack's own.
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-block: var(--s96);
  margin-top: calc(-1 * var(--header-h)); /* photo runs full-bleed behind the sticky header */
  color: #fff;
  background: var(--ink) url("/assets/photos/hero-bg.jpg") center 38% / cover no-repeat;
}
.hero::before {
  /* Dark teal cinematic wash over the photo — keeps it calm & legible, not a food ad */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 15, 0.72) 0%, rgba(6, 20, 22, 0.86) 55%, var(--dark-surface) 100%),
    linear-gradient(100deg, rgba(6, 14, 15, 0.55) 0%, rgba(10, 30, 32, 0.35) 45%, rgba(6, 14, 15, 0.65) 100%);
}
.hero::after {
  /* Soft teal glow, top-left — depth without another image request */
  content: "";
  position: absolute;
  z-index: 0;
  top: -20%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow-teal), transparent 72%);
  filter: blur(10px);
}
.hero > .container { position: relative; z-index: 1; padding-top: var(--header-h); }
.hero .container.hero-grid { display: grid; gap: var(--s64); align-items: center; }
@media (min-width: 960px) {
  .hero .container.hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--s80); }
}

.hero-copy .eyebrow.on-dark {
  background: var(--glass-bg-on-dark);
  border: 1px solid var(--glass-border-on-dark);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.75rem, 2.1rem + 3.6vw, 5.25rem);
  letter-spacing: -0.03em;
  line-height: 1.03;
  color: #fff;
  max-width: 15ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .word {
    opacity: 0;
    transform: translateY(100%);
    animation: word-in 0.9s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i, 0) * 70ms + 150ms);
  }
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy .section-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  max-width: 44ch;
  margin-top: var(--s20);
}

.hero-actions {
  margin-top: var(--s32);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s16);
}

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--s12); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s12);
  height: 54px;
  padding: 0 var(--s20);
  border-radius: var(--radius-input);
  background: var(--text-primary);
  color: #fff;
  border: 1px solid var(--text-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.store-badge .badge-text { line-height: 1.15; }
.store-badge .badge-text .small { display: block; font-size: 0.6875rem; opacity: 0.8; }
.store-badge .badge-text .big { display: block; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }

.store-badge.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: not-allowed;
}
.store-badge.is-disabled:hover { transform: none; box-shadow: none; }
.store-badge.is-disabled .badge-icon { opacity: 0.7; }

/* Sections other than the hero keep the light-surface badge treatment */
section:not(.hero):not(.final-cta) .store-badge.is-disabled {
  background: var(--card);
  color: var(--text-disabled);
  border: 1px solid var(--hairline);
}
section:not(.hero):not(.final-cta) .store-badge.is-disabled .badge-icon { opacity: 0.55; }

/* Hero device stack — two overlapping phones, floating over the photo */
.hero-visual { position: relative; display: flex; justify-content: center; padding-block: var(--s24); }
.device-stack { position: relative; width: min(300px, 76vw); }
.device-blob {
  position: absolute;
  inset: -20% -40%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(86, 208, 214, 0.35), transparent 72%);
  filter: blur(4px);
}
.phone-frame {
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
}
.phone-frame.primary { position: relative; z-index: 2; }
.phone-frame.secondary {
  position: absolute;
  top: 8%;
  left: 58%;
  width: 78%;
  z-index: 1;
  opacity: 0.96;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: no-preference) {
  .phone-frame.primary { animation: float-y 6s ease-in-out infinite; }
  .phone-frame.secondary { animation: float-y 7s ease-in-out infinite 0.4s; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: 10px var(--s16);
  background: var(--glass-bg-on-dark);
  border: 1px solid var(--glass-border-on-dark);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  z-index: 3;
  white-space: nowrap;
}
.hero-badge svg { color: var(--dark-accent); flex-shrink: 0; }
.hero-badge.badge-top { top: 6%; left: -6%; }
.hero-badge.badge-bottom { bottom: 10%; right: -8%; }
@media (max-width: 480px) {
  .hero-badge { font-size: 0.75rem; padding: 8px var(--s12); }
  .hero-badge.badge-top { left: -2%; }
  .hero-badge.badge-bottom { right: -2%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-badge.badge-top { animation: float-y 5.5s ease-in-out infinite 0.2s; }
  .hero-badge.badge-bottom { animation: float-y 6.5s ease-in-out infinite 0.8s; }
}

/* ---------------------------------------------------------------------
   How it works — big numbered steps, alternating with a screenshot
   --------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: var(--s80); }
.step { display: grid; gap: var(--s40); align-items: center; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1fr 1fr; gap: var(--s64); }
  .step.reverse .step-visual { order: 2; }
  .step.reverse .step-copy { order: 1; }
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: var(--s20);
}
.step-copy h3 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-bottom: var(--s12); }
.step-copy p { color: var(--text-secondary); font-size: 1.0625rem; max-width: 46ch; }
.step-visual {
  display: flex;
  justify-content: center;
  background: var(--canvas);
  border-radius: var(--radius-panel);
  padding: var(--s40) var(--s24);
}
.step-visual img { width: min(220px, 100%); filter: drop-shadow(0 20px 40px rgba(10, 58, 63, 0.16)); }

/* ---------------------------------------------------------------------
   GSI band — real product mechanics, dark contrast section
   --------------------------------------------------------------------- */
.gsi-band {
  position: relative;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(86, 208, 214, 0.12), transparent 60%),
    var(--dark-surface);
  color: var(--dark-text-primary);
}
.gsi-band .section-head { max-width: 720px; }
.gsi-band .section-lede { color: var(--dark-text-muted); }
.gsi-band h2.section-title { color: var(--dark-text-primary); }

.gsi-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s16);
  margin-top: var(--s16);
}
@media (min-width: 720px) { .gsi-tiers { grid-template-columns: repeat(3, 1fr); } }

.gsi-tile {
  background: var(--dark-card);
  border: 1px solid var(--dark-hairline);
  border-radius: var(--radius-card-lg);
  padding: var(--s32);
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.gsi-tile:hover { transform: translateY(-4px); border-color: currentColor; }
.gsi-tile .range {
  font-size: clamp(2.75rem, 2.2rem + 2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s8);
  line-height: 1;
}
.gsi-tile.safe .range { color: #6FE0A0; text-shadow: 0 0 40px rgba(111, 224, 160, 0.35); }
.gsi-tile.caution .range { color: #F2C066; text-shadow: 0 0 40px rgba(242, 192, 102, 0.3); }
.gsi-tile.high .range { color: #F0A578; text-shadow: 0 0 40px rgba(240, 165, 120, 0.3); }
.gsi-tile .tier-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s12);
}
.gsi-tile.safe .tier-label { color: #6FE0A0; background: #12321F; }
.gsi-tile.caution .tier-label { color: #F2C066; background: #3A2A0E; }
.gsi-tile.high .tier-label { color: #F0A578; background: #3A2013; }
.gsi-tile p { color: var(--dark-text-muted); font-size: 0.9375rem; }

/* ---------------------------------------------------------------------
   Features
   --------------------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: var(--s20); }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card-lg);
  padding: var(--s32);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
  }
  .feature-card:hover .feature-icon { transform: scale(1.08); background: var(--teal-100); }
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-input);
  background: var(--teal-50);
  color: var(--accent-pressed);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s20);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.feature-card h3 { font-size: 1.1875rem; margin-bottom: var(--s8); letter-spacing: -0.01em; }
.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }

/* ---------------------------------------------------------------------
   Screenshots strip
   --------------------------------------------------------------------- */
.screenshots-strip {
  display: flex;
  gap: var(--s20);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-block: var(--s8) var(--s16);
  margin-inline: calc(var(--s20) * -1);
  padding-inline: var(--s20);
  scrollbar-width: thin;
  scrollbar-color: var(--text-disabled) transparent;
}
.screenshots-strip::-webkit-scrollbar { height: 8px; }
.screenshots-strip::-webkit-scrollbar-thumb { background: var(--text-disabled); border-radius: var(--radius-pill); }

.screenshot-item { flex: 0 0 auto; scroll-snap-align: start; width: 220px; }
.screenshot-item img {
  width: 100%;
  border-radius: var(--radius-card-lg);
  border: 1px solid var(--hairline);
  background: var(--card);
}
.screenshot-caption { margin-top: var(--s12); font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.about-section { background: var(--teal-50); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.about-grid { display: grid; gap: var(--s40); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.about-copy p + p { margin-top: var(--s16); }
.about-copy p { color: var(--text-secondary); font-size: 1.0625rem; }

.disclaimer-card {
  background: var(--card);
  border: 1px solid var(--caution-bg);
  border-left: 4px solid var(--caution-fill);
  border-radius: var(--radius-card);
  padding: var(--s24);
}
.disclaimer-card h3 { font-size: 1rem; color: var(--caution-color); margin-bottom: var(--s8); }
.disclaimer-card p { color: var(--text-secondary); font-size: 0.9375rem; }
.disclaimer-card p + p { margin-top: var(--s12); }

/* ---------------------------------------------------------------------
   Final CTA band
   --------------------------------------------------------------------- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--ink) url("/assets/photos/hero-bg.jpg") center 68% / cover no-repeat;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 100% at 50% 100%, rgba(14, 124, 134, 0.45), transparent 70%),
    linear-gradient(180deg, var(--dark-surface) 0%, rgba(6, 20, 22, 0.88) 30%, rgba(6, 14, 15, 0.86) 100%);
}
.final-cta > .container { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem); }
.final-cta .section-lede { color: rgba(255, 255, 255, 0.78); max-width: 46ch; margin-inline: auto; }
.final-cta .hero-actions { justify-content: center; margin-top: var(--s32); }
.final-cta .store-badge { background: #fff; color: var(--text-primary); border-color: #fff; }
.final-cta .store-badge.is-disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.3); }

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */
.contact-section { text-align: center; }
.contact-card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card-lg);
  padding: var(--s40);
}
.contact-card .feature-icon { margin-inline: auto; }
.contact-email {
  display: inline-flex; align-items: center; gap: var(--s8);
  margin-top: var(--s24);
  font-size: 1.0625rem; font-weight: 700; color: var(--accent-pressed);
}
.contact-email:hover { text-decoration: underline; }
.contact-note { margin-top: var(--s20); font-size: 0.9375rem; color: var(--text-muted); max-width: 44ch; margin-inline: auto; }
.contact-address { margin-top: var(--s24); font-size: 0.875rem; color: var(--text-disabled); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hairline); padding-block: var(--s48); color: var(--text-muted); }
.footer-grid { display: flex; flex-direction: column; gap: var(--s32); }
@media (min-width: 720px) { .footer-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand { display: flex; align-items: center; gap: var(--s8); font-weight: 800; color: var(--text-primary); }
.footer-tagline { margin-top: var(--s12); font-size: 0.9375rem; max-width: 32ch; }

.footer-links { display: flex; flex-wrap: wrap; gap: var(--s8) var(--s32); }
.footer-links a { font-weight: 600; }
.footer-links a:hover { color: var(--accent-pressed); text-decoration: underline; }

.footer-bottom {
  margin-top: var(--s40);
  padding-top: var(--s24);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--text-disabled);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

/* ---------------------------------------------------------------------
   Legal pages (privacy / terms)
   --------------------------------------------------------------------- */
.legal-hero { padding-block: var(--s64) var(--s32); }
.legal-hero h1 { font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3.25rem); color: var(--text-primary); letter-spacing: -0.03em; }
.legal-updated { margin-top: var(--s12); color: var(--text-disabled); font-size: 0.9375rem; }

.legal-content { padding-block: 0 var(--s96); }
.legal-content .container { max-width: 760px; }
.legal-content h2 { font-size: 1.375rem; margin-top: var(--s48); margin-bottom: var(--s16); color: var(--text-primary); letter-spacing: -0.01em; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--text-secondary); margin-bottom: var(--s16); font-weight: 500; }
.legal-content ul { margin: 0 0 var(--s16); padding-left: 1.25rem; list-style: disc; color: var(--text-secondary); }
.legal-content li { margin-bottom: var(--s8); }
.legal-content a { color: var(--accent-pressed); text-decoration: underline; }
.legal-content strong { color: var(--text-primary); }
.placeholder-tag {
  display: inline-block;
  background: var(--caution-bg);
  color: var(--caution-color);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
  font-weight: 700;
}

.legal-toc {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card-lg);
  padding: var(--s24);
  margin-bottom: var(--s40);
}
.legal-toc h2 { margin-top: 0 !important; font-size: 1rem !important; }
.legal-toc ol { margin: var(--s12) 0 0; padding-left: 1.25rem; color: var(--text-secondary); }
.legal-toc li { margin-bottom: var(--s4); }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
