/* Pea site: the pieces the waitlist didn't need. Loads after base.css and pea2.css,
   uses their tokens (--paper, --ink, --pea, --brass, --band ...) and adds nothing new
   to the palette. One centred column, big headlines, Pea in every screen. */

:root { --wide: 1180px; --nav-h: 66px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--band); color: var(--band-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.wide { max-width: var(--wide); margin-inline: auto; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }

/* ---------- Top bar nav ---------- */
.top__in { gap: 20px; }
.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list a:not(.btn) { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font: 600 15.5px/1 var(--body); text-decoration: none; transition: background .2s, color .2s; }
.nav__list a:not(.btn):hover { background: rgba(63, 106, 43, .08); color: var(--pea); }
.nav__list a[aria-current="page"] { color: var(--pea); background: var(--pea-soft); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.nav__toggle i, .nav__toggle i::before, .nav__toggle i::after { position: absolute; left: 11px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s; content: ""; }
.nav__toggle i { top: 21px; } .nav__toggle i::before { top: -7px; left: 0; } .nav__toggle i::after { top: 7px; left: 0; }
.nav-open .nav__toggle i { background: transparent; }
.nav-open .nav__toggle i::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav__toggle i::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__list { position: fixed; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 22px; background: rgba(241, 243, 236, .98); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(34, 56, 26, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .2s, visibility 0s linear .25s; }
  .nav-open .nav__list { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .2s; }
  .nav__list a:not(.btn) { padding: 15px 14px; font-size: 18px; }
  .nav__cta { margin: 10px 0 0; }
  .nav__cta .btn { width: 100%; padding: 16px; font-size: 17px; }
}

/* ---------- Footer ---------- */
.foot2 { margin-top: clamp(40px, 8vw, 90px); padding-block: clamp(48px, 7vw, 80px) 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(232, 236, 223, .55), rgba(241, 243, 236, 0)); font-size: 15px; color: var(--muted); }
.foot2__top { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: 40px; }
.foot2__brand .mark__logo { height: 44px; }
.foot2__brand p { margin: 12px 0 18px; }
.foot2__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.foot2__cols h2 { margin: 0 0 5px; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--pea); }
.foot2__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
/* links are 40px tall to tap (r4), so the lists need no gap of their own */
.foot2__cols a { display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-weight: 500; }
.foot2__cols a:hover { color: var(--pea); text-decoration: underline; text-underline-offset: 3px; }
.foot2__tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--brass-soft); color: var(--brass); font: 700 11px/1.2 var(--body); letter-spacing: .04em; vertical-align: 1px; }
.foot2__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 900px) {
  .foot2__top { grid-template-columns: 1fr; }
  .foot2__cols { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}

/* ---------- Hero buttons and pills (home) ---------- */
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn--light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 26px -18px rgba(34, 56, 26, .6); }
.btn--light:hover { background: #fff; color: var(--pea); }
.btn--lg { padding: 18px 30px; font-size: 18px; }
.price-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.price-note b { color: var(--ink); }

/* ---------- Sub-page hero ---------- */
.phero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 56px); text-align: center; overflow: clip; }
.phero::before { content: ""; position: absolute; left: 50%; top: -10%; width: min(820px, 130vw); aspect-ratio: 1.6; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 45%, rgba(199, 222, 168, .8), rgba(199, 222, 168, .25) 42%, transparent 66%); z-index: -1; pointer-events: none; }
.phero__pea { width: clamp(150px, 22vw, 230px); margin: 0 auto 6px; filter: drop-shadow(0 22px 26px rgba(34, 56, 26, .22)); }
.phero h1 { font-weight: 800; font-size: clamp(48px, 9vw, 104px); line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.phero h1 em { font-style: normal; color: var(--pea); }
.phero .lede { margin: 18px auto 0; }

/* ---------- Section heads ---------- */
.shead { text-align: center; }
.shead .h2 { margin-top: 14px; }
.shead .lede { margin: 18px auto 0; }
.h2-em, .h2 em { font-style: normal; color: var(--pea); }
.h3 { font: 800 clamp(26px, 3.4vw, 38px)/1.02 var(--display); letter-spacing: -.035em; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.card { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.card h3 { font: 800 clamp(22px, 2.4vw, 27px)/1.05 var(--display); letter-spacing: -.03em; }
.card p { color: var(--muted); font-size: 16.5px; }
.card__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--pea-soft); color: var(--pea); }
.card__ico svg { width: 22px; height: 22px; }
.card--brass .card__ico { background: var(--brass-soft); color: var(--brass); }

/* ---------- Prose (journal, about, legal) ---------- */
.prose { max-width: 680px; margin-inline: auto; font-size: 19px; line-height: 1.65; text-align: left; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; font: 800 clamp(26px, 3.2vw, 34px)/1.1 var(--display); letter-spacing: -.03em; }
.prose h3 { margin-top: 1.5em; font: 800 22px/1.2 var(--display); letter-spacing: -.02em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--pea-hi); font: 700 clamp(22px, 2.6vw, 27px)/1.3 var(--display); letter-spacing: -.02em; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { margin-inline: auto; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: 14.5px; color: var(--muted); }
.prose .small, .small { font-size: 15px; color: var(--muted); }
.legal { font-size: 17px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 27px); }
.byline { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.byline img { width: 30px; height: 34px; }

/* ---------- Journal list ---------- */
.posts { display: grid; gap: 18px; max-width: 860px; margin: 40px auto 0; }
.post-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.post-card:hover { transform: translateY(-2px); border-color: var(--pea-glow); box-shadow: var(--shadow); }
.post-card img { width: 150px; height: 150px; object-fit: contain; border-radius: 20px; background: radial-gradient(circle at 50% 45%, var(--pea-soft), var(--paper-2)); padding: 10px; }
.post-card time, .post-meta { font: 700 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--pea); }
.post-card h2 { margin-top: 10px; font: 800 clamp(24px, 3vw, 32px)/1.05 var(--display); letter-spacing: -.03em; }
.post-card p { margin-top: 8px; color: var(--muted); font-size: 16.5px; }
@media (max-width: 600px) { .post-card { grid-template-columns: 1fr; } .post-card img { width: 120px; height: 120px; } }

