/* ==========================================================================
   Kelo Website — single stylesheet. Mobile-first. Tokens mirror the
   iOS app's DesignTokens.swift plus the editorial landing design handoff.
   Zero external fonts. Zero external resources. See CLAUDE.md.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Paper / ink */
  --paper: #F6F3ED;
  --paper-warm: #EFE9DC;
  --ink: #11130F;
  --ink-2: #3A3D36;
  --ink-muted: #595959;
  --ink-faint: #767669;
  --rule: #DFD9CA;
  --rule-soft: #E8E3D4;

  /* Brand */
  --teal: #0A7E8C;
  --teal-deep: #086570;
  --teal-ink: #0F3A41;
  --gold: #C28A0E;
  --gold-soft: #E8C87A;
  --navy: #0A1628;
  --navy-2: #132236;
  --green: #2D9F6F;
  --amber: #D4880F;
  --red: #C53030;

  /* Typography — system fonts only, no Google Fonts */
  --font-display: Georgia, 'Cambria', 'Times New Roman', Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;

  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

  /* Spacing (8pt grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-card: 12px;
  --radius-button: 10px;
  --radius-chip: 999px;

  /* Layout */
  --edge: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --container-pad: var(--edge);

  /* Animation */
  --animation-standard: 0.35s ease-in-out;
  --animation-quick: 0.2s ease-in-out;
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1628;
    --paper-warm: #14253E;
    --ink: #F4EFE4;
    --ink-2: #D4CFC2;
    --ink-muted: #B8B0A1;
    --ink-faint: #8A8578;
    --rule: #1F2D42;
    --rule-soft: #25344B;
    --teal: #2AAFBE;
    --teal-deep: #0A7E8C;
    --teal-ink: #8DE3EC;
    --gold: #F0B848;
    --gold-soft: #F0CC7C;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--teal); color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
}
p { margin: 0 0 var(--space-md); }
ul { padding-left: 1.25rem; }
li { margin-bottom: var(--space-xs); }
code {
  font-family: var(--font-mono);
  background: var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

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

/* ---------- Utilities ---------- */
.wrap, .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}
.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;
}
.skip-link {
  position: absolute;
  top: -100px; left: var(--space-md);
  background: var(--ink); color: var(--paper);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-button);
  z-index: 100;
  transition: top var(--animation-quick);
}
.skip-link:focus { top: var(--space-md); text-decoration: none; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-md);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
}
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.scrolled { border-bottom-color: var(--rule); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 14px 0;
}
.header__logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.header__logo:hover { text-decoration: none; }
.header__logo img {
  width: 28px; height: 28px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: space-between;
  width: 44px; height: 44px; padding: 12px 10px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: var(--radius-button);
}
.menu-toggle__bar {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
}

.nav-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  padding: var(--space-md) var(--edge);
  border-bottom: 1px solid var(--rule);
  flex-direction: column;
  gap: var(--space-md);
  font-size: 14.5px;
}
.nav-menu.is-open { display: flex; }
.nav-menu a:not(.nav-cta) {
  color: var(--ink-2);
  font-weight: 500;
  padding: var(--space-sm) 0;
}
.nav-menu a:not(.nav-cta):hover { color: var(--ink); text-decoration: none; }
.nav-menu a[aria-current="page"]:not(.nav-cta) { color: var(--teal); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--teal); transform: translateY(-1px); text-decoration: none; }
.nav-cta svg { width: 12px; height: 12px; fill: currentColor; }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-button);
  font-weight: 600; font-size: 16px;
  min-height: 48px;
  transition: background var(--animation-quick), transform var(--animation-quick);
  text-decoration: none; border: 0;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover, .btn--primary:focus {
  background: var(--teal-deep); transform: translateY(-1px); text-decoration: none;
}

.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  border-radius: 8px;
}
.btn-store:hover { transform: translateY(-2px); text-decoration: none; }
.btn-store img { height: 48px; width: auto; display: block; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: 14px;
  color: var(--ink); font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--rule);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover {
  background: var(--paper-warm);
  border-color: var(--ink-faint);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; }
}
.hero__copy { position: relative; z-index: 2; }

