/* Meet Pea waitlist. One centred column, big headlines, Pea in every screen.
   Tokens follow the brand direction (pale green-grey paper, deep green ink,
   Pea green, brass, a dark green band). Light only, as the site brief rules.
   Change a colour or font here and it changes everywhere. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/figtree.woff2) format("woff2"); }

:root {
  --paper: #f1f3ec; --paper-2: #e8ecdf; --card: #fbfcf8; --ink: #18201a; --muted: #56604f; --line: #d3d9cb;
  --pea: #3f6a2b; --pea-hi: #6fa14a; --pea-glow: #c7dea8; --pea-soft: #dfe8d3;
  --brass: #8a6526; --brass-soft: #f2e7d2; --blush: #f2b49a;
  --band: #22381a; --band-2: #2c4822; --band-ink: #eef3e6; --band-muted: #b9c9a8;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --col: 1080px; --read: 680px;
  --r-lg: 28px; --r-md: 18px;
  --shadow: 0 30px 70px -36px rgba(34, 56, 26, .45), 0 2px 6px rgba(34, 56, 26, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pea); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: 20px; }
.col { max-width: var(--col); margin-inline: auto; }
.read { max-width: var(--read); margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--pea); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pea-hi); box-shadow: 0 0 0 4px rgba(111, 161, 74, .22); }
section { padding-block: clamp(64px, 10vw, 120px); }
.h2 { font-weight: 800; font-size: clamp(38px, 6.4vw, 76px); line-height: .98; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 16px 26px; font: 700 17px/1 var(--body); background: var(--band); color: var(--band-ink); cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; box-shadow: 0 12px 30px -14px rgba(34, 56, 26, .8); white-space: nowrap; }
.btn:hover { background: var(--pea); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--card); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(241, 243, 236, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.mark .pea-ico { width: 34px; height: 38px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.mark:hover .pea-ico { transform: rotate(-12deg) scale(1.1); }
.mark span { color: var(--pea); }

/* Hero */
.hero { position: relative; padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px); text-align: center; overflow: clip; }
.hero::before { content: ""; position: absolute; left: 50%; top: 2%; width: min(900px, 140vw); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle at 50% 42%, rgba(199, 222, 168, .95), rgba(199, 222, 168, .35) 38%, transparent 64%); z-index: -1; pointer-events: none; }
.stage { position: relative; width: min(440px, 76vw); margin: 10px auto -14px; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: 7%; width: 46%; height: 18px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(34, 56, 26, .28), transparent 70%); z-index: -1; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font: 600 14.5px/1.25 var(--body); color: var(--ink); text-align: left; white-space: nowrap; animation: chipin .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both, float 6s ease-in-out calc(var(--d, 0s) + .8s) infinite; }
.chip i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--pea-soft); color: var(--pea); font-style: normal; }
.chip i svg { width: 17px; height: 17px; }
.chip small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.chip--brass i { background: var(--brass-soft); color: var(--brass); }
.chip--a { left: -62%; top: 20%; }
.chip--b { left: -48%; top: 58%; --dy: 7px; }
.chip--c { right: -58%; top: 14%; --dy: -6px; }
.chip--d { right: -64%; top: 54%; }
@keyframes chipin { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--dy, -8px); } }
.hero h1 { font-weight: 800; font-size: clamp(76px, 15vw, 172px); line-height: .86; letter-spacing: -.055em; }
.hero h1 .dot { display: inline-block; width: .19em; height: .19em; margin-left: .03em; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #b9e48a, #6fa14a 52%, #3f6a2b); box-shadow: inset -.02em -.03em .05em rgba(0,0,0,.18); vertical-align: baseline; }
.tagline { margin-top: 14px; font: 700 clamp(22px, 3.4vw, 34px)/1.15 var(--display); letter-spacing: -.02em; color: var(--pea); }
.hero .lede { margin: 14px auto 0; }

/* The join form and the pass */
.join { width: min(560px, 100%); margin: 30px auto 0; }
.ref-note { display: none; margin: 0 auto 12px; width: fit-content; padding: 8px 14px; border-radius: 999px; background: var(--brass-soft); color: var(--brass); font: 700 14.5px/1.3 var(--body); }
.has-ref .ref-note { display: block; }
.form { display: flex; gap: 8px; padding: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.form:focus-within { border-color: var(--pea-hi); box-shadow: var(--shadow), 0 0 0 5px rgba(111, 161, 74, .18); }
.form input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 8px 0 18px; font-size: 18px; color: var(--ink); outline: none; }
.form input::placeholder { color: #8a9383; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-busy .btn { opacity: .7; pointer-events: none; }
.form.is-shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.fine { margin-top: 14px; font-size: 15px; color: var(--muted); }
.fine b { color: var(--ink); font-weight: 700; }
.err { min-height: 22px; margin-top: 8px; font-size: 15px; font-weight: 600; color: #a2402a; }

.pass-wrap { display: none; }
.is-joined .form, .is-joined .fine, .is-joined .err, .is-joined .ref-note { display: none; }
.is-joined .pass-wrap { display: block; animation: chipin .7s cubic-bezier(.2, .8, .2, 1) both; }
.pass-title { font: 800 clamp(40px, 6vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.pass-sub { margin-top: 10px; color: var(--muted); }
.pass { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 22px auto 0; max-width: 460px; padding: 18px 22px 18px 18px; text-align: left; background: linear-gradient(135deg, var(--band) 0%, var(--band-2) 100%); color: var(--band-ink); border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(34, 56, 26, .9); overflow: hidden; }
.pass::before, .pass::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--paper); }
.pass::before { left: -13px; } .pass::after { right: -13px; }
.pass__pea { width: 58px; height: 66px; }
.pass__label { font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--band-muted); }
.pass__tier { margin-top: 6px; font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.pass__code { font: 700 13px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; text-align: right; color: var(--pea-glow); }
.pass__code span { display: block; margin-top: 4px; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
/* Share Pea, get Scout Pea (9 Oct 2026): one gift line, a preview of exactly what
   friends receive, and buttons that say what they do. */
.gift { margin: 26px auto 0; max-width: 500px; padding: 26px 24px 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); text-align: center; }
.gift__ico { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: var(--brass-soft); color: var(--brass); }
.gift__ico svg { width: 24px; height: 24px; }
.gift__h { font: 800 clamp(25px, 3.6vw, 31px)/1.05 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.gift__p { max-width: 36ch; margin: 8px auto 0; font-size: 16px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.peek__cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--pea); }
.peek__cap::before, .peek__cap::after { content: ""; height: 1.5px; flex: 0 1 44px; background: var(--line); }
.peek { position: relative; margin: 14px auto 0; max-width: 380px; padding: 5px 5px 7px; background: #dcf3cf; border-radius: 18px 18px 5px 18px; text-align: left; box-shadow: 0 14px 30px -18px rgba(34, 56, 26, .55); }
.peek::after { content: ""; position: absolute; right: -7px; bottom: 0; border: 9px solid transparent; border-left-color: #dcf3cf; border-bottom-color: #dcf3cf; border-bottom-right-radius: 4px; }
.peek__card { overflow: hidden; border-radius: 13px; background: rgba(255, 255, 255, .72); }
.peek__card img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.peek__meta { display: grid; gap: 2px; padding: 9px 12px 10px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.peek__meta b { color: var(--ink); font-size: 14.5px; }
.peek__meta small { margin-top: 2px; font-size: 12px; letter-spacing: .04em; text-transform: lowercase; color: #7b8673; }
.peek__msg { padding: 8px 8px 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.peek__link { color: #2a6db0; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.peek__time { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 0 10px; font-size: 11.5px; color: #6f7c68; }
.peek__time svg { width: 14px; height: 14px; color: #3d9ad1; }
.sharegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.sb { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 12px; border: 1.5px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); font: 700 15px/1.15 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; }
.sb:hover { border-color: var(--pea-hi); transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(34, 56, 26, .7); }
.sb:active { transform: translateY(1px) scale(.98); }
.sb svg { width: 21px; height: 21px; flex: none; }
.sb__line { color: var(--pea); }
.sb.is-done { border-color: var(--pea-hi); background: var(--pea-soft); color: var(--pea); }
.sb--go { grid-column: 1 / -1; min-height: 56px; border: 0; background: var(--band); color: var(--band-ink); font-size: 17px; box-shadow: 0 12px 30px -14px rgba(34, 56, 26, .8); }
.sb--go:hover { background: var(--pea); }
.sb--go svg { width: 20px; height: 20px; }
.sharegrid__lbl { display: none; grid-column: 1 / -1; margin: 4px 0 -2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sharegrid__lbl.is-on { display: block; }
.gift__p--do { max-width: 46ch; margin-top: 10px; color: var(--ink); font-weight: 600; text-wrap: balance; }
.friends { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.friends b { color: var(--ink); }
.friends__heads { display: flex; align-items: center; padding-left: 8px; }
.friends__heads i { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; background: #e3ecd6 url(/assets/img/pea-friend.png) center / cover no-repeat; box-shadow: 0 0 0 2.5px var(--card); }
.friends__more { display: grid; place-items: center; min-width: 30px; height: 30px; margin-left: -8px; padding: 0 7px; border-radius: 999px; background: var(--pea); color: #fff; font: 700 12.5px/1 var(--body); box-shadow: 0 0 0 2.5px var(--card); }
.again { margin-top: 14px; font-size: 14px; color: var(--muted); }
.again button { background: none; border: 0; padding: 0; color: var(--pea); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Confetti peas */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti b { position: absolute; top: -30px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a9d77a, #5c9a37 55%, #3f6a2b); animation: fall var(--t) cubic-bezier(.3, .2, .6, 1) var(--d) forwards; }
.confetti b.leaf { border-radius: 0 80% 0 80%; background: #86c15a; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }

/* The film */
.filmsec { padding-top: 0; }
.filmhead { margin-bottom: 22px; text-align: center; }
.film { position: relative; max-width: 1040px; margin-inline: auto; }
.f-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); color: var(--band-ink); background: radial-gradient(ellipse at 50% 40%, #345a26 0%, #22381a 55%, #17270f 100%); box-shadow: 0 50px 110px -50px rgba(23, 39, 15, .9), 0 0 0 1px rgba(199, 222, 168, .2); }
.f-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(238, 243, 230, .07) 1px, transparent 1.4px); background-size: 22px 22px; pointer-events: none; }
.f-stage::after { content: ""; position: absolute; left: 50%; top: 44%; width: 70%; height: 80%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(199, 222, 168, .18), transparent 62%); pointer-events: none; }
.f-scene { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 5% 6% 13%; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.f-scene.is-on { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.f-in { opacity: 0; }
.is-on .f-in { animation: fin .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.is-on .f-pop { animation: fpop .55s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) both; }
@keyframes fin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fpop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.f-big { max-width: 18ch; text-align: center; font: 800 clamp(26px, 4.4vw, 54px)/1.08 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.f-big em, .f-cap em { font-style: normal; color: #b6e07f; }
.f-cap { position: absolute; z-index: 2; left: 4%; right: 4%; bottom: 7%; text-align: center; font: 800 clamp(17px, 2.5vw, 30px)/1.2 var(--display); letter-spacing: -.015em; text-wrap: balance; }

.f-pea { width: clamp(120px, 19vw, 220px); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); transform-origin: 50% 92%; }
.f-pea--sm { width: clamp(84px, 13vw, 150px); }
.is-on .f-pea--idle { animation: fbob 3.4s ease-in-out .6s infinite; }
@keyframes fbob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.is-on .f-pea--drop { animation: fdrop 1.1s cubic-bezier(.3, .7, .3, 1) .5s both, fbob 3.4s ease-in-out 1.8s infinite; }
@keyframes fdrop { 0% { transform: translateY(-140%) scale(.9, 1.1); opacity: 0; } 45% { transform: translateY(0) scale(.9, 1.1); opacity: 1; } 60% { transform: translateY(0) scale(1.16, .84); } 78% { transform: translateY(-9%) scale(.96, 1.05); } 100% { transform: none; } }
.is-on .f-pea--hop { animation: fhop 2.6s cubic-bezier(.4, 0, .3, 1) var(--d, 1s) both; }
@keyframes fhop { 0% { transform: translateX(0); } 18% { transform: translateX(0) scale(1.08, .9); } 45% { transform: translate(var(--hx, 160%), -38%) rotate(10deg); } 62% { transform: translateX(var(--hx, 160%)) scale(1.1, .88); } 76%, 100% { transform: translateX(var(--hx, 160%)); } }
.is-on .f-pea--cheer { animation: fcheer 1s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) 2; }
@keyframes fcheer { 0%, 100% { transform: none; } 30% { transform: scale(1.1, .88); } 60% { transform: translateY(-16%) scale(.95, 1.06); } }

.f-clutter { position: absolute; inset: 0; }
.f-note { position: absolute; left: var(--x); top: var(--y); padding: .5em .8em; background: #fbf6e3; color: #3a3320; border-radius: 6px; font: 700 clamp(11px, 1.5vw, 17px)/1.2 var(--body); transform: rotate(var(--r)); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); opacity: 0; white-space: nowrap; }
.is-on .f-note { animation: fnote .5s cubic-bezier(.3, 1.4, .5, 1) var(--d) both; }
@keyframes fnote { from { opacity: 0; transform: rotate(var(--r)) scale(.6); } to { opacity: 1; transform: rotate(var(--r)); } }

.f-hello { display: flex; align-items: center; gap: clamp(10px, 3vw, 36px); }
.f-say { position: relative; background: #fff; color: var(--band); font: 800 clamp(20px, 3vw, 36px)/1 var(--display); letter-spacing: -.02em; padding: .55em .85em; border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); }
.f-say::before { content: ""; position: absolute; left: -10px; bottom: 18px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.f-acro { display: flex; justify-content: center; gap: clamp(8px, 2vw, 22px); margin-top: clamp(14px, 3vw, 30px); }
.f-acro span { font: 700 clamp(14px, 2vw, 22px)/1 var(--body); color: var(--band-muted); padding: .5em .8em; border-radius: 999px; background: rgba(238, 243, 230, .08); border: 1px solid rgba(238, 243, 230, .14); }
.f-acro b { color: #b6e07f; font-family: var(--display); font-size: 1.2em; }

.f-duo { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); width: min(820px, 100%); }
.f-voice { flex: 1; background: rgba(251, 252, 248, .97); color: var(--ink); border-radius: 20px; padding: clamp(12px, 2vw, 20px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); text-align: left; }
.f-voice__bar { display: flex; align-items: center; gap: 10px; font: 700 13px var(--body); color: var(--pea); letter-spacing: .08em; text-transform: uppercase; }
.f-mic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pea); color: #fff; }
.f-mic svg { width: 16px; height: 16px; }
.f-wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.f-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--pea-hi); }
.is-on .f-wave i { animation: fwave .9s ease-in-out infinite; }
.f-wave i:nth-child(2n) { animation-delay: .15s !important; } .f-wave i:nth-child(3n) { animation-delay: .3s !important; }
@keyframes fwave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.f-said { margin-top: 10px; font: 600 clamp(14px, 2vw, 22px)/1.35 var(--body); }

/* Today, the page Pea makes each morning (staged) */
.today { width: min(640px, 100%); background: var(--card); color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6); text-align: left; font-size: clamp(11px, 1.45vw, 15px); }
.today__top { display: flex; align-items: center; gap: 12px; padding: 1em 1.2em; background: linear-gradient(120deg, #e9f1dd, #f6f8f1); border-bottom: 1px solid var(--line); }
.today__top .pea-ico { width: 3.2em; height: 3.6em; flex: none; }
.today__hi { font: 800 1.4em/1.1 var(--display); letter-spacing: -.02em; }
.today__meta { margin-top: 3px; color: var(--muted); font-weight: 600; font-size: .9em; }
.today__lvl { margin-left: auto; text-align: right; font-weight: 700; font-size: .85em; color: var(--pea); min-width: 9em; }
.today__bar { margin-top: 5px; height: 7px; border-radius: 9px; background: var(--pea-soft); overflow: hidden; }
.today__bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--pea-hi), var(--pea)); }
.is-on .today__bar i { animation: fbar 2.6s cubic-bezier(.3, .7, .2, 1) .9s forwards; }
@keyframes fbar { to { width: 72%; } }
.today__rows { display: grid; gap: .5em; padding: 1em 1.2em; }
.trow { display: grid; grid-template-columns: 1.6em 1fr auto; gap: .7em; align-items: center; padding: .65em .8em; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.trow__tick { width: 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.trow__tick svg { width: .9em; height: .9em; color: #fff; opacity: 0; }
.is-on .trow--done .trow__tick { animation: ftick .4s ease var(--t, 3s) forwards; }
.is-on .trow--done .trow__tick svg { animation: fshow .2s ease var(--t, 3s) forwards; }
@keyframes ftick { to { background: var(--pea-hi); border-color: var(--pea-hi); } }
@keyframes fshow { to { opacity: 1; } }
.trow b { font-weight: 700; }
.trow small { display: block; color: var(--muted); font-size: .86em; }
.tag { font: 800 .7em/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: .45em .7em; border-radius: 999px; background: var(--pea-soft); color: var(--pea); white-space: nowrap; }
.tag--brass { background: var(--brass-soft); color: var(--brass); }
.today__badges { display: flex; gap: .6em; padding: .7em 1.2em 1em; border-top: 1px dashed var(--line); align-items: center; }
.today__badges span { font-size: .78em; font-weight: 700; color: var(--muted); margin-right: .2em; }
.bdg { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, var(--pea-soft)); border: 2px solid var(--pea-glow); color: var(--pea); }
.bdg svg { width: 1.2em; height: 1.2em; }
.bdg--brass { border-color: #e2c891; color: var(--brass); background: radial-gradient(circle at 35% 30%, #fff, var(--brass-soft)); }
.bdg--empty { border-style: dashed; background: transparent; color: var(--line); }

.f-chat { width: min(600px, 100%); display: grid; gap: 10px; text-align: left; font-size: clamp(12px, 1.6vw, 17px); }
.f-you { justify-self: end; max-width: 80%; background: #d9ecc4; color: var(--ink); border-radius: 18px 18px 5px 18px; padding: .7em 1em; font-weight: 600; }
.f-peasays { display: flex; gap: 10px; align-items: flex-end; }
.f-peasays .pea-ico { width: 2.6em; height: 3em; flex: none; }
.f-bub { background: var(--card); color: var(--ink); border-radius: 18px 18px 18px 5px; padding: .7em 1em; font-weight: 600; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6); }
.f-day { justify-self: center; font: 700 .78em/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); padding-top: .4em; }
.f-draft { background: var(--card); color: var(--ink); border-radius: 14px; padding: .8em 1em; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6); }
.f-draft__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: .9em; color: var(--muted); }
.f-draft p { margin-top: .4em; font-weight: 600; }

.f-home { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 48px); width: min(860px, 100%); }
.f-folder { width: min(340px, 52%); background: var(--card); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); text-align: left; font-size: clamp(12px, 1.5vw, 16px); }
.f-folder__h { display: flex; align-items: center; gap: 10px; padding: .8em 1em; background: #eef2e6; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--band); }
.f-folder__h svg { width: 1.4em; height: 1.4em; color: var(--brass); }
.f-folder ul { list-style: none; margin: 0; padding: .5em 1em .8em; }
.f-folder li { display: flex; align-items: center; gap: .6em; padding: .45em 0; border-bottom: 1px solid #edf0e6; font-weight: 600; }
.f-folder li:last-child { border-bottom: 0; }
.f-folder li::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--pea-hi); flex: none; }
.f-apps { display: grid; gap: 14px; justify-items: center; }
.f-approw { position: relative; display: flex; gap: clamp(30px, 8vw, 110px); align-items: flex-end; }
.f-app { display: grid; justify-items: center; gap: 8px; font: 800 clamp(13px, 1.7vw, 18px)/1 var(--body); }
.f-app span { padding: .55em 1.1em; border-radius: 999px; background: rgba(238, 243, 230, .12); border: 1px solid rgba(238, 243, 230, .25); }
.f-slot { width: clamp(70px, 10vw, 120px); height: clamp(80px, 11vw, 132px); display: grid; place-items: end center; }

.f-levels { display: grid; justify-items: center; gap: clamp(10px, 2vw, 20px); width: min(760px, 100%); }
.f-lvl { position: relative; height: 1.2em; overflow: hidden; font: 800 clamp(30px, 6vw, 70px)/1.2 var(--display); letter-spacing: -.03em; color: #b6e07f; }
.f-lvl__reel { display: block; }
.f-lvl__reel span { display: block; height: 1.2em; text-align: center; }
.is-on .f-lvl__reel { animation: freel 4.2s cubic-bezier(.6, 0, .3, 1) .6s both; }
@keyframes freel { from { transform: translateY(0); } to { transform: translateY(-90%); } }
.f-ladder { display: flex; gap: 6px; }
.f-ladder i { width: clamp(16px, 3vw, 34px); height: 8px; border-radius: 6px; background: rgba(238, 243, 230, .18); }
.is-on .f-ladder i { animation: frung .3s ease calc(.6s + var(--k) * .42s) forwards; }
.f-ladder i:last-child { --gold: 1; }
@keyframes frung { to { background: #b6e07f; } }
.f-quote { max-width: 30ch; text-align: center; font: 600 clamp(14px, 2vw, 21px)/1.35 var(--body); color: var(--band-ink); }
.f-quote cite { display: block; margin-top: .5em; font-style: normal; font-weight: 700; color: var(--band-muted); font-size: .85em; }

.f-end { display: grid; justify-items: center; gap: clamp(8px, 1.6vw, 16px); text-align: center; }
.f-end__t { font: 800 clamp(30px, 5vw, 62px)/1.02 var(--display); letter-spacing: -.035em; }
.f-end__s { font: 700 clamp(15px, 2vw, 22px)/1 var(--body); color: #b6e07f; }
.f-end .btn { background: var(--band-ink); color: var(--band); }
.f-end .btn:hover { background: #fff; }

.f-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.f-dots { display: flex; gap: 6px; }
.f-dots i { position: relative; width: 22px; height: 4px; border-radius: 4px; background: rgba(238, 243, 230, .22); overflow: hidden; }
.f-dots i.is-done { background: rgba(182, 224, 127, .85); }
.f-dots i.is-now::after { content: ""; position: absolute; inset: 0; background: #b6e07f; transform-origin: 0 50%; animation: ffill var(--dur, 5s) linear both; }
@keyframes ffill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.f-ctrl { display: flex; gap: 8px; }
.f-ctrl button { display: inline-flex; align-items: center; gap: 7px; background: rgba(23, 39, 15, .6); color: #fff; border: 1px solid rgba(238, 243, 230, .35); border-radius: 999px; padding: 7px 14px; font: 700 14px var(--body); cursor: pointer; }
.f-ctrl button:hover { border-color: #b6e07f; }
.f-ctrl svg { width: 14px; height: 14px; }
.f-bigplay { position: absolute; z-index: 4; left: 50%; bottom: 12%; transform: translateX(-50%); display: none; align-items: center; gap: 12px; background: var(--band-ink); color: var(--band); border: 0; border-radius: 999px; padding: 16px 26px; font: 800 17px var(--body); cursor: pointer; white-space: nowrap; box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 10px rgba(182, 224, 127, .22); }
.f-bigplay svg { width: 20px; height: 20px; }
.film.is-idle .f-bigplay { display: inline-flex; }
.film.is-idle .f-cap, .film.is-idle .f-dots, .film.is-idle .f-ctrl { visibility: hidden; }
.film.is-idle .f-in, .film.is-idle .f-pop, .film.is-idle .f-note { opacity: 1; animation: none; }
.film.is-idle .f-pea { animation: none !important; }
.film.is-idle .f-hello { margin-top: -10%; }
.film.is-paused .f-stage *, .film.is-paused .f-stage *::before, .film.is-paused .f-stage *::after, .film.is-paused .f-dots i::after { animation-play-state: paused !important; }
.f-text { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.f-text summary { cursor: pointer; font-weight: 600; }
.f-text ol { text-align: left; max-width: 560px; margin: 10px auto 0; }

/* What Pea does */
.feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.feat { grid-column: span 2; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feat--wide { grid-column: span 3; }
.feat h3 { font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1; letter-spacing: -.035em; }
.feat p { color: var(--muted); font-size: 17px; }
.feat__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--pea-soft); color: var(--pea); }
.feat__ico svg { width: 24px; height: 24px; }
.feat--today { grid-column: span 6; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 30px; background: linear-gradient(135deg, #e3eed4, #f7f9f2); }
.feat--today .today { font-size: clamp(11px, 1.3vw, 14.5px); box-shadow: var(--shadow); }
.feat--today h3 { font-size: clamp(34px, 4.4vw, 54px); }

/* Ownership band */
.band { background: var(--band); color: var(--band-ink); border-radius: clamp(28px, 4vw, 44px); padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); position: relative; overflow: hidden; text-align: center; }
.band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(238, 243, 230, .06) 1px, transparent 1.4px); background-size: 22px 22px; }
.band > * { position: relative; }
.band blockquote { margin: 0; font: 800 clamp(34px, 5.6vw, 68px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.band blockquote em { font-style: normal; color: #b6e07f; }
.band cite { display: block; margin-top: 18px; font: 700 16px var(--body); font-style: normal; color: var(--band-muted); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.facts span { padding: 10px 16px; border-radius: 999px; background: rgba(238, 243, 230, .08); border: 1px solid rgba(238, 243, 230, .16); font-weight: 600; font-size: 16px; }

/* Questions */
.faq { margin-top: 36px; display: grid; gap: 10px; text-align: left; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 700 19px/1.3 var(--display); letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 24px/1 var(--body); color: var(--pea); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 20px; color: var(--muted); }

/* Close */
.close { text-align: center; }
.close__pea { width: 170px; margin: 0 auto 6px; }

/* Footer */
.foot { padding-block: 40px 48px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot__in p + p { margin-top: 6px; }
.foot a { color: var(--muted); }
.foot .mark { font-size: 19px; margin-bottom: 8px; }
.foot .mark .pea-ico { width: 28px; height: 32px; }

/* Phones */
@media (max-width: 900px) {
  .chip { display: none; }
  .feats { grid-template-columns: 1fr; }
  .feat, .feat--wide { grid-column: auto; }
  .feat--today { grid-column: auto; grid-template-columns: 1fr; }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .chip--a { left: -46%; } .chip--b { left: -40%; } .chip--c { right: -42%; } .chip--d { right: -48%; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .form { flex-direction: column; border-radius: 26px; padding: 8px; }
  .form input[type=email] { padding: 14px 14px; text-align: center; }
  .form .btn { width: 100%; }
  .f-stage { aspect-ratio: 4 / 5; border-radius: 22px; }
  .f-scene { padding: 7% 5% 118px; }
  .f-cap { bottom: 58px; }
  .f-bigplay { bottom: 66px; padding: 14px 22px; font-size: 16px; }
  .f-bar { padding: 10px 12px; gap: 8px; }
  .f-dots { gap: 4px; }
  .f-dots i { width: 11px; }
  .f-ctrl { gap: 6px; }
  .f-ctrl button { padding: 7px 10px; font-size: 13px; }
  .f-sound__t { display: none; }
  .f-note { left: var(--mx, var(--x)); top: var(--my, var(--y)); display: var(--mhide, block); }
  .f-hello { flex-direction: column; }
  .f-say::before { left: 50%; top: -10px; bottom: auto; transform: translateX(-50%); border: 10px solid transparent; border-bottom-color: #fff; border-top: 0; }
  .f-duo { flex-direction: column; }
  .f-home { flex-direction: column; }
  .f-folder { width: 88%; }
  .f-acro { flex-direction: column; align-items: center; }
  .today__lvl { min-width: 0; }
  .today__badges span { display: none; }
  .pass { grid-template-columns: auto 1fr; }
  .pass__code { grid-column: 1 / -1; text-align: left; }
  .gift { padding: 22px 16px 18px; border-radius: 22px; }
  .sharegrid { gap: 8px; }
  .sb { padding: 11px 8px; font-size: 14.5px; }
  .sb__pre { display: none; }
  .sharegrid__lbl { display: block; }
  .peek__cap { letter-spacing: .1em; }
  .peek__cap::before, .peek__cap::after { display: none; }
  .stage { width: min(300px, 76vw); }
}

/* Still frames for checking the film: ?filmscene=4 shows scene 4 finished. */
.film.is-static *, .film.is-static *::before, .film.is-static *::after { animation-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; }

/* ------------------------------------------------------------------ Pea
   Drawn in SVG in the class film's style (tools/pea.py). It pops out of its
   pod, waves, blinks, sways its sprout and cheers when you join. */
.pea { display: block; height: auto; overflow: visible; }
.pea-ico { display: block; overflow: visible; }
.pea .pea-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.4s ease-in-out infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.pea .pea-pupils { transition: transform .25s ease-out; }
.pea .pea-happy { opacity: 0; }
.pea .pea-sprout { transform-box: fill-box; transform-origin: 20% 100%; animation: sway 2.6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(7deg); } }
.pea .pea-wave { transform-box: fill-box; transform-origin: 18% 88%; }
.pea .pea-mouth { transform-box: fill-box; transform-origin: 50% 0%; }
.pea .pea-all { transform-box: view-box; transform-origin: 100px 222px; }
.pea--happy .pea-happy, .is-cheer .pea-happy { opacity: 1; }
.pea--happy .pea-eyes, .is-cheer .pea-eyes { opacity: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-40deg); } 65% { transform: rotate(-12deg); } }
@keyframes jump { 0% { opacity: 0; transform: translateY(18px) scale(.2); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes squash { 0%, 100% { transform: none; } 30% { transform: scale(1.1, .88); } 60% { transform: translateY(-14%) scale(.95, 1.06); } }
@keyframes talk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.6); } }
@keyframes podin { from { opacity: 0; transform: translateY(-40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes podwig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes podout { from { opacity: 1; } to { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes lid { to { transform: rotate(-42deg); } }
@keyframes shadowin { from { opacity: 0; } to { opacity: .22; } }
@keyframes fhide { to { opacity: 0; } }
.pod { position: absolute; left: -22%; width: 144%; bottom: -8%; height: auto; overflow: visible; pointer-events: none; opacity: 0; }
.pod--back { z-index: 1; }
.pod--front { z-index: 3; }
.pod .pod-lid { transform-box: view-box; transform-origin: 14px 70px; }

/* The header Pea: the pod pops, Pea jumps out and waves, then idles */
.hero-pea { position: relative; width: 74%; margin-inline: auto; }
.hero-pea .pea { position: relative; z-index: 2; filter: drop-shadow(0 26px 30px rgba(34, 56, 26, .28)); }
.hero-pea .pod { animation: podin .4s cubic-bezier(.3, 1.5, .5, 1) .15s both, podwig .4s ease-in-out .55s 1, podout .45s ease-in 1.5s forwards; }
.hero-pea .pod .pod-lid { animation: lid .35s cubic-bezier(.3, 1.4, .5, 1) .95s both; }
.pea--hero .pea-all { animation: jump .75s cubic-bezier(.25, 1.55, .45, 1) 1s both, bob 3.4s ease-in-out 2.1s infinite; }
.pea--hero .pea-shadow { opacity: 0; animation: shadowin .3s ease 1.4s forwards; }
.pea--hero .pea-wave { animation: wave 1.1s ease-in-out 1.7s 3; }
.pea--hero.is-wave .pea-wave { animation: wave 1.1s ease-in-out 0s 2; }
.pea--hero .pea-mouth { animation: talk .2s ease-in-out 1.9s 4; }
.hero-pea.is-cheer .pea-all { animation: squash .9s cubic-bezier(.3, 1.5, .5, 1) 0s 3; }

/* Film Peas */
.f-podwrap { position: relative; display: grid; place-items: center; }
.f-podwrap .f-pea { position: relative; z-index: 2; }
.is-on .f-pea--jump .pea-all { animation: jump .7s cubic-bezier(.25, 1.55, .45, 1) .8s both, bob 3.2s ease-in-out 1.7s infinite; }
.f-pea--jump .pea-shadow { opacity: 0; }
.is-on .f-pea--jump .pea-shadow { animation: shadowin .3s ease 1.1s forwards; }
.is-on .f-pea--jump .pea-wave { animation: wave 1.1s ease-in-out 1.4s 3; }
.is-on .f-pea--jump .pea-mouth { animation: talk .2s ease-in-out 1.5s 4; }
.is-on .f-podwrap .pod { animation: podin .4s cubic-bezier(.3, 1.5, .5, 1) 0s both, podwig .4s ease-in-out .38s 1, podout .45s ease-in 1.25s forwards; }
.is-on .f-podwrap .pod .pod-lid { animation: lid .35s cubic-bezier(.3, 1.4, .5, 1) .78s both; }
.is-on .f-pea--idle .pea-all { animation: bob 3.2s ease-in-out .6s infinite; }
.is-on .f-pea--idle .pea-mouth { animation: talk .2s ease-in-out 3.4s 4; }
.is-on .f-pea--joy .pea-happy { animation: fshow .3s ease var(--joy, 99s) forwards; }
.is-on .f-pea--joy .pea-eyes { animation: blink 4.4s ease-in-out infinite, fhide .3s ease var(--joy, 99s) forwards; }
.is-on .f-pea--cheer .pea-all { animation: squash 1s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) 2; }
.is-on .f-pea--cheer .pea-wave { animation: wave 1.1s ease-in-out .6s 2; }
.f-scene .f-podwrap .f-pea { width: clamp(120px, 17vw, 200px); }
.f-app .f-pea { width: 100%; }
.film.is-idle .pod { display: none; }
.film.is-idle .pea-all { animation: none !important; opacity: 1; }
.film.is-idle .pea-shadow { animation: none !important; opacity: .22; }

/* Card, closing and 404 Peas */
.tier__pea .pea-all, .close__pea .pea-all { animation: bob 3.6s ease-in-out infinite; }
.close__pea { width: 150px; margin: 0 auto 10px; }
.close__pea .pea-wave { animation: wave 1.1s ease-in-out 1s 2; }
.lost__pea { width: 160px; margin: 0 auto 10px; transform: rotate(-10deg); }
.lost__pea .pea-eyes { animation: none; transform: scaleY(.35); }

/* Just tell Pea (7 October 2026) */
.talk { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; text-align: left; }
.talk__pair { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.talk p { margin: 0; }
.talk__you { justify-self: end; max-width: 88%; background: #d9ecc4; color: var(--ink); border-radius: 20px 20px 6px 20px; padding: .75em 1em; font-weight: 600; font-size: 17px; line-height: 1.35; }
.talk__how { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--pea); }
.talk__how svg { width: 14px; height: 14px; }
.talk__pea { display: flex; align-items: flex-end; gap: 10px; max-width: 92%; }
.talk__pea img { width: 38px; height: auto; flex: none; }
.talk__pea span { background: var(--paper-2); border-radius: 20px 20px 20px 6px; padding: .75em 1em; font-size: 17px; line-height: 1.35; }
@media (max-width: 720px) { .talk { grid-template-columns: 1fr; } }
