/* Unveil landing page — palette and type taken from the app itself */
:root {
  --cream: #F5F3EC;
  --cream-2: #EDEAE0;
  --paper: #FAF9F5;
  --ink: #1B1A17;
  --ink-2: #42403A;
  --muted: #63615A;
  --green: #123D26;
  --green-dark: #0C2C1B;
  --green-soft: #DCE8DE;
  --green-text: #1E6B3C;
  --green-on-dark: #9DBBA6;
  --green-body-on-dark: #B9CFBF;
  --red: #9B2C24;
  --red-soft: #F6E2DF;
  --ochre: #A57408;
  --ochre-soft: #F4EDDC;
  --line: rgba(27, 26, 23, 0.1);
  --sans: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
h1, h2, h3, p, dl, dd, dt, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.eyebrow-on-dark { color: var(--green-on-dark); }
/* Section labels sitting directly above a heading need air under them */
.eyebrow + .section-title { margin-top: 24px; }

.section-title {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: pretty;
}

.body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32em;
  text-wrap: pretty;
  margin-top: 22px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--green);
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-dark); color: var(--paper); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 26px; display: block; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: pretty;
}
.accent { color: var(--green); }
.lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-top: 36px;
}
.badge-link { display: inline-block; line-height: 0; }
.badge-link img { display: block; height: 58px; width: auto; }
.get .badge-link img { height: 62px; }
.hero-note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-phone {
  min-width: 0;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-halo {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(400px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green-soft);
  opacity: 0.7;
}
.phone {
  position: relative;
  width: min(330px, 84%);
  padding: 9px;
  border-radius: 52px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(27, 26, 23, 0.45), 0 0 0 1px rgba(27, 26, 23, 0.6);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  object-position: top;
  border-radius: 44px;
  background: var(--cream);
}

/* Verdicts band */
.verdicts { background: var(--green); color: #F2F0E8; }
.verdicts .wrap { padding-top: 56px; padding-bottom: 60px; }
.verdicts .eyebrow { margin-bottom: 32px; display: block; }
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.verdict { padding-top: 20px; border-top: 1px solid rgba(242, 240, 232, 0.22); }
.verdict dt {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.verdict dd { font-size: 14.5px; line-height: 1.55; color: var(--green-body-on-dark); }

/* Two-column sections */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
  padding-top: 92px;
  padding-bottom: 80px;
}
.two-col-center { align-items: center; }
.two-col > div { min-width: 0; }

.tier-stack { display: flex; flex-direction: column; gap: 14px; }
.tier { border-radius: 18px; padding: 24px 26px; }
.tier h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.tier p:last-child { font-size: 14.5px; line-height: 1.55; }
.tier-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tier-1 { background: var(--red-soft); border: 1px solid rgba(155, 44, 36, 0.22); }
.tier-1 .tier-label { color: var(--red); }
.tier-1 p:last-child { color: #6B3F3A; }
.tier-2 { background: var(--ochre-soft); border: 1px solid rgba(165, 116, 8, 0.22); }
.tier-2 .tier-label { color: #8C6207; }
.tier-2 p:last-child { color: #6A5527; }
.tier-3 { background: var(--green-soft); border: 1px solid rgba(18, 61, 38, 0.18); }
.tier-3 .tier-label { color: var(--green); }
.tier-3 p:last-child { color: #2E4A38; }

/* Screens */
.screens { border-top: 1px solid rgba(27, 26, 23, 0.09); }
.screens .wrap { padding-top: 88px; padding-bottom: 88px; }
.screens-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 52px;
}
.screens-head .section-title { max-width: 22em; }
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
}
.screen-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  border: 1px solid rgba(27, 26, 23, 0.12);
  box-shadow: 0 24px 48px -28px rgba(27, 26, 23, 0.35);
  background: var(--cream);
}
.screen-grid figcaption {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.screen-grid .num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--red);
}

/* Rules demo */
.rules {
  background: var(--cream-2);
  border-top: 1px solid rgba(27, 26, 23, 0.09);
  border-bottom: 1px solid rgba(27, 26, 23, 0.09);
}
.rules .two-col { padding-top: 88px; padding-bottom: 88px; }
.try-note { display: block; margin-top: 24px; letter-spacing: 0.1em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  background: transparent;
  color: #77746C;
  border: 1px solid rgba(27, 26, 23, 0.16);
}
.chip[aria-pressed="true"] { color: var(--paper); }
.chip[data-tone="clear"][aria-pressed="true"] { background: var(--green-text); border-color: var(--green-text); }
.chip[data-tone="watch"][aria-pressed="true"] { background: var(--ochre); border-color: var(--ochre); }
.chip[data-tone="flagged"][aria-pressed="true"] { background: var(--red); border-color: var(--red); }

.segmented {
  display: inline-flex;
  gap: 4px;
  margin-top: 26px;
  padding: 4px;
  background: #E2DED2;
  border-radius: 999px;
}
.segmented button {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease;
}
.segmented button[aria-pressed="true"] { background: var(--green); color: #F2F0E8; }

.score-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 48px -32px rgba(27, 26, 23, 0.3);
}
.score-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(27, 26, 23, 0.09);
}
.thumb {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 12px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-align: center;
  line-height: 1.25;
}
.product { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.score-head .mono { font-size: 12.5px; margin-top: 4px; }
.score-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(27, 26, 23, 0.09);
}
.verdict-word {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.score-body .mono { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; }
.score-number { text-align: right; flex: none; }
.score-number p:first-child { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.score-number .mono { letter-spacing: 0.04em; text-transform: none; margin-top: 6px; }
.findings-label { display: block; padding: 20px 0 12px; letter-spacing: 0.16em; }
.findings li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid rgba(27, 26, 23, 0.07);
  font-size: 15px;
  line-height: 1.4;
}
.findings .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-2px); }
.findings .name { flex: 1; min-width: 0; }
.findings .state {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: none;
}
.fineprint { margin-top: 20px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.fineprint.bordered { padding-top: 18px; border-top: 1px solid rgba(27, 26, 23, 0.08); margin-top: 22px; }

.good { color: var(--green-text); }
.watch { color: var(--ochre); }
.bad, .flagged { color: var(--red); }

/* Portion card */
.portion-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
}
.portion-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.portion-head .mono { font-size: 11.5px; letter-spacing: 0.1em; }
.nutrients { display: flex; flex-direction: column; gap: 16px; }
.nutrients li {
  display: grid;
  grid-template-columns: minmax(80px, 1.1fr) 2fr auto;
  gap: 14px;
  align-items: center;
  font-size: 15px;
}
.track { height: 8px; border-radius: 999px; background: #E6E2D7; overflow: hidden; display: block; }
.fill { display: block; height: 100%; border-radius: 999px; }
.fill.good { background: var(--green-text); }
.fill.watch { background: var(--ochre); }
.fill.bad { background: var(--red); }
.nutrients .mono { font-size: 14px; font-weight: 500; text-align: right; min-width: 56px; }

/* Get band */
.get { background: var(--green); color: #F2F0E8; text-align: center; }
.get .wrap { padding-top: 88px; padding-bottom: 88px; }
.get h2 {
  margin: 0 auto;
  max-width: 22em;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: pretty;
}
.get .badge-link { margin-top: 38px; }
.get .eyebrow { display: block; margin-top: 26px; }

/* Footer */
.site-footer { background: var(--cream); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-blurb { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 26em; }
.footer-legal {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.footer-legal p { font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 52em; }
.footer-legal .mono { font-size: 11.5px; letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .hero-phone { order: -1; }
  .phone { width: min(300px, 78%); }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 68px;
    padding-bottom: 60px;
  }
  .rules .two-col, .screens .wrap { padding-top: 68px; padding-bottom: 68px; }
  .screens-head { margin-bottom: 40px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .site-nav { display: none; }
  .header-inner { gap: 16px; justify-content: space-between; }
  .nav-cta { margin-left: auto; }
  .screen-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 340px; margin: 0 auto; }
  .verdict-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lede { font-size: 17px; }
  .body { font-size: 16.5px; }
  .score-card, .portion-card { padding: 22px 20px; }
  .nutrients li { grid-template-columns: minmax(72px, 1fr) 1.6fr auto; gap: 10px; font-size: 14px; }
  .badge-link img, .get .badge-link img { height: 52px; }
  .verdicts .wrap, .get .wrap { padding-top: 56px; padding-bottom: 56px; }
}

@media print {
  .site-header, .nav-cta, .segmented { display: none; }
  body { background: #fff; }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-wrap { max-width: 780px; padding-top: 64px; padding-bottom: 96px; }
.legal-wrap .eyebrow { display: block; margin-bottom: 20px; }
.legal-wrap h1 { max-width: 16em; }
.legal-date { display: block; font-size: 13px; letter-spacing: 0.08em; margin-top: 18px; }

.legal-summary {
  margin-top: 36px;
  padding: 24px 26px;
  background: var(--green-soft);
  border: 1px solid rgba(18, 61, 38, 0.18);
  border-radius: 18px;
}
.legal-summary p { font-size: 16.5px; line-height: 1.6; color: #2E4A38; }
.legal-summary strong { color: var(--green); }

.legal-intro { margin-top: 28px; max-width: none; font-size: 16.5px; color: var(--ink-2); }

.legal-toc {
  margin-top: 40px;
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--muted);
}
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--red); }

.legal section { margin-top: 48px; scroll-margin-top: 90px; }
.legal h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.legal section p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal section p + p { margin-top: 16px; }
.legal section strong { color: var(--ink); font-weight: 600; }

.legal-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.legal-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.legal-list strong { color: var(--ink); }

.table-scroll { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.55;
}
.legal-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}
.legal-table td {
  padding: 16px 18px;
  color: var(--ink-2);
  vertical-align: top;
  border-bottom: 1px solid rgba(27, 26, 23, 0.07);
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table td strong { color: var(--ink); }

.legal-footer {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.site-header .site-nav a[aria-current="page"] { color: var(--green); }

@media (max-width: 620px) {
  .legal-wrap { padding-top: 44px; padding-bottom: 64px; }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .legal section { margin-top: 38px; }
  .legal section p, .legal-list li, .legal-intro { font-size: 15.5px; }
  .legal-summary { padding: 20px; }
  .site-header .site-nav { display: flex; }
  .legal-summary p { font-size: 15.5px; }
}
