/* Distant Kitchens — marketing site styles
   Palette matches the app's own design tokens (see tokens.css in the app repo). */

:root {
  --color-cream: #FAF6EF;
  --color-charcoal: #2B2622;
  --color-tomato: #D9482B;
  --color-sage: #6B7F4E;
  --color-butter: #F2C14E;

  --color-bg: var(--color-cream);
  --color-text: var(--color-charcoal);
  --color-primary: var(--color-tomato);
  --color-primary-contrast: #FFFFFF;
  --color-secondary: var(--color-sage);
  --color-secondary-contrast: #FFFFFF;
  --color-highlight: var(--color-butter);
  --color-surface: #FFFFFF;
  --color-border: #E4DACB;
  --color-muted: #7A7168;

  --font-heading: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 108px;

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

  --shadow-sm: 0 1px 2px rgba(43, 38, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 38, 34, 0.10);
  --shadow-lg: 0 20px 48px rgba(43, 38, 34, 0.16);

  --container-max: 1180px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1F1B18;
    --color-text: #F3ECE2;
    --color-surface: #2A2521;
    --color-border: #3D362F;
    --color-muted: #B4A99C;
    --color-primary: #E8623F;
    --color-primary-contrast: #1F1B18;
    --color-secondary: #85A05D;
    --color-secondary-contrast: #1F1B18;
    --color-highlight: #F2C14E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  }
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); }

img, svg { max-width: 100%; display: block; }

