/* ==========================================================================
   refood.com — Food Waste Ledger
   Part 1: tokens, reset, marketing surfaces
   ========================================================================== */

:root {
  --ink:        #14181a;
  --ink-2:      #3d474b;
  --ink-3:      #6d7a80;
  --ink-4:      #96a1a6;
  --line:       #e3e6e4;
  --line-2:     #d3d8d5;
  --paper:      #fdfdfb;
  --paper-2:    #f6f7f3;
  --paper-3:    #eef1ea;
  --forest:     #1b5e46;
  --forest-2:   #144a37;
  --forest-ink: #0f3a2b;
  --moss:       #87a887;
  --lime:       #d9e9a8;
  --lime-soft:  #eef5d9;
  --clay:       #b4593c;
  --clay-soft:  #fbeae3;
  --amber:      #b58500;

  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --shadow-s: 0 1px 2px rgba(20,24,26,.05), 0 1px 1px rgba(20,24,26,.03);
  --shadow-m: 0 8px 24px -12px rgba(20,24,26,.18), 0 2px 6px rgba(20,24,26,.04);
  --shadow-l: 0 28px 60px -28px rgba(20,24,26,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -.022em; line-height: 1.14; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--forest-ink); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r-s); transition: top .18s ease; }
.skip:focus { top: 16px; color: #fff; }

/* ---------- header (shared) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,253,251,.88);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 25px; height: 25px; flex: none; background: var(--forest); border-radius: 125% 40% 125% 40%; display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.brand-word { font-weight: 660; letter-spacing: -.03em; font-size: 1.04rem; }
.brand-word span { color: var(--ink-3); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .91rem; font-weight: 500; }
.nav a:hover { color: var(--forest); }
.head-cta { display: flex; align-items: center; gap: 9px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: var(--r-s); border: 1px solid transparent;
  font-size: .92rem; font-weight: 560; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .12s, box-shadow .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--paper-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: transparent; padding-inline: 12px; }
.btn-quiet:hover { background: var(--paper-3); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 13px; font-size: .85rem; }
.btn-lg { height: 48px; padding: 0 24px; font-size: .97rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--clay); color: #fff; }
.btn-danger:hover { background: #9d4b31; color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(880px 440px at 84% -10%, rgba(217,233,168,.44), transparent 62%),
    radial-gradient(680px 380px at 4% 2%, rgba(135,168,135,.15), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 9px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .775rem; font-weight: 550; color: var(--ink-2); box-shadow: var(--shadow-s);
  text-decoration: none;
}
.eyebrow b { color: var(--forest); font-weight: 640; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 3px rgba(135,168,135,.18); flex: none; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.45rem); letter-spacing: -.035em; line-height: 1.06; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--forest); background: linear-gradient(180deg, transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding-inline: 2px; }
.hero-sub { margin-top: 20px; max-width: 46ch; font-size: 1.06rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: .84rem; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.hero-note svg { flex: none; color: var(--moss); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 42px; border-top: 1px solid var(--line); }
.stat { padding: 17px 18px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat-k { font-size: 1.5rem; font-weight: 640; letter-spacing: -.03em; color: var(--forest-ink); font-variant-numeric: tabular-nums; }
.stat-v { font-size: .79rem; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }

/* ---------- mini ledger preview ---------- */
.mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-l); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock-title { font-size: .74rem; color: var(--ink-3); font-family: var(--mono); letter-spacing: .02em; }
.mock-body { padding: 15px; }
.mock-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock-h { font-size: .94rem; font-weight: 610; letter-spacing: -.02em; }
.mock-date { font-size: .73rem; color: var(--ink-4); font-family: var(--mono); }

