/* =====================================================================
   Foodielo - shared editorial design system (subpages)
   Mirrors the tokens + components of index.html so every page reads as
   one product. No 3D hero here; subpages open with a typographic header.

   Warm lynx palette, same recipe as the app (mobile/constants/theme.ts):
     #F2A93B  honung/amber   primary accent
     #A85428  kanel          deep accent, links, eyebrows (AA on cream)
     #FBEFD4  varm linne     light bg
     #4A3320  espresso       text on light
     #1E1813  kakao          dark bg / header
   ===================================================================== */

:root {
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Base palette (mirrors mobile/constants/theme.ts, the lynx brand) */
  --honey: #F2A93B;
  --amber: #F4B24A;
  --sun: #FBD06B;
  --cinnamon: #C2632F;
  --cinnamon-deep: #A85428;
  --cream: #FBEFD9;
  --espresso: #4A3320;
  --espresso-deep: #2E1F12;
  --cocoa: #1E1813;
  --cocoa-card: #2E251C;

  --max: 1280px;
  --radius-card: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

/* ---------- Light theme (Varm linne) ---------- */
.theme-light {
  --bg-page: #F6E3BD;
  --bg-app: #FBEFD4;
  --bg-app-glow: #FFF6E2;
  --bg-card: rgba(74, 51, 32, 0.06);
  --bg-card-solid: #FFFFFF;
  --bg-glass: rgba(242, 169, 59, 0.10);

  --hairline: rgba(74, 51, 32, 0.14);
  --hairline-strong: rgba(74, 51, 32, 0.26);

  --accent: var(--cinnamon-deep);
  --accent-light: var(--honey);
  --accent-soft: rgba(242, 169, 59, 0.16);
  --accent-glow: rgba(242, 169, 59, 0.40);

  --secondary: var(--cinnamon);
  --secondary-light: #D27A45;
  --secondary-soft: rgba(194, 99, 47, 0.14);

  --fg: var(--espresso);
  --fg-strong: var(--espresso-deep);
  --fg-mute: rgba(74, 51, 32, 0.78);
  --fg-dim: rgba(74, 51, 32, 0.56);
  --fg-faint: rgba(74, 51, 32, 0.30);

  --on-accent: #FFF7E8;
  color-scheme: light;
}

/* ---------- Dark theme (Kakao) ---------- */
.theme-dark {
  --bg-page: #140F0B;
  --bg-app: var(--cocoa);
  --bg-app-glow: #2A2017;
  --bg-card: var(--cocoa-card);
  --bg-card-solid: #2E251C;
  --bg-glass: rgba(242, 169, 59, 0.12);

  --hairline: rgba(251, 224, 180, 0.13);
  --hairline-strong: rgba(251, 224, 180, 0.24);

  --accent: var(--amber);
  --accent-light: var(--sun);
  --accent-soft: rgba(244, 178, 74, 0.22);
  --accent-glow: rgba(244, 178, 74, 0.42);

  --secondary: #E08A4E;
  --secondary-light: #F6C453;
  --secondary-soft: rgba(224, 138, 78, 0.16);

  --fg: var(--cream);
  --fg-strong: #FFF7E8;
  --fg-mute: rgba(251, 239, 217, 0.74);
  --fg-dim: rgba(251, 239, 217, 0.50);
  --fg-faint: rgba(251, 239, 217, 0.30);

  --on-accent: #2E1F12;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-app); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.32s var(--ease-soft), color 0.32s var(--ease-soft);
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; }

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* paper grain, identical recipe to the app + index */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

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

/* ====================== Typography primitives ====================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 12px var(--sun);
}
.display {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
 
  text-wrap: balance;
}
.display em { font-style: normal; font-weight: 560; color: var(--accent); }

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s var(--ease-editorial), box-shadow 0.25s, background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 14px 36px -12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -14px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--fg-strong);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 0.2s var(--ease-editorial); }
.btn-primary:hover .arrow { transform: translateX(3px); }
/* Ghost buttons on always-dark surfaces (slut-CTA card) must read on dark. */
.final .btn-ghost { color: var(--cream); border-color: rgba(251, 239, 217, 0.34); }
.final .btn-ghost:hover { background: rgba(251, 239, 217, 0.08); border-color: var(--amber); color: var(--cream); }

/* ====================== Nav ====================== */
nav.top {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: color-mix(in oklab, var(--cocoa) 82%, transparent);
  border-bottom: 1px solid rgba(251, 239, 217, 0.12);
  color: var(--cream);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 48px; max-width: var(--max); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.logo img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.logo span {
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em; color: var(--cream);
}
.logo span em { font-style: normal; font-weight: 400; color: var(--amber); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(251, 239, 217, 0.66);
  text-decoration: none; transition: color 0.15s; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a[aria-current="page"] { color: var(--amber); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 239, 217, 0.18); background: transparent;
  color: rgba(251, 239, 217, 0.78); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.theme-toggle:hover { background: rgba(251, 239, 217, 0.08); color: var(--cream); border-color: var(--amber); }
.theme-toggle .moon { display: none; }
.theme-dark .theme-toggle .sun { display: none; }
.theme-dark .theme-toggle .moon { display: block; }
.nav-cta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; padding: 11px 18px; border-radius: var(--radius-pill);
  background: var(--amber); color: #2E1F12; text-decoration: none;
  transition: transform 0.15s var(--ease-editorial), box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px var(--accent-glow); }

/* ====================== Sections ====================== */
section.band { position: relative; padding: 128px 0; background: var(--bg-page); color: var(--fg); }
section.band.app { background: var(--bg-app); }
section.band.dark { background: var(--cocoa); color: var(--cream); }
section.band.dark {
  --fg: var(--cream); --fg-strong: #FFF7E8; --fg-mute: rgba(251,239,217,0.72);
  --fg-dim: rgba(251,239,217,0.48); --hairline: rgba(251,239,217,0.14);
  --hairline-strong: rgba(251,239,217,0.26); --accent: var(--amber);
  --bg-card: var(--cocoa-card);
}
section.band.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(820px 520px at 8% 0%, rgba(242, 169, 59, 0.10), transparent 60%),
    radial-gradient(720px 520px at 96% 90%, rgba(251, 208, 107, 0.07), transparent 70%);
}
/* Light theme: dark bands follow the light theme so light mode is coherent.
   The .final card stays dark on purpose as a contained accent. */
.theme-light section.band.dark {
  background: var(--bg-app); color: var(--fg);
  --fg: var(--cocoa-card); --fg-strong: var(--cocoa);
  --fg-mute: rgba(74, 51, 32, 0.68); --fg-dim: rgba(74, 51, 32, 0.46);
  --hairline: rgba(74, 51, 32, 0.14); --hairline-strong: rgba(74, 51, 32, 0.28);
  --accent: var(--cinnamon-deep); --bg-card: rgba(74, 51, 32, 0.06);
}
.theme-light section.band.dark::before { display: none; }

.section-rule { display: flex; align-items: baseline; gap: 22px; margin-bottom: 22px; }
.section-rule-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; }
.section-rule-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute);
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
}
.section-rule-line { flex: 1; height: 1px; background: var(--hairline); transform-origin: left; }

