/* Wholeful marketing site — editorial warmth. Tokens first, then layout, then sections. */
:root {
  --paper: #fbfaf5;
  --paper-2: #f3efe4;
  --ink: #1c2620;
  --ink-2: #3c4a42;
  --muted: #5f6e65;
  --line: #dde4de;
  --green: #2e7a59;
  --green-deep: #1f5a41;
  --green-ink: #12201a;
  --green-soft: #e4f1e9;
  --saffron: #e9b457;
  --saffron-soft: #fbf1db;
  --clay: #b8552e;
  --clay-soft: #f7e2d6;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --text: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  --h1: clamp(2.6rem, 1.4rem + 5.2vw, 5rem);
  --h2: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(28, 38, 32, 0.45), 0 10px 24px -14px rgba(28, 38, 32, 0.25);
  --fast: 180ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.02; }
h2 { font-size: var(--h2); line-height: 1.08; }
h3 { font-size: var(--h3); line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--green); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--saffron); }
.lede { color: var(--ink-2); font-size: 1.125em; max-width: 56ch; }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast), box-shadow var(--fast);
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 20px -12px rgba(46, 122, 89, 0.8); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--saffron); outline-offset: 3px;
}

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(251, 250, 245, 0.82); border-bottom: 1px solid rgba(221, 228, 222, 0.7); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; text-decoration: none; }
.mark i { width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding: clamp(2.5rem, 2rem + 4vw, 6rem) 0 var(--section); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lede { margin-bottom: 28px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 0.875rem; color: var(--muted); }
.proof span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { margin-top: 1.5rem; } }

/* join form */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.join .field { flex: 1 1 220px; display: flex; flex-direction: column; }
.join input, .join select {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: 400 1rem var(--body); color: var(--ink);
}
.join select { flex: 0 1 150px; }
.join input::placeholder { color: #93a099; }
.join .btn { height: 54px; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-note { font-size: 0.875rem; color: var(--muted); margin-top: 12px; }
.join-status { font-size: 0.95rem; margin-top: 12px; min-height: 1.4em; }
.join-status.ok { color: var(--green-deep); font-weight: 500; }
.join-status.err { color: var(--clay); }
.join.done { display: none; }
.joined { display: none; padding: 20px 22px; border-radius: var(--radius); background: var(--green-soft); border-left: 4px solid var(--green); max-width: 560px; }
.joined.show { display: block; }

/* hero visual: photo + chips + floating card */
.hero-visual { position: relative; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--paper-2); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(18, 32, 26, 0.35) 100%); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--saffron), transparent); opacity: 0; animation: scan 1.6s var(--ease) 0.4s both; z-index: 2; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px; border-radius: 999px; background: rgba(251, 250, 245, 0.96); color: var(--ink);
  font-size: 0.8125rem; font-weight: 500; box-shadow: 0 8px 20px -10px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%) scale(0.85); opacity: 0;
  animation: chipIn 0.55s var(--ease) var(--d, 1.2s) both;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.chip small { color: var(--muted); font-weight: 400; }
