:root {
  --forest: #1E3A2B;
  --paper: #F6F3EA;
  --sand: #ECE5D3;
  --card: #FFFDF7;
  --ink: #17231C;
  --muted: #4A5148;
  --faint: #6B6F64;
  --line: #DDD5C2;
  --rule: #CFC6B0;
  --leaf: #36584A;
  --leaf-2: #56806A;
  /* WHY: orange means one thing on this page, an idea that came to light. Never buttons, links or labels. */
  --fruit: #A3561A;
  --fruit-on-dark: #E8A04E;
  --on-forest: #F3EFE3;
  --on-forest-muted: #BFC9BC;
  --mock-text: #262626;
  --mock-meta: #6E6B64;
  --mock-line: #E2E0DA;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --app: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
ul, ol { list-style: none; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 40px; } }

section { padding-block: clamp(80px, 12vw, 152px); }

h1, h2, h3, .card-title { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(52px, 10.5vw, 112px); line-height: 0.98; }
h2 { font-size: clamp(36px, 5.8vw, 64px); line-height: 1.05; max-width: 15ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; color: var(--muted); max-width: 58ch; margin-top: 24px; }

.tag { font: 500 11px/1 var(--app); color: var(--mock-meta); background: #F1EFE9; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }

/* Hero */
.hero { background: var(--forest); color: var(--on-forest); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 72px; }
.hero .wrap { display: grid; gap: 48px; width: 100%; }
.hero .eyebrow { color: var(--on-forest-muted); }
.hero .lead { color: var(--on-forest-muted); }
.cue { display: inline-flex; gap: 10px; margin-top: 40px; color: var(--on-forest); font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--on-forest-muted); padding-bottom: 4px; }
.tree { width: min(100%, 300px); height: auto; justify-self: center; }
/* WHY: on a phone the tree sits small above the headline so the whole hero fits one screen. */
.tree-hero { order: -1; width: 150px; justify-self: start; }
.hero .wrap { gap: 28px; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; }
  .tree { width: min(100%, 440px); }
  .tree-hero { order: 0; justify-self: center; }
}

/* Intro */
.intro { padding-bottom: clamp(40px, 6vw, 72px); }
.intro-text { max-width: 58ch; margin-top: 28px; color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); }
.intro-text p + p { margin-top: 1em; }

/* How: static layout first (no JS, reduced motion) */
.how { padding-block: 0; }
.stage { max-width: 1120px; margin-inline: auto; padding: 24px 20px 96px; }
.captions { display: grid; gap: 32px; margin-bottom: 48px; }
.caption .step { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.caption h3 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; margin: 10px 0 12px; max-width: 18ch; }
.caption p:last-child { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.5; max-width: 46ch; }
.viewport { max-width: 440px; margin-inline: auto; }
.mock-back, .fly-layer { display: none; }
.idea-card { margin-top: 40px; }