.section-head { max-width: 760px; margin-bottom: 64px; }
h2.section-title {
  font-family: var(--font-display); font-weight: 560; font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.0; letter-spacing: -0.02em; color: var(--fg-strong);
  margin: 14px 0 18px; text-wrap: balance;
}
h2.section-title em { font-style: normal; color: var(--accent); }
.section-sub { font-size: 18px; color: var(--fg-mute); max-width: 600px; line-height: 1.55; }
.section-sub b { color: var(--fg-strong); font-weight: 600; }

/* ====================== Page hero (subpage header) ====================== */
section.page-hero { position: relative; padding: 96px 0 72px; background: var(--bg-app); color: var(--fg); }
section.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 420px at 8% -10%, var(--accent-soft), transparent 62%);
}
.page-hero .wrap { position: relative; }
h1.page-title {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--fg-strong);
  margin: 20px 0 20px; text-wrap: balance; max-width: 16ch;
}
h1.page-title em { font-style: normal; color: var(--accent); }
.page-lede { font-size: 19px; color: var(--fg-mute); max-width: 600px; line-height: 1.55; }
.page-lede b { color: var(--fg-strong); font-weight: 600; }

/* ====================== Problem / solution duo ====================== */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-card {
  border-radius: var(--radius-card); padding: 38px 34px;
  border: 1px solid var(--hairline-strong); background: var(--bg-card);
  position: relative; overflow: hidden; min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.35s var(--ease-editorial), box-shadow 0.35s, border-color 0.35s;
}
.duo-card:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -28px rgba(20, 15, 11, 0.45); }
.duo-card.kaos { background: linear-gradient(160deg, rgba(74, 51, 32, 0.08), transparent 58%), var(--bg-card); }
.duo-card.ordning { background: linear-gradient(160deg, rgba(242, 169, 59, 0.12), transparent 58%), var(--bg-card); }
.duo-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim); position: relative; z-index: 2;
}
.duo-card.kaos .duo-tag { color: var(--fg-mute); }
.duo-card.ordning .duo-tag { color: var(--accent); }
.duo-card h3 {
  font-family: var(--font-display); font-weight: 560; font-size: 27px; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--fg-strong);
  margin: 12px 0 10px; position: relative; z-index: 2;
}
.duo-card > div > p { color: var(--fg-mute); font-size: 15px; margin: 0; position: relative; z-index: 2; }