ul, ol { padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section { padding-block: var(--space-8); }
section .container > .section-head { margin-bottom: var(--space-7); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.section-head { max-width: 640px; }
.section-head.center { max-width: 640px; margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

.muted { color: var(--color-muted); }

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

/* Focus states — visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-tomato);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-charcoal);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-3); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-secondary); background: color-mix(in srgb, var(--color-secondary) 10%, transparent); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 0.6em 1em;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.9rem; min-height: 38px; }

.btn-nav {
  padding: 0.65em 1.2em;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand .brand-mark { flex-shrink: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: background 0.15s ease;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-5);
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--color-secondary); }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

@media (max-width: 859px) {
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-6) var(--space-5);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-links {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border);
  }
  .nav-links a {
    display: block;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-cta { margin-top: var(--space-5); }
  .nav-cta .btn-nav { width: 100%; text-align: center; padding: 0.85em 1.2em; font-size: 1rem; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; transform: none; padding: 0; background: transparent; width: auto; height: auto; }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--color-butter) 22%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 15%, color-mix(in srgb, var(--color-sage) 16%, transparent), transparent 70%);
}

.hero .container {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
}

/* Single-column centered hero (coming-soon page) */
.hero .container.hero-centered {
  display: block;
  text-align: center;
  max-width: 640px;
  padding-top: var(--space-8);
  padding-bottom: var(--space-9);
}
.hero-centered .hero-sub { margin-inline: auto; }
.hero-centered .hero-actions { justify-content: center; }

.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); }

.hero h1 { color: var(--color-text); }
.hero h1 .accent { color: var(--color-tomato); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.trust-line {
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.trust-line svg {
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* --- Hero visual: device frames + dotted map --- */
.hero-visual {
  position: relative;
  min-height: 420px;
  min-width: 0;
  overflow: hidden;
}
.hero-copy { min-width: 0; }

.map-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.map-decoration svg { width: 100%; height: 100%; }
.map-path {
  stroke: var(--color-sage);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  fill: none;
  opacity: 0.55;
}
.map-pin circle { fill: var(--color-tomato); }
.map-pin text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  fill: var(--color-text);
}
.cycle-city {
  transition: opacity 0.4s ease;
}
.cycle-city.is-fading {
  opacity: 0;
}

.device-stack {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  height: 100%;
}

/* Laptop, built in CSS */
.laptop {
  width: min(360px, 76%);
  flex-shrink: 0;
  filter: drop-shadow(var(--shadow-lg));
}
.laptop-screen {
  background: #17140F;
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 14px;
}
.laptop-viewport {
  /* Fixed, not theme-reactive: this simulates a screenshot of the app's
     (light) UI, same as the real photos elsewhere on the page — it
     shouldn't invert just because the marketing page is in dark mode. */
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.laptop-base {
  height: 12px;
  background: linear-gradient(#2B2622, #171310);
  border-radius: 0 0 10px 10px;
  position: relative;
}
.laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #0f0d0b;
  border-radius: 0 0 6px 6px;
}

/* Phone, built in CSS, overlapping the laptop */
.phone {
  width: min(150px, 32%);
  flex-shrink: 0;
  margin-left: -13%;
  margin-bottom: -18px;
  filter: drop-shadow(var(--shadow-lg));
}
.phone-body {
  background: #17140F;
  border-radius: 30px;
  padding: 10px;
}
.phone-viewport {
  background: #FFFFFF; /* fixed, not theme-reactive — see .laptop-viewport */
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 16px;
  background: #17140F;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

/* Mockup screen content (shared) */
.mock-screen { width: 100%; height: 100%; display: flex; flex-direction: column; }
.mock-topbar {
  height: 22px;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  flex-shrink: 0;
}
.mock-topbar span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-border); }
.mock-body { flex: 1; padding: 10px; overflow: hidden; }
.mock-body.is-image { padding: 0; }
.mock-body.is-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.mock-recipe-photo {
  height: 34%;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-butter), var(--color-tomato));
  margin-bottom: 8px;
}
.mock-recipe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-line { height: 8px; border-radius: 4px; background: var(--color-border); margin-bottom: 6px; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-90 { width: 90%; }
.mock-line.accent { background: var(--color-sage); height: 6px; width: 40%; }
.mock-chip {
  display: inline-block;
  font-size: 8px;
  color: var(--color-secondary-contrast);
  background: var(--color-secondary);
  padding: 2px 6px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------
   Problem section
   --------------------------------------------------------------------- */
.problem { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.pain-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }

.pain-card {
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
}
.pain-card .pain-icon { color: var(--color-tomato); margin-bottom: var(--space-3); }
.pain-card h3 { margin-bottom: var(--space-2); }
.pain-card p { color: var(--color-muted); }

.problem-kicker {
  text-align: center;
  margin-top: var(--space-7);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-tomato);
}

/* ---------------------------------------------------------------------
   Value pillars
   --------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  text-align: left;
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--color-secondary) 16%, transparent);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}
.pillar:nth-child(2) .pillar-icon { background: color-mix(in srgb, var(--color-tomato) 14%, transparent); color: var(--color-tomato); }
.pillar:nth-child(3) .pillar-icon { background: color-mix(in srgb, var(--color-butter) 30%, transparent); color: #8a6a12; }
.pillar p { color: var(--color-muted); }

/* ---------------------------------------------------------------------
   Features (alternating rows)
   --------------------------------------------------------------------- */
.features { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.feature-row {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7);
}
.feature-row + .feature-row { border-top: 1px dotted var(--color-border); }

@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .feature-row.reverse .feature-visual { order: 2; }
  .feature-row.reverse .feature-text { order: 1; }
}

.feature-text .eyebrow { color: var(--color-tomato); }
.feature-text h3 { font-size: 1.5rem; }
.feature-text p { color: var(--color-muted); font-size: 1.02rem; }
.feature-text ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.feature-text ul li {
  padding-left: 1.6em;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
}
.feature-text ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.feature-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.device-frame {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-cream);
}
.device-frame .mock-topbar { height: 26px; }
.device-frame .mock-body { min-height: 260px; }

.device-frame.has-image .mock-body {
  padding: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.device-frame.has-image .mock-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ---------------------------------------------------------------------
   Feature carousels (grouped, secondary features)
   --------------------------------------------------------------------- */
.carousel {
  padding-block: var(--space-7);
  border-top: 1px dotted var(--color-border);
}

.carousel-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.carousel-head .eyebrow { color: var(--color-tomato); }
.carousel-head h3 { font-size: 1.4rem; }

.carousel-wrap { position: relative; }

.carousel-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1px;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--color-tomato); outline-offset: 4px; }