/* ---------- Pricing card ---------- */
.price { position: relative; max-width: 560px; margin: 40px auto 0; padding: clamp(28px, 5vw, 46px); border-radius: 34px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.price__tag { font: 800 clamp(76px, 13vw, 128px)/.9 var(--display); letter-spacing: -.05em; }
.price__tag sup { font-size: .4em; vertical-align: .9em; margin-right: 4px; letter-spacing: 0; }
.price__once { margin-top: 10px; font: 700 clamp(19px, 2.4vw, 23px)/1.2 var(--display); color: var(--pea); }
.price__list { display: grid; gap: 12px; margin: 26px 0 28px; padding: 0; list-style: none; text-align: left; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.price__list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--pea-hi); }
.price .btn { width: 100%; }
.price__fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Checklist (what you need) ---------- */
.needs { display: grid; gap: 12px; max-width: 620px; margin: 34px auto 0; padding: 0; list-style: none; text-align: left; }
.needs li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 17px; }
.needs li b { display: block; font-weight: 700; }
.needs li span { color: var(--muted); font-size: 15.5px; }
.needs svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--pea-soft); color: var(--pea); }

/* ---------- Footnotes ---------- */
.fn { max-width: 680px; margin: 26px auto 0; font-size: 14px; color: var(--muted); text-align: left; }
.fn p + p { margin-top: 6px; }

