/* Gramuscle landing page. Tokens and sizes follow the approved Final-* boards (CLAUDE.md "Design rules"). */

@font-face { font-family: Fredoka; src: url("/fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url("/fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url("/fonts/Nunito-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Nunito; src: url("/fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0D121C;
  --surface: #1C2740;
  --raised: #24314F;
  --hairline: #33456B;
  --bar: #3A4763;
  --iron: #5B6987;
  --text: #F4F7FB;
  --body: #C9D2E3;
  --muted: #9AA8C4;
  --faint: #6F7E9C;
  --lime: #C8F560;
  --lime-edge: #8DBF1F;
  --coral: #FF8A6E;
  --amber: #FFB547;
  --sky: #5CC8FF;
  --pink: #FF7AA8;
  --display: Fredoka, "Trebuchet MS", sans-serif;
  --sans: Nunito, "Trebuchet MS", "Segoe UI", sans-serif;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 500 17px/1.55 var(--sans);
}
img, svg { display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #E2FF9A; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; color: var(--text); }
p { margin: 0; }
.lime { color: var(--lime); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand:hover { color: var(--text); }
.head-nav { display: flex; gap: 22px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.head-nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.head-nav a:hover { color: var(--text); }

/* Hero */
.hero { overflow: hidden; padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 44px; }
.hero h1 { font-size: 40px; line-height: 1.06; letter-spacing: -0.5px; text-wrap: balance; }
.hero h1 > span { display: block; }
.lead { margin-top: 16px; max-width: 34em; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--muted); }
.soon { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); }
.soon-dot { width: 26px; height: 12px; border-radius: 6px; background: var(--lime); flex-shrink: 0; }

/* The Today screen, rebuilt in HTML (board Final-Today) */
.today {
  --ill: 52px;   /* food illustration */
  --ph: 140px;   /* plate height */
  --k: 1;        /* plate width scale; 1.55 px per gram on the board */
  --gap: 6px;
  position: relative;
}
.today-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 600; font-size: 15px; }
.today-label { color: var(--muted); }
.streak { color: var(--coral); }
.eaten { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
.eaten-num { font-family: var(--display); font-weight: 700; font-size: 104px; line-height: 0.85; letter-spacing: -3px; color: var(--lime); }
.eaten-of { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted); }
.pills { margin-top: 20px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; }
.pill { display: block; height: 12px; border-radius: 6px; background: var(--surface); border: 2px solid var(--hairline); }
.pill.on { background: var(--lime); border-color: var(--lime); }

.rack { position: relative; margin-top: 22px; }
.bar {
  position: absolute;
  left: calc(-1 * var(--gutter));
  right: -100vw;
  top: calc(var(--ill) + 2px + var(--ph) / 2 - 6px);
  height: 12px;
  background: var(--bar);
}
.rack-row { position: relative; display: flex; align-items: flex-start; gap: var(--gap); }
.sleeve, .stop { flex-shrink: 0; background: var(--iron); }
.sleeve { width: 14px; height: 56px; border-radius: 4px; margin-top: calc(var(--ill) + 2px + var(--ph) / 2 - 28px); }
.stop { width: 12px; height: 70px; border-radius: 3px; margin-top: calc(var(--ill) + 2px + var(--ph) / 2 - 35px); }
.col { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: var(--ill); }
.col img { width: var(--ill); height: var(--ill); }
.plate {
  width: max(calc(28px * var(--k)), calc(var(--g) * 1.55px * var(--k)));
  height: var(--ph);
  border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ground);
}
.c-lime { background: var(--lime); }
.c-sky { background: var(--sky); }
.c-amber { background: var(--amber); }
.c-pink { background: var(--pink); }
.c-muted { background: var(--muted); }

/* Sections */
.block { padding: 76px 0 0; }
.block h2 { font-size: 34px; line-height: 1.1; }
.intro { margin-top: 14px; max-width: 36em; font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--muted); }

/* How it works */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.step { border-top: 1px solid var(--surface); padding: 26px 0 30px; }
.step-num { display: block; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--lime); }
.step h3 { margin-top: 12px; font-size: 22px; line-height: 1.2; }
.step > p { margin-top: 8px; max-width: 34em; color: var(--body); font-weight: 700; font-size: 16px; line-height: 1.55; }
.step-art { margin-top: 22px; }

.ways { list-style: none; margin: 0; padding: 0; }
.ways li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--surface); font-family: var(--display); font-weight: 600; font-size: 18px; }
.ways li:last-child { border-bottom: 0; }
.way-icon { width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--hairline); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.way-lime { background: var(--lime); border-color: var(--lime); }

.check { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.check img { width: 96px; height: 96px; margin-left: -8px; }
.check-num { display: flex; flex-direction: column; }
.check-num .big { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 0.9; letter-spacing: -2px; color: var(--lime); }
.check-num .unit { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--muted); }
.check-name { grid-column: 1 / -1; margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 19px; }

.legend-title { font-size: 14px; font-weight: 800; color: var(--muted); }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--body); }
.swatch { width: 28px; height: 40px; border-radius: 7px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--ground); flex-shrink: 0; }

/* Why */
.why-grid { display: grid; gap: 30px; }
.hair-list { list-style: none; margin: 0; padding: 0; }
.hair-list li { border-top: 1px solid var(--surface); padding: 14px 0; font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--muted); }
.hair-list li:last-child { border-bottom: 1px solid var(--surface); }
.hair-list strong { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--text); margin-right: 4px; }
.leaves-out { margin-top: 24px; max-width: 36em; font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--muted); }
.faint-label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 800; color: var(--faint); }

/* Pricing */
.price-line { margin-top: 16px; max-width: 26em; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--text); }
.price-line .num { font-weight: 700; }
.price-note { margin-top: 14px; max-width: 38em; font-weight: 700; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; gap: 22px; }
.faq { margin: 0; }
.qa { border-top: 1px solid var(--surface); padding: 18px 0; }
.qa:last-child { border-bottom: 1px solid var(--surface); }
.qa dt { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.qa dd { margin: 6px 0 0; max-width: 40em; font-weight: 700; font-size: 16px; line-height: 1.55; color: var(--body); }

/* Footer */
.site-foot { margin-top: 88px; border-top: 1px solid var(--surface); padding: 18px 0 30px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.foot-copy { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.foot-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--text); }

/* Small phones */
@media (max-width: 559px) {
  .head-nav { display: none; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .today { --ill: 44px; --ph: 124px; --k: 0.85; --gap: 5px; }
  .hero h1 { font-size: 34px; }
  .eaten-num { font-size: 88px; }
}

/* Tablet and up */
@media (min-width: 720px) {
  .hero h1 { font-size: 54px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
  .step { padding-bottom: 0; }
  .block h2 { font-size: 42px; }
  .price-line { font-size: 30px; }
}

/* Desktop */
@media (min-width: 960px) {
  .hero { padding: 64px 0 12px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: center; }
  .hero h1 { font-size: 66px; }
  .lead { font-size: 19px; }
  .today { --ill: 64px; --ph: 176px; --k: 1.25; --gap: 7px; }
  .eaten-num { font-size: 140px; }
  .eaten-of { font-size: 22px; }
  .bar { left: 0; border-radius: 6px 0 0 6px; }
  .block { padding-top: 120px; }
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; }
}