.carousel-card {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.carousel-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--color-tomato) 12%, transparent);
  color: var(--color-tomato);
  margin-bottom: var(--space-3);
}
.carousel-card h4 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.carousel-card p { font-size: 0.92rem; color: var(--color-muted); margin: 0; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--color-tomato); }

.carousel-arrows { display: flex; gap: var(--space-2); }
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--color-secondary); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

@media (min-width: 640px) {
  .carousel-card { width: 280px; }
}

/* Desktop has room to just show every card — drop the swipe mechanics
   entirely instead of leaving a scroll affordance with nothing to scroll.
   A fixed 2-column grid (rather than flex-wrap at a fixed card width) means
   a 4-card group always lands as a clean 2x2, never 3-then-one-orphan-row,
   regardless of exactly how wide the viewport is. */
@media (min-width: 860px) {
  .carousel-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .carousel-card { width: auto; }
  .carousel-controls { display: none; }
}

/* ---------------------------------------------------------------------
   How it works
   --------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; padding-top: var(--space-3); }
.step-index {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-tomato);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.step p { color: var(--color-muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------------
   Privacy
   --------------------------------------------------------------------- */
.privacy {
  background: var(--color-charcoal);
  color: #F3ECE2;
}
.privacy .eyebrow { color: var(--color-butter); }
.privacy h2 { color: #fff; }
.privacy .section-head p { color: #D8CFC3; }

.privacy-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-7);
}
@media (min-width: 720px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }

.privacy-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.privacy-card h3 { color: #fff; font-size: 1.1rem; }
.privacy-card p { color: #D8CFC3; font-size: 0.95rem; }
.privacy-card .privacy-icon { color: var(--color-butter); margin-bottom: var(--space-3); }

/* ---------------------------------------------------------------------
   Who it's for
   --------------------------------------------------------------------- */
.personas-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .personas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .personas-grid { grid-template-columns: repeat(4, 1fr); } }

.persona-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}
.persona-card .persona-icon {
  width: 48px; height: 48px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-tomato);
  margin-bottom: var(--space-3);
}
.persona-card h3 { font-size: 1.05rem; }
.persona-card p { font-size: 0.9rem; color: var(--color-muted); }

/* ---------------------------------------------------------------------
   Origin story
   --------------------------------------------------------------------- */
.origin .container {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 860px) { .origin .container { grid-template-columns: 0.85fr 1.15fr; } }

.origin-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--color-sage) 30%, var(--color-cream)), color-mix(in srgb, var(--color-butter) 40%, var(--color-cream)));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-4);
  position: relative;
}
.origin-photo .placeholder-icon { color: var(--color-charcoal); opacity: 0.35; margin-bottom: var(--space-3); }

.origin-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-text);
  border-left: 3px solid var(--color-tomato);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
}
.origin-signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-top: var(--space-4);
}

/* ---------------------------------------------------------------------
   Pricing
   --------------------------------------------------------------------- */
.pricing { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-7);
}
.pricing-toggle-wrap span { font-weight: 600; font-size: 0.95rem; color: var(--color-muted); }
.pricing-toggle-wrap span[data-active="true"] { color: var(--color-text); }

.switch {
  position: relative;
  width: 52px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  cursor: pointer;
  flex-shrink: 0;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: transform 0.2s ease;
}
.switch[aria-checked="true"]::before { transform: translateX(22px); }

