/* SimplyPie landing site. Same Leaven Luxury tokens as the app (css/styles.css :root), one room over.
   Dark is the default; light follows the system through prefers-color-scheme with the app's light tokens. */

/* ==========================================================================
   Fonts (self-hosted latin subsets, the same files the app loads)
   ========================================================================== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens (copied from css/styles.css :root and [data-theme="light"])
   ========================================================================== */
:root {
  color-scheme: dark;
  --ink: #151311;
  --ink-deep: #0f0e0c;
  --ash: #221e1a;
  --stone: #332d27;
  --card-bg: #1f1b17;
  --raise: rgba(255, 255, 255, 0.06);
  --well: rgba(0, 0, 0, 0.25);
  --topbar: rgba(21, 19, 17, 0.96);

  --cream: #f5f0e8;
  --flour: #e0d8c8;
  --title: #ffffff;
  --muted: #a39a8b;

  --border: #38322c;
  --border-strong: #4a423a;

  --orange: #e8520a;
  --orange-hover: #f26a24;
  --orange-text: #f26a24;
  --orange-soft: rgba(232, 82, 10, 0.12);
  --orange-line: rgba(232, 82, 10, 0.45);
  --on-accent: #16100b;

  --gold: #c9952a;
  --gold-soft: rgba(201, 149, 42, 0.12);
  --gold-line: rgba(201, 149, 42, 0.32);
  --green: #7aaa52;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-normal: 0.25s var(--ease-out);

  --gutter: 20px;
  --measure: 62ch;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #f7f4ee;
    --ink-deep: #efebe3;
    --ash: #ffffff;
    --stone: #f0ebe3;
    --card-bg: #ffffff;
    --raise: rgba(0, 0, 0, 0.05);
    --well: rgba(0, 0, 0, 0.04);
    --topbar: rgba(247, 244, 238, 0.96);

    --cream: #1a1512;
    --flour: #3d352e;
    --title: #1a1512;
    --muted: #6a6053;

    --border: #e4ddd2;
    --border-strong: #cfc6b8;

    --orange: #bf3d09;
    --orange-hover: #a93407;
    --orange-text: #bf3d09;
    --orange-soft: rgba(191, 61, 9, 0.09);
    --orange-line: rgba(191, 61, 9, 0.4);
    --on-accent: #ffffff;

    --gold: #8a6314;
    --gold-soft: rgba(138, 99, 20, 0.1);
    --gold-line: rgba(138, 99, 20, 0.3);
    --green: #4a7529;

    --shadow-sm: 0 2px 8px rgba(40, 30, 20, 0.06);
    --shadow-md: 0 6px 20px rgba(40, 30, 20, 0.1);
    --shadow-lg: 0 14px 36px rgba(40, 30, 20, 0.16);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--on-accent); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

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

a { color: var(--orange-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-hover); }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--title);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 2rem + 4.2vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 1.45rem + 2.1vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 0.9em; }

.lead { font-size: 1.125rem; color: var(--flour); }
.muted { color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 14px; background: var(--orange); color: var(--on-accent);
  font-weight: 700; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Buttons (mirror the app's .btn family; 48px tall on the web, 44px minimum)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--ash); color: var(--cream);
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.12s var(--ease-out), box-shadow var(--transition-fast);
}
.btn:hover { background: var(--stone); border-color: var(--border-strong); color: var(--title); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-pri { background: var(--orange); border-color: var(--orange); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-pri:hover, a.btn-pri:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--on-accent); }

.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--stone); border-color: var(--border); color: var(--muted);
  box-shadow: none; cursor: not-allowed; transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--topbar);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.wordmark {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--title); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.wordmark em { color: var(--orange-text); font-style: normal; }
.wordmark:hover { color: var(--title); }

.site-nav { display: none; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--flour); font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--title); background: var(--raise); }
.header-cta { min-height: 44px; padding: 0 16px; font-size: 0.9rem; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 36px; }
.section-head .lead { margin-top: 14px; }
.section-tier {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}
.section-tier.is-free { color: var(--green); }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 48px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-kicker { font-weight: 600; color: var(--gold); font-size: 0.9375rem; letter-spacing: 0.01em; margin-bottom: 18px; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 22px; font-size: 1.1875rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }
.hero-trust span + span::before { content: '\00b7'; margin: 0 8px; color: var(--border-strong); }