/* ====================== Feature / card grid ====================== */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feat {
  padding: 32px 28px; border-radius: var(--radius-card); background: var(--bg-card);
  border: 1px solid var(--hairline); min-height: 250px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-editorial), box-shadow 0.4s, border-color 0.4s;
}
.feat:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 30px 60px -28px rgba(20, 15, 11, 0.4); }
.feat-num { font-family: var(--font-mono); color: var(--fg-dim); font-size: 11px; letter-spacing: 0.16em; }
.feat-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin: 18px 0 22px; border: 1px solid var(--hairline);
}
.feat h4, .feat h3 { font-family: var(--font-display); font-weight: 560; font-size: 20px; letter-spacing: -0.02em; color: var(--fg-strong); margin-bottom: 10px; }
.feat p { font-size: 14px; color: var(--fg-mute); line-height: 1.55; }

/* ====================== Proof / KPI ====================== */
.kpi-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.kpi {
  padding: 38px 34px; border-radius: var(--radius-card); background: var(--bg-card);
  border: 1px solid var(--hairline); position: relative; overflow: hidden;
}
.kpi.hero-stat { background: linear-gradient(160deg, rgba(242, 169, 59, 0.16), transparent 70%), var(--bg-card); border-color: rgba(242, 169, 59, 0.30); }
.kpi .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); }
.kpi .val { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 520; font-size: clamp(48px, 5vw, 74px); letter-spacing: -0.025em; line-height: 1; margin: 16px 0 12px; color: var(--fg-strong); }
.kpi .val .unit { font-size: 0.42em; color: var(--fg-mute); margin-left: 8px; font-weight: 400; font-family: var(--font-body); letter-spacing: 0; }
.kpi .delta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.kpi .delta.up { color: var(--secondary); }
.kpi .desc { color: var(--fg-mute); font-size: 14px; margin-top: 12px; line-height: 1.5; }

