/* Nomlet — tokens mirror the app (src/theme): cream surfaces, teal ink, orange for the one primary action. */
:root {
  --teal: #013c42;
  --teal-deep: #012b30;
  --orange: #f2955a;
  --orange-deep: #d97a3f;
  --leaf: #8cc433;
  --cream: #fdf4e0;
  --cream-deep: #f3e6c9;
  --ink: #1a2426;
  --ink-muted: #5b6b6e;
  --ink-faint: #9aa7a9;
  --line: #e6e0d1;
  --white: #ffffff;
  --ok: #2f7a3a;
  --ok-soft: #dff2e1;
  --warn: #9a6410;
  --warn-soft: #fcefd2;
  --danger: #c23b3b;
  --danger-soft: #fbe1e1;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1040px;
  --r-control: 12px;
  --r-card: 16px;
  --r-tile: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "tnum";
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 44px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; margin-top: 32px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px 22px; padding: 0; }
li { margin: 6px 0; }
.muted { color: var(--ink-muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--ink-muted); font-size: 16px; }
.nav a:hover { color: var(--ink); }
.nav a.cta { color: var(--teal); background: var(--orange); padding: 10px 16px; border-radius: var(--r-control); font-weight: 500; }
.nav a.cta:hover { background: var(--orange-deep); color: var(--teal-deep); }
@media (max-width: 640px) { .nav a:not(.cta) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 64px; }
.hero h1 { margin-bottom: 16px; }
.hero .lede { font-size: 20px; color: var(--ink-muted); margin-bottom: 28px; max-width: 34ch; }
.hero .tile { position: relative; background: var(--teal); border-radius: var(--r-tile); padding: 32px; }
.hero .tile img { width: 100%; height: auto; border-radius: var(--r-card); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-control); text-decoration: none; font-weight: 500; font-size: 17px; border: 1px solid transparent; }
.btn.primary { background: var(--orange); color: var(--teal); }
.btn.primary:hover { background: var(--orange-deep); color: var(--teal-deep); }
.btn.secondary { background: var(--cream); color: var(--teal); border-color: var(--cream-deep); }
.btn.secondary:hover { background: var(--cream-deep); }
@media (max-width: 760px) {
  h1 { font-size: 34px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 48px; }
  .hero .tile { order: 2; max-width: 360px; }
}

/* Sections */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.step .n { font-size: 14px; color: var(--ink-faint); margin-bottom: 8px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* The one rich moment on the landing page: an example score. */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.result { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 16px; }
.result .overall { display: flex; align-items: center; gap: 16px; }
.score { width: 88px; height: 88px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 600; flex: 0 0 auto; }
.score.ok { background: var(--ok-soft); color: var(--ok); }
.score.warn { background: var(--warn-soft); color: var(--warn); }
.score.sm { width: 40px; height: 40px; font-size: 17px; }
.result .label { font-size: 14px; color: var(--ink-muted); }
.result .food { font-size: 24px; font-weight: 500; line-height: 1.2; }
.result .verdict { font-weight: 500; }
.result .child { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.result .child p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.result .child strong { font-weight: 500; color: var(--ink); }
@media (max-width: 760px) { .sample { grid-template-columns: 1fr; } }

.note { font-size: 15px; color: var(--ink-muted); }

/* Legal / text pages */
.page { max-width: 720px; padding: 32px 0 64px; }
.page .kicker { font-size: 14px; color: var(--ink-muted); margin-bottom: 8px; }
.page h1 { font-size: 36px; }
.page .meta { color: var(--ink-faint); font-size: 15px; margin-bottom: 32px; }
.page .summary { background: var(--cream); border-radius: var(--r-card); padding: 20px; margin-bottom: 32px; }
.page .summary p { margin: 0; }
.page h2 { font-size: 22px; margin-top: 40px; }
.page .toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 48px; font-size: 15px; color: var(--ink-muted); }
.foot .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }
