@font-face { font-family: "Roobert"; src: url("font/roobert-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("font/roobert-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("font/roobert-bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --ink: #151518; --ink-2: #48425f; --ink-3: #66666a;
  --green: #5c7900; --green-950: #1c2800; --lime: #c2f542; --lime-hover: #abd839; --lime-deep: #9fd11f;
  --cream: #f5ebdd; --paper: #fffdf8; --line: #e4e3e0;
  --title: clamp(36px, calc(2.5vw + 20px), 64px);
  --sub: clamp(16px, calc(0.42vw + 14px), 21px);
  --say: clamp(33px, min(4.3vw, 7.2vh), 78px);
  --gutter: clamp(20px, 4.45vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sh: 100vh;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Roobert", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; }
button { font: inherit; color: inherit; }

/* Lead-in and lead-out bands (round 12 paper colour). */
.band { display: flex; align-items: center; justify-content: center; min-height: 34vh; padding: 24px var(--gutter); background: var(--paper); color: var(--ink-3); font-size: 15px; text-align: center; }
.band--in { border-bottom: 1px solid var(--line); }
.band--out { border-top: 1px solid var(--line); }
.band p { margin: 0; }

.pains { background: var(--cream); }
.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.title { margin: 0; font-size: var(--title); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.title em { font-style: normal; color: var(--green); }
.sub { margin: 12px 0 0; max-width: 46ch; font-size: var(--sub); line-height: 1.4; color: var(--ink-2); }

.lines { list-style: none; margin: 0; padding: 0; }
.say { margin: 0; max-width: 13.2em; font-size: var(--say); font-weight: 700; line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance; }
.say mark, .end-h mark {
  color: inherit; padding: 0 0.05em; margin: 0 -0.05em;
  background: linear-gradient(transparent 0 56%, var(--lime) 56% 93%, transparent 93%) no-repeat 0 0 / 100% 100%;
}

/* "That's me" button. Only the box, tick and burst move; the label never moves. */
.me { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 62px; margin-top: clamp(22px, 4vh, 40px); padding: 0 28px 0 16px; border: 0; border-radius: 14px; cursor: pointer; font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  background: rgb(255 255 255 / 0.85); box-shadow: inset 0 0 0 1.5px var(--line), 0 12px 26px -18px rgb(40 50 10 / 0.45);
  transition: background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.me:hover { box-shadow: inset 0 0 0 1.5px #c9c4b4, 0 16px 30px -18px rgb(40 50 10 / 0.55); }
.me:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.box { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px #cfcabc; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.me:hover .box { box-shadow: inset 0 0 0 2px var(--green); }
.box svg { width: 22px; height: 22px; fill: none; stroke: var(--green-950); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.box path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .28s var(--ease) .04s; }
.me[aria-pressed="true"] { background: var(--green-950); color: #f4f7ea; box-shadow: 0 14px 30px -16px rgb(28 40 0 / 0.75); }
.me[aria-pressed="true"] .box { background: var(--lime); box-shadow: none; }
.me[aria-pressed="true"] .box path { stroke-dashoffset: 0; }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--lime); }
.burst i:nth-child(3n) { background: var(--lime-deep); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.burst .ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 12px; background: none; box-shadow: 0 0 0 2px var(--lime); }

/* Pirate and bubble */
.pirate { margin: 0; display: flex; flex-direction: column; align-items: center; }
.bubble { position: relative; display: grid; margin-bottom: 14px; padding: 14px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--lime), 0 14px 30px -20px rgb(40 50 10 / 0.5); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px; background: #fff; transform: rotate(45deg); box-shadow: 2px 2px 0 0 var(--lime); border-radius: 0 0 4px 0; }
.b { grid-area: 1 / 1; opacity: 0; transition: opacity .22s ease; }
.b.is-on { opacity: 1; }
.fig { position: relative; height: min(62vh, 640px); aspect-ratio: 477 / 900; }
.pose { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; transform: translateX(-50%); opacity: 0; transition: opacity .2s ease; }
.pose.is-on { opacity: 1; }

/* Counter */
.meter { display: flex; align-items: center; gap: 18px; }
.bars { display: flex; gap: 6px; width: clamp(196px, 22vw, 300px); }
.bars i { position: relative; flex: 1; height: 8px; border-radius: 4px; background: rgb(21 21 24 / 0.1); overflow: hidden; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.bars .fill { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); opacity: .55; }
.bars i.is-ticked { background: var(--lime); box-shadow: inset 0 0 0 1px var(--green); }
.bars i.is-ticked .fill { opacity: 0; }
.count { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.count .n { display: inline-block; min-width: 0.7em; text-align: right; color: var(--ink); font-weight: 700; }

/* ---------- Static layout (no JS, reduced motion, short screens) ---------- */
.stage .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "lines pirate" "meter pirate"; column-gap: 40px; padding-top: clamp(72px, 8vw, 112px); padding-bottom: 32px; }
.head { grid-area: head; margin-bottom: clamp(32px, 4vw, 48px); }
.lines { grid-area: lines; display: grid; gap: 56px; }
.pirate { grid-area: pirate; align-self: start; position: sticky; top: 8vh; }
.meter { grid-area: meter; margin-top: 40px; }
@media (max-width: 899px) {
  .stage .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "lines" "meter"; }
  .pirate { display: none; }
}

/* ---------- Pinned scroll layout ---------- */
.scrub .track { position: relative; }
.scrub .stage { position: sticky; top: 0; height: var(--sh); overflow: hidden; }
.scrub .stage .wrap { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head pirate" "lines pirate" "meter pirate"; padding-top: clamp(40px, 8vh, 104px); padding-bottom: clamp(28px, 5.5vh, 60px); }
.scrub .head { margin-bottom: 0; }
.scrub .lines { display: grid; align-content: center; gap: 0; }
.scrub .stage .wrap { position: relative; }
.scrub .line { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; opacity: 0; pointer-events: none; }
.scrub .line.is-current { pointer-events: auto; }
.scrub .line:first-child { opacity: 1; }
.scrub .say mark { background-size: 0% 100%; }
.scrub .pirate { position: relative; top: auto; align-self: end; justify-self: center; }
.scrub .meter { margin-top: 0; }
@media (min-width: 900px) and (max-aspect-ratio: 5/4) {
  .scrub .lines { align-content: start; padding-top: 6vh; }
  .scrub .fig { height: min(60vh, 1000px); }
}

@media (max-width: 899px) {
  :root { --say: clamp(30px, 8.6vw, 44px); }
  .scrub .stage .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "lines" "meter"; padding-top: clamp(24px, 4.5vh, 44px); padding-bottom: 18px; }
  .scrub .sub { font-size: 16px; }
  .scrub .lines { align-content: stretch; padding-top: clamp(20px, 3.5vh, 36px); }
  .scrub .line { justify-content: flex-start; align-items: stretch; }
  .scrub .say { display: grid; align-content: center; min-height: calc(4 * 1.08em); }
  .scrub .me { width: 100%; margin-top: auto; justify-content: center; height: 64px; font-size: 19px; }
  .scrub .pirate { display: flex; position: absolute; right: var(--gutter); bottom: calc(18px + 30px + 14px + 64px + 18px); flex-direction: row; align-items: flex-start; gap: 0; pointer-events: none; }
  .scrub .fig { height: min(40vh, 340px); }
  .scrub .bubble { margin: 18px 4px 0 0; font-size: 15px; padding: 11px 14px; border-radius: 14px; white-space: normal; max-width: 150px; }
  .scrub .bubble::after { left: auto; right: -8px; top: 20px; bottom: auto; margin: 0; transform: rotate(-45deg); box-shadow: 2px 2px 0 0 var(--lime); }
  .scrub .meter { margin-top: 14px; justify-content: space-between; }
  .scrub .bars { flex: 1; width: auto; }
}

/* ---------- Ending ---------- */
.end { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.end-wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: end; }
.end-h { margin: 0 0 28px; max-width: 15em; font-size: clamp(32px, calc(2.6vw + 16px), 60px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
.end-h mark { background-size: 100% 100%; }
.end-h [hidden] { display: none; }
.fixes { list-style: none; margin: 0; padding: 0; }
.fixes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid rgb(21 21 24 / 0.1); font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.fixes li:last-child { border-bottom: 1px solid rgb(21 21 24 / 0.1); }
.fixes li[hidden] { display: none; }
.fixes b { color: var(--ink); font-weight: 700; }
.dot { display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 8px; background: var(--lime); box-shadow: inset 0 0 0 1px var(--green); }
.dot svg { width: 18px; height: 18px; fill: none; stroke: var(--green-950); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 26px; border-radius: 14px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lime { color: var(--green-950); background: var(--lime); box-shadow: 0 18px 36px -18px rgb(92 121 0 / 0.9), inset 0 -2px 0 rgb(28 40 0 / 0.12); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-lime svg { transition: transform .25s var(--ease); }
.btn-lime:hover svg { transform: translateX(3px); }
.btn-ghost { background: rgb(255 255 255 / 0.75); box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 24px -16px rgb(40 50 10 / 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #c9c4b4, 0 14px 28px -16px rgb(40 50 10 / 0.45); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.end-pirate { justify-self: center; height: min(560px, 62vh); width: auto; }

@media (max-width: 899px) {
  .end-wrap { grid-template-columns: 1fr; }
  .end-pirate { display: none; }
  .fixes li { font-size: 16px; padding: 12px 0; }
  .ctas { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
