/* Sprout Squad website: app palette + type, airy framing, gentle motion. */
:root {
  --page: #ffffff;
  --panel: #eef3ff;
  --panel-2: #e3ebff;
  --card: #ffffff;
  --ink: #131b33;
  --ink-2: #4a5575;
  --ink-3: #6f7a99;
  --line: #131b33;
  --hair: #d5ddf0;
  --soft: #e6ecfa;
  --screen: #f5f8ff;
  --tang: #ff7a1a;
  --tang-ink: #131b33;
  --lilac: #b9a6ff;
  --g0: #e3e9f5;
  --g1: #c5f0b4;
  --g2: #86db6e;
  --g3: #3dbb57;
  --g4: #157f3b;
  --on-green: #07210f;
  --display: 'Bricolage Grotesque', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1022;
    --panel: #131a33;
    --panel-2: #1a2244;
    --card: #1c2546;
    --ink: #f1f4ff;
    --ink-2: #b7c0de;
    --ink-3: #8e98ba;
    --line: #050814;
    --hair: #253058;
    --soft: #253058;
    --screen: #131a33;
    --tang: #ff8a33;
    --lilac: #9c86ff;
    --g0: #253058;
    --g1: #1e5a36;
    --g2: #23883f;
    --g3: #3dbb57;
    --g4: #8df08a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--tang); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
.label { font: 500 13px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.label.muted { color: var(--ink-3); }
.tilde::before { content: '~ '; } .tilde::after { content: ' ~'; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--hair); background: #fff; display: grid; place-items: center; }
.brand-mark img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } .brand-name { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: var(--ink); color: var(--page); border: 0; border-radius: 999px;
  padding: 14px 24px; font: 500 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform 0.25s var(--spring), background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.green { background: var(--g3); color: var(--on-green); box-shadow: 3px 3px 0 var(--line); border: 2px solid var(--line); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.small { padding: 12px 20px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 40px; display: grid; justify-items: center; text-align: center; }
.stage { position: relative; width: 100%; display: grid; place-items: center; min-height: 700px; }
.hero h1 { font-weight: 800; font-size: clamp(52px, 9vw, 124px); line-height: 0.92; margin-top: 56px; max-width: 11ch; }
.hero h1 .grow { display: inline-block; color: var(--g3); }
.hero .sub { margin: 28px auto 0; max-width: 46ch; }
.hero .join { margin: 40px auto 0; }

/* floating pieces around the phone */
.float { position: absolute; z-index: 2; will-change: transform; }
.float .bob { animation: bob 6s ease-in-out infinite; }
.f1 { left: 2%; top: 14%; } .f1 .bob { animation-delay: -1s; }
.f2 { left: 8%; bottom: 8%; } .f2 .bob { animation-delay: -3s; }
.f3 { right: 3%; top: 10%; } .f3 .bob { animation-delay: -2s; }
.f4 { right: 7%; bottom: 14%; } .f4 .bob { animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -0.4)); } }
@media (max-width: 980px) { .f1, .f4 { display: none; } .f2 { left: -2%; bottom: 4%; } .f3 { right: -2%; top: 6%; } }
@media (max-width: 620px) { .float { transform: scale(0.78) !important; } .f2 { left: -8px; bottom: 0; transform-origin: left bottom; } .f3 { right: -8px; top: 0; transform-origin: right top; } .f2, .f3 { z-index: 3; } .stage { min-height: 560px; } }

.chip-card { background: var(--card); border: 2px solid var(--line); border-radius: 20px; box-shadow: 4px 4px 0 var(--line); padding: 12px 14px; text-align: left; }
.friend-mini { width: 190px; display: grid; gap: 8px; --r: -4deg; }
.friend-mini .who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.friend-mini .who small { display: block; font: 500 11px var(--mono); color: var(--ink-3); }
.toast { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; --r: 3deg; max-width: 240px; }
.toast .e { font-size: 24px; }
.toast small { display: block; font: 500 11px var(--mono); color: var(--ink-3); font-weight: 500; }
.winchip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 9px 14px; --r: -2deg; }

/* ---------- phone ---------- */
.phone {
  position: relative; z-index: 3; width: 320px; max-width: 78vw; aspect-ratio: 9 / 18.4;
  background: var(--screen); border: 3px solid var(--ink); border-radius: 48px; padding: 14px;
  box-shadow: 0 2px 0 6px color-mix(in srgb, var(--ink) 6%, transparent), 30px 40px 60px -20px rgba(19, 27, 51, 0.28);
  overflow: hidden; text-align: left;
}
.phone::before { content: ''; position: absolute; left: 50%; top: 12px; width: 96px; height: 28px; border-radius: 16px; background: #0a0f1f; transform: translateX(-50%); z-index: 3; }
.screen { display: grid; gap: 10px; padding-top: 34px; font-size: 13px; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding-inline: 2px; }
.app-top b { font: 800 16px var(--display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.app-top b img { width: 18px; height: 18px; }
.me { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--line); border-radius: 999px; padding: 2px 9px 2px 2px; font-size: 11px; font-weight: 600; background: var(--card); box-shadow: 2px 2px 0 var(--line); }
.av { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--lilac); border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; }
.strip { display: flex; align-items: center; gap: 10px; background: var(--tang); color: var(--tang-ink); border: 2.5px solid var(--line); border-radius: 16px; padding: 6px 12px; box-shadow: 3px 3px 0 var(--line); }
.strip .big { font: 800 34px/1 var(--display); min-width: 1ch; display: inline-block; }
.strip .big.tick { animation: tick 0.5s var(--spring); }
@keyframes tick { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
.strip .lbl { flex: 1; font-weight: 700; font-size: 11.5px; line-height: 1.2; }
.strip .stat { text-align: right; }
.strip .stat small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7; }
.strip .stat b { font: 700 15px var(--mono); }
.pcard { background: var(--card); border: 2.5px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 3px 3px 0 var(--line); display: grid; gap: 7px; }
.pcard h4 { margin: 0; font: 700 14px var(--display); display: flex; justify-content: space-between; align-items: baseline; }
.pcard h4 span { font: 700 11px var(--mono); color: var(--ink-3); }
.wins { display: grid; gap: 6px; }
.win { display: flex; align-items: center; gap: 7px; background: var(--screen); border: 2px solid var(--soft); border-radius: 11px; padding: 6px 8px; font-size: 12px; font-weight: 500; }
.win .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .when { font: 500 10px var(--mono); color: var(--ink-3); }
.kudos-in { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); }
.kudos-in span.k { border: 2px solid var(--line); border-radius: 999px; padding: 1px 7px; background: var(--lilac); color: #131b33; font-size: 12px; }
.kudos-in span.k b { font: 700 10px var(--mono); margin-left: 2px; }
.win.new { animation: slidein 0.6s var(--spring); }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px) scale(0.96); } to { opacity: 1; transform: none; } }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); flex: none; }

/* burst of kudos rising out of the phone */
.burst { position: absolute; z-index: 4; font-size: 26px; pointer-events: none; animation: rise 2.2s var(--ease) forwards; }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 0) scale(0.5); } 15% { opacity: 1; transform: translate(var(--dx), -20px) scale(1.1); } 100% { opacity: 0; transform: translate(calc(var(--dx) * 2.4), -160px) scale(0.9); } }

