/* ParrotPal 2.0 homepage (18 Nov 2026). Sits on top of /styles.css and reuses its tokens (--green, --ink, --bg,
   Hanken Grotesk 800 display). New pieces only; the old muscle-protection sections' CSS stays in styles.css because
   other pages share it. The "What's new" panel borrows the Label world's ruled panel (assets/label/label.css) so the
   homepage and the guides read as one site. */

::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 16px; background: var(--ink); color: #fff; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- type (pass 3) ----------
   Hanken Grotesk only, three weights: 400 body, 600 labels and emphasis, 800 display.
   Six sizes with big steps between them: 14 label, 17 body, 21 lead, then h2 32-56 and h1 44-88.
   styles.css is shared with other pages, so its classes are re-set here under .v2 (the homepage body class). */
.v2 {
  --fs-label: .875rem; --fs-body: 1.0625rem; --fs-lead: 1.3125rem;
  --fs-h2: clamp(2rem, 4.2vw, 3.5rem); --fs-h1: clamp(2.75rem, 6.1vw, 5.5rem);
  font-size: var(--fs-body);
}
.v2 b, .v2 strong { font-weight: 600; }
.v2 h1, .v2 h2, .v2 h3, .v2 h4 { font-weight: 800; }
.v2 .h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.03em; }
.v2 h3, .v2 h4 { font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -.02em; }
.v2 .lead { font-size: var(--fs-lead); line-height: 1.4; }
.v2 .nav__links a, .v2 .nav__cta { font-size: var(--fs-label); font-weight: 600; }
.v2 .btn { font-size: var(--fs-body); font-weight: 600; }
.v2 .review blockquote, .v2 .review figcaption b { font-size: var(--fs-body); }
.v2 .review figcaption span, .v2 .member__role, .v2 .member__tag, .v2 .award-tile__what { font-size: var(--fs-label); }
.v2 .award-tile__chip { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; text-transform: none; }
.v2 .award-tile__org { font-size: var(--fs-lead); font-weight: 800; letter-spacing: -.02em; }
.v2 .team__sub { color: var(--ink); }
.v2-more { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.v2 .footer__col h4, .v2 .footer__col a, .v2 .footer__tag, .v2 .footer__awards, .v2 .footer__apps, .v2 .footer__apps-label, .v2 .footer__legal p { font-size: var(--fs-label); }
.v2 .footer__col h4, .v2 .footer__apps-label { font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- colour (pass 4) ----------
   Ground (the brand's warm paper), ink, and ONE accent: brand green, on the download actions only (nav button,
   the release-notes button, the phone sticky bar). #047857 is the brand's deeper green: white text on it is 5.5:1,
   where #059669 is only 3.8:1. The App Store badge stays black because that is Apple's badge.
   Everything else that was tinted green, gold or gradient in the shared styles.css is neutral on this page. */
.v2 { --accent: #047857; --accent-hover: #036149; --rule: #d9d8d0; }
.v2 .team { background: var(--bg); }
.v2 .btn--ghost { border-color: var(--ink); background: transparent; }
.v2 .btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.v2 .review, .v2 .award-tile { border-color: var(--rule); }
.v2 .award-tile__chip, .v2 .award-tile__chip--win { padding: 0; background: none; color: var(--muted); }
.v2 .award-tile__chip--win { color: var(--ink); }
.v2 .member__photo { background: #eceae3; border-color: var(--rule); }
.v2 .member__photo::before { color: var(--muted); }
.v2 .member__tag { padding: 0; background: none; color: var(--muted); }

/* ---------- spacing (pass 5) ----------
   One margin: 48px on desktop, 20px on a phone, and every left edge sits on it (nothing is centred by default).
   One unit: 8px and its multiples. Two radii: 8px for boxes and buttons, 50% for circles.
   Hairlines separate things; no shadows, no hover lift. Running text is capped at 45-75 characters. */
.v2 .container { max-width: 1392px; padding-inline: 48px; }
.v2 .section { padding-block: clamp(64px, 8vw, 96px); }
.v2 main > section + section { border-top: 1px solid var(--rule); }
.v2 .nav__inner { height: 72px; gap: 24px; }
.v2 .nav__links { gap: 32px; }
.v2 .centered { text-align: left; }
.v2 .centered:not(.container) { max-width: none; margin-inline: 0; }
.v2 .container.centered { max-width: 1392px; }
.v2 .section .centered { margin-bottom: 0; }
.v2 .lead { max-width: 56ch; margin-inline: 0; }
.v2 .h2 { margin: 0 0 16px; max-width: 18em; }
.v2 .btn, .v2 .ppcta__btn, .v2 .ppcta-badge { border-radius: 8px; }
.v2 .btn { padding: 12px 24px; }
.v2 .nav__cta { padding: 8px 16px; }
.v2 .btn:hover { transform: none; }

/* reviews: six quotes on hairlines instead of six shadowed cards */
.v2 .review-grid { gap: 0 48px; margin-bottom: 32px; }
.v2 .review { padding: 24px 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; }
.v2 .review blockquote { margin: 0 0 16px; max-width: 60ch; }

/* awards: a ruled list, four across */
.v2 .award-grid { grid-template-columns: repeat(4, 1fr); gap: 0 48px; margin: 32px 0 0; }
.v2 .award-tile { align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 24px 0; text-align: left; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; transition: none; }
.v2 .award-tile:hover { transform: none; box-shadow: none; }
.v2 .award-tile__logo { height: 40px; margin-bottom: 8px; object-position: left; }
.v2 .award-tile__org { min-height: 48px; }

/* team: compacted to a photo-and-name row, four across */
.v2 .team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 48px; }
.v2 .member { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-content: center; text-align: left; }
.v2 .member__photo { grid-row: 1 / span 3; align-self: center; width: 64px; height: 64px; margin: 0; box-shadow: none; }
.v2 .member__photo::before { font-size: var(--fs-body); }
.v2 .member h3 { margin: 0; font-size: var(--fs-body); align-self: end; }
.v2 .member__tag { margin: 0; }
.v2 .team__sub { margin: 48px 0 24px; text-align: left; }
.v2 .team__hiring { margin-top: 48px; }

/* footer column titles are h3 on this page (heading order); same look as the shared h4 rule in styles.css */
.v2 .footer__col h3 { margin: 0 0 16px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; color: #fff; }

/* footer hairline: inside the margins, not across the container's padding */
.v2 .footer__grid { border-bottom: 0; padding-bottom: 32px; }
.v2 .footer__legal { padding-top: 0; }
.v2 .footer__legal p:first-child { margin-top: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .v2 .nav__links { gap: 0; box-shadow: none; }
  .v2 .award-grid, .v2 .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .v2 .container { padding-inline: 20px; }
  .v2 .nav__links a { padding-inline: 20px; }
  .v2 .team-grid { grid-template-columns: 1fr; }
}

/* nav: the one download action, always visible */
.nav__cta--app { background: var(--accent); color: #fff; box-shadow: none; }
.nav__cta--app:hover { background: var(--accent-hover); transform: none; box-shadow: none; }

/* nav: solid paper with a hairline, no frosted glass (styles.css is shared, so the override lives here) */
.v2 .nav, .v2 .nav--scrolled, .v2 .nav__links { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.v2 .nav--scrolled { border-bottom-color: var(--rule); }
/* the pinging green "we're hiring" dot: the link text already says it */
.v2 .hiring-dot { display: none; }

/* ---------- hero ---------- */
.v2-h1 span { display: block; }
/* layout (pass 7): the headline is the biggest thing; the phone is the second, wider than its space, so the page
   clips it on the right and at the bottom. --phone is its width; everything about it is sized from that. */
.v2-hero { --phone: clamp(440px, 38vw, 580px); position: relative; overflow: hidden; overflow: clip; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.v2-hero__copy { max-width: min(680px, 100% - var(--phone) + 24px); }
.v2-h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .96; margin: 0 0 24px; font-size: var(--fs-h1); text-wrap: balance; }
.v2-hero__lede { font-size: var(--fs-lead); line-height: 1.4; color: var(--ink); max-width: 44ch; margin: 0 0 32px; text-wrap: pretty; }
.v2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.v2-trial { font-weight: 600; color: var(--ink); font-size: var(--fs-body); }
.v2-trial span { color: var(--muted); font-weight: 400; }
.v2-proof { margin: 24px 0 0; max-width: 44ch; font-size: var(--fs-body); color: var(--ink); }
.v2-proof b { color: var(--ink); font-weight: 800; }
.ppcta-badge--lg { min-height: 60px; padding: 8px 24px 8px 16px; border-radius: 8px; }
.ppcta-badge--lg b { font-size: 25px; }

/* the made thing: the rendered handset, front-on, with a real 2.0 screen recording on its display. The img carries
   width/height, so the box is reserved before it loads. The shadow is one neutral drop-shadow that follows the phone's
   outline, to sit it on the page. */
.v2-phone { position: absolute; top: 48px; right: -56px; width: var(--phone); margin: 0; }
.v2-phone__body { position: relative; }
.v2-phone__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 32px rgba(17, 32, 26, .2)); }
/* The video lies exactly on the render's display (percentages of the poster, from assets/app-2-0/hero/README.md). It is
   invisible and out of the way until home.js sees it playing: the poster shows the loop's first frame, so the hand-over
   is the same picture and nothing flashes or moves. */
.v2-phone__video { position: absolute; left: 6.875%; top: 2.511%; width: 86.25%; height: 94.979%; border-radius: 12.2% / 5.63%;
  object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .3s ease-out; }
.v2-phone__video.is-playing { opacity: 1; }
/* the honest note: in the clear strip above the phone, inside the phone's own column so it never meets the headline */
.v2-phone__note { position: absolute; bottom: calc(100% + 8px); left: 7%; right: 72px; margin: 0; font-size: var(--fs-label); line-height: 1.3; color: var(--muted); }

/* section heads: heading carries the weight, no kicker */
.v2-head { max-width: 760px; margin: 0 0 48px; }
.v2-head .lead { margin-top: 4px; }
.v2 .h2 { text-wrap: balance; }

/* ---------- What's new: the release notes, as a ruled label panel ---------- */
.v2-new { background: var(--bg); }
.v2-notes { border: 2px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; }
.v2-notes__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 24px; background: var(--ink); color: #fff; }
.v2-notes__head h3 { margin: 0; font-size: var(--fs-lead); font-weight: 800; }
.v2-notes__head span { font-weight: 600; font-size: var(--fs-label); color: #d9ddd9; }
.v2-note { display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 24px; border-top: 1px solid var(--rule); }
.v2-note:first-of-type { border-top: 0; }
.v2-note h4 { margin: 2px 0 0; font-size: var(--fs-lead); font-weight: 800; }
.v2-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 68ch; }
.v2-note li { position: relative; padding-left: 24px; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
.v2-note li::before { content: "\2013"; position: absolute; left: 0; color: var(--muted); }
.v2-note li b { color: var(--ink); }
.v2-notes__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 24px; border-top: 2px solid var(--ink); background: var(--bg); }
.v2-notes__foot p { margin: 0; color: var(--ink); }

/* ---------- How it works ---------- */
.v2-how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.v2-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.v2-steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.v2-steps li:first-child { border-top: 0; padding-top: 0; }
.v2-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: var(--fs-lead); }
.v2-steps h3 { margin: 4px 0 2px; font-size: var(--fs-lead); font-weight: 800; }
.v2-steps p { margin: 0; color: var(--ink); max-width: 56ch; }
.v2-how__shots { display: flex; justify-content: center; }
.v2-how__shots figure { margin: 0; width: min(100%, 340px); }
/* Real 2.0 screens cut from the how-to films (656x1422, the handset's rounded corners already masked to transparent
   in the files). The box reserves the space, so nothing moves when the lazy image arrives. */
.v2-shot { aspect-ratio: 656 / 1422; margin: 0; border-radius: 9.15% / 4.22%; box-shadow: 0 0 0 1px var(--rule); background: #dcefec; overflow: hidden; }
.v2-shot img { display: block; width: 100%; height: auto; }
.v2-shotnote { margin: 8px 0 0; font-size: var(--fs-label); line-height: 1.4; color: var(--muted); }
.v2-ev__screens .v2-shotnote { grid-column: 1 / -1; margin-top: 0; }

.v2-name { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1fr 1fr 1fr; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.v2-name > div { padding: 24px 24px; border-left: 1px solid var(--rule); }
.v2-name > div:first-child { border-left: 0; }
.v2-name h3 { margin: 0 0 8px; font-size: var(--fs-lead); font-weight: 800; }
.v2-name h3 small { font-size: var(--fs-label); font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: .02em; }
.v2-name p { margin: 0; color: var(--ink); }
.v2-name .v2-name__cap { grid-column: 1 / -1; margin: 0; padding: 16px 24px; background: var(--ink); color: #fff; font-weight: 800; border-radius: 8px; }

.v2-ls { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 24px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.v2-ls p { margin: 0; max-width: 68ch; color: var(--ink); }
.v2-ls a { font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- proof (pass 9): screens, reviews and awards as one section ---------- */
.v2-ev__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.v2-ev__screens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: sticky; top: 96px; }
.v2-ev__screens figure { margin: 0; }
.v2-ev__screens figcaption { margin-top: 8px; font-size: var(--fs-label); line-height: 1.4; color: var(--muted); }
.v2-ev h3 { margin: 0 0 16px; }
.v2 .v2-ev .review-grid { grid-template-columns: 1fr 1fr; }
.v2-ev__awards { margin-top: 64px; }
.v2 .v2-ev .award-grid { margin-top: 0; }

/* ---------- guides hub ---------- */
.v2-guides { background: var(--bg); }
.v2-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.v2-links li { border-bottom: 1px solid var(--rule); }
.v2-links a { display: block; height: 100%; padding: 16px 16px 16px 0; transition: color .15s; }
.v2-links a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.v2-links b { display: block; font-size: var(--fs-body); font-weight: 600; }
.v2-links span { display: block; margin-top: 2px; font-size: var(--fs-label); color: var(--ink); }


/* ---------- Cambridge ---------- */
.v2-science { background: var(--bg); }
.v2-science__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.v2-science img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.v2-science p { margin: 0 0 16px; max-width: 64ch; }
.v2-science .small { font-size: var(--fs-label); color: var(--muted); }

/* ---------- awards: no emoji, text chips ---------- */
.v2 .award-grid { margin-top: 32px; }
.v2-press { margin: 32px 0 0; color: var(--muted); }
.v2-press a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.v2-faq { max-width: 820px; margin: 0; border-top: 2px solid var(--ink); }
.v2-faq details { border-bottom: 1px solid var(--rule); }
.v2-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: var(--fs-lead); font-weight: 600; cursor: pointer; list-style: none; }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 600; line-height: 1; }
.v2-faq details[open] summary::after { content: "\2212"; }
.v2-faq p { margin: 0 0 24px; max-width: 68ch; color: var(--ink); }

/* ---------- final CTA ---------- */
.v2-final { background: var(--ink); color: #fff; }
.v2-final .h2 { color: #fff; }
.v2-final .lead { color: #d9ddd9; margin-bottom: 32px; }
.v2-final .ppcta-badge { border-color: #fff; }
.v2-final__meta { margin: 16px 0 0; font-size: var(--fs-label); color: #b4bcb7; }

/* ---------- motion (pass 8) ----------
   One entrance, once: the first screen arrives in under a second, staggered, easing out. Pure CSS, so it needs no
   script; styles.css switches all animation off under prefers-reduced-motion, which leaves everything in place.
   The phone moves but never fades: it is the largest paint, and an invisible image would delay it. */
@keyframes v2In { from { opacity: 0; transform: translateY(12px); } }
@keyframes v2Rise { from { transform: translateY(24px); } }
.v2-actions, .v2-proof { animation: v2In .6s cubic-bezier(.16, 1, .3, 1) both; }
/* The headline and the line under it (the phone's largest paint) rise without fading, so they paint at once. */
.v2-h1 span, .v2-hero__lede { animation: v2Lift .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes v2Lift { from { transform: translateY(12px); } }
.v2-h1 span + span { animation-delay: .07s; }
.v2-hero__lede { animation-delay: .14s; }
.v2-actions { animation-delay: .21s; }
.v2-proof { animation-delay: .28s; }
/* the body, not the img, so the video on the display rises with the handset */
.v2-phone__body { animation: v2Rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.v2-phone__note { animation: v2Fade .6s ease-out .5s both; }
@keyframes v2Fade { from { opacity: 0; } }

/* release notes: the groups arrive once when the panel first scrolls into view. home.js adds .is-armed (so with no
   script nothing is ever hidden) and then .is-in. */
.v2-notes.is-armed .v2-note { opacity: 0; transform: translateY(12px); }
.v2-notes.is-armed.is-in .v2-note { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s cubic-bezier(.16, 1, .3, 1); }
.v2-notes.is-in .v2-note:nth-of-type(3) { transition-delay: .06s; }
.v2-notes.is-in .v2-note:nth-of-type(4) { transition-delay: .12s; }
.v2-notes.is-in .v2-note:nth-of-type(5) { transition-delay: .18s; }
.v2-notes.is-in .v2-note:nth-of-type(6) { transition-delay: .24s; }
.v2-notes.is-in .v2-note:nth-of-type(7) { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .v2-how__grid, .v2-science__grid, .v2-ev__grid { grid-template-columns: 1fr; }
  .v2 .v2-ev .review-grid { grid-template-columns: 1fr; }
  .v2-ev__screens { position: static; }
  /* phone and tablet: the copy first, then the phone, off the right edge and cut off by the bottom of the hero */
  .v2-hero { --phone: min(74vw, 400px); padding-bottom: 0; }
  .v2-hero__copy { max-width: none; }
  .v2-hero__grid { display: flow-root; }
  .v2-phone { position: relative; top: auto; right: auto; margin: 48px -32px calc(var(--phone) * -.6) auto; }
  .v2-phone__note { position: static; margin: 0 32px 8px 0; }
  .v2-note { grid-template-columns: 1fr; }
  .v2-links { grid-template-columns: 1fr 1fr; }
  .v2-name { grid-template-columns: 1fr; }
  .v2-name > div { border-left: 0; border-top: 1px solid var(--rule); }
  .v2-name > div:first-of-type { border-top: 0; }
  .nav__cta--app { margin-left: auto; }
}
@media (max-width: 560px) {
  .v2-links { grid-template-columns: 1fr; }
  .v2-notes__head { flex-direction: column; gap: 2px; }
  .v2-note, .v2-notes__head, .v2-notes__foot { padding-inline: 16px; }
  .v2-actions .ppcta-badge { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Real life sections (20 Nov 2026) ----------
   Four visual sections: muscle signal, LeanShield as a game, life-happens modes, photo + Coach PAL.
   One data colour, the app's own teal (--sig, and its brighter --glow on the two dark stages), used only inside the visuals; the download green stays on downloads.
   Every widget is complete with JS off (features.js only adds the controls) and still with reduced motion. */
.v2 { --sig: #0e6f69; --sig-soft: #dcefec; }
.v2-hero__why { margin: 16px 0 0; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.35; font-weight: 600; color: var(--ink); }
.v2-hero__why + .v2-hero__lede { margin-top: 12px; }
.v2-sub { margin: clamp(48px, 6vw, 72px) 0 16px; font-size: var(--fs-lead); }

/* The two "game" moments (v7, 20 Nov 2026): #signal and #leanshield are a dark stage on the warm-paper page, lit by
   the app teal. The tokens are re-pointed inside .v2-stage, so shared pieces (.lead, .v2-shotnote, .v2-shot) follow. */
.v2-stage { --stage: #0b1513; --glow: #2fd1b8; --ink: #eef5f2; --muted: #a3b8b1; --rule: rgba(255,255,255,.14);
  background: var(--stage); color: var(--ink); }
.v2-stage + .v2-stage { border-top: 1px solid rgba(255,255,255,.08); }
.v2-stage :focus-visible { outline-color: #9ff3e2; }
.v2-stage ::selection { background: var(--glow); color: #06231f; }
.v2-stage button { font-family: inherit; font-size: inherit; cursor: pointer; }
.v2-stage button[disabled] { cursor: default; }

/* 1. signal (v8): three layers on the stage. BACK the word, MIDDLE the render, FRONT the headline and a loose strand.
   Grid: the render and the headline share the left column (the headline rides up over the render's empty corner),
   the controls sit beside them. */
.sig { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "stage panel" "head panel" "note note";
  gap: 0 clamp(32px, 5vw, 72px); align-items: center; }
.sig__stage { grid-area: stage; margin: 0; position: relative; container-type: inline-size; }
/* the word starts above the picture: --rise is how far, in the stage's own width (9vw-ish fallback without container units) */
.sig__layers { --rise: 5vw; --rise: 9cqw; position: relative; padding-top: var(--rise); }
/* The render sits on the stage colour; two masks fade its edges out so the box is never seen (sides on the box,
   top and bottom on what is inside it: one mask each, no mask-composite to go wrong). */
.sig__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.sig__media img, .sig__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent); }
/* the two pulse clips start and end on the poster frame, so they can simply appear over it */
.sig__video { opacity: 0; }
.sig__video.is-on { opacity: 1; }
/* BACK. Painted over the render, cut out by the muscle's matte (features.js sets --matte once the stage is near), so the
   muscle, tendon and nerve pass in front of the letters. Screen blend lets the pulse's glow fall across them.
   --lit (0 to 1) is how much of the week is lit: the word warms up with it, and flares while a pulse runs. */
.sig__word { display: none; position: absolute; inset: 0; margin: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  font-family: var(--display); font-weight: 800; font-size: 20vw; font-size: 29.5cqw; line-height: .8; letter-spacing: -.045em; text-align: center; white-space: nowrap;
  color: #123b34; color: color-mix(in srgb, var(--glow) calc(13% + var(--lit, .28) * 22%), var(--stage));
  -webkit-mask-image: var(--matte), linear-gradient(#000, #000); mask-image: var(--matte), linear-gradient(#000, #000);
  -webkit-mask-size: 100% auto, 100% calc(var(--rise) + 1px); mask-size: 100% auto, 100% calc(var(--rise) + 1px);
  -webkit-mask-position: left bottom, left top; mask-position: left bottom, left top;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.sig__stage.is-near .sig__word { display: block; }
.sig__word span { display: block; padding-top: .07em; will-change: transform; }
.sig__stage.is-pulse .sig__word { animation: sig-word var(--sig-t, 3s) ease-out both; }
@keyframes sig-word { 25% { color: #2a8a7a; color: color-mix(in srgb, var(--glow) calc(30% + var(--sig-p, 1) * 34%), var(--stage)); } }
/* FRONT: two fibres close to the lens, far out of focus */
.sig__strand { position: absolute; right: -4%; bottom: -7%; width: 62%; height: auto; opacity: .8; pointer-events: none; will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 30%, #000 86%, transparent); }
.sig__cap { position: absolute; right: 0; bottom: 0; margin: 0; max-width: 24ch; text-align: right; }
.sig__head { grid-area: head; position: relative; z-index: 3; margin: clamp(-112px, -8vw, -64px) 0 0; max-width: 620px; }
.sig__head .h2 { max-width: 8.6em; }
.sig__note { grid-area: note; margin: 32px 0 0; }

.sig__panel { grid-area: panel; display: grid; gap: 16px; }
/* the week: lit days fuse into one bar */
.sig__chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.sig__chain li { display: grid; gap: 8px; text-align: center; }
.sig__d { font-size: var(--fs-label); color: var(--muted); }
.sig__chain .is-next .sig__d { color: var(--ink); font-weight: 600; }
.sig__link { display: grid; place-content: center; height: 44px; margin: 0 3px; border-radius: 22px; background: rgba(255,255,255,.07);
  font-size: .75rem; line-height: 1; color: #06231f; white-space: nowrap; }
.sig__link b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.0625rem; }
.sig__chain .is-next .sig__link { box-shadow: inset 0 0 0 2px var(--glow); background: none; }
.sig__chain .is-on .sig__link { margin: 0; border-radius: 0; background: var(--glow); box-shadow: 0 0 22px rgba(47,209,184,.45); }
.sig__chain .is-on.is-start .sig__link { border-radius: 22px 0 0 22px; margin-left: 3px; }
.sig__chain .is-on.is-end .sig__link { border-radius: 0 22px 22px 0; margin-right: 3px; }
.sig__chain .is-on.is-start.is-end .sig__link { border-radius: 22px; }
.sig__chain .is-new .sig__link { animation: sig-link .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes sig-link { from { transform: scale(.6); opacity: 0; } }
.sig__status { margin: 0; }

.sig__pick { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.sig__label { font-weight: 600; }
/* all five lines are in the HTML (readable with no JS); once features.js is live only the chosen one shows */
/* the button: thick, with a lip it presses down into; the dot is the size of the pulse it will send */
.sig__send { --p: .2; position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 68px; padding: 0 24px 6px;
  border: 0; border-radius: 20px; background: var(--glow); color: #06231f; font-family: var(--display); font-weight: 800; font-size: var(--fs-lead);
  box-shadow: inset 0 -6px 0 rgba(6,35,31,.28); transition: transform .08s ease, box-shadow .08s ease, padding .08s ease, background .2s ease; }
.sig__send:hover { background: #4fe0c9; }
.sig__send:active { transform: translateY(4px); padding-bottom: 2px; box-shadow: inset 0 -2px 0 rgba(6,35,31,.28); }
.sig__dot { position: relative; width: 36px; height: 36px; flex: none; }
.sig__dot::before, .sig__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.sig__dot::before { background: #06231f; transform: scale(calc(.3 + var(--p) * .7)); transition: transform .25s cubic-bezier(.2,.9,.3,1.2); }
.sig__dot::after { box-shadow: inset 0 0 0 2px #06231f; opacity: .35; }
.sig__send.is-sent .sig__dot::after { animation: sig-dot .6s ease-out; }
@keyframes sig-dot { from { transform: scale(calc(.3 + var(--p) * .7)); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.v2 button.btn { font-family: inherit; cursor: pointer; }
.ages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.ages li { padding: 24px; border-left: 1px solid var(--rule); }
.ages li:first-child { border-left: 0; }
.ages p { margin: 0; }
.ages__who { font-family: var(--display); font-weight: 800; font-size: var(--fs-lead); margin-bottom: 8px !important; }
.ages + .v2-shotnote { margin-top: 8px; }
.v2-stage .ages { background: rgba(255,255,255,.04); }
.v2-stage .ages p:last-child { color: var(--muted); }
.v2-stage .ages p:last-child b { color: var(--ink); }

/* 2. LeanShield */
.v2-life__grid, .v2-daily__grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.v2-game__shot, .v2-life__shot { margin: 0; }
.ls { display: grid; grid-template-columns: minmax(0, 1fr) 500px; grid-template-areas: "head shield" "play shield"; gap: 0 clamp(32px, 6vw, 96px); align-items: start; }
.ls__head { grid-area: head; margin-bottom: 32px; }
.ls__play { grid-area: play; display: grid; gap: 20px; max-width: 520px; }
/* the rendered shield: transparent stills (the file's own halo is its glow), swapped by features.js */
.ls__shield { grid-area: shield; align-self: center; position: relative; aspect-ratio: 660 / 720; width: 100%; }
.ls__shield img, .ls__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ls__shield img { transition: opacity .35s ease; }
.ls__shield img.is-out { opacity: 0; }
.ls__shield.is-bump { animation: ls-bump .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes ls-bump { 35% { transform: scale(1.045); } }
/* the idle loop is rendered on the stage colour, so its edges are faded out and it only shows once it is playing */
.ls__video { opacity: 0; transition: opacity .5s ease;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 82%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 82%, transparent 100%); }
.ls__video.is-on { opacity: 1; }
.ls__score { position: relative; margin: 0; display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.ls__score b { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 11vw, 7.5rem); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ls__score span { color: var(--muted); }
.ls__pop { margin-left: 4px; font-style: normal; font-family: var(--display); font-weight: 800; font-size: var(--fs-h2); color: var(--glow); opacity: 0; }
.ls__pop.is-on { animation: ls-pop 1.1s ease-out both; }
@keyframes ls-pop { 0% { opacity: 0; transform: translateY(12px) scale(.8); } 20% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.ls__bar { display: grid; gap: 8px; }
.ls__bar p { margin: 0; font-weight: 600; }
.ls__segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ls__segs i { height: 12px; border-radius: 6px; background: rgba(255,255,255,.12); transition: background .3s ease, box-shadow .3s ease; }
.ls__segs i.is-on { background: var(--glow); box-shadow: 0 0 16px rgba(47,209,184,.5); }
.ls__moves { display: grid; gap: 12px; }
/* three thick keys, tinted like the shield's three bands; a logged one stays pressed in */
.ls__btn { --tint: #1fbfae; display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: center; width: 100%; min-height: 72px; padding: 10px 20px 16px;
  border: 0; border-radius: 18px; background: var(--tint); color: #06231f; text-align: left;
  box-shadow: inset 0 -6px 0 rgba(6,35,31,.28); transition: transform .08s ease, box-shadow .08s ease, padding .08s ease, filter .2s ease; }
.ls__btn[data-move="training"] { --tint: #4fdcab; }
.ls__btn[data-move="eating"] { --tint: #a9f0d8; }
.ls__btn:not([disabled]):hover { filter: brightness(1.08); }
.ls__btn:not([disabled]):active, .ls__btn.is-done { transform: translateY(4px); padding-top: 12px; padding-bottom: 10px; box-shadow: inset 0 -2px 0 rgba(6,35,31,.28); }
.ls__k { grid-column: 1; font-size: var(--fs-label); font-weight: 600; }
.ls__a { grid-column: 1; font-family: var(--display); font-weight: 800; font-size: 1.1875rem; line-height: 1.2; }
.ls__xp { grid-column: 2; grid-row: 1 / 3; font-family: var(--display); font-weight: 800; font-size: var(--fs-lead); font-variant-numeric: tabular-nums; }
.ls__btn.is-done { background: none; color: var(--tint); box-shadow: inset 0 0 0 2px var(--tint); }
.ls__btn.is-done .ls__xp { width: 14px; height: 24px; margin-right: 8px; font-size: 0; border: solid var(--tint); border-width: 0 4px 4px 0; transform: translateY(-3px) rotate(42deg); }
.ls__msg { margin: 0; font-weight: 600; min-height: 2.8em; }
.ls__again { justify-self: start; padding: 0; border: 0; background: none; color: var(--glow); font-weight: 600; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.ls__play .v2-shotnote { margin: 0; }
/* the real screen, small, next to what the score is and is not */
.ls__real { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.ls__facts h3 { margin: 0 0 16px; }
.ls__facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 56ch; color: var(--muted); }
.ls__facts b { color: var(--ink); }

/* 3. life happens */
.life { border: 2px solid var(--ink); border-radius: 8px; background: #fff; padding: 24px; display: grid; gap: 24px; }
.life__modes, .coach__voices { display: flex; flex-wrap: wrap; gap: 8px; }
.life__modes button, .coach__voices button { font: inherit; font-weight: 600; font-size: var(--fs-label); min-height: 44px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.life__modes button[aria-pressed="true"], .coach__voices button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.life__week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.life__week li { display: grid; align-content: start; gap: 4px; min-height: 72px; padding: 8px 4px; border-radius: 8px; background: var(--bg); text-align: center; font-size: var(--fs-label); font-weight: 600; transition: background .3s, color .3s; }
.life__week small { font-size: .75rem; font-weight: 600; line-height: 1.2; }
.life__week li.is-on { background: var(--sig); color: #fff; }
.life__week li.is-soft { background: var(--sig-soft); color: var(--ink); }
.life__panel h3 { margin: 0 0 16px; }
.life__rows { margin: 0; display: grid; gap: 0; }
.life__rows div { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.life__rows dt { font-weight: 600; }
.life__rows dd { margin: 0; max-width: 60ch; }
.life__panel.is-swap { animation: fade .35s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.life .v2-shotnote { margin: 0; }
.wkd { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.wkd__copy h3 { margin: 0 0 8px; }
.wkd__chart { padding-top: 16px; }
.wkd__copy p { margin: 0 0 16px; max-width: 56ch; }
.wkd__bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 200px; align-items: end; }
.wkd__bars div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; font-size: var(--fs-label); }
.wkd__bars b { order: -1; padding-bottom: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wkd__bars i { display: block; flex: none; height: calc(var(--k) / 2800 * 100%); border-radius: 8px 8px 0 0; background: var(--sig-soft); transition: height .5s cubic-bezier(.2,.8,.2,1), background .3s; }
.wkd__bars div.is-big i { background: var(--sig); }
.wkd__bars span { order: 2; padding-top: 4px; color: var(--muted); }
.wkd__sum { margin: 8px 0 0; font-weight: 600; }
.wkd > .v2-shotnote { grid-column: 1 / -1; margin: 0; }

/* 4. photo + coach */
.v2-daily__grid { grid-template-columns: 320px 1fr; align-items: center; }
.v2-daily__film { margin: 0; }
.v2-clip { aspect-ratio: 540 / 910; border-radius: 8px; overflow: hidden; background: var(--sig-soft); box-shadow: 0 0 0 1px var(--rule); }
.v2-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.coach { margin-top: 24px; display: grid; gap: 16px; }
.coach__bubble { position: relative; max-width: 46ch; padding: 16px 24px; border-radius: 8px 8px 8px 0; background: var(--ink); color: #fff; }
.coach__bubble p { margin: 0; }
.coach__from { font-size: var(--fs-label); font-weight: 600; color: #cfe7e3; margin-bottom: 4px !important; }
.coach__bubble.is-swap p:last-child { animation: fade .35s ease-out both; }
.coach .v2-shotnote { margin: 0; }

@media (max-width: 900px) {
  .v2-life__grid, .v2-daily__grid, .wkd { grid-template-columns: 1fr; }
  .v2-life__shot, .v2-daily__film { max-width: 320px; }
  .sig { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "head" "panel" "note"; gap: 24px; }
  .sig__head { margin: -8px 0 0; }
  .sig__note { margin: 0; }
  .sig__strand { right: 0; bottom: 0; width: 56%; }
  .sig__cap { right: 24px; max-width: none; }
  .sig__head .h2 { max-width: 18em; }
  /* phones: the muscle and the shield stay pinned under the nav while you use the controls below them */
  .sig__stage, .ls__shield { position: sticky; top: 64px; z-index: 4; margin-inline: -24px; background: var(--stage); }
  .sig__stage::after, .ls__shield::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; background: linear-gradient(var(--stage), transparent); pointer-events: none; }
  .ls { grid-template-columns: 1fr; grid-template-areas: "head" "shield" "play"; }
  .ls__head { margin-bottom: 8px; }
  .ls__shield { width: auto; aspect-ratio: auto; height: min(62vw, 260px); margin-bottom: 8px; }
  .ls__play { max-width: none; }
  .ages { grid-template-columns: 1fr; }
  .ages li { border-left: 0; border-top: 1px solid var(--rule); }
  .ages li:first-child { border-top: 0; }
}
@media (max-width: 560px) {
  .life { padding: 16px; }
  .sig__stage, .ls__shield { margin-inline: -20px; }
  .sig__cap { right: 20px; font-size: .75rem; }
  .sig__link { height: 40px; margin: 0 2px; font-size: .6875rem; }
  .sig__link b { font-size: 1rem; }
  .ls__real { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; }
  .life__week li { min-height: 64px; padding: 6px 2px; }
  .life__week small { font-size: .6875rem; }
  .life__rows div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .life__panel.is-swap, .coach__bubble.is-swap p:last-child { animation: none; }
  .wkd__bars i, .life__week li { transition: none; }
  .sig__stage.is-pulse .sig__word, .sig__chain .is-new .sig__link, .sig__send.is-sent .sig__dot::after, .ls__shield.is-bump, .ls__pop.is-on { animation: none; }
  .sig__dot::before, .sig__send, .ls__shield img, .ls__video, .ls__segs i, .ls__btn { transition: none; }
  .ls__pop.is-on { opacity: 1; }
}

/* v8: the parallax strand may drift past the viewport edge; clip it to the section (clip keeps sticky working) */
.v2-sig { overflow-x: hidden; overflow-x: clip; }

/* v9 (Scott t22u): micro stimulus only. The 3-45 min slider is gone; one micro move is picked, Coach PAL nudges. */
.sig__moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sig__moves button { display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  border: 1px solid var(--rule); border-radius: 12px; background: rgba(255,255,255,.04); transition: border-color .2s, background .2s; }
.sig__moves button:hover { border-color: rgba(47,209,184,.6); }
.sig__moves button[aria-pressed="true"] { border-color: var(--glow); background: rgba(47,209,184,.12); box-shadow: inset 0 0 0 1px var(--glow); }
.sig__moves b { font-family: var(--display); font-weight: 800; font-size: 1.125rem; line-height: 1.2; }
.sig__moves span { color: var(--muted); font-size: var(--fs-label); line-height: 1.4; }
.sig__coach { display: grid; gap: 8px; }
.sig__voices { display: flex; gap: 8px; }
.sig__voices button { font: inherit; font-weight: 600; font-size: var(--fs-label); min-height: 40px; padding: 6px 14px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--rule); background: none; color: var(--ink); }
.sig__voices button[aria-pressed="true"] { background: var(--ink); color: var(--stage); border-color: var(--ink); }
.sig__bubble { margin: 0; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: #eef5f2; color: #06231f; max-width: 46ch; line-height: 1.45; }
.sig__from { display: block; font-size: var(--fs-label); font-weight: 700; color: #0e6f69; margin-bottom: 2px; }
.sig__link b { font-size: .8125rem; letter-spacing: -.01em; }
/* the illustration note sits under the render, clear of the out-of-focus strand */
.sig__cap { position: static; margin: 10px 0 0; max-width: none; text-align: left; }
@media (max-width: 900px) { .sig__cap { padding-inline: 24px; } }
@media (max-width: 560px) { .sig__cap { padding-inline: 20px; } .sig__link b { font-size: .6875rem; } }
@media (prefers-reduced-motion: reduce) { .sig__moves button { transition: none; } }
/* desktop: the headline overlaps the render's lower edge, so the illustration note moves into the panel note */
.sig__note-art { display: none; }
@media (min-width: 901px) { .sig__cap { display: none; } .sig__note-art { display: inline; } }