.testi { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 30px; border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--hairline); }
.quote p { font-family: var(--font-display); font-weight: 520; font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; color: var(--fg-strong); margin-bottom: 20px; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-by .av { width: 38px; height: 38px; border-radius: 50%; }
.quote-by .av.a { background: linear-gradient(150deg, #F2A93B, #C2632F); }
.quote-by .av.b { background: linear-gradient(150deg, #FBD06B, #E0801E); }
.quote-by .av.c { background: linear-gradient(150deg, #E08A4E, #7A3C1C); }
.quote-by .who { font-size: 13px; color: var(--fg-strong); }
.quote-by .who small { display: block; color: var(--fg-mute); font-size: 12px; margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ====================== Prose (legal / text pages) ====================== */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 560; font-size: 27px; letter-spacing: -0.02em; color: var(--fg-strong); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 560; font-size: 20px; letter-spacing: -0.015em; color: var(--fg-strong); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--fg-mute); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg-strong); font-weight: 600; }
.prose-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 40px; }

/* ====================== FAQ ====================== */
.faq-wrap { max-width: 840px; margin: 0 auto; }
details.faq { border-bottom: 1px solid var(--hairline); padding: 26px 4px; }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-weight: 560; font-size: 21px; letter-spacing: -0.02em; color: var(--fg-strong);
}
details.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.25s var(--ease-editorial); color: var(--fg-mute); }
details.faq[open] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-body { color: var(--fg-mute); font-size: 15.5px; line-height: 1.65; padding: 16px 48px 4px 0; max-width: 720px; }

/* ====================== Forms (kontakt) ====================== */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15px; color: var(--fg-strong);
  background: var(--bg-card); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md); padding: 13px 15px; width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ====================== Final CTA ====================== */
.final {
  margin: 0 auto; max-width: var(--max); padding: 92px 64px; border-radius: 32px;
  background:
    radial-gradient(60% 80% at 82% 18%, rgba(242, 169, 59, 0.30), transparent 62%),
    radial-gradient(60% 80% at 10% 84%, rgba(251, 208, 107, 0.14), transparent 66%),
    var(--cocoa-card);
  border: 1px solid rgba(251, 239, 217, 0.16); position: relative; overflow: hidden; text-align: center;
}
.final h2 { font-family: var(--font-display); font-weight: 560; font-size: clamp(40px, 5.4vw, 78px); letter-spacing: -0.025em; line-height: 1.02; color: var(--cream); margin-bottom: 18px; text-wrap: balance; }
.final h2 em { font-style: normal; color: var(--sun); }
.final p { font-size: 18px; color: rgba(251, 239, 217, 0.78); max-width: 540px; margin: 0 auto 32px; }
.final .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* generic cta row */
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ====================== Footer ====================== */
footer { background: var(--cocoa); color: var(--cream); padding: 72px 0 44px; border-top: 1px solid rgba(251, 239, 217, 0.12); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p { color: rgba(251, 239, 217, 0.66); font-size: 14px; max-width: 320px; }
.foot h5 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(251, 239, 217, 0.5); margin-bottom: 18px; font-weight: 500; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot a { color: rgba(251, 239, 217, 0.7); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.foot a:hover { color: var(--amber); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid rgba(251, 239, 217, 0.12); color: rgba(251, 239, 217, 0.5); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.foot-icons { display: flex; gap: 12px; }
.foot-icons a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(251, 239, 217, 0.16); display: inline-flex; align-items: center; justify-content: center; color: rgba(251, 239, 217, 0.7); }
.foot-icons a:hover { border-color: var(--amber); color: var(--amber); }

/* ============ Light theme: the chrome follows the theme too ============
   Nav glass, footer and the .final CTA card were built always-dark in the
   old blue era. In light mode every surface reads varm linne; dark
   surfaces exist only in dark mode. Mirrors index.html. */
.theme-light nav.top { background: color-mix(in oklab, #FFFFFF 86%, transparent); border-bottom-color: var(--hairline); color: var(--fg-strong); }
.theme-light .logo span { color: var(--fg-strong); }
.theme-light .logo span em { color: var(--accent); }
.theme-light .nav-links a { color: var(--fg-mute); }
.theme-light .nav-links a:hover { color: var(--fg-strong); }
.theme-light .nav-links a[aria-current="page"] { color: var(--accent); }
.theme-light .theme-toggle { border-color: var(--hairline-strong); color: var(--fg-mute); }
.theme-light .theme-toggle:hover { background: var(--bg-card); color: var(--fg-strong); border-color: var(--accent); }

.theme-light footer { background: var(--bg-page); color: var(--fg); border-top-color: var(--hairline); }
.theme-light .foot-brand p { color: var(--fg-mute); }
.theme-light .foot h5 { color: var(--fg-dim); }
.theme-light .foot a { color: var(--fg-mute); }
.theme-light .foot a:hover { color: var(--accent); }
.theme-light .foot-bottom { color: var(--fg-dim); border-top-color: var(--hairline); }
.theme-light .foot-icons a { border-color: var(--hairline-strong); color: var(--fg-mute); }
.theme-light .foot-icons a:hover { border-color: var(--accent); color: var(--accent); }

.theme-light .final {
  background:
    radial-gradient(60% 80% at 82% 18%, rgba(242, 169, 59, 0.26), transparent 62%),
    radial-gradient(60% 80% at 10% 84%, rgba(251, 208, 107, 0.22), transparent 66%),
    #FFFFFF;
  border-color: var(--hairline-strong);
}
.theme-light .final h2 { color: var(--fg-strong); }
.theme-light .final h2 em { color: var(--secondary); }
.theme-light .final p { color: var(--fg-mute); }
.theme-light .final .btn-ghost { color: var(--fg-strong); border-color: var(--hairline-strong); }
.theme-light .final .btn-ghost:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }

/* ====================== reveal-on-scroll ====================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-editorial), transform 1.1s var(--ease-editorial); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ====================== responsive ====================== */
@media (max-width: 980px) {
  .wrap, .nav-inner { padding-left: 28px; padding-right: 28px; }
  .duo-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .testi { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  section.band { padding: 96px 0; }
  .final { padding: 64px 28px; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