.hero-visual { display: flex; justify-content: center; }
.hero-caption { margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 0.875rem; max-width: 32ch; }

@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .hero-visual { justify-content: flex-end; }
}

/* Device frame: a phone-shaped bezel in CSS, no fake chrome, the real screenshot inside. */
.device {
  width: min(300px, 82vw); aspect-ratio: 390 / 844; flex: none;
  padding: 10px; border-radius: 46px;
  background: var(--ink-deep); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.device-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #151311; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device.device-sm { width: min(260px, 74vw); }
@media (min-width: 900px) {
  .device { width: 320px; }
  .device.device-sm { width: 300px; }
}

/* ==========================================================================
   Free tools
   ========================================================================== */
.tools { display: grid; gap: 28px; }
.tool h3 { margin-bottom: 8px; }
.tool p { color: var(--flour); }
.tools-note { margin-top: 36px; font-weight: 700; color: var(--title); }
@media (min-width: 700px) {
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* ==========================================================================
   Styles grid
   ========================================================================== */
.styles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.style-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px;
  padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.style-tile .name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--title); line-height: 1.15; }
.style-tile .tier { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.style-tile.is-free .tier { color: var(--green); }
.style-tile.is-pro .tier { color: var(--gold); }
.style-tile.is-flagship { border-color: var(--orange-line); background: var(--orange-soft); }
.style-tile.is-flagship .tier { color: var(--orange-text); }
@media (prefers-color-scheme: light) {
  /* ember on the ember-soft tile reads 4.3:1 in light; the hover ember clears 4.5:1 */
  .style-tile.is-flagship .tier { color: var(--orange-hover); }
}
.style-tile.is-flagship .name::after { content: 'Flagship'; display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; color: var(--flour); letter-spacing: 0; }
@media (min-width: 700px) {
  .styles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ==========================================================================
   Supporting tools + catalogs
   ========================================================================== */
.split { display: grid; gap: 40px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plain-list li { padding-left: 22px; position: relative; color: var(--flour); }
.plain-list li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.plain-list strong { color: var(--title); font-weight: 700; }
.split h3 { margin-bottom: 16px; }
.split .fine { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
}

/* ==========================================================================
   Feature spotlights (ferment, masterclass, journal)
   ========================================================================== */
.feature { display: grid; gap: 36px; align-items: center; }
.feature-copy .lead { margin-top: 16px; }
.feature-copy .fine { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }
.feature-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.feature-visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .feature.is-flipped .feature-copy { order: 2; }
  .feature.is-flipped .feature-visual { order: 1; justify-content: flex-start; }
  .feature-visual { justify-content: flex-end; }
}

/* Vertical fermentation timeline, in HTML, the stage names the app uses. */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; max-width: 420px; }
.timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: start; padding: 0 0 22px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink); flex: none; }
.timeline li.is-bake .dot { border-color: var(--orange); background: var(--orange); }
.timeline .stage { font-weight: 700; color: var(--title); line-height: 1.3; }
.timeline .note { display: block; color: var(--muted); font-size: 0.9375rem; }
.timeline .when { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.875rem; color: var(--flour); white-space: nowrap; padding-top: 2px; }

.callout { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--ash); color: var(--flour); font-size: 0.9875rem; }
.callout strong { color: var(--title); }

/* ==========================================================================
   Free vs PRO table
   ========================================================================== */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card-bg); }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--ash); }