@keyframes chipIn { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.today-card {
  position: absolute; right: -14px; bottom: -34px; z-index: 4; width: min(270px, 78%);
  background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: cardIn 0.7s var(--ease) 2.6s both;
}
@keyframes cardIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.today-card .kicker { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.today-card .cov { font-family: var(--display); font-size: 1.15rem; margin: 2px 0 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border-radius: 12px; padding: 10px 12px; background: var(--paper-2); }
.tile b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1; margin-top: 6px; }
.tile span { font-size: 0.78rem; color: var(--ink-2); }
.tile.ok { background: var(--green-soft); } .tile.ok b { color: var(--green-deep); }
.tile.low { background: var(--clay-soft); } .tile.low b { color: var(--clay); }
.tile.est { background: var(--paper-2); } .tile.est b { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
@media (max-width: 900px) { .today-card { right: 8px; bottom: -28px; } .hero-visual { margin-bottom: 2.5rem; } }
@media (max-width: 600px) {
  .today-card { position: static; width: 100%; margin-top: 14px; }
  .hero-visual { margin-bottom: 0; }
  .chip { font-size: 0.72rem; padding: 6px 9px 6px 8px; gap: 6px; }
  .chip small { display: none; }
}

/* sections */
section.band { padding: var(--section) 0; }
section.band.tint { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 3vw, 3.5rem); }
.sec-head h2 { margin: 14px 0 16px; }

/* punches: rolex + three */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rolex { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-width: 480px; }
.rolex img { width: 100%; height: 100%; object-fit: cover; }
.compare { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; }
.compare div { background: rgba(251, 250, 245, 0.95); border-radius: 12px; padding: 10px 14px; font-size: 0.875rem; display: flex; justify-content: space-between; gap: 12px; }
.compare div s { color: var(--muted); }
.compare div.us { border-left: 4px solid var(--green); font-weight: 500; }
.punches { display: grid; gap: 28px; }
.punch { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.punch .n { width: 52px; height: 52px; border-radius: 16px; background: var(--saffron-soft); color: var(--clay); font-family: var(--display); font-weight: 600; font-size: 1.3rem; display: grid; place-items: center; }
.punch h3 { margin-bottom: 6px; }
.punch p { color: var(--ink-2); margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step .phone { width: min(300px, 100%); margin: 0 auto 22px; border-radius: 38px; border: 9px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 9 / 19.5; }
.step .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.step:nth-child(2) .phone { transform: translateY(26px); }
@media (max-width: 860px) { .step:nth-child(2) .phone { transform: none; } }
.step .num { font-family: var(--display); color: var(--saffron); font-size: 1.1rem; font-weight: 600; }
.step h3 { margin: 6px 0 8px; }
.step p { color: var(--ink-2); margin: 0; }

/* nutrients */
.nutrients { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.nutrient { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; transition: transform var(--fast) var(--ease), box-shadow var(--fast); }
.nutrient:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.nutrient b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; display: block; margin-bottom: 6px; }
.nutrient p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.nutrient .tag { display: inline-block; margin-top: 10px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.nutrient .tag.est { background: var(--saffron-soft); color: var(--clay); }
.nutrient .tag.key { background: var(--green-soft); color: var(--green-deep); }

/* report */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 2.5vw, 2rem); max-width: 520px; }
.report .kicker { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.report h3 { font-size: 1.7rem; margin: 4px 0 2px; }
.report .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.gap { border-top: 1px solid var(--line); padding: 14px 0; }
.gap .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gap .row b { font-family: var(--display); font-size: 1.15rem; }
.gap .pct { font-family: var(--display); font-weight: 600; color: var(--clay); }
.gap p { font-size: 0.95rem; color: var(--ink-2); margin: 6px 0 8px; }
.swaps { display: flex; flex-wrap: wrap; gap: 6px; }
.swaps span { font-size: 0.8rem; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-weight: 500; }
.market { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.market img { width: 100%; height: 100%; object-fit: cover; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
@media (max-width: 860px) { .report-grid { grid-template-columns: 1fr; } }

/* promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }
.promise { background: #fff; border-radius: 16px; padding: 22px 20px; border: 1px solid var(--line); }
.promise .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 14px; font-weight: 700; }
.promise h3 { font-size: 1.1rem; margin-bottom: 6px; }
.promise p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

/* faq */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 500; font-size: 1.4rem; line-height: 1; transition: transform var(--fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; max-width: 64ch; }

/* cta band */
.cta { background: var(--green-ink); color: #eef3ef; padding: var(--section) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 195, 148, 0.25), transparent 65%); top: -30%; right: -15%; }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; }
.cta .eyebrow { color: var(--saffron); }
.cta .lede { color: #c9d6cd; }
.cta .join input, .cta .join select { border-color: transparent; }
.cta .join-note { color: #9fb3a7; }
.cta .join-status.ok { color: #9fe0bb; }
.cta .joined { background: rgba(255,255,255,0.08); border-left-color: var(--saffron); color: #fff; }

footer { padding: 36px 0 44px; font-size: 0.875rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: inherit; }

/* legal pages */
.legal { padding: clamp(2rem, 4vw, 4rem) 0 var(--section); }
.legal article { max-width: 72ch; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); margin: 12px 0 10px; }
.legal h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; }
.legal .draft { display: inline-block; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--saffron-soft); color: var(--clay); font-weight: 600; margin-bottom: 20px; }
.legal ul { padding-left: 1.2em; } .legal li { margin: 0.35em 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .today-card, .scan { animation: none; opacity: 1; transform: translate(-50%, -50%); }
  .today-card { transform: none; }
  .scan { display: none; }
  .btn, .nutrient { transition: none; }
}