/* ---------- Press ---------- */
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 30px; }
.kit a { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s; }
.kit a:hover { border-color: var(--pea-hi); transform: translateY(-2px); }
.kit img { height: 140px; width: 100%; object-fit: contain; border-radius: 12px; background: var(--paper-2); }
.kit .kit--dark img { background: var(--band); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.swatch { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.swatch i { display: block; height: 78px; }
.swatch b, .swatch span { display: block; padding: 0 12px; }
.swatch b { padding-top: 10px; }
.swatch span { padding-bottom: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.facts { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16.5px; text-align: left; }
.facts th, .facts td { padding: 14px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--muted); font-weight: 600; }

/* ---------- Do and don't (press, brand) ---------- */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; text-align: left; }
.dodont > div { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.dodont h3 { font: 800 20px/1.1 var(--display); }
.dodont ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--muted); }
.dodont li + li { margin-top: 6px; }
@media (max-width: 640px) { .dodont { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Animation frame (shared by components) ---------- */
.anim { position: relative; }
.anim-frame { position: relative; max-width: 1040px; margin: 40px auto 0; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.anim-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.anim-ctl button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14.5px/1 var(--body); cursor: pointer; }
.anim-ctl button:hover { color: var(--pea); box-shadow: inset 0 0 0 1.5px var(--pea-glow); }
.anim-ctl svg { width: 16px; height: 16px; }

/* ---------- A missing component shows itself in the draft ---------- */
.comp-missing { min-height: 260px; margin: 40px auto 0; max-width: 1040px; border: 2px dashed var(--line); border-radius: var(--r-lg); display: grid; place-items: center; color: var(--muted); }
.comp-missing::after { content: "Animation coming: " attr(data-missing); font-weight: 700; }

/* ---------- Phone: the buy button stays in the bar (review r1) ---------- */
.top__buy { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .top__buy { display: inline-flex; padding: 10px 15px; font-size: 14.5px; }
  .nav__cta { display: none; }
  .nav__list { background: var(--paper); }
  .nav-open body::after { content: ""; position: fixed; inset: var(--nav-h) 0 0; z-index: 20; background: rgba(24, 32, 26, .28); }
}
@media (max-width: 360px) { .top__buy { padding: 9px 12px; font-size: 13.5px; } }

/* ---------- The video: controls sit under the frame on desktop too (review r1) ---------- */
@media (min-width: 641px) {
  .pf-bar { position: static; padding: 14px 4px 0; }
}

/* ---------- Checkout placeholder note (draft only) ---------- */
.checkout-note { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--brass-soft); color: var(--ink); font-size: 15px; text-align: center; }

/* ---------- Footer tag contrast ---------- */
.foot2__tag { color: var(--ink); }

/* ---------- Gentler line breaks everywhere ---------- */
p, .lede, .card p, .own-grid span, .posts p { text-wrap: pretty; }


/* ---------- The shared sound button (sound.js, round 4) ----------
   PeaSound.button() puts it first in a component's .anim-ctl row, visible from the
   first frame. Neutral at rest. While the piece plays without sound (the component
   sets .is-playing on its .anim root) it turns into the video's green "Watch with
   sound" pill. With sound live it reads "Sound on", outlined in pea-glow. */
.snd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14.5px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.snd-btn svg { flex: none; width: 16px; height: 16px; }
.snd-btn:hover { color: var(--pea); box-shadow: inset 0 0 0 1.5px var(--pea-glow); }
.anim.is-playing .snd-btn:not(.is-on) { background: var(--pea); color: #fff; box-shadow: 0 8px 20px -8px rgba(34, 56, 26, .6), 0 0 0 5px rgba(111, 161, 74, .22); }
.anim.is-playing .snd-btn:not(.is-on):hover { background: var(--band); color: #fff; }
.snd-btn.is-on { color: var(--pea); box-shadow: inset 0 0 0 2px var(--pea-glow); }
/* the round icon-only version (Ask's top bar), 44px to tap */
.snd-btn--round { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.snd-btn--round::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.snd-btn--round:focus-visible { border-radius: 50%; }
@media (max-width: 640px) {
  .anim-ctl button, .snd-btn { min-height: 44px; }
  .snd-btn.snd-btn--round { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .snd-btn { transition: none; } }

/* ---------- The name-tag Pea, wearing the visitor's name (round 4) ----------
   <span class="pea-tag" style="--h:200px"><img src="/assets/pea/nametag.webp" alt=""
     width="656" height="820" loading="lazy" decoding="async"><span class="pea-tag__name"
     data-pea-name data-fallback="Pea">Pea</span></span>
   The name sits on the sticker's blank writing area (left 32%, top 62.4%, 36.3% wide,
   14.4% tall). site.js sizes it in cqh of the tag, the setup animation's maths: one
   line at full size (60% of the area's height) down to two balanced lines at 36%, so
   a 20-character name fits. "Pea" fits as it is if the script never runs. */
.pea-tag { position: relative; display: inline-block; height: var(--h, 200px); aspect-ratio: 656 / 820; container-type: size; vertical-align: bottom; }
.pea-tag img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pea-tag__name { position: absolute; left: 32%; top: 62.4%; width: 36.3%; height: 14.4%; display: flex; align-items: center; justify-content: center; font: 800 8.64cqh/1 var(--display); letter-spacing: -.03em; color: var(--ink); text-align: center; white-space: nowrap; pointer-events: none; }
.pea-tag__t { display: inline-block; font-size: var(--fs, 8.64cqh); line-height: 1; white-space: nowrap; transform: rotate(-4deg); }
/* longer names: two balanced lines across the writing area, drawn 10% narrower (a little
   inside the sticker edge, which is small on these smaller tags) */
.pea-tag__t.is-two { flex: none; max-width: 110%; white-space: normal; line-height: .9; letter-spacing: -.04em; text-wrap: balance; transform: rotate(-4deg) scaleX(.9); }
.pea-tag__t.is-break { overflow-wrap: anywhere; }

/* Named or not: html.has-pea-name is set (site.js) while the visitor has named their
   Pea. Put both pictures in the markup and these show the right one; each keeps its
   own display when shown. Without the script, the unnamed one shows. */
html:not(.has-pea-name) .only-named { display: none !important; }
html.has-pea-name .only-unnamed { display: none !important; }

/* ---------- PeaLife moves (round 4) ----------
   site.js plays these on .sec-pea, .phero__pea and [data-pea-life] pictures as they
   come into view (hop in), and on the nearest [data-pea-hop] when a "Make Pea yours"
   button is hovered or focused (squash). Add the class to play one by hand. They move
   the separate translate and scale properties, so a picture's own transform and
   animation carry on underneath. Reduced motion gets a gentler version, never none. */
@keyframes pea-hop { 0% { translate: 0 16px; scale: .96; } 55% { translate: 0 -6px; scale: 1.04; } 100% { translate: 0 0; scale: 1; } }
@keyframes pea-hop-soft { 0% { translate: 0 6px; scale: .985; } 60% { translate: 0 -2px; scale: 1.01; } 100% { translate: 0 0; scale: 1; } }
@keyframes pea-squash { 0% { translate: 0 0; scale: 1; } 25% { translate: 0 2px; scale: .96; } 60% { translate: 0 -10px; scale: 1.06; } 100% { translate: 0 0; scale: 1; } }
@keyframes pea-squash-soft { 0% { translate: 0 0; scale: 1; } 30% { translate: 0 1px; scale: .98; } 65% { translate: 0 -4px; scale: 1.03; } 100% { translate: 0 0; scale: 1; } }
.pea-hop-in { transform-origin: 50% 100%; animation: pea-hop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.pea-squash { transform-origin: 50% 100%; animation: pea-squash .45s cubic-bezier(.3, 1.5, .5, 1); }
@media (prefers-reduced-motion: reduce) {
  .pea-hop-in { animation: pea-hop-soft .6s cubic-bezier(.3, 1.5, .5, 1) both; }
  .pea-squash { animation-name: pea-squash-soft; }
}