.compare thead th.col-pro { color: var(--gold); }
.compare thead th.col-free { color: var(--green); }
.compare tbody th { font-weight: 600; color: var(--cream); font-size: 0.9875rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { width: 88px; text-align: center; }
.compare .tick { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--green); color: #0f0e0c; }
.compare .tick svg { width: 100%; height: 100%; }
.compare td.is-pro .tick { background: var(--gold); }
.compare .no { display: inline-block; width: 14px; height: 2px; background: var(--border-strong); border-radius: 2px; vertical-align: middle; }
.compare .word { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; color: var(--flour); white-space: nowrap; }
.compare-note { margin-top: 20px; color: var(--flour); font-weight: 600; }
@media (min-width: 700px) {
  .compare th, .compare td { padding: 16px 18px; }
  .compare td { width: 140px; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-card {
  max-width: 560px; padding: 28px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--card-bg); box-shadow: var(--shadow-md);
}
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(3.25rem, 2.5rem + 4vw, 4.75rem); line-height: 1; letter-spacing: -0.04em; color: var(--title); }
.price-once { font-weight: 600; color: var(--flour); }
.price-launch { margin-top: 18px; color: var(--flour); }
.price-launch strong { color: var(--title); }
.price-after { margin-top: 10px; color: var(--muted); font-size: 0.9875rem; }
.price-after .num { color: var(--flour); font-weight: 700; }
.price-keep { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--flour); }
.price-actions { margin-top: 24px; display: grid; gap: 12px; }
.price-actions .btn { width: 100%; }
.price-note { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.price-key { margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 700px) {
  .price-card { padding: 36px 36px; }
}

/* ==========================================================================
   Install explainer
   ========================================================================== */
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; max-width: 640px; }
.install-steps > li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.install-steps > li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--on-accent); font-family: var(--font-mono); font-weight: 700; font-size: 0.9375rem;
}
.install-steps strong { color: var(--title); }
.install-devices { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--flour); }
.install-devices b { color: var(--title); font-weight: 700; }
.install-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   FAQ (native details, no script)
   ========================================================================== */
.faq { max-width: 760px; padding-top: 6px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--title); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform var(--transition-normal); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--orange-text); }
.faq .answer { padding: 0 0 20px; color: var(--flour); max-width: var(--measure); }
.faq .answer p + p { margin-top: 0.7em; }
.faq summary:hover { color: var(--orange-text); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 1.5rem + 3vw, 3.25rem); margin: 0 auto; max-width: 14ch; }
.final .hero-actions { justify-content: center; margin-top: 28px; }

/* ==========================================================================
   LP-01 advertisement slot: labeled, reserved height, empty until approval. No ad code lives here.
   ========================================================================== */
.ad-slot {
  padding: 0 0 48px;
}
.ad-frame {
  min-height: 300px; display: flex; align-items: flex-start; justify-content: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--well);
}
.ad-label { padding: 10px 14px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 22px; }
.footer-brand { color: var(--flour); }
.footer-brand .wordmark { font-size: 1.25rem; margin-bottom: 6px; }
.footer-facts { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 0; margin-right: 10px; color: var(--flour); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--orange-text); }
.footer-domain { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
}

/* ==========================================================================
   Sticky "Install free" (shown by site.js once the hero has scrolled off)
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--topbar); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.32s var(--ease-out), visibility 0s linear 0.32s;
  visibility: hidden;
}
.sticky-cta.is-on { transform: none; visibility: visible; transition: transform 0.32s var(--ease-out), visibility 0s; }
.sticky-cta .btn { width: 100%; max-width: 420px; }
body.has-sticky { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .sticky-cta { left: auto; right: 28px; bottom: 28px; padding: 0; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transform: translateY(24px); opacity: 0; transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out), visibility 0s linear 0.32s; }
  .sticky-cta.is-on { transform: none; opacity: 1; }
  .sticky-cta .btn { width: auto; padding: 0 22px; box-shadow: var(--shadow-md); }
  body.has-sticky { padding-bottom: 0; }
}

/* ==========================================================================
   Utility pages
   ========================================================================== */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.25rem); }
.page .lead { margin-top: 18px; }
.page .statement { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--orange-line); border-radius: var(--radius-md); background: var(--orange-soft); color: var(--title); font-weight: 600; max-width: none; }
.page h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 14px; }
.page h3 { font-size: 1.125rem; margin-top: 28px; margin-bottom: 8px; }
.page p { color: var(--flour); }
.page ul { margin: 12px 0 0; padding-left: 22px; color: var(--flour); max-width: var(--measure); }
.page li + li { margin-top: 8px; }
.page .meta { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.page code { font-family: var(--font-mono); font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--ash); border: 1px solid var(--border); color: var(--title); }
.page .back { margin-top: 48px; }

/* ==========================================================================
   Motion: the one authored moment is the hero reveal; everything else is state.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual { animation: rise 0.7s var(--ease-out) both; }
  .hero-visual { animation-delay: 0.08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .sticky-cta, .sticky-cta.is-on { transition: none; }
}