.ledger { list-style: none; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.ledger li:last-child { border-bottom: 0; }
.l-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.l-tag { font-family: var(--mono); font-size: .61rem; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; flex: none; background: var(--paper-3); color: var(--ink-3); }
.l-tag.prep { background: var(--lime-soft); color: #4d6b1f; }
.l-tag.spoil { background: var(--clay-soft); color: var(--clay); }
.l-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.l-w { font-variant-numeric: tabular-nums; color: var(--ink-4); font-size: .79rem; font-family: var(--mono); }
.l-c { font-variant-numeric: tabular-nums; font-weight: 570; color: var(--clay); min-width: 52px; text-align: right; }

.mock-total { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 12px 14px; background: var(--forest-ink); border-radius: var(--r-m); color: #fff; }
.mock-total .k { font-size: .73rem; color: rgba(255,255,255,.6); }
.mock-total .v { font-size: 1.3rem; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mock-total .chip { font-size: .69rem; font-weight: 560; padding: 3px 8px; border-radius: 999px; background: rgba(217,233,168,.16); color: var(--lime); border: 1px solid rgba(217,233,168,.24); }
.mock-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; font-size: .73rem; color: var(--ink-3); }
.mock-foot svg { color: var(--moss); flex: none; }

/* ---------- sections ---------- */
.sec { padding: 92px 0; }
.sec-tight { padding: 68px 0; }
.sec-head { max-width: 640px; }
.sec-kicker { display: inline-block; margin-bottom: 13px; font-family: var(--mono); font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); font-weight: 600; }
.sec h2 { font-size: clamp(1.7rem, 2.85vw, 2.25rem); letter-spacing: -.03em; }
.sec-sub { margin-top: 14px; color: var(--ink-2); font-size: 1rem; max-width: 56ch; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items: start; }
.pain { list-style: none; display: grid; }
.pain li { display: grid; grid-template-columns: 28px 1fr; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.pain li:last-child { border-bottom: 1px solid var(--line); }
.pain-n { font-family: var(--mono); font-size: .71rem; color: var(--ink-4); padding-top: 3px; font-variant-numeric: tabular-nums; }
.pain-t { font-weight: 580; letter-spacing: -.012em; font-size: .97rem; }
.pain-d { font-size: .885rem; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }
.pain-out { margin-top: 20px; padding: 15px 17px; border-radius: var(--r-m); background: var(--lime-soft); border: 1px solid #dbe9bb; font-size: .9rem; color: #3f5716; line-height: 1.55; }
.pain-out b { color: #2d3f0e; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 20px 24px; box-shadow: var(--shadow-s); transition: border-color .18s, box-shadow .18s, transform .18s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.card-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-3); color: var(--forest); margin-bottom: 13px; }
.card h3 { font-size: 1rem; letter-spacing: -.02em; }
.card p { margin-top: 7px; font-size: .89rem; color: var(--ink-3); line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 44px; }
.step { padding: 0 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: .73rem; font-weight: 600; letter-spacing: .04em; color: var(--forest); margin-bottom: 13px; display: inline-flex; align-items: center; gap: 7px; }
.step-n::after { content: ""; width: 20px; height: 1px; background: var(--line-2); }
.step h3 { font-size: 1.03rem; }
.step p { margin-top: 8px; font-size: .9rem; color: var(--ink-3); line-height: 1.6; }

.band { background: var(--forest-ink); color: #fff; border-radius: var(--r-l); padding: 44px 46px; overflow: hidden; position: relative; }
.band::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(217,233,168,.15), transparent 70%); pointer-events: none; }
.band .sec-kicker { color: var(--lime); }
.band h2 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.band p { color: rgba(255,255,255,.72); margin-top: 13px; font-size: .96rem; }

/* two-column band: copy left, document mock right */
.band-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; position: relative; }
.band-copy .band-rows { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 26px; }
.band-rows { margin-top: 30px; }
.band-row { border-top: 1px solid rgba(255,255,255,.16); padding-top: 13px; }
.band-row .k { font-size: .905rem; font-weight: 570; color: #fff; }
.band-row .v { font-size: .81rem; color: rgba(255,255,255,.6); margin-top: 3px; line-height: 1.5; }

/* the printed-record mock */
.band-side { min-width: 0; }
.doc-card { background: #fff; color: var(--ink); border-radius: 10px; padding: 22px 22px 16px; box-shadow: 0 24px 48px -18px rgba(0,0,0,.45); transform: rotate(.6deg); max-width: 360px; margin-left: auto; }
.doc-head { display: flex; align-items: center; justify-content: space-between; }
.doc-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 620; font-size: .82rem; color: var(--forest-ink); }
.doc-mark { width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--forest-ink); position: relative; flex: none; }
.doc-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lime); }
.doc-stamp { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--forest-ink); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; }
.doc-title { font-size: 1.06rem; font-weight: 660; margin-top: 14px; letter-spacing: -.01em; }
.doc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; padding: 12px 0; border-block: 1px solid var(--line); }
.doc-grid i { display: block; font-style: normal; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); }
.doc-grid b { display: block; font-size: .98rem; font-weight: 660; margin-top: 3px; }
.doc-bars { display: grid; gap: 9px; margin-top: 13px; }
.doc-bar { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-size: .72rem; color: var(--ink-2); }
.doc-bar em { display: block; height: 7px; border-radius: 4px; background: var(--forest); opacity: .85; min-width: 8px; }
.doc-bar:nth-child(2) em { opacity: .65; }
.doc-bar:nth-child(3) em { opacity: .5; }
.doc-bar:nth-child(4) em { opacity: .35; }
.doc-sign { margin-top: 18px; }
.doc-line { height: 1px; background: var(--ink-3); width: 64%; }
.doc-sign span { display: block; font-size: .66rem; color: var(--ink-4); margin-top: 4px; }
.doc-foot { font-size: .62rem; color: var(--ink-4); margin-top: 12px; padding-top: 9px; border-top: 1px dashed var(--line); line-height: 1.5; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-s); }
.plan-hero { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest), var(--shadow-m); position: relative; }
.plan-flag { position: absolute; top: -11px; left: 22px; background: var(--forest); color: #fff; font-size: .66rem; font-weight: 620; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.plan-name { font-size: .92rem; font-weight: 600; }
.plan-desc { font-size: .84rem; color: var(--ink-3); margin-top: 5px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 16px 0 3px; }
.plan-price .amt { font-size: 2rem; font-weight: 640; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: .83rem; color: var(--ink-3); }
.plan-cap { font-size: .77rem; color: var(--ink-4); }
.plan-feats { list-style: none; margin: 18px 0 22px; display: grid; gap: 8px; }
.plan-feats li { display: grid; grid-template-columns: 14px 1fr; gap: 9px; font-size: .865rem; color: var(--ink-2); line-height: 1.5; }
.plan-feats svg { color: var(--forest); margin-top: 3px; }
.plan .btn { margin-top: auto; }

.trust { display: flex; flex-wrap: wrap; gap: 9px 24px; align-items: center; justify-content: center; margin-top: 30px; }
.trust span { font-size: .81rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--moss); flex: none; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; font-weight: 565; font-size: .975rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--forest); }
.faq .chev { flex: none; transition: transform .2s; color: var(--ink-3); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 0 20px; max-width: 68ch; font-size: .92rem; color: var(--ink-2); line-height: 1.65; }
.faq .ans p + p { margin-top: 10px; }

/* ---------- footer ---------- */
.site-foot { padding: 52px 0 30px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.foot-brand p { margin-top: 11px; font-size: .85rem; color: var(--ink-3); max-width: 32ch; line-height: 1.55; }
.foot-col h4 { font-size: .77rem; font-weight: 620; color: var(--ink); margin-bottom: 11px; }
.foot-col ul { list-style: none; display: grid; gap: 7px; }
.foot-col a { font-size: .85rem; color: var(--ink-3); text-decoration: none; }
.foot-col a:hover { color: var(--forest); text-decoration: underline; }
.disclaimer { font-size: .745rem; color: var(--ink-4); line-height: 1.6; padding: 13px 15px; border-radius: var(--r-s); background: var(--paper-2); border: 1px solid var(--line); margin-top: 22px; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: .77rem; color: var(--ink-4); }
.foot-meta a { color: var(--ink-3); }

/* build stamp — markup ships with clean text so it reads fine without JS;
   the script upgrades it to the generated version + date. */
[data-build] { white-space: nowrap; }
[data-build] .build-sep { color: var(--line-2); margin: 0 1px; }
[data-build] .build-ver { font-family: var(--mono); font-size: .72rem; letter-spacing: -.01em; }