.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-2);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 25%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--green) 0%, transparent); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-size: clamp(44px, 7.6vw, 104px);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-deep);
}
.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero__meta-item { line-height: 1.3; }
.hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__meta span { font-size: 12.5px; color: var(--ink-muted); }

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 520px;
}
.hero__phone {
  position: relative;
  width: min(340px, 80vw);
  z-index: 2;
  filter: drop-shadow(0 40px 60px rgba(11, 40, 50, 0.18))
          drop-shadow(0 12px 24px rgba(11, 40, 50, 0.10));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-12px) rotate(-0.2deg); }
}
.hero__bg {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  pointer-events: none;
}
.hero__bg svg {
  width: 120%; height: 100%; max-height: 600px; opacity: 0.55;
}
.hero__bg text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-faint);
}

/* Callouts are always-light cards (hardcoded palette — must not flip with theme). */
.callout {
  position: absolute;
  background: #fff;
  border: 1px solid #DFD9CA;
  color: #3A3D36;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(11, 40, 50, 0.10),
              0 2px 6px rgba(11, 40, 50, 0.04);
  font-size: 13px;
  z-index: 3;
  animation: float 9s ease-in-out infinite;
}
.callout small {
  display: block;
  color: #595959;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.callout strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.callout--top    { top: 8%; left: -4%; animation-delay: -2s; }
.callout--top    strong { color: #0F6342; }
.callout--mid    { top: 44%; right: -2%; animation-delay: -6s; }
.callout--mid    strong { color: #086570; }
.callout--bottom { bottom: 12%; right: -6%; animation-delay: -4s; }
.callout--bottom strong { color: #8B6008; }

@media (max-width: 720px) {
  .hero__visual { min-height: 480px; }
  .hero__phone { width: min(260px, 72vw); }
  .callout--top { left: 2%; }
  .callout--bottom { right: 2%; }
  .callout--mid { right: 2%; }
  .callout strong { font-size: 18px; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper-warm);
}
.marquee__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  width: max-content;
}
.marquee__track span {
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee__track span::after {
  content: "\2726";
  color: var(--teal);
  font-size: 14px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { max-width: 780px; margin: 0 0 60px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.0;
  margin: 16px 0 20px;
}
.section-head h2 em {
  font-style: italic; font-weight: 400; color: var(--teal-deep);
}
.section-head p {
  font-size: clamp(17px, 1.25vw, 19px);
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 40px 36px;
  position: relative;
  min-height: 260px;
  display: flex; flex-direction: column;
  transition: background 0.3s ease;
}
.feature:hover { background: var(--paper-warm); }
.feature__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.feature p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 42ch;
}
.feature__mark {
  margin-top: auto;
  height: 60px;
  display: flex; align-items: flex-end;
}
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }

.mini-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 89%, var(--rule) 89% 100%);
  display: grid; place-items: center;
  position: relative;
}
.mini-ring::after {
  content: "";
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper);
}
.mini-ring span {
  position: absolute;
  font-size: 11px; font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
}
.feature:hover .mini-ring::after { background: var(--paper-warm); }

.mini-bars { display: flex; gap: 4px; align-items: flex-end; height: 44px; }
.mini-bars i {
  width: 8px; display: block; border-radius: 2px;
}
.mini-bars i:nth-child(1) { height: 30%; background: color-mix(in oklab, var(--teal) 35%, var(--paper-warm)); }
.mini-bars i:nth-child(2) { height: 55%; background: color-mix(in oklab, var(--teal) 55%, var(--paper-warm)); }
.mini-bars i:nth-child(3) { height: 75%; background: color-mix(in oklab, var(--teal) 75%, var(--paper-warm)); }
.mini-bars i:nth-child(4) { height: 90%; background: var(--teal); }
.mini-bars i:nth-child(5) { height: 62%; background: var(--gold); }

.mini-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  background: var(--paper-warm);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  color: var(--ink-2);
}
.mini-chip strong { color: var(--teal-deep); }

.mini-line { width: 100%; height: 40px; position: relative; }
.mini-line svg { width: 100%; height: 100%; }

