:root {
  --bg: #ffffff;
  --fg: #0a0a0c;
  --muted: #6b6b75;
  --tint: #e8893a;
  --tint-soft: rgba(232, 137, 58, 0.18);
  --accent-bg: #f6f4ef;
  --border: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --hero-bg: #0a0d12;
  --hero-fg: #f6f7fa;
  --hero-muted: rgba(246, 247, 250, 0.55);
  --hero-dim: rgba(246, 247, 250, 0.32);
  --paper: #f9f5ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141823;
    --fg: #f1f2f4;
    --muted: #a0a4ae;
    --tint: #f0a35a;
    --accent-bg: #1c2230;
    --border: rgba(255, 255, 255, 0.08);
    --card: #1c2230;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
    --paper: #221d15;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sub-pages (privacy, support) */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

header.brand .badge {
  width: 44px;
  height: 44px;
  background: var(--tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

header.brand .badge .card {
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  position: relative;
}

header.brand .badge .card::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--tint);
  border-radius: 50%;
}

header.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header.brand .tagline {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

h1.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
}

main h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

main h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 6px;
}

main p { margin: 0 0 16px; }
main ul { padding-left: 20px; margin: 0 0 16px; }
main ul li { margin-bottom: 6px; }

.card-block {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 24px;
}

.card-block p:last-child { margin-bottom: 0; }

.faq-q {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 4px;
}

main > footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

main > footer nav { display: flex; gap: 16px; }

@media (max-width: 480px) {
  main { padding: 36px 18px 64px; }
  h1.page-title { font-size: 28px; }
  p.lead { font-size: 17px; }
}

/* Landing page (index.html) */

body.landing { background: var(--hero-bg); }

.lp-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lp-brand:hover { text-decoration: none; }

.lp-brand .badge {
  width: 36px;
  height: 36px;
  background: var(--tint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-brand .badge .card {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: relative;
}

.lp-brand .badge .card::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--tint);
  border-radius: 50%;
}

.lp-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--hero-fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lp-soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

/* Hero */

.lp-hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 24px 32px 80px;
  position: relative;
  overflow: hidden;
}

.lp-hero::before {
  content: "";
  position: absolute;
  top: 30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232, 137, 58, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.lp-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lp-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tint);
  margin: 0 0 24px;
}

.lp-headline {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--hero-fg);
}

.lp-headline em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--hero-muted);
  margin-top: 6px;
}

.lp-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hero-muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.lp-audience {
  font-size: 14px;
  color: var(--hero-dim);
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}

.lp-audience strong {
  color: var(--hero-muted);
  font-weight: 600;
}

/* Phone mockup — BrainFood Today timeline */

.lp-hero-mock {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-stack {
  position: relative;
  width: 320px;
  height: 600px;
}

.phone {
  width: 280px;
  height: 580px;
  background: linear-gradient(160deg, #2a2e36 0%, #14171c 100%);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  margin: 0 auto;
}

.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fbf8f2;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.phone-timeline {
  padding: 56px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ts-statusbar {
  position: absolute;
  top: 22px;
  left: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}

.ts-header {
  margin-bottom: 6px;
}

.ts-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.ts-date {
  font-size: 12px;
  color: #8a8378;
  margin-top: 2px;
}

.ts-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-photo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.ts-meal {
  flex: 1;
  min-width: 0;
}

.ts-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}

.ts-time {
  font-size: 11px;
  color: #8a8378;
  margin-top: 1px;
}

.ts-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.ts-emoji {
  font-size: 12px;
}

.ts-chip {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  color: #444;
}

.ts-pending .ts-photo {
  opacity: 0.55;
}

.ts-pending .ts-name {
  font-style: italic;
  color: #6b6b75;
}

.ts-tap {
  font-size: 10px;
  color: var(--tint);
  font-weight: 600;
  padding: 2px 8px;
  border: 1px dashed var(--tint);
  border-radius: 999px;
}

.ts-plus {
  position: absolute;
  right: 22px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  background: var(--tint);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(232, 137, 58, 0.35);
}

.ts-plus::before,
.ts-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
}

.ts-plus::before { width: 18px; height: 2.5px; border-radius: 2px; }
.ts-plus::after { width: 2.5px; height: 18px; border-radius: 2px; }

/* Light sections under hero */

.lp-section {
  background: var(--bg);
  color: var(--fg);
  padding: 96px 32px;
}

.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: var(--fg);
}

/* How it works */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lp-step {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint);
  color: white;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.lp-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.lp-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Why / science blocks */

.lp-why-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
}

.lp-research {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-research li {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.lp-research li strong {
  display: block;
  color: var(--fg);
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* From my desk */

.lp-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.lp-story-grid:last-child { margin-bottom: 0; }

.lp-story-grid.reverse { grid-template-columns: 1fr 1.1fr; }
.lp-story-grid.reverse .lp-photo { order: -1; }

.lp-story p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 520px;
}

.lp-story p:last-child { margin-bottom: 0; }

.lp-story p em {
  font-style: italic;
  color: var(--muted);
}

.lp-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--accent-bg);
  border: 1px dashed var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  margin: 0;
}

.lp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  position: absolute;
  inset: 0;
}

.lp-photo-hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.lp-photo-hint code {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  font-weight: 400;
}

.lp-story-callout {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.lp-story-callout p {
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin: 0 auto;
  max-width: 600px;
}

/* Lineage section */

.lp-lineage {
  background: var(--paper);
}

.lp-lineage-art {
  margin: 0 0 56px;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed var(--border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lp-lineage-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.lp-lineage-people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}

.lp-person h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.lp-person p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg);
  opacity: 0.82;
}

.lp-person p em {
  font-style: italic;
  color: var(--muted);
}

/* Footer */

.lp-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 32px 32px 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.lp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.lp-footer nav { display: flex; gap: 18px; }

/* Responsive */

@media (max-width: 880px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 32px;
  }
  .phone-stack {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
  }
  .phone { width: 260px; height: 540px; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-research { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 24px; }
  .lp-hero { padding: 16px 24px 56px; }
  .lp-story-grid,
  .lp-story-grid.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .lp-story-grid.reverse .lp-photo { order: 0; }
  .lp-lineage-people { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .lp-nav { padding: 16px 20px; }
  .lp-soon { font-size: 12px; padding: 6px 12px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-headline { font-size: 38px; }
  .lp-sub { font-size: 17px; }
}