/* Mock app screens */
.mocks { position: relative; padding-top: 36px; }
.mock { position: relative; background: #fff; border: 1px solid var(--mock-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(23, 35, 28, 0.09); font: 14px/1.4 var(--app); color: var(--mock-text); }
.mock-body { border-radius: 18px; overflow: hidden; height: 100%; }
.mock-tab { position: absolute; top: -28px; height: 28px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px 9px 0 0; background: #E6E3DC; color: #45433E; font: 600 12px/1 var(--app); }
.tab-1 { left: 14px; }
.tab-2 { left: 110px; }
.tab-3 { left: 188px; }
.av { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #E6E3DC; color: #6E6B64; display: inline-grid; place-items: center; font: 700 10px/1 var(--app); }
.mock-head, .chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mock-head b, .chat-head b { font-weight: 600; }
.mock-head .tag, .chat-head .tag { margin-left: auto; }
.mock small, .chat-head small { display: block; color: var(--mock-meta); font-size: 12px; }
.mock-photo {
  aspect-ratio: 5 / 2;
  background:
    radial-gradient(circle at 18% 60%, #56806A 0 13px, transparent 14px),
    radial-gradient(circle at 39% 56%, #36584A 0 18px, transparent 19px),
    radial-gradient(circle at 61% 62%, #56806A 0 11px, transparent 12px),
    radial-gradient(circle at 82% 58%, #36584A 0 16px, transparent 17px),
    linear-gradient(#E9E2CF 0 64%, #CBD6C0 64% 100%);
}
.mock-caption { padding: 10px 14px 4px; }
.mock-comments, .fb-comments { display: grid; gap: 11px; padding: 10px 14px 6px; }
.mock-comments li, .fb-comments li { display: flex; gap: 10px; align-items: flex-start; }
.mock-comments p, .fb-comments p { flex: 1; }
.mock-comments b { font-weight: 600; }
.likes { font-size: 12px; color: var(--mock-meta); white-space: nowrap; padding-top: 2px; }
.more { padding: 6px 14px 14px 54px; color: var(--mock-meta); font-size: 13px; }
.chat-head { border-bottom: 1px solid #EEECE7; }
.chat { display: grid; gap: 8px; padding: 14px; background: #F4F3EF; height: 100%; }
.chat li { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #fff; }
.chat li.out { justify-self: end; background: #E5EDE4; }
.chat b { display: block; font-size: 12px; color: #5D6A5D; }
.fb-comments p { background: #F0F1F3; border-radius: 14px; padding: 8px 12px; }
.fb-comments b { display: block; font-size: 12px; }

/* The summary card */
.idea-card, .digest { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 14px 36px rgba(23, 35, 28, 0.08); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 21px; line-height: 1.2; margin-top: 6px; }
.line { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf-2); margin-top: 7px; }
.line.is-fruit .dot { background: var(--fruit); }
.line-title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.line-why { font-size: 15px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.count { font-size: 13px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.open-q { margin-top: 6px; background: var(--sand); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.4; }
.open-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card-foot { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* Flying message bubbles (animated layout only) */
.bubble { position: absolute; left: 0; top: 0; background: #fff; border: 1px solid var(--mock-line); border-radius: 14px; padding: 7px 12px; font: 13px/1.35 var(--app); color: var(--mock-text); box-shadow: 0 8px 22px rgba(23, 35, 28, 0.12); opacity: 0; will-change: transform, opacity; }
.bubble small { display: block; font-size: 11px; color: var(--mock-meta); margin-bottom: 2px; }
.bubble.is-fruit.surfaced { box-shadow: inset 3px 0 0 var(--fruit), 0 8px 22px rgba(23, 35, 28, 0.12); }

/* How: animated layout. Scroll drives it, so it plays backwards too. */
.anim .stage-track { height: 340vh; height: 340svh; }
.anim .stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 20px 20px 14px; }
.anim .captions { display: grid; gap: 0; margin: 0 0 8px; }
.anim .caption { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.anim .caption.is-active { opacity: 1; transform: none; }
.anim .viewport { flex: 1; min-height: 0; width: 100%; position: relative; }
.anim .viewport-inner { position: relative; display: grid; transform-origin: top center; }
.anim .mocks, .anim .idea-card { grid-area: 1 / 1; align-self: start; }
.anim .idea-card { margin-top: 36px; opacity: 0; }
.anim .mock-back { display: block; position: absolute; left: 0; right: 0; top: 36px; bottom: 0; }
.anim .mock-front { z-index: 3; }
.anim .mock-chat { z-index: 2; transform: translateY(-10px) scale(0.965); transform-origin: top center; }
.anim .mock-fb { z-index: 1; transform: translateY(-20px) scale(0.93); transform-origin: top center; }
.anim .fly-layer { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 5; }
@media (max-width: 899px) {
  .anim .caption h3 { font-size: 24px; margin: 6px 0 6px; }
  .anim .caption p:last-child { font-size: 15px; line-height: 1.45; }
}
@media (min-width: 900px) {
  .anim .stage { flex-direction: row; align-items: center; gap: 80px; padding: 40px; }
  .anim .captions { flex: 1; margin: 0; }
  .anim .viewport { flex: 0 0 440px; height: min(660px, 88vh); height: min(660px, 88svh); }
}

/* Follow */
.follow { padding-top: clamp(40px, 6vw, 80px); }
.follow-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .follow-grid { grid-template-columns: 1fr 440px; align-items: center; gap: 80px; } }
.digest dl > div { padding: 13px 0; border-top: 1px solid var(--line); }
.digest dt { font-weight: 600; font-size: 16px; }
.digest dd { font-size: 15px; color: var(--muted); }
.contact-line { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); font-size: 18px; color: var(--muted); }
.contact-line a { color: var(--ink); font-weight: 600; }

/* Trust */
.trust { background: var(--sand); }
.rules { counter-reset: rule; display: grid; margin-top: 48px; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--rule); font-size: clamp(19px, 2vw, 22px); line-height: 1.4; }
.rules li::before { content: counter(rule); font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--muted); }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* Gains */
.gains dl { margin-top: 48px; }
.gains .row { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.gains dt { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.gains dd { color: var(--muted); font-size: clamp(17px, 1.9vw, 19px); max-width: 60ch; }
@media (min-width: 820px) { .gains .row { grid-template-columns: 300px 1fr; gap: 40px; align-items: baseline; } }

/* Vision */
.vision { background: var(--forest); color: var(--on-forest); }
.vision .eyebrow { color: var(--on-forest-muted); }
.vision-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .vision-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.vision-lead { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; margin: 28px 0 20px; max-width: 30ch; }
.vision p:not(.vision-lead):not(.eyebrow) { color: var(--on-forest-muted); font-size: clamp(17px, 1.9vw, 20px); max-width: 52ch; }

/* CTA */
.needs { counter-reset: need; margin-top: 40px; max-width: 640px; }
.needs li { counter-increment: need; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.9vw, 19px); }
.needs li::before { content: counter(need); font-family: var(--serif); font-size: 22px; color: var(--muted); }
.closing { margin-top: 64px; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; color: var(--ink); max-width: 26ch; }
.ig { display: inline-block; margin-top: 16px; font-weight: 600; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.2; color: var(--ink); }

.foot { padding-block: 40px 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Reveals: once, 400ms, 12px rise. Only when motion is allowed. */
.anim .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.anim .reveal.in { opacity: 1; transform: none; }

/* Trees: dots settle once; fruit dots ripen from leaf to orange. */
@keyframes settle { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes ripen { from { fill: #36584A; } to { fill: #E8A04E; } }
.anim .tree circle { transform-box: fill-box; transform-origin: center; }
/* WHY: dots wait for app.js to set each delay, otherwise the animation starts, then restarts on a slow connection. */
.anim .tree-hero:not(.go) circle { opacity: 0; }
.anim .tree-hero.go circle { animation: settle 0.7s var(--ease) both; animation-delay: var(--d, 0ms); }
.anim .tree-hero.go circle.fruit { animation: settle 0.7s var(--ease) both, ripen 0.6s ease both; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 900ms); }
.anim .tree-end circle.fruit { fill: #36584A; }
.anim .tree-end.in circle.fruit { animation: ripen 0.6s ease forwards; animation-delay: var(--d, 0ms); }