.mini-compare {
  display: flex; gap: 6px;
}
.mini-compare i {
  display: block;
  width: 52px; height: 44px;
  border-radius: 6px;
  opacity: 0.85;
}
.mini-compare i:first-child { background: linear-gradient(180deg, var(--teal), #2AAFBE); }
.mini-compare i:last-child  { background: linear-gradient(180deg, var(--gold), var(--gold-soft)); }

/* ---------- Story (dark, sticky chart) ---------- */
.story {
  background: var(--navy);
  color: #F4EFE4;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(10, 126, 140, 0.35), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(194, 138, 14, 0.18), transparent 50%);
  pointer-events: none;
}
.story .wrap { position: relative; }
.story .eyebrow { color: var(--gold-soft); }
.story .eyebrow::before { background: var(--gold); }
.story .section-head h2 { color: #F4EFE4; }
.story .section-head p { color: #C5BFB1; }

.story__grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 960px) {
  .story__grid { grid-template-columns: 1fr 1.1fr; }
}

.story__points { display: flex; flex-direction: column; gap: 32px; padding-top: 20px; }
.story__pt {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.story__pt:last-child { border-bottom: 0; padding-bottom: 0; }
.story__pt .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-soft);
  padding-top: 6px;
}
.story__pt h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #F4EFE4;
}
.story__pt p {
  margin: 0;
  color: #C5BFB1;
  line-height: 1.55;
  font-size: 15.5px;
}

.story__visual {
  position: sticky; top: 80px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}
.story__visual-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  color: #B8B0A1; font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story__visual-head .on {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
}
.story__visual-head .on::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 159, 111, 0.25);
}
.story__chart { flex: 1; position: relative; }
.story__chart svg { width: 100%; height: 100%; }
.story__legend {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 16px;
  font-size: 11.5px;
  color: #B8B0A1;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.story__legend span { display: inline-flex; align-items: center; gap: 6px; }
.story__legend i { width: 14px; height: 2px; display: inline-block; }
.swatch--median  { background: #2AAFBE; }
.swatch--band    { background: rgba(42, 175, 190, 0.45); }
.swatch--failure { background: #E36767; }
.swatch--fire    { background: #E8C87A; }

/* ---------- Privacy pills ---------- */
.privacy {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.privacy .section-head h2 em { color: var(--teal-deep); }
.pills {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 720px) { .pills { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .pills { grid-template-columns: repeat(4, 1fr); } }
.pill-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pill-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.pill-card .glyph {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.pill-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.pill-card p { font-size: 14px; color: var(--ink-muted); margin: 0; line-height: 1.5; }

/* ---------- Compare table ---------- */
.compare {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  font-size: 14.5px;
  margin-top: 32px;
  table-layout: fixed;
}
.compare__table th, .compare__table td {
  padding: 18px 20px;
  text-align: left;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.compare__table tr > *:last-child { border-right: 0; }
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.compare__table .hdr {
  background: var(--paper-warm);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.compare__table .hdr.kelo {
  background: var(--ink);
  color: var(--paper);
}
.compare__table .row-label {
  font-weight: 500;
  color: var(--ink);
  width: 32%;
}
.compare__table .yes { color: var(--green); font-weight: 600; }
.compare__table .no  { color: var(--ink-muted); font-weight: 400; }
.compare__table .kelo-cell {
  background: color-mix(in oklab, var(--gold-soft) 20%, var(--paper));
  font-weight: 500;
}
@media (max-width: 720px) {
  .compare__table { font-size: 13px; }
  .compare__table th, .compare__table td { padding: 12px; }
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 860px) { .pricing__grid { grid-template-columns: 1fr 1.1fr; } }
.tier {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 36px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier--pro {
  background: var(--navy);
  border-color: var(--navy);
  color: #F4EFE4;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}
.tier--pro h3, .tier--pro .tier__price { color: #F4EFE4; }
.tier__tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid rgba(194, 138, 14, 0.45);
  border-radius: 999px;
}
.tier h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.tier__kicker {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 0 0 28px;
}
.tier--pro .tier__kicker { color: #B8B0A1; }
.tier__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.tier__price sup { font-size: 22px; vertical-align: top; font-weight: 400; margin-right: 2px; }
.tier__price .cents { font-size: 34px; vertical-align: super; }
.tier__price .per {
  font-size: 16px; color: var(--ink-muted);
  font-weight: 400; font-family: var(--font-sans);
  margin-left: 8px; letter-spacing: 0;
}
.tier--pro .tier__price .per { color: #B8B0A1; }
.tier__annual {
  display: inline-block; margin-bottom: 28px;
  font-size: 13px; color: var(--gold);
  font-family: var(--font-mono);
}
.tier--free .tier__annual { color: var(--ink-muted); }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px;
}
.tier li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-2);
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
  margin: 0;
}
.tier li:first-child { border-top: 0; padding-top: 0; }
.tier--pro li { color: #D4CFC2; border-color: rgba(255, 255, 255, 0.1); }
.tier li::before {
  content: "";
  width: 16px; height: 16px;
  margin-top: 3px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M13.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.793l6.646-6.647a.5.5 0 0 1 .708 0z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M13.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.793l6.646-6.647a.5.5 0 0 1 .708 0z'/></svg>") center / contain no-repeat;
  flex-shrink: 0;
}
.tier--pro li::before { background: var(--gold-soft); }

.tier__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 600; font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.tier__cta:hover { transform: translateY(-2px); text-decoration: none; }
.tier--free .tier__cta {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.tier--free .tier__cta:hover { background: var(--rule-soft); }
.tier--pro .tier__cta {
  background: var(--paper);
  color: var(--ink);
}
.tier--pro .tier__cta:hover { background: #fff; }

.pricing__foot {
  margin-top: 32px; font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}
.pricing__foot a { color: var(--teal); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 26px;
  color: var(--ink-muted);
  transition: transform 0.25s ease, color 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--teal); }
.faq details p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 65ch;
}

/* ---------- Final CTA ---------- */
.final {
  background: var(--paper-warm);
  text-align: center;
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.final__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background:
    radial-gradient(circle at 15% 30%, var(--teal) 0, transparent 40%),
    radial-gradient(circle at 85% 70%, var(--gold) 0, transparent 40%);
  filter: blur(40px);
}
.final > .wrap { position: relative; z-index: 1; }
.final .eyebrow { justify-content: center; display: inline-flex; }
.final h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.0;
  margin: 0 auto 24px;
  max-width: 14ch;
}
.final h2 em { font-style: italic; font-weight: 400; color: var(--teal-deep); }
.final p {
  font-size: 17px; color: var(--ink-2);
  max-width: 48ch; margin: 0 auto 40px;
}

/* ---------- Legal pages ---------- */
.legal { padding: var(--space-3xl) 0; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}
.legal__effective {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xl);
}
.legal__preamble {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
  padding: var(--space-lg);
  border-left: 3px solid var(--teal);
  background: var(--paper-warm);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-bottom: var(--space-2xl);
  line-height: 1.55;
}
.legal h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}
.legal h3 {
  font-size: 18px;
  margin-top: var(--space-lg);
}
.legal a { color: var(--teal); }
.legal a:hover { color: var(--teal-deep); }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: var(--space-4xl) 0;
}
.not-found h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}
.not-found p { color: var(--ink-muted); margin-bottom: var(--space-xl); }

/* ---------- Footer ---------- */
/* Footer is always-dark (hardcoded #11130F — must not flip with theme). */
.footer {
  background: #11130F;
  color: #D4CFC2;
  padding: 80px 0 48px;
  margin-top: 0;
}
.footer a { color: #D4CFC2; }
.footer a:hover { color: #F4EFE4; text-decoration: none; }
.footer__inner {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #F4EFE4; font-weight: 600; font-size: 18px;
  margin-bottom: 14px;
}
.footer__brand img {
  width: 30px; height: 30px; border-radius: 7px;
}
.footer__tagline {
  font-size: 14.5px;
  color: #D4CFC2;
  max-width: 34ch;
  line-height: 1.55;
  margin: 0 0 18px;
}
.footer__domain {
  font-size: 12.5px;
  color: #9A9287;
  margin: 0;
}
.footer h3 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #F4EFE4;
  margin: 0 0 18px;
  line-height: 1.2;
}
.footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px;
}
.footer li { margin: 0; }
.footer__legal {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 28px var(--edge) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #9A9287;
  display: flex; flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.pending { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