.save-badge {
  /* Mixed against a fixed white, not "transparent" (which would pick up
     the page's own background) — otherwise this reads fine in light mode
     but the dark-brown text loses contrast against it in dark mode. */
  background: color-mix(in srgb, var(--color-butter) 45%, white);
  color: #6b5410;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-inline: auto;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--color-charcoal);
  color: #F3ECE2;
  border-color: var(--color-charcoal);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card.featured h3,
.price-card.featured .price-amount { color: #fff; }
.price-card.featured .price-note,
.price-card.featured p { color: #D8CFC3; }
.price-card.featured .feature-check { color: var(--color-butter); }
.price-card.featured ul li { color: #F3ECE2; }

.price-badge {
  position: absolute;
  top: -14px; left: var(--space-6);
  background: var(--color-tomato);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--space-3) 0 var(--space-1);
}
.price-amount .currency { font-size: 1.2rem; }
.price-amount .period { font-size: 1rem; font-weight: 400; color: var(--color-muted); }

.price-note { font-size: 0.85rem; color: var(--color-muted); margin-bottom: var(--space-5); }

.price-card ul { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-3); flex: 1; }
.price-card li { display: flex; gap: var(--space-2); font-size: 0.95rem; }
.feature-check { color: var(--color-secondary); flex-shrink: 0; }

.pricing-footnote {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: var(--space-6);
}

.upgrade-note {
  max-width: 800px;
  margin: var(--space-7) auto 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.upgrade-note-text { flex: 1 1 380px; }
.upgrade-note h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.upgrade-note p { font-size: 0.92rem; color: var(--color-muted); }
.upgrade-note .btn { flex-shrink: 0; }

/* ---------------------------------------------------------------------
   Sign-up / waitlist
   --------------------------------------------------------------------- */
.signup {
  background:
    radial-gradient(60% 80% at 90% 20%, color-mix(in srgb, var(--color-tomato) 10%, transparent), transparent 70%),
    var(--color-bg);
}

.signup-card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.signup-card .btn { margin-top: var(--space-6); }

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-secondary);
}
.faq-item[open] summary .chevron { transform: rotate(180deg); }

.faq-item .faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------
   Final CTA
   --------------------------------------------------------------------- */
.final-cta {
  background: color-mix(in srgb, var(--color-tomato) 90%, black);
  color: #fff;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #fff; font-size: 1.1rem; max-width: 560px; margin-inline: auto; }
.final-cta .btn-primary { background: #fff; color: var(--color-tomato); }
.final-cta .btn-secondary { border-color: rgba(255,255,255,0.5); color: #fff; }
.final-cta .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.final-cta .hero-actions { justify-content: center; margin-top: var(--space-6); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--color-charcoal);
  color: #D8CFC3;
  padding-block: var(--space-7) var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer-brand { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); font-size: 1.1rem; color: #fff; margin-bottom: var(--space-3); }
.site-footer p { color: #B4A99C; font-size: 0.9rem; max-width: 32ch; }

.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: #D8CFC3; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #B4A99C;
}

/* ---------------------------------------------------------------------
   Small helpers
   --------------------------------------------------------------------- */
.stack { display: grid; gap: var(--space-2); }
.center-text { text-align: center; }

/* ---------------------------------------------------------------------
   Legal pages (Privacy Policy, Terms of Service)
   --------------------------------------------------------------------- */
.legal-header { padding-block: var(--space-7) var(--space-5); }
.legal-header .eyebrow { margin-bottom: var(--space-2); }
.legal-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal-updated { color: var(--color-muted); font-size: 0.9rem; }

.legal-content { padding-block: 0 var(--space-8); }
.legal-content .prose { max-width: 720px; }
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: var(--space-7);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); }
.legal-content li { color: var(--color-text); }
.legal-content .muted-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ---- Comparison + Founding 50 ---------------------------------------- */
.compare { padding-block: var(--space-12, 80px); }
@media (min-width: 720px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .compare-grid { grid-template-columns: repeat(4, 1fr); } }

.founding { padding-block: var(--space-8, 40px) 0; }
.founding-banner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-8, 40px) var(--space-6, 24px);
  background: color-mix(in srgb, var(--color-highlight) 22%, var(--color-surface));
  border: 2px solid var(--color-highlight);
  border-radius: 20px;
}
.founding-banner h2 { margin-bottom: var(--space-3, 12px); }
.founding-banner p { max-width: 62ch; margin: 0 auto var(--space-6, 24px); }
.founding-banner .btn { max-width: 100%; white-space: normal; }

