/* Vantry — editorial grocery-green palette, Fraunces display over IBM Plex Sans body.
   Layout: a single reading column with full-bleed section bands and hairline rules. */
:root {
  --paper: #F5F7F2;
  --surface: #FFFFFF;
  --ink: #101E17;
  --muted: #566A5E;
  --accent: #0E7C4A;
  --accent-soft: #DCEEE4;
  --line: #D9E0D8;
  --warn: #C2410C;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --column: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1410;
    --surface: #141E18;
    --ink: #E9F1EB;
    --muted: #9BB0A3;
    --accent: #55C98C;
    --accent-soft: #163526;
    --line: #26352C;
    --warn: #F0905E;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0C1410;
  --surface: #141E18;
  --ink: #E9F1EB;
  --muted: #9BB0A3;
  --accent: #55C98C;
  --accent-soft: #163526;
  --line: #26352C;
  --warn: #F0905E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), 1120px);
  margin-inline: auto;
}

.prose { max-width: var(--column); display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.4rem; font-family: var(--body); font-weight: 600; font-size: var(--step-0); letter-spacing: 0; }
.prose ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li::marker { color: var(--accent); }

/* ---- header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.site-head nav { display: flex; gap: 1.1rem; font-size: var(--step--1); flex-wrap: wrap; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero p.lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-copy { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  font-size: var(--step-0);
}
:root[data-theme="dark"] .btn:not(.ghost),
:root:not([data-theme="light"]) .btn:not(.ghost) { color: #07140D; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-row { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.note { font-size: var(--step--1); color: var(--muted); }

/* ---- phone ---- */
.phone {
  justify-self: center;
  width: min(300px, 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  padding: 0.75rem;
  box-shadow: 0 24px 60px -30px rgba(16, 30, 23, 0.45);
}
.phone-screen {
  border-radius: 24px;
  background: var(--paper);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.phone-tabs { display: flex; gap: 0.3rem; font-size: 0.68rem; color: var(--muted); }
.phone-tabs span { padding: 0.2rem 0.5rem; border-radius: 999px; }
.phone-tabs .on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem;
}
.row .thumb { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); flex: none; }
.row .meta { display: flex; flex-direction: column; min-width: 0; }
.row .meta b { font-size: 0.82rem; }
.row .meta small { color: var(--muted); font-size: 0.68rem; }
.grade {
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.8rem;
  flex: none;
}
.grade.a { background: #0E7C4A; }
.grade.e { background: #E03D11; }
.lights { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.7rem; }
.light { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.light i { width: 8px; height: 8px; border-radius: 50%; flex: none; font-style: normal; }
.light b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.dot-high { background: #E03D11; }
.dot-med { background: #E8A317; }
.dot-low { background: #0E7C4A; }
.swap {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.swap b { color: var(--ink); display: block; font-size: 0.76rem; margin-bottom: 0.15rem; }

/* ---- bands ---- */
.band { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band.tint { background: var(--surface); }
.band-head { display: flex; flex-direction: column; gap: 0.6rem; max-width: 52ch; margin-bottom: 2.4rem; }
.band-head p { color: var(--muted); }

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: var(--step--1);
  color: var(--muted);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sources b { color: var(--ink); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature { background: var(--paper); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.band.tint .feature { background: var(--surface); }
.feature svg { width: 26px; height: 26px; color: var(--accent); }
.feature p { color: var(--muted); font-size: var(--step--1); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 0.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1;
}
.step p { color: var(--muted); font-size: var(--step--1); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; background: var(--paper); display: flex; flex-direction: column; gap: 0.9rem; }
.band.tint .plan { background: var(--surface); }
.plan.lead-plan { border-color: var(--accent); box-shadow: 0 18px 40px -32px var(--accent); }
.price { font-family: var(--display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.plan ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: var(--step--1); color: var(--muted); }
.plan ul li::marker { color: var(--accent); }

details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: var(--step-1); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.7rem; color: var(--muted); max-width: 62ch; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.2rem;
  border-radius: 0 12px 12px 0;
  font-size: var(--step--1);
}
:root[data-theme="dark"] .callout, :root:not([data-theme="light"]) .callout { color: var(--ink); }
.todo { background: #FFE9B8; color: #6B4800; padding: 0.1rem 0.4rem; border-radius: 4px; font-weight: 600; }

/* ---- page headers for the legal pages ---- */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.page-head p { color: var(--muted); }
.legal { padding-bottom: 4rem; }
.legal h2 { font-size: var(--step-2); }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 600; }
.legal td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

footer.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; font-size: var(--step--1); color: var(--muted); }
footer.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
footer.site-foot nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
footer.site-foot a { color: var(--muted); text-decoration: none; }
footer.site-foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  /* Headline first on a phone: the launch announcement is the news, and a screenshot
     with no caption above it pushed the whole thing below the fold. */
  .phone { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
