/* ParrotPal 2.0 homepage, v10 (22 Nov 2026, Scott t23u): the whole page gets the depth the #signal section has.
   Loaded after home.css, only by index.html. One system, used everywhere:
     BACK   a huge display word behind the section (the data-word attribute, drawn by ::before, so it adds no DOM,
            is not read out and can never become the largest paint)
     MIDDLE the real thing: a render, a real app screen, a chart of cited numbers
     FRONT  the copy and small floating pieces of UI
   Dark stages (#0b1513, lit teal) alternate with the warm paper sections. One extra colour, amber, means body fat and
   appears only in #before-during-after. v10.js adds parallax, reveals and the switcher; with JS off, reduced motion
   or Save-Data every piece is in place and readable. This file is the part the first screen needs (the system and the
   hero), so it blocks rendering; everything below the fold is in home-v10-below.css, which index.html loads without blocking. styles.css already switches all animation and transition off
   under prefers-reduced-motion. */

.v2 { --stage: #0b1513; --glow: #2fd1b8; --amber: #f2a93b; --lean: #ef6f63; --ease: cubic-bezier(.16, 1, .3, 1); }
.v10-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- the system ---------- */
/* BACK: the word. --par is set by v10.js while the section is on screen (px of drift). */
[data-word] { position: relative; }
.v2 main > section[data-word] { overflow: hidden; overflow: clip; }
.v2 main > section[data-word] > .container { position: relative; z-index: 1; }
[data-word]::before { content: attr(data-word); content: attr(data-word) / ""; position: absolute; z-index: 0; top: clamp(16px, 3vw, 40px); right: clamp(8px, 2vw, 32px);
  font-family: var(--display); font-weight: 800; font-size: clamp(6.5rem, 23vw, 21rem); line-height: .8; letter-spacing: -.04em; white-space: nowrap;
  color: #f0eee6; color: color-mix(in srgb, var(--ink) 5.5%, var(--bg)); pointer-events: none; -webkit-user-select: none; user-select: none;
  translate: 0 calc(var(--par, 0) * 1px); will-change: translate; }
.v2-stage[data-word]::before, .v2-final[data-word]::before { color: #10241f; color: color-mix(in srgb, var(--glow) 9%, var(--stage)); }

/* the section number, small, above each heading */
.v2 main { counter-reset: sec; }
.v2 main > section { counter-increment: sec; }
.v2-head::before, .v2-science .h2::before, .v2-final .h2::before { content: counter(sec, decimal-leading-zero); content: counter(sec, decimal-leading-zero) / ""; display: block; margin: 0 0 20px;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; line-height: 1; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--muted);
  background: linear-gradient(currentColor, currentColor) no-repeat 2.4em 50% / 40px 1px; }
.v2-final .h2::before { color: #a3b8b1; }

/* FRONT pieces that drift: v10.js sets --par (px) on anything with data-par while it is on screen */
[data-par] { translate: 0 calc(var(--par, 0) * 1px); }

/* reveal on scroll: v10.js hides only what is still below the fold, then lets it arrive once */
.v10-wait { opacity: 0; }
.v10-in { animation: v10In .8s var(--ease) both; animation-delay: var(--rv-d, 0s); }
@keyframes v10In { from { opacity: 0; translate: 0 20px; } }

/* horizons: a soft band of light at the foot of a section (Ghost reference), quiet on paper, strong on the last stage */
.v2-new, .v2-how, .v2-guides, .v2-science, .v2 .team, .v2-faqs, .v2-life, .v2-daily {
  background: radial-gradient(ellipse 80% 46% at 50% 108%, rgba(47, 209, 184, .16), rgba(47, 209, 184, 0) 70%), var(--bg); }
.v2-how, .v2 .team { background: radial-gradient(ellipse 70% 40% at 12% 106%, rgba(47, 209, 184, .15), rgba(47, 209, 184, 0) 70%), var(--bg); }
.v2-guides, .v2-faqs { background: radial-gradient(ellipse 70% 40% at 88% 106%, rgba(47, 209, 184, .15), rgba(47, 209, 184, 0) 70%), var(--bg); }

/* hover depth: things you can click lift a little towards you */
.v2-links a, .v2 .member, .v2-name > div, .ages li, .v2 .award-tile { transition: translate .35s var(--ease), box-shadow .35s var(--ease), background-color .2s; }
.v2-links a { padding-left: 16px; margin-left: -16px; border-radius: 8px; }
.v2-links a:hover, .v2-links a:focus-visible { translate: 0 -3px; background: #fff; box-shadow: 0 18px 28px -18px rgba(17, 32, 26, .35), 0 0 0 1px var(--rule); }
.v2 .member { padding: 8px; margin: -8px; border-radius: 12px; }
.v2 .member:hover { translate: 0 -3px; background: #fff; box-shadow: 0 18px 28px -18px rgba(17, 32, 26, .35), 0 0 0 1px var(--rule); }
.v2 .v2-ev .award-tile:hover { translate: 0 -3px; }

/* ---------- 1. hero: a stage ---------- */
.v2-hero { background: radial-gradient(ellipse 60% 55% at 78% 104%, rgba(47, 209, 184, .26), rgba(47, 209, 184, 0) 70%), var(--bg); }
/* v10b: the word reads as clearly as SIGNAL does on its stage (same teal, on paper), one line, sitting above the phone,
   which rises in front of the lower part of the letters */
.v2-hero[data-word]::before { top: clamp(4px, 1.2vw, 20px); right: clamp(8px, 2vw, 40px); font-size: clamp(8rem, 17.4vw, 19rem); line-height: .8;
  color: #cfe3dc; color: color-mix(in srgb, #0e6f69 19%, var(--bg));
  translate: calc(var(--mx, 0) * -14px) calc(var(--par, 0) * 1px + var(--my, 0) * -8px); }
.v2-hero__copy { position: relative; z-index: 2; }
.v2-phone { z-index: 1; top: clamp(24px, 3.6vw, 64px); right: clamp(24px, 6vw, 112px); }
.v2-phone__note { bottom: auto; top: clamp(420px, 44vw, 600px); left: auto; right: calc(100% + 36px); width: 180px; text-align: right; }
/* the handset turns a few degrees and follows the pointer; the video on its display turns with it */
.v2-phone__body { transform: perspective(1600px) rotateY(calc(-9deg + var(--mx, 0) * 5deg)) rotateX(calc(3deg + var(--my, 0) * -4deg)) rotateZ(.6deg); transform-origin: 50% 40%; will-change: transform; }
.v2-phone__img { filter: drop-shadow(-18px 40px 44px rgba(17, 32, 26, .28)) drop-shadow(-4px 8px 10px rgba(17, 32, 26, .16)); }
@keyframes v2Rise { from { transform: perspective(1600px) translateY(32px) rotateY(-15deg) rotateX(5deg); } }

.hero-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-size: var(--fs-label); line-height: 1.3; }
.hero-card { --d: 30; position: absolute; margin: 0; border-radius: 18px; background: #fff; color: #11201a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 28px 44px -18px rgba(17, 32, 26, .38), 0 6px 12px -4px rgba(17, 32, 26, .14), 0 0 0 1px rgba(17, 32, 26, .06);
  translate: calc(var(--mx, 0) * var(--d) * 1px) calc(var(--my, 0) * var(--d) * .6px + var(--par, 0) * var(--d) * -.02px);
  animation: heroCard .7s var(--ease) both, heroBob 7s ease-in-out infinite alternate; will-change: translate, transform; }
.hero-card p { margin: 0; }
@keyframes heroCard { from { opacity: 0; scale: .9; } }
@keyframes heroBob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
.hero-card--say { --d: 34; left: -30%; top: 11%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #11201a; color: #fff; font-weight: 600; font-size: var(--fs-body); animation-delay: .45s, 0s; }
.hero-card--say span { display: grid; gap: 4px; white-space: nowrap; }
.hero-card--say small { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 400; color: #a9c4bc; }
.hero-card__mic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--glow); color: #06231f; }
.hero-card__mic svg { width: 22px; height: 22px; }
.hero-card__wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.hero-card__wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--glow); transform-origin: 50% 50%; transform: scaleY(.3); }
.hero-card__wave i:nth-child(2n) { transform: scaleY(.6); }
/* the bars only move while the loop on the phone is listening or analysing (v10.js) */
.hero-cards.is-busy .hero-card__wave i { animation: heroWave .5s ease-in-out infinite alternate; }
.hero-card.is-swap > * { animation: heroSwap .45s var(--ease) both; }
@keyframes heroSwap { from { opacity: 0; translate: 0 6px; } }
.hero-card__wave i:nth-child(2) { animation-delay: -.3s; } .hero-card__wave i:nth-child(3) { animation-delay: -.6s; }
.hero-card__wave i:nth-child(4) { animation-delay: -.15s; } .hero-card__wave i:nth-child(5) { animation-delay: -.45s; }
@keyframes heroWave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.hero-card--log { --d: -22; left: -5%; top: 46%; display: grid; gap: 8px; min-width: 264px; padding: 14px 18px 16px; animation-delay: .6s, -2s; animation-duration: .7s, 9s; }
.hero-card__k { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #0e6f69; }
.hero-card__k::before { content: ""; width: 9px; height: 5px; margin: 0 2px 3px; border: solid #0e6f69; border-width: 0 0 2.5px 2.5px; rotate: -45deg; }
.hero-card--log p:not(.hero-card__k) { display: flex; justify-content: space-between; gap: 20px; padding-top: 8px; border-top: 1px solid #e7e6df; }
.hero-card--log b { font-weight: 600; }
.hero-card--log span { color: #586b62; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-card--day { --d: 52; right: -11%; top: 31%; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 8px; padding: 14px 18px; animation-delay: .75s, -4s; animation-duration: .7s, 8s; }
.hero-card--day b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-card--day span { color: #586b62; white-space: nowrap; }

@media (max-width: 900px) {
  .v2-hero[data-word]::before { top: auto; bottom: calc(var(--phone) * 1.27); left: 14px; right: auto; font-size: 27vw; }
  .v2-phone { top: auto; right: auto; }
  .v2-phone__note { position: static; width: auto; text-align: left; color: var(--ink); }
  .hero-card--say { left: -34%; top: 7%; font-size: var(--fs-label); padding: 10px 14px 10px 10px; }
  .hero-card__mic { width: 36px; height: 36px; }
  .hero-card--log { left: -39%; top: 37%; min-width: 0; width: 292px; padding: 12px 14px 14px; font-size: .8125rem; }
  .hero-card--log p:not(.hero-card__k) { gap: 12px; }
  .hero-card--day { display: none; }
}

/* phones: quieter back words, so the copy over them always reads */
@media (max-width: 700px) {
  [data-word]::before { font-size: 30vw; top: 12px; right: 4px; }
}

/* v10c: hero without the lede paragraph and footage caption. The positioning line now leads straight into the badge. */
.v2-hero__why { margin-bottom: 32px; }
/* The day-total card repeated the numbers already on the phone screen; one less layer reads cleaner. */
.hero-card--day { display: none; }
.v2-hero .v2-trial { margin: 0; }
.v2-hero .v2-proof { margin-top: 20px; }
@media (max-width: 900px) { .v2-hero .v2-proof { margin-top: 16px; } }
/* v10c: Dynamic Island over the hero video (the poster has it rendered in; the playing film covers the display, so
   the island is repeated here at the render's exact spot: 126 x 37 pt, 11 pt below the top of a 393 pt display). */
.v2-phone__body::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 3.738%; width: 27.65%; height: 4.126%;
  transform: translateX(-50%); border-radius: 999px; background: #050606; pointer-events: none; }
/* v10c: the longer headline. A touch smaller on desktop so it never runs under the floating "say" card. */
@media (min-width: 901px) {
  .v2-hero .v2-h1 { font-size: clamp(2.75rem, 4.7vw, 4.25rem); max-width: 11ch; }
  .v2-hero .hero-card--say { left: -22%; }
}

/* ---------- v12 (22 Nov 2026): proof strip under the hero ---------- */
.proof-strip { padding: 0 0 clamp(24px, 4vw, 40px); background: var(--bg); }
.proof-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof-strip__list li + li { border-left: 1px solid var(--rule); }
.proof-strip__list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.proof-strip__list a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.proof-strip__list b { font-family: var(--display); font-weight: 800; font-size: var(--fs-lead); line-height: 1.1; letter-spacing: -.02em; }
.proof-strip__list span { font-size: var(--fs-label); line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) {
  .proof-strip__list { grid-template-columns: 1fr 1fr; }
  .proof-strip__list li:nth-child(3) { border-left: 0; }
  .proof-strip__list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .proof-strip__list a { padding: 14px 12px; }
}