/* ---------- month grid ---------- */
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--gap, 4px); }
.month .wd { font: 700 9px var(--body); color: var(--ink-3); text-align: center; }
.month i { aspect-ratio: 1; border-radius: 26%; background: var(--g0); display: block; font: 700 8px var(--mono); padding: 2px 3px; color: color-mix(in srgb, var(--ink) 45%, transparent); font-style: normal; transition: background 0.5s var(--ease), transform 0.4s var(--spring); }
.month i.l1 { background: var(--g1); } .month i.l2 { background: var(--g2); }
.month i.l3 { background: var(--g3); color: var(--on-green); } .month i.l4 { background: var(--g4); color: #fff; }
@media (prefers-color-scheme: dark) { .month i.l4 { color: var(--on-green); } }
.month i.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.month i.bump { transform: scale(1.25); }
.month i.future { background: transparent; border: 1.5px dashed var(--soft); }
.month i.pad { background: transparent; }
.month.mini { --gap: 2.5px; } .month.mini i { font-size: 0; padding: 0; border-radius: 22%; } .month.mini .wd { font-size: 7px; }

/* ---------- waitlist ---------- */
.join { display: grid; gap: 12px; width: 100%; max-width: 520px; justify-items: center; }
.join-row { display: flex; gap: 8px; width: 100%; background: var(--card); border: 2.5px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 5px 5px 0 var(--line); }
.join-row .btn.green { box-shadow: 2px 2px 0 var(--line); }
.join input[type='email'] { flex: 1; min-width: 0; font: 500 16px var(--body); color: var(--ink); background: transparent; border: 0; padding: 10px 14px; outline: none; }
.join input::placeholder { color: var(--ink-3); }
.join-row:focus-within { border-color: var(--g3); }
.phones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.phones label { cursor: pointer; }
.phones input { position: absolute; opacity: 0; pointer-events: none; }
.phones span.opt { display: inline-block; border: 1.5px solid var(--hair); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); transition: all 0.2s; }
.phones input:checked + span.opt { background: var(--ink); border-color: var(--ink); color: var(--page); }
.phones input:focus-visible + span.opt { outline: 3px solid var(--tang); outline-offset: 2px; }
.join-msg { font: 500 14px var(--body); min-height: 1.4em; margin: 0; }
.join-msg.ok { color: var(--g3); font-weight: 700; }
.join-msg.err { color: var(--tang); font-weight: 700; }
@media (max-width: 480px) { .join-row { flex-direction: column; border-radius: 24px; } .join-row .btn { width: 100%; } }

/* ---------- sections ---------- */
section { padding-block: 120px; }
.center { text-align: center; }
.section-mark { width: 88px; margin: 0 auto 40px; }
.section-mark img { width: 88px; height: auto; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 64px; }
.feature { --fbg: color-mix(in srgb, var(--cat, var(--g3)) 20%, var(--page)); position: relative; background: var(--fbg); border: 2.5px solid var(--line); box-shadow: 7px 7px 0 var(--line); border-radius: 32px; padding: 48px 32px 0; overflow: hidden; display: grid; justify-items: center; gap: 36px; min-height: 620px; }
.feature .label { text-align: center; max-width: 26ch; line-height: 1.8; }
.feature .phone { width: 300px; aspect-ratio: auto; height: 470px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: none; align-self: end; }
.feature .caption { z-index: 3; position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 28px 26px; text-align: center; background: linear-gradient(to top, var(--fbg) 62%, transparent); }
.feature .caption h3 { font-size: 26px; font-weight: 700; }
.feature .caption p { margin: 6px auto 0; font: 500 12px/1.7 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); max-width: 36ch; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } .feature { min-height: 640px; } }

/* input demo */
.typing { display: flex; gap: 6px; align-items: center; }
.typing .field { flex: 1; min-width: 0; width: 100%; background: var(--screen); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; font: 500 12px var(--body); min-height: 34px; outline: none; transition: border-color 0.2s; }
.typing .field::placeholder { color: var(--ink-3); }
.typing .field:focus { border-color: var(--g3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g3) 30%, transparent); }
.typing .field.nope { animation: nope 0.35s; border-color: var(--tang); }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.typing .field .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing .go { cursor: pointer; background: var(--g3); color: var(--on-green); border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; font: 800 12px var(--display); box-shadow: 2px 2px 0 var(--line); transition: transform 0.15s; }
.typing .go.press { transform: translate(2px, 2px); box-shadow: none; }
.cats { display: flex; flex-wrap: wrap; gap: 4px; }
.cats button { font: inherit; color: var(--ink); cursor: pointer; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; background: var(--card); }
.cats button.on { background: var(--ink); color: var(--page); }