.hero-actions .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---- App comparison table -------------------------------------------- */
.compare-apps { padding-block: var(--space-12, 80px); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); }
.cmp-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 0.95rem; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.cmp-table thead th { font-weight: 700; position: sticky; top: 0; background: var(--color-surface); }
.cmp-table tbody th { font-weight: 600; width: 22%; position: sticky; left: 0; background: var(--color-surface); z-index: 1; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table .cmp-us { background: color-mix(in srgb, var(--color-highlight) 18%, var(--color-surface)); }
.cmp-table tbody th.cmp-us { background: var(--color-surface); }
.cmp-yes { color: var(--color-secondary); font-weight: 800; }
.cmp-no { color: var(--color-muted); }
.cmp-table small { display: block; color: var(--color-muted); }
.cmp-note { max-width: 70ch; margin: var(--space-4, 16px) auto 0; font-size: 0.875rem; color: var(--color-muted); text-align: center; }
.hero-legal { font-size: 0.85rem; color: var(--color-muted); margin-top: var(--space-4, 16px); max-width: 52ch; }

/* Comparison picker: desktop shows everything; phones show us vs one app */
.cmp-picker { display: none; }
@media (max-width: 719px) {
  .cmp-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: var(--space-4, 16px); }
  .cmp-picker-label { font-weight: 600; width: 100%; }
  .cmp-chip { font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
  .cmp-chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
  .cmp-table.is-js { min-width: 0; table-layout: fixed; font-size: 0.9rem; }
  .cmp-table.is-js th, .cmp-table.is-js td { padding: 10px; }
  .cmp-table.is-js tbody th { width: 34%; position: static; }
  .cmp-table.is-js :is(th, td):nth-child(n+3) { display: none; }
  .cmp-table.is-js[data-compact="3"] :is(th, td):nth-child(3),
  .cmp-table.is-js[data-compact="4"] :is(th, td):nth-child(4),
  .cmp-table.is-js[data-compact="5"] :is(th, td):nth-child(5),
  .cmp-table.is-js[data-compact="6"] :is(th, td):nth-child(6),
  .cmp-table.is-js[data-compact="7"] :is(th, td):nth-child(7) { display: table-cell; }
  .cmp-table.is-js thead th { position: static; }
}

/* ---- Install page ------------------------------------------------------ */
.legal-header .hero-sub { margin-top: var(--space-3, 12px); max-width: 62ch; }
.inst-grid { display: grid; gap: var(--space-5, 20px); grid-template-columns: 1fr; margin-bottom: var(--space-8, 40px); }
@media (min-width: 860px) { .inst-grid { grid-template-columns: 1fr 1fr; } }
.inst-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: var(--space-6, 24px); }
.inst-card h2 { margin-top: 0; }
.inst-steps { margin: var(--space-4, 16px) 0; padding-left: 1.4em; display: grid; gap: var(--space-3, 12px); list-style: decimal; }
.inst-ico { display: inline-block; vertical-align: -3px; color: var(--color-primary); }
.inst-card .muted { margin: var(--space-2, 8px) 0 0; }
.inst-more { max-width: 720px; }
.cmp-table small a { color: var(--color-primary); }

/* ---- Founding banner now sits inside pricing --------------------------- */
.pricing .founding-banner { margin: 0 auto var(--space-8, 40px); }

/* ---- Sticky call-to-action bar (phones only) --------------------------- */
.sticky-cta { display: none; }
@media (max-width: 719px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    border-top: 1px solid var(--color-border);
    transform: translateY(110%); transition: transform 0.2s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Shorter features: 6 cards (3x2 on desktop), compact rows on phones --- */
@media (min-width: 860px) {
  .carousel-track { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 719px) {
  .feature-row { gap: var(--space-4, 16px); padding-block: var(--space-6, 24px); }
  .feature-text ul { display: none; }
  .device-frame.has-image .mock-body { aspect-ratio: 16 / 8; }
  .feature-text h3 { font-size: 1.25rem; }
}