.friend-row { display: grid; grid-template-columns: 46% 1fr; gap: 10px; align-items: start; }
.friend-row .did { font-size: 11px; color: var(--ink-2); display: grid; gap: 4px; }
.friend-row .did div { display: flex; gap: 5px; align-items: center; }
.kudos { display: flex; gap: 5px; flex-wrap: wrap; }
.kudos button { font: inherit; cursor: pointer; border: 2px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 14px; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 3px; transition: transform 0.3s var(--spring), background 0.2s; }
.kudos button.on { background: var(--lilac); color: #131b33; }
.kudos button.pop { transform: scale(1.18); }
.kudos b { font: 700 11px var(--mono); }

/* ---------- story + year ---------- */
.story { display: grid; gap: 24px; max-width: 720px; }
.story p { margin: 0; font: 400 17px/2 var(--mono); color: var(--ink); }
.story p + p { color: var(--ink-2); }
.year-wrap { margin-top: 80px; background: var(--panel); border: 1.5px solid var(--hair); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; }
.year-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.year-head h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.year-scroll { overflow-x: auto; padding-bottom: 4px; }
.year { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; width: max-content; }
.year i { width: 14px; height: 14px; border-radius: 4px; background: var(--g0); display: block; cursor: pointer; transform: scale(0.3); opacity: 0.3; transition: transform 0.5s var(--spring), opacity 0.4s, background 0.3s; }
.year.on i { transform: none; opacity: 1; transition-delay: calc(var(--w) * 18ms); }
.year i.l1 { background: var(--g1); } .year i.l2 { background: var(--g2); } .year i.l3 { background: var(--g3); } .year i.l4 { background: var(--g4); }
.year-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.year-stats div b { display: block; font: 800 34px/1 var(--display); }
.year-stats div span { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legend { display: flex; align-items: center; gap: 4px; font: 500 11px var(--mono); color: var(--ink-3); }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 56px auto 0; }
.faq details { background: var(--panel); border: 1.5px solid var(--hair); border-radius: 22px; padding: 22px 26px; transition: background 0.2s; }
.faq details[open] { background: var(--panel-2); }
.faq summary { cursor: pointer; font: 700 20px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 22px var(--mono); color: var(--ink-3); transition: transform 0.3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- final ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 24px; }
.final h2 { font-weight: 800; font-size: clamp(44px, 7vw, 96px); line-height: 0.95; max-width: 12ch; }
.final .seed { width: 120px; animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

footer { border-top: 1.5px solid var(--hair); padding-block: 36px 56px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* ---------- scroll reveal (only when JS is on; content is visible without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .year i { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- prose pages ---------- */
.prose { background: var(--panel); border: 1.5px solid var(--hair); border-radius: 32px; padding: clamp(24px, 5vw, 56px); margin-block: 24px 64px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 24px; font-weight: 700; margin-top: 40px; margin-bottom: 8px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-2); max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .updated { font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap { overflow-x: auto; margin-block: 12px; }
.prose th, .prose td { text-align: left; border-bottom: 1.5px solid var(--hair); padding: 10px 12px 10px 0; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; }
.callout { background: var(--card); border: 1.5px solid var(--hair); border-radius: 18px; padding: 16px 18px; }
.callout p { margin: 0; }

/* ---------- full-bleed vines ---------- */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.stage > .vines { position: absolute; top: -40px; bottom: -40px; left: 50%; margin-left: -50vw; z-index: 0; pointer-events: none; overflow: hidden; }
.vine { position: absolute; top: 0; height: 100%; width: 50vw; overflow: visible; will-change: transform; }
.vine-l { left: 0; transform-origin: 0% 60%; animation: sway 9s ease-in-out infinite; }
.vine-r { right: 0; transform: scaleX(-1); transform-origin: 50% 50%; animation: sway-r 10s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -0.8deg; } 50% { rotate: 0.8deg; } }
@keyframes sway-r { 0%, 100% { rotate: 0.8deg; } 50% { rotate: -0.8deg; } }
.vine .stem { fill: none; stroke: var(--g3); stroke-width: 9; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.vine .stem.thin { stroke-width: 6; }
.vine .stem-shadow { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; opacity: 0.12; transform: translate(4px, 5px); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.vine .leaf { stroke: color-mix(in srgb, var(--g4) 70%, transparent); stroke-width: 1.5; }
.vine .rib { fill: none; stroke: color-mix(in srgb, var(--g4) 55%, transparent); stroke-width: 2; stroke-linecap: round; }
.vine .bud { stroke: var(--line); stroke-width: 3; }
.vine .grow { transform: scale(0); }
.vine.go .stem, .vine.go .stem-shadow { animation: draw var(--dur, 2.4s) var(--ease) forwards; }
.vine.go .grow { animation: unfurl 0.9s var(--spring) forwards; animation-delay: var(--delay); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes unfurl { to { transform: scale(1); } }
.vine.small { width: 40vw; }
.section-vines { position: relative; height: 0; overflow: visible; clip-path: inset(-400px 0 -400px 0); }
.section-vines .vine { top: -140px; height: 340px; }
@media (max-width: 760px) {
  .vine { width: 62vw; opacity: 0.9; }
  .stage > .vines { top: 10%; bottom: 10%; }
  .section-vines .vine { height: 220px; top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  .vine .stem, .vine .stem-shadow { stroke-dashoffset: 0; }
  .vine .grow { transform: none; }
}

/* ---------- the garden: a row of seedlings along the bottom edge ---------- */
.garden { height: 220px; display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; margin-top: 40px; }
.garden svg { flex: none; transform-origin: 50% 100%; transform: scaleY(0); }
.garden.go svg { animation: sprout 1.1s var(--spring) forwards; animation-delay: var(--delay); }
.garden.go svg.swaying { animation: sprout 1.1s var(--spring) forwards, lean 6s ease-in-out infinite; animation-delay: var(--delay), calc(var(--delay) + 1.1s); }
@keyframes sprout { to { transform: scaleY(1); } }
@keyframes lean { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .garden svg { transform: none; } }

/* =====================================================================
   Colour dynamics, bands, squad plant, playable year, green finale
   ===================================================================== */

/* ---------- hero aurora: colour that follows the wins ---------- */
.stage > .aurora { position: absolute; top: -80px; bottom: -40px; left: 50%; margin-left: -50vw; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: 0.5; transition: background-color 1.8s var(--ease); will-change: transform; }
.aurora i:nth-child(1) { left: 50%; top: 45%; background-color: #3DBB57; transform: translate(-50%, -50%); animation: drift1 22s ease-in-out infinite; }
.aurora i:nth-child(2) { left: 22%; top: 25%; background-color: #7CC4FF; animation: drift2 26s ease-in-out infinite; }
.aurora i:nth-child(3) { right: 12%; top: 40%; background-color: #B9A6FF; animation: drift3 30s ease-in-out infinite; }
@media (prefers-color-scheme: light) { .aurora i { opacity: 0.28; } }
@keyframes drift1 { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-46%, -54%) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(-50%, -30%); } 50% { transform: translate(-20%, -10%); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12%, 14%); } }
@media (max-width: 760px) { .aurora i { width: 80vw; height: 80vw; filter: blur(50px); } }

/* "green" filled with a mosaic of grid squares */
.hero h1 .grow.mosaic { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 1.2em 1.2em; animation: mosaic 24s linear infinite; padding-inline: 0.02em; }
@keyframes mosaic { to { background-position: 1.2em 1.2em; } }

/* ---------- crossed bands ---------- */
.bands { position: relative; height: 260px; overflow: hidden; margin-block: -40px 0; }
.band { position: absolute; left: -6vw; width: 112vw; top: 50%; border-block: 3px solid var(--line); padding-block: 18px; overflow: hidden; }
.band-a { background: var(--tang); transform: translateY(-50%) rotate(-3.5deg); z-index: 2; box-shadow: 0 8px 0 var(--line); }
.band-b { background: var(--lilac); transform: translateY(-50%) rotate(3deg); }
.band .track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.band .track.rev { animation-direction: reverse; animation-duration: 55s; }
.band .it { display: inline-flex; align-items: center; gap: 28px; font: 800 clamp(26px, 3.6vw, 44px)/1 var(--display); letter-spacing: -0.03em; color: #131b33; white-space: nowrap; }
.band-b .it { font-size: clamp(20px, 2.6vw, 30px); }
.band .sq { width: 0.62em; height: 0.62em; border-radius: 28%; border: 3px solid #131b33; box-shadow: 3px 3px 0 #131b33; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 620px) { .bands { height: 190px; } }

/* ---------- squad plant ---------- */
@property --sky1 { syntax: '<color>'; inherits: true; initial-value: #0b1022; }
@property --sky2 { syntax: '<color>'; inherits: true; initial-value: #1a2244; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: rgba(61, 187, 87, 0); }
.plant-sec {
  --sky1: #0b1022; --sky2: #1a2244; --glow: rgba(61, 187, 87, 0);
  position: relative; padding-block: 0; color: #f1f4ff;
  background: radial-gradient(60% 55% at 70% 62%, var(--glow), transparent 70%), linear-gradient(180deg, var(--sky1), var(--sky2));
  transition: --sky1 1.2s var(--ease), --sky2 1.2s var(--ease), --glow 1.2s var(--ease);
  border-block: 3px solid var(--line);
}
.js .plant-sec { height: 420vh; }
.plant-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.plant-word { position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%); font: 800 clamp(120px, 24vw, 380px)/1 var(--display); letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.06); white-space: nowrap; pointer-events: none; }
.plant-word.tick { animation: wordtick 0.7s var(--spring); }
@keyframes wordtick { from { transform: translateX(-50%) translateY(0.15em); opacity: 0; } }
.plant-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; padding-inline: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.plant-copy .label { color: #8df08a; }
.plant-copy h2 { font-weight: 800; font-size: clamp(38px, 5vw, 72px); line-height: 0.95; margin-top: 14px; max-width: 12ch; }
.plant-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; max-width: 440px; }
.plant-steps li { border: 2.5px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 12px 16px; opacity: 0.45; transition: opacity 0.4s, background 0.4s, border-color 0.4s, transform 0.4s var(--spring); }
.plant-steps li b { display: block; font: 700 18px/1.3 var(--display); }
.plant-steps li span { font-size: 14px; color: rgba(241, 244, 255, 0.78); }
.plant-steps li.on { opacity: 1; background: rgba(255, 255, 255, 0.1); border-color: #f1f4ff; transform: translateX(8px); box-shadow: 5px 5px 0 var(--line); }
.plant-steps li.done { opacity: 0.8; }
.plant-fig { margin: 0; display: grid; justify-items: center; gap: 18px; }
.plant-stage { position: relative; width: min(420px, 44vh, 80vw); aspect-ratio: 200 / 220; }
.plant-sun { position: absolute; left: 50%; top: 44%; width: 86%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 60%, transparent 70%); }
.plant-svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.plant-svg .lf.new { animation: unfurl 0.7s var(--spring) both; transform: scale(0); }
.plant-svg .bl.new { animation: unfurl 0.6s var(--spring) both; transform: scale(0); }
.plant-chips { position: absolute; inset: 0; pointer-events: none; }
.pchip { position: absolute; left: 50%; top: 40%; white-space: nowrap; font: 700 13px var(--body); color: #131b33; background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--m, #3dbb57); border-radius: 999px; padding: 5px 11px; box-shadow: 3px 3px 0 var(--line); animation: chip 2.4s var(--ease) forwards; }
.pchip.big { background: #ffe45c; font-size: 15px; }
@keyframes chip { 0% { opacity: 0; transform: translate(var(--x), 20px) scale(0.6); } 14% { opacity: 1; transform: translate(var(--x), 0) scale(1); } 100% { opacity: 0; transform: translate(calc(var(--x) * 1.3), -120px) scale(0.95); } }
.plant-meter { width: min(380px, 86vw); background: rgba(255, 255, 255, 0.08); border: 2.5px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 14px 16px; display: grid; gap: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pm-top b { font: 800 24px/1 var(--display); }
.pm-top span { font-size: 13px; font-weight: 600; color: #8df08a; text-align: right; }
.pm-top span.low { color: #ffb443; }
.pm-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pm-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3dbb57, #8df08a); border-radius: inherit; transition: width 0.25s linear; }
.pm-squad { display: flex; align-items: center; gap: 6px; }
.pm-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(255, 255, 255, 0.12); border: 2.5px solid rgba(255, 255, 255, 0.2); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--spring); }
.pm-av.on { border-color: var(--m); background: color-mix(in srgb, var(--m) 35%, transparent); transform: translateY(-3px); }
.pm-squad small { margin-left: auto; font: 500 12px var(--mono); color: rgba(241, 244, 255, 0.7); }
.plant-hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; margin: 0; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241, 244, 255, 0.55); transition: opacity 0.4s; }
.plant-sec.moving .plant-hint { opacity: 0; }
@media (max-width: 880px) {
  .plant-inner { grid-template-columns: 1fr; gap: 14px; text-align: center; justify-items: center; }
  .plant-copy h2 { font-size: clamp(30px, 8vw, 44px); margin-inline: auto; }
  .plant-steps { margin-top: 14px; }
  .plant-steps li { display: none; transform: none; }
  .plant-steps li.on { display: block; transform: none; }
  .plant-stage { width: min(300px, 36svh, 74vw); }
  .plant-fig { gap: 10px; }
  .plant-hint { display: none; }
}

/* ---------- playable year ---------- */
.year-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.year-tools p { margin: 0 auto 0 0; font-size: 14px; color: var(--ink-2); }
.chip-btn { font: 600 13px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: 2px 2px 0 var(--line); cursor: pointer; transition: transform 0.2s var(--spring); }
.chip-btn:hover { transform: translateY(-2px); }
.chip-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.year.live i { transition: transform 0.25s var(--spring), background 0.2s; transition-delay: 0s; }
.year.live i:hover { transform: scale(1.3); }
.year.live i.painted { animation: paint 0.35s var(--spring); }
@keyframes paint { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.year { user-select: none; -webkit-user-select: none; }

/* ---------- bursts anywhere on the page ---------- */
.burst.fx { position: fixed; z-index: 60; }

/* ---------- green finale ---------- */
section.final-band { position: relative; overflow: hidden; margin-top: 60px; padding-block: 130px; background: #3dbb57; color: #07210f; border-block: 3px solid var(--line); }
.final-band .final { position: relative; z-index: 1; }
.final-glow i { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(80px); opacity: 0.7; }
.final-glow i:nth-child(1) { left: -12vmax; top: -20vmax; background: #8df08a; animation: drift2 24s ease-in-out infinite; }
.final-glow i:nth-child(2) { right: -14vmax; bottom: -26vmax; background: #ffe45c; opacity: 0.55; animation: drift3 28s ease-in-out infinite; }
.final-band .label.muted, .final-band .eyebrow { color: #07210f; opacity: 0.8; }
.final-band .join-row { background: #fff; }
.final-band .join input[type='email'] { color: #131b33; }
.final-band .join input::placeholder { color: #6f7a99; }
.final-band .btn.green { background: #131b33; color: #fff; }
.final-band .phones { color: #07210f; }
.final-band .phones span.opt { border-color: rgba(7, 33, 15, 0.4); color: #07210f; }
.final-band .phones input:checked + span.opt { background: #07210f; border-color: #07210f; color: #8df08a; }
.final-band .join-msg.ok, .final-band .join-msg.err { color: #07210f; }
.final-band :focus-visible { outline-color: #07210f; }
.final-band + .garden { margin-top: -2px; }

@media (prefers-reduced-motion: reduce) {
  .js .plant-sec { height: auto; }
  .plant-sticky { position: relative; height: auto; padding-block: 100px; }
  .plant-steps li { opacity: 1; display: block !important; }
  .plant-hint { display: none; }
  .plant-svg .lf.new, .plant-svg .bl.new { transform: none; }
}

/* nav background runs edge to edge (the aurora would otherwise show its box) */
.nav { box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--page) 86%, transparent); clip-path: inset(0 -100vmax); }
@media (prefers-color-scheme: dark) {
  .feature { border-color: color-mix(in srgb, var(--cat) 55%, var(--page)); box-shadow: 7px 7px 0 color-mix(in srgb, var(--cat) 45%, var(--page)); }
}
@media (max-width: 620px) { .pchip { font-size: 12px; } .pchip.big { font-size: 13px; } }

/* =====================================================================
   Together: plans, focus sessions, notes, last 7 days, nudges (bento)
   Tiles use container queries, so each adapts to its own width.
   ===================================================================== */
.together { padding-block: 130px 90px; }
.together-head { text-align: center; max-width: 900px; margin: 0 auto 56px; }
.together-head h2 { font-weight: 800; font-size: clamp(34px, 5.4vw, 70px); line-height: 0.98; margin-top: 16px; }
.together-head .hl { color: var(--g3); }
.together-head .lede { margin: 18px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); max-width: 44ch; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
.tile-session { grid-column: span 3; grid-row: span 2; }
.tile-plan, .tile-notes { grid-column: span 3; }
.tile-week { grid-column: span 4; }
.tile-nudge { grid-column: span 2; }
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .tile-session, .tile-week, .tile-nudge { grid-column: span 2; grid-row: auto; }
  .tile-plan, .tile-notes { grid-column: span 1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tile-session, .tile-week, .tile-nudge, .tile-plan, .tile-notes { grid-column: auto; }
}

.tile {
  --fbg: color-mix(in srgb, var(--cat) 20%, var(--page));
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; gap: 22px;
  background: var(--fbg); border: 2.5px solid var(--line); box-shadow: 7px 7px 0 var(--line);
  border-radius: 30px; padding: clamp(20px, 3vw, 30px); overflow: hidden; min-width: 0;
}
@media (prefers-color-scheme: dark) {
  .tile { border-color: color-mix(in srgb, var(--cat) 55%, var(--page)); box-shadow: 7px 7px 0 color-mix(in srgb, var(--cat) 45%, var(--page)); }
}
.tile-copy .label { font-size: 12px; }
.tile-copy h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.05; margin-top: 8px; }
.tile-copy p:not(.label) { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 46ch; }
.demo { position: relative; min-width: 0; }

/* shared little bits */
.pop-in { animation: popin 0.5s var(--spring) both; }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(0.9); } }

/* ---------- grow together ---------- */
.tile-session { justify-content: space-between; }
.session-demo {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  background: #0e3b22; color: #eaffea; border: 2.5px solid var(--line); border-radius: 24px; padding: clamp(16px, 3cqi, 24px);
  box-shadow: inset 0 0 0 1px rgba(141, 240, 138, 0.15);
}
.sd-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 14px var(--body); }
.sd-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8df08a; flex: none; }
.sd-live i { width: 8px; height: 8px; border-radius: 50%; background: #8df08a; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.3; } }
.sd-clock { font-size: clamp(52px, 17cqi, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; text-align: center; }
.sd-status { text-align: center; font: 600 14px var(--body); color: #b9e8b9; min-height: 1.4em; transition: color 0.3s; }
.sd-status.on { color: #ffe45c; }
.sd-people { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 64px; }
.sd-person { display: grid; justify-items: center; gap: 4px; font: 600 12px var(--body); color: #cfeecf; }
.sd-person .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, 0.1); border: 2.5px solid var(--m, #8df08a); }
.sd-join { align-self: center; font: 800 16px var(--display); color: #131b33; background: #8df08a; border: 2.5px solid var(--line); border-radius: 14px; padding: 10px 26px; box-shadow: 3px 3px 0 var(--line); cursor: pointer; transition: transform 0.15s; }
.sd-join:hover { transform: translateY(-2px); }
.sd-join:active { transform: translate(3px, 3px); box-shadow: none; }
.sd-join[hidden] { display: none; }
.sd-feed { display: grid; gap: 8px; align-content: start; }
.sd-feed-label { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8fc98f; margin-top: 4px; }
.sd-win { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px 12px; font-size: 14px; min-width: 0; }
.sd-win b { flex: none; }
.sd-win span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eaffea; }
.sd-win .bonus { margin-left: auto; flex: none; font: 700 11px var(--mono); color: #ffe45c; }

/* ---------- plans ---------- */
.plan-demo { background: var(--card); border: 2.5px solid var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 8px; }
.pd-head { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0 2px 2px; }
.pd-head b { color: var(--ink); }
.pd-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--screen); cursor: pointer; transition: background 0.3s; min-width: 0; }
.pd-row:focus-visible { outline: 3px solid var(--tang); outline-offset: 2px; }
.pd-row .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2.5px solid var(--line); background: var(--card); display: grid; place-items: center; transition: background 0.25s, transform 0.3s var(--spring); }
.pd-row .t { flex: 1; min-width: 0; font: 600 15px/1.3 var(--body); color: var(--ink); overflow-wrap: anywhere; transition: color 0.3s; }
.pd-row .tag { flex: none; font: 700 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-green); background: var(--g2); border-radius: 999px; padding: 3px 8px; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s var(--spring); }
.pd-row.done .box { background: var(--g3); transform: scale(1.12); }
.pd-row.done .box::after { content: '✓'; font: 800 13px var(--body); color: var(--on-green); }
.pd-row.done .t { color: var(--ink-3); text-decoration: line-through; }
.pd-row.done .tag { opacity: 1; transform: none; }

/* ---------- notes ---------- */
.notes-demo { display: grid; gap: 12px; min-height: 196px; align-content: end; }
.nd-note { display: flex; gap: 10px; align-items: flex-end; }
.nd-note .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--card); border: 2.5px solid var(--line); }
.nd-bubble { min-width: 0; background: var(--card); border: 2.5px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--line); }
.nd-bubble b { display: block; font: 700 13px var(--body); }
.nd-bubble p { margin: 2px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.nd-bubble small { display: block; margin-top: 6px; font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.nd-note.out { animation: noteout 0.4s var(--ease) forwards; }
@keyframes noteout { to { opacity: 0; transform: translateY(-12px); } }

/* ---------- last 7 days ---------- */
.week-demo { display: grid; gap: 14px; }
.wd-card { background: var(--g3); color: var(--on-green); border: 2.5px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 3px; font: 600 14.5px/1.45 var(--body); }
.wd-card b { font: 800 clamp(20px, 5cqi, 24px)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.wd-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 118px; padding: 0 2px; }
.wd-day { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; height: 100%; }
.wd-day small { font: 500 11px var(--mono); color: var(--ink-3); margin-top: 2px; }
.wd-day i { width: min(100%, 26px); aspect-ratio: 1; border-radius: 6px; background: var(--g3); border: 2px solid var(--line); transform: scale(0); transition: transform 0.45s var(--spring); transition-delay: var(--dl, 0s); }
.wd-day i.rest { background: transparent; border-style: dashed; border-color: var(--hair); }
.week-demo.on .wd-day i { transform: none; }
.wd-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 14.5px var(--body); min-width: 0; }
.wd-search .ico { color: var(--ink-3); font-size: 17px; }
.wd-search .q { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.wd-search .q::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.wd-search .n { flex: none; font: 500 12px var(--mono); color: var(--ink-3); }
@keyframes blink { 50% { opacity: 0; } }
/* wide tiles go side by side: week on desktop + tablet, nudges on tablet (full-width row) */
@media (min-width: 760px) {
  .tile-week { flex-direction: row; align-items: center; gap: 32px; }
  .tile-week > .tile-copy { flex: 1 1 0; }
  .tile-week > .demo { flex: 1.25 1 0; }
}
@media (min-width: 760px) and (max-width: 1040px) {
  .tile-nudge { flex-direction: row; align-items: center; gap: 32px; }
  .tile-nudge > .tile-copy { flex: 1 1 0; }
  .tile-nudge > .demo { flex: 1.1 1 0; }
}

/* ---------- nudges ---------- */
.nudge-demo { display: grid; gap: 10px; width: 100%; max-width: 440px; margin-inline: auto; min-height: 290px; align-content: start; }
.nn { background: color-mix(in srgb, var(--card) 88%, transparent); border: 2px solid var(--line); border-radius: 18px; padding: 11px 13px; display: grid; gap: 2px; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(-14px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.6s var(--spring); }
.nn.show { opacity: 1; transform: none; }
.nn-top { display: flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.nn-top img { width: 18px; height: 18px; border-radius: 5px; background: #fff; }
.nn-top small { margin-left: auto; font-size: 11px; text-transform: none; }
.nn b { font: 700 14.5px var(--body); }
.nn > span { color: var(--ink-2); }
.nn-field { display: flex; align-items: center; gap: 8px; margin-top: 7px; background: var(--screen); border: 2px solid var(--hair); border-radius: 12px; padding: 6px 6px 6px 11px; min-height: 38px; }
.nn-field span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.nn-field em { font: 700 13px var(--body); font-style: normal; background: var(--g3); color: var(--on-green); border: 2px solid var(--line); border-radius: 9px; padding: 3px 10px; transition: transform 0.15s; }
.nn-field em.press { transform: scale(0.9); }
.nn-reply.logged .nn-field { border-color: var(--g3); }
.nn-reply.logged .nn-field em { background: var(--card); color: var(--g3); }

@media (prefers-reduced-motion: reduce) {
  .nn { opacity: 1; transform: none; }
  .week-demo .wd-day i { transform: none; transition: none; }
  .wd-search .q::after, .sd-live i { animation: none; }
  .pop-in, .nd-note.out { animation: none; }
}

/* =====================================================================
   Responsive pass: small phones, landscape phones, tablets
   ===================================================================== */

/* nav: never wrap; drop the lower-priority links at mid widths (they're still on the page) */
.nav-links a { white-space: nowrap; }
@media (max-width: 1080px) { .nav-links { gap: 20px; } .nav-links .nav-extra { display: none; } }

/* hero phone: scale the whole thing, so its contents never clip */
@media (max-width: 420px) { .stage > .phone { width: 320px; max-width: none; zoom: 0.9; } }
@media (max-width: 370px) { .stage > .phone { zoom: 0.78; } }
/* floating chips sit on top of the phone on small screens */
@media (max-width: 620px) { .f2, .f3 { z-index: 4; } }

/* "How it works" cards: tighter padding, and the phones scale down on narrow screens */
@media (max-width: 480px) {
  .feature { padding-inline: 18px; min-height: 600px; }
  .feature .phone { max-width: none; }
  .feature .caption { padding-inline: 18px; }
  .feature .caption h3 { font-size: 23px; }
}
@media (max-width: 370px) { .feature .phone { zoom: 0.8; } .feature { min-height: 540px; } }

/* year stats: always three across */
@media (max-width: 480px) {
  .year-stats { gap: 18px; flex-wrap: nowrap; justify-content: space-between; }
  .year-stats div b { font-size: 28px; }
  .year-stats div span { font-size: 10.5px; letter-spacing: 0.05em; }
  .year-tools p { flex-basis: 100%; }
}

/* squad plant on short portrait screens (small phones, browsers with big toolbars) */
@media (max-width: 880px) and (max-height: 720px) {
  .plant-copy .label { display: none; }
  .plant-copy h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .plant-steps { margin-top: 10px; }
  .plant-steps li { padding: 8px 12px; }
  .plant-steps li b { font-size: 16px; }
  .plant-steps li span { font-size: 13px; }
  .plant-stage { width: min(230px, 30svh, 70vw); }
  .plant-meter { padding: 10px 12px; gap: 7px; }
  .pm-top b { font-size: 20px; }
  .pm-av { width: 26px; height: 26px; font-size: 13px; }
}

/* landscape phones: plant and hero go side by side / scale down to fit the short screen */
@media (orientation: landscape) and (max-height: 520px) {
  .plant-inner { grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; justify-items: stretch; align-items: center; }
  .plant-copy .label { display: none; }
  .plant-copy h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0; max-width: 14ch; }
  .plant-steps { margin-top: 12px; }
  .plant-steps li { display: none; padding: 8px 12px; transform: none; }
  .plant-steps li.on { display: block; transform: none; }
  .plant-fig { gap: 8px; }
  .plant-stage { width: min(200px, 48svh); }
  .plant-meter { width: min(320px, 44vw); padding: 8px 12px; gap: 6px; }
  .pm-top b { font-size: 18px; }
  .pm-av { width: 24px; height: 24px; font-size: 12px; }
  .plant-word { font-size: 30vh; }
  .plant-hint { display: none; }

  .stage { min-height: 0; padding-block: 24px; }
  .stage > .phone { zoom: 0.62; }
  .f1, .f4 { display: none; }
  .hero h1 { margin-top: 28px; }
}
.plant-inner > * { min-width: 0; }

/* =====================================================================
   Materials: soft light, depth and surface texture on objects (never on
   the page background). Replaces the flat fills and hard offset shadows.
   ===================================================================== */
:root {
  /* fine surface grain, blended into each object's own colour */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --lift: 0 1px 2px rgba(19, 27, 51, 0.06), 0 12px 30px -12px rgba(19, 27, 51, 0.2), 0 44px 80px -44px rgba(19, 27, 51, 0.32);
  --lift-sm: 0 1px 1px rgba(19, 27, 51, 0.06), 0 6px 16px -8px rgba(19, 27, 51, 0.28);
  --glass: color-mix(in srgb, var(--card) 80%, transparent);
  --rim: rgba(19, 27, 51, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --hi: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    --lift: 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 44px -16px rgba(0, 0, 0, 0.75), 0 60px 100px -60px rgba(0, 0, 0, 0.9);
    --lift-sm: 0 1px 1px rgba(0, 0, 0, 0.4), 0 8px 18px -8px rgba(0, 0, 0, 0.7);
    --glass: color-mix(in srgb, var(--card) 72%, transparent);
    --rim: rgba(255, 255, 255, 0.09);
  }
}

/* ---------- tinted cards: "How it works" + "Together" tiles ---------- */
.feature, .tile {
  --fbg: color-mix(in srgb, var(--cat) 13%, var(--page));
  background-color: var(--fbg);
  background-image:
    var(--noise),
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--cat) 34%, #fff) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--cat) 22%, transparent) 0%, transparent 60%),
    linear-gradient(170deg, color-mix(in srgb, var(--cat) 24%, var(--page)), var(--fbg) 70%);
  background-blend-mode: soft-light, normal, normal, normal;
  border: 1px solid color-mix(in srgb, var(--cat) 42%, rgba(19, 27, 51, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(19, 27, 51, 0.06),
    0 16px 36px -16px color-mix(in srgb, var(--cat) 60%, rgba(19, 27, 51, 0.4)),
    0 50px 90px -50px rgba(19, 27, 51, 0.4);
}
@media (prefers-color-scheme: dark) {
  .feature, .tile {
    --fbg: color-mix(in srgb, var(--cat) 9%, #0d1228);
    background-image:
      var(--noise),
      radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--cat) 30%, transparent) 0%, transparent 60%),
      radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--cat) 12%, transparent) 0%, transparent 60%),
      linear-gradient(170deg, color-mix(in srgb, var(--cat) 17%, #141b36), var(--fbg) 75%);
    border: 1px solid color-mix(in srgb, var(--cat) 28%, rgba(255, 255, 255, 0.06));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 22px 50px -22px rgba(0, 0, 0, 0.8),
      0 30px 90px -40px color-mix(in srgb, var(--cat) 50%, transparent);
  }
}

/* ---------- the phone: titanium frame, glass screen, glare ---------- */
.phone {
  border: 0; padding: 10px;
  background: linear-gradient(150deg, #626b8f 0%, #20263f 13%, #0a0d1b 46%, #1c2239 84%, #555e82 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 0 0 3px #03050b,
    0 30px 60px -26px rgba(8, 12, 30, 0.6),
    0 80px 120px -60px rgba(8, 12, 30, 0.55);
}
.phone .screen { position: relative; height: 100%; align-content: start; background: var(--screen); border-radius: 40px; padding: 40px 10px 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.phone::before { top: 21px; width: 92px; height: 26px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone::after {
  content: ''; position: absolute; inset: 10px; border-radius: 40px; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 20%, transparent 36%, transparent 72%, rgba(255, 255, 255, 0.05) 100%);
}
.feature .phone { padding-bottom: 0; border-radius: 48px 48px 0 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), inset 0 0 0 3px #03050b, 0 30px 60px -30px rgba(8, 12, 30, 0.5); }
.feature .phone .screen { border-radius: 40px 40px 0 0; }
.feature .phone::after { bottom: 0; border-radius: 40px 40px 0 0; }
/* the app's own UI inside the screens keeps its look, with a little light on it */
.strip { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%); }

/* ---------- grid squares: bevelled, like little glazed tiles ---------- */
.month i:not(.pad):not(.future), .year i, .wd-day i:not(.rest) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1.5px 0 rgba(0, 0, 0, 0.14), 0 1px 1.5px rgba(19, 27, 51, 0.12);
}
@media (prefers-color-scheme: dark) {
  .month i:not(.pad):not(.future), .year i, .wd-day i:not(.rest) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1.5px 0 rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
.wd-day i:not(.rest) { border: 0; background-image: linear-gradient(180deg, #6ad97c, #2fa84a); }

/* ---------- buttons ---------- */
.btn { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px -8px rgba(19, 27, 51, 0.55); }
.btn.green, .sd-join {
  background: linear-gradient(180deg, #6ddd7f 0%, #3dbb57 55%, #2c9f47 100%);
  color: #06210e; border: 1px solid rgba(7, 40, 16, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 10px 24px -8px rgba(61, 187, 87, 0.65);
}
.btn.green:hover, .sd-join:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 14px 30px -8px rgba(61, 187, 87, 0.8); }
.join-row .btn.green { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 16px -6px rgba(61, 187, 87, 0.7); }
.sd-join:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); }

/* ---------- glass: hero chips, email pill, FAQ, year card ---------- */
.chip-card, .join-row {
  background-color: var(--glass);
  background-image: var(--noise), linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%);
  background-blend-mode: soft-light, normal;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--rim);
  box-shadow: var(--hi), var(--lift);
}
@media (prefers-color-scheme: dark) {
  .chip-card, .join-row { background-image: var(--noise), linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 55%); }
}
.join-row:focus-within { border-color: color-mix(in srgb, var(--g3) 70%, transparent); box-shadow: var(--hi), var(--lift), 0 0 0 4px color-mix(in srgb, var(--g3) 22%, transparent); }
.year-wrap, .faq details {
  background-color: var(--panel);
  background-image: var(--noise), linear-gradient(170deg, color-mix(in srgb, var(--panel) 60%, #fff), var(--panel) 60%);
  background-blend-mode: soft-light, normal;
  border: 1px solid var(--rim); box-shadow: var(--hi), var(--lift-sm);
}
@media (prefers-color-scheme: dark) {
  .year-wrap, .faq details { background-image: var(--noise), linear-gradient(170deg, #1a2244, var(--panel) 60%); }
}
.year-wrap { box-shadow: var(--hi), var(--lift); }
.faq details { transition: box-shadow 0.3s, background-color 0.3s; }
.faq details[open] { box-shadow: var(--hi), var(--lift); }
.brand-mark { border: 1px solid var(--rim); box-shadow: var(--hi), var(--lift-sm); background: linear-gradient(180deg, #fff, #f1f5ff); }

/* ---------- ribbons: glossy, textured tape instead of flat paper ---------- */
.band { border-block: 1px solid rgba(19, 27, 51, 0.35); background-blend-mode: soft-light, normal, normal; }
.band-a {
  background-color: #ff7a1a;
  background-image: var(--noise), linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.12) 100%), linear-gradient(90deg, #ff8a33, #ff7a1a 50%, #f06a10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 22px 40px -16px rgba(0, 0, 0, 0.55);
}
.band-b {
  background-color: #b9a6ff;
  background-image: var(--noise), linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.12) 100%), linear-gradient(90deg, #c7b8ff, #a893ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px -14px rgba(0, 0, 0, 0.45);
}
.band .it { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.band .sq { border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 3px 8px -2px rgba(0, 0, 0, 0.4); }

/* ---------- squad plant scene ---------- */
.plant-sec { background-image: var(--noise), radial-gradient(60% 55% at 70% 62%, var(--glow), transparent 70%), linear-gradient(180deg, var(--sky1), var(--sky2)); background-blend-mode: soft-light, normal, normal; }
.plant-sun { background: radial-gradient(circle, rgba(255, 244, 214, 0.34), rgba(255, 244, 214, 0.08) 55%, transparent 70%); }
.plant-steps li { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.plant-steps li.on {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 34px -16px rgba(0, 0, 0, 0.6);
}
.plant-meter { background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.pm-bar i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 12px rgba(141, 240, 138, 0.5); }
.pchip { border: 1px solid rgba(19, 27, 51, 0.15); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -10px rgba(0, 0, 0, 0.55); }
.plant-word { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Together demos ---------- */
.session-demo {
  border: 1px solid rgba(141, 240, 138, 0.22);
  background-color: #0c3520;
  background-image: var(--noise), radial-gradient(90% 60% at 50% 0%, rgba(141, 240, 138, 0.22), transparent 70%), linear-gradient(180deg, #11452a, #0a2c1a);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.25), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.sd-clock { background: linear-gradient(180deg, #ffffff, #b8f5bd); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(141, 240, 138, 0.35)); }
.sd-person .av { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px -6px rgba(0, 0, 0, 0.6); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)); }
.sd-win { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.08); }
.plan-demo, .nd-bubble, .nn, .wd-search {
  border: 1px solid var(--rim);
  background-color: var(--card);
  background-image: var(--noise), linear-gradient(170deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%);
  background-blend-mode: soft-light, normal;
  box-shadow: var(--hi), var(--lift-sm);
}
@media (prefers-color-scheme: dark) {
  .plan-demo, .nd-bubble, .nn, .wd-search { background-image: var(--noise), linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 50%); }
}
.nn { background-color: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pd-row { box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); }
.pd-row .box { border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.pd-row.done .box { border-color: transparent; background: linear-gradient(180deg, #6ddd7f, #2fa84a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 10px -3px rgba(61, 187, 87, 0.7); }
.pd-row .tag { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.nd-note .av { border: 1px solid var(--rim); box-shadow: var(--hi), var(--lift-sm); background: radial-gradient(circle at 35% 30%, #fff, var(--card)); }
@media (prefers-color-scheme: dark) { .nd-note .av { background: radial-gradient(circle at 35% 30%, #2c3766, var(--card)); } }
.wd-card {
  border: 1px solid rgba(7, 40, 16, 0.35);
  background-color: #3dbb57;
  background-image: var(--noise), radial-gradient(90% 90% at 0% 0%, rgba(255, 255, 255, 0.35), transparent 60%), linear-gradient(170deg, #55cf6c, #2fa84a);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 34px -14px rgba(61, 187, 87, 0.65);
}
.nn-field { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); }
.nn-field em { border: 1px solid rgba(7, 40, 16, 0.4); background: linear-gradient(180deg, #6ddd7f, #2fa84a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* ---------- green finale ---------- */
section.final-band {
  border-block: 1px solid rgba(7, 40, 16, 0.3);
  background-color: #3dbb57;
  background-image: var(--noise), linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 40%), linear-gradient(160deg, #4cc864, #2fa84a);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.final-band h2 { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 40px rgba(7, 40, 16, 0.25); }
.final-band .btn.green { background: linear-gradient(180deg, #2a3358, #131b33); color: #fff; border-color: #05080f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -6px rgba(7, 33, 15, 0.6); }
.final-band .join-row { background-color: rgba(255, 255, 255, 0.92); border-color: rgba(7, 40, 16, 0.2); }

/* ---------- vines: softer tips, a touch of depth ---------- */
.vine .bud { stroke: rgba(7, 40, 16, 0.45); stroke-width: 1.5; }
.vine .stem-shadow { opacity: 0.08; filter: blur(3px); }
.vine .bud-shadow { fill: #000; opacity: 0.3; filter: blur(3px); }
.vine .bud-gloss { fill: #fff; opacity: 0.32; }
.chip-btn { border: 1px solid var(--rim); background: linear-gradient(180deg, color-mix(in srgb, var(--card) 70%, #fff), var(--card)); box-shadow: var(--hi), var(--lift-sm); }
@media (prefers-color-scheme: dark) { .chip-btn { background: linear-gradient(180deg, #27305a, var(--card)); } }
.chip-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); }
.final-band .final { padding-inline: 24px; }

/* ---------- Together: fixed stages, so tiles never change height as demos update ---------- */
.sd-status { display: grid; }
.sd-status > span { grid-area: 1 / 1; transition: opacity 0.35s var(--ease); }
.sd-status > .on { opacity: 0; color: #ffe45c; }
.sd-status.bonus > .off { opacity: 0; }
.sd-status.bonus > .on { opacity: 1; }
.sd-join:disabled { cursor: default; background: rgba(255, 255, 255, 0.1); color: #b9f5bd; border-color: rgba(141, 240, 138, 0.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.sd-clock { font-variant-numeric: tabular-nums; }
/* the feed is a window with room for exactly four rows; new wins slide in at the top */
.sd-win { height: 40px; flex: none; }
.sd-feed { height: calc(4 * 40px + 3 * 8px); overflow: hidden; }
.sd-feed .sd-win.pop-in { animation: feedin 0.5s var(--ease) both; }
@keyframes feedin { from { opacity: 0; margin-top: -48px; } }

.notes-demo {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  height: 250px; min-height: 0; overflow: hidden;
  /* older notes fade as they rise out of the top */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
}
.nd-note { flex: none; }
.notes-demo .nd-note.pop-in { animation: notein 0.6s var(--ease) both; }
@keyframes notein { from { opacity: 0; max-height: 0; transform: translateY(16px); } to { max-height: 160px; } }
@media (prefers-reduced-motion: reduce) { .sd-feed .sd-win.pop-in, .notes-demo .nd-note.pop-in { animation: none; } }

/* =====================================================================
   Vines, rendered: round stems with bark dots, folded veined leaves on
   stalks, three leaf tones, and tendrils that curl in as the vine grows
   ===================================================================== */
.vine .stem-edge, .vine .stem, .vine .stem-light, .vine .stem-shadow { fill: none; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.vine .stem-edge { stroke: #134d23; stroke-width: 11; }
.vine .stem { stroke: #2f8c3e; stroke-width: 8; }
.vine .stem-light { stroke: #aee894; stroke-width: 2.2; opacity: 0.6; transform: translate(-0.8px, -2px); }
.vine .stem-shadow { stroke: #000; stroke-width: 10; opacity: 0.1; transform: translate(3px, 7px); filter: blur(4px); }
.vine .stem-edge.thin { stroke-width: 7.5; }
.vine .stem.thin { stroke-width: 5.2; }
.vine .stem-light.thin { stroke-width: 1.5; }
.vine .stem-shadow.thin { stroke-width: 7; }
.vine .stem-dots { fill: none; stroke: #154d22; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0.1 15; opacity: 0; }
.vine .stem-dots.thin { stroke-width: 1.6; stroke-dasharray: 0.1 12; }
.vine .node { fill: #245f2f; opacity: 0; }
.vine .petiole { fill: none; stroke: #2a7f3a; stroke-width: 2.4; stroke-linecap: round; }
.vine .leaf { stroke: #114a20; stroke-width: 1.1; stroke-opacity: 0.55; }
.vine .leaf-shadow { fill: #000; opacity: 0.12; }
.vine .leaf-lo { fill: #03260e; opacity: 0.24; }
.vine .vein { fill: none; stroke: #dcf8c8; stroke-opacity: 0.32; stroke-width: 1; stroke-linecap: round; }
.vine .midrib { fill: none; stroke: #e8fcd8; stroke-opacity: 0.6; stroke-width: 1.7; stroke-linecap: round; }
.vine .leaf-shine { fill: #fff; opacity: 0.16; }
.vine .tendril { fill: none; stroke: #4aa24f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
@media (prefers-color-scheme: dark) { .vine .leaf-shadow { opacity: 0.3; } .vine .stem-shadow { opacity: 0.25; } }
.vine.go .stem-edge, .vine.go .stem-light { animation: draw var(--dur, 2.4s) var(--ease) forwards; }
.vine.go .stem-dots { animation: fadein 0.8s ease forwards; }
.vine.go .node { animation: fadein 0.6s ease forwards; }
.vine.go .tendril { animation: draw 1.1s var(--ease) forwards; animation-delay: var(--delay); }
@keyframes fadein { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .vine .stem-edge, .vine .stem-light, .vine .tendril { stroke-dashoffset: 0; }
  .vine .stem-dots, .vine .node { opacity: 0.55; }
}
.vine .leaf-shadow { filter: blur(2.5px); }
@media (min-width: 1041px) { .sd-feed { height: calc(6 * 40px + 5 * 8px); } }
