/* Simply Draw (v2) case study: styles only this page uses.
   Shared tokens, header, type scale, device frames and the desktop zoom live in
   assets/css/case-study.css. Like Simply Guitar, sections use normal flow inside the
   zoomed 1440 frame, so px values are design px on desktop and scale with the window. */

:root {
  --sd-violet: #7b2ff7;
  --sd-teal: #0b9aa0;
  --sd-pink: #dc42af;
  --sd-lilac: #b98bff;
  --sd-yellow: #ffd44f;
  --sd-good: #00a892;
  --sd-warn: #f0a12b;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Layout ---------- */
.wrap { padding: 112px 96px; }
.chapter {
  display: grid; grid-template-columns: 440px 1fr; column-gap: 88px; align-items: center;
  grid-template-areas: "text device" "steps device";
  grid-template-rows: auto 1fr;
}
.chapter > .chapter__text { grid-area: text; align-self: end; }
.chapter > .chapter__device { grid-area: device; }
.chapter > .chapter__steps { grid-area: steps; align-self: start; margin-top: 28px; }
.chapter--flip { grid-template-columns: 1fr 440px; grid-template-areas: "device text" "device steps"; }
.chapter--solo { grid-template-areas: "text device"; grid-template-rows: auto; }
.chapter--solo > .chapter__text { align-self: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-violet);
}
.kicker i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-style: normal; letter-spacing: 0; font-size: 12px; color: #fff; background: var(--sd-violet);
}
.on-dark .kicker { color: var(--sd-yellow); }
.on-dark .kicker i { background: var(--sd-yellow); color: var(--night); }
.on-dark .icon-list li { color: rgba(243, 240, 223, .8); }

/* ---------- Motion ---------- */
.float { animation: float 7s ease-in-out infinite; }
.float--b { animation-duration: 8s; animation-delay: -3s; }
.float--c { animation-duration: 9s; animation-delay: -5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.sparkle { position: absolute; z-index: 4; pointer-events: none; width: 30px; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle svg { display: block; width: 100%; height: auto; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 760px; display: grid; grid-template-columns: 500px 1fr; column-gap: 40px; align-items: center; padding: 72px 0 72px 96px; }
.hero__logo { height: 200px; width: auto; }
.hero__sub { margin-top: 28px; font-size: 22px; line-height: 32px; font-weight: 300; color: #fff; }
.hero__meta { margin-top: 24px; display: grid; gap: 4px; font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sd-yellow); }
.hero__meta span { color: rgba(255, 255, 255, .8); }
.awards { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(243, 240, 223, .16); }
.awards img { height: 30px; width: auto; }
.hero__stage { position: relative; }
/* Card tails that fill the empty left of the first and last rows, only when the title stacks above the cards */
.hero__fill { display: none; position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }

/* ---------- The brief ---------- */
.brief { display: grid; grid-template-columns: 1fr 500px; column-gap: 96px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid rgba(243, 240, 223, .2); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sd-yellow); }
.facts dd { margin: 6px 0 0; font-size: 15px; line-height: 23px; color: var(--cream); }
/* A full spark anchored to the section's bottom right, replacing the cropped one in the artwork */
.brief-section { position: relative; overflow: hidden; }
.brief-section > .section__inner { position: relative; z-index: 1; }
.brief-spark { position: absolute; z-index: 0; right: -12vw; bottom: -38vw; width: 62vw; max-width: none; rotate: 24deg; pointer-events: none; }
.app-icons { position: relative; }
.app-icons > img { width: 100%; }
.app-icons > .ai-float, .app-icons > .ai-confetti { position: absolute; max-width: none; }
.ai-confetti { pointer-events: none; }
.ai-float { animation: ai-float var(--d, 4.5s) ease-in-out var(--dl, 0s) infinite; will-change: transform; }
@keyframes ai-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(var(--a, -7px)) scale(1.035); } }

/* ---------- The idea: paper + iPad ---------- */
.paper { display: grid; grid-template-columns: 1fr 380px; column-gap: 136px; align-items: center; }
.paper__media { position: relative; }
.paper__photo { margin: 0; border-radius: 28px; overflow: hidden; height: 560px; background: var(--night); }
.paper__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.paper__device { position: absolute; right: -96px; bottom: -72px; width: 460px; transform: rotate(5deg); z-index: 3; }
.mock-header {
  position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 26.34%;
  display: flex; align-items: flex-start; gap: 1.4cqw; padding: 2.4cqw 3cqw; color: #fff; font-weight: 600; font-size: 1.9cqw;
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
}

/* ---------- Research ---------- */
.research { display: grid; grid-template-columns: 520px 1fr; column-gap: 104px; align-items: center; }
.persona { margin-top: 28px; padding: 30px 32px 28px; border-radius: 24px; background: #fff; box-shadow: 0 8px 28px rgba(17, 0, 52, .06); }
.persona__head { display: flex; gap: 18px; align-items: center; }
.persona__head img { width: 64px; height: 64px; border-radius: 50%; }
.persona__head h3 { font-size: 18px; font-weight: 600; line-height: 26px; }
.persona__head p { font-size: 13px; line-height: 20px; color: #8a859c; }
.persona__bio { margin-top: 18px; font-size: 14px; line-height: 23px; color: var(--ink-soft); }
.persona__bio b { font-weight: 600; color: var(--ink); }
.persona__facts { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(17, 0, 52, .07); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.persona__facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.persona__facts img { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.persona__facts b { display: block; font-weight: 600; color: var(--ink); }
.quote { margin: 0; }
.quote__mark { width: 44px; height: auto; fill: var(--sd-violet); opacity: .9; }
.quote blockquote { margin: 22px 0 0; font-size: 34px; line-height: 1.38; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.quote b { font-weight: 600; background: linear-gradient(transparent 60%, rgba(255, 212, 79, .75) 60%, rgba(255, 212, 79, .75) 92%, transparent 92%); }

.needs-head { margin-top: 104px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.needs-head .body { max-width: 460px; text-align: right; }
.needs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.need { padding: 24px 26px 26px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(17, 0, 52, .05); }
.need__n { display: grid; place-items: center; width: 44px; height: 44px; font-size: 15px; font-weight: 600; background: url(img/star.webp) center / contain no-repeat; }
.need h4 { margin: 14px 0 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.need p { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--ink-soft); }

/* ---------- Hypothesis + journey ---------- */
.bet { max-width: 980px; margin: 0 auto; text-align: center; }
.bet__statement { font-size: 24px; line-height: 1.5; font-weight: 300; letter-spacing: -0.01em; color: var(--cream); text-wrap: balance; }
.bet__statement b { font-weight: 600; color: var(--sd-yellow); }
.journey { position: relative; margin-top: 80px; }
.journey__line { position: absolute; left: 0; top: 0; width: 100%; height: 240px; overflow: visible; }
.journey__line path { fill: none; stroke: rgba(243, 240, 223, .3); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.journey__line path.draw { stroke: var(--sd-yellow); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.journey.is-in .journey__line path.draw { transition: stroke-dashoffset 2.4s var(--ease-out); stroke-dashoffset: 0; }
.journey ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: 300px; }
.journey li { position: relative; }
.journey li:nth-child(even) { padding-top: 130px; }
.journey a { display: grid; justify-items: center; text-align: center; text-decoration: none; color: var(--cream); }
.journey__dot {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: var(--night); background: var(--c, var(--sd-yellow));
  box-shadow: 0 0 0 8px rgba(243, 240, 223, .08); transform: scale(0); transition: transform .5s var(--ease-out), box-shadow .3s ease;
}
.journey.is-in .journey__dot { transform: scale(1); transition-delay: calc(var(--i) * .3s + .2s); }
/* Hover: the dot lifts with a brighter ring and the label lights up. transition-delay 0 so the staggered entrance delay doesn't hold it back */
.journey.is-in a:hover .journey__dot, .journey.is-in a:focus-visible .journey__dot { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(243, 240, 223, .18); transition-delay: 0s; transition-duration: .3s; }
.journey__label, .journey__sub { transition: color .25s ease; }
.journey a:hover .journey__label, .journey a:focus-visible .journey__label { color: var(--sd-yellow); }
.journey a:hover .journey__sub, .journey a:focus-visible .journey__sub { color: rgba(243, 240, 223, .9); }
.journey a:focus-visible { outline: none; }
.journey__label { margin-top: 16px; font-size: 16px; font-weight: 600; line-height: 22px; }
.journey__sub { margin-top: 4px; font-size: 13px; line-height: 19px; color: rgba(243, 240, 223, .65); max-width: 170px; }

/* ---------- Sequences (data-seq) and step lists ---------- */
.seq .dev__screen > .frame { position: relative; transition: opacity .45s var(--ease-out); }
.seq .dev__screen > .frame + .frame { position: absolute; inset: 0; }
.seq .dev__screen > .frame > img { display: block; width: 100%; height: auto; }
.seq.is-ready .dev__screen > .frame:not(.is-active) { opacity: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.steps li { position: relative; }
/* A single highlighted note with no numbering (Journal) */
.steps button {
  position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; width: 100%;
  padding: 11px 14px 11px 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font: inherit; text-align: left; color: inherit; overflow: hidden; transition: background .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 0 0 1px rgba(17, 0, 52, .08); /* unselected: a faint outline of the container (shared style across projects) */
}
.steps button::before {
  counter-increment: step; content: counter(step);
  grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 12px; font-weight: 600; color: var(--ink-soft); background: rgba(17, 0, 52, .07);
  transition: background .25s ease, color .25s ease;
}
/* Feature lists get no number; numbers only for real sequences or pins on the screen (Amir, 2026-10-23, all projects) */
.steps--plain button { grid-template-columns: 1fr; padding-left: 16px; }
.steps--plain button::before { content: none; }
.steps b { font-size: 15px; font-weight: 600; line-height: 26px; color: var(--ink); }
.steps span { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 14px; line-height: 22px; color: var(--ink-soft); transition: max-height .4s var(--ease-out), opacity .3s ease; }
.steps button:hover { background: rgba(17, 0, 52, .03); box-shadow: inset 0 0 0 1px rgba(17, 0, 52, .14); }
.steps .is-active button, .steps .is-active button:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 0, 52, .12), 0 4px 16px rgba(17, 0, 52, .06); }
.steps .is-active button::before { background: var(--sd-violet); color: #fff; }
.steps .is-active span { max-height: 140px; opacity: 1; margin-top: 2px; }
.steps button::after { /* time left on the current step */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--sd-violet); transform-origin: left; transform: scaleX(0); opacity: .5;
}
.steps .is-active.is-running button::after { animation: step-fill var(--dur, 3s) linear forwards; animation-play-state: var(--play, running); }
@keyframes step-fill { to { transform: scaleX(1); } }
.steps .is-active button:first-child { padding-right: 52px; }
/* The step card grid (26px number column) must not apply here, or the icon sits off-centre */
.steps li .step-pause {
  position: absolute; top: 9px; right: 10px; display: grid; grid-template-columns: none; column-gap: 0; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; background: rgba(17, 0, 52, .06); color: var(--ink); box-shadow: none; overflow: visible;
  opacity: 0; pointer-events: none; transform: scale(.8); transition: opacity .25s ease, transform .25s var(--ease-out), background .2s ease;
}
.steps li .step-pause::before, .steps li .step-pause::after { content: none; }
.steps li .step-pause svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.steps li.is-active .step-pause { opacity: 1; pointer-events: auto; transform: none; }
.steps li.is-active .step-pause:hover { background: rgba(123, 47, 247, .12); color: var(--sd-violet); }
.steps li.is-held.is-active .step-pause { background: var(--sd-violet); color: #fff; }
.steps button:focus-visible, .steps .step-pause:focus-visible { outline: 3px solid var(--sd-violet); outline-offset: 2px; }

/* ---------- 1. Onboarding ---------- */
.duo { margin-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.mini h3 { margin-top: 26px; font-size: 16px; font-weight: 600; line-height: 24px; }
.mini p { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--ink-soft); max-width: 520px; }

/* ---------- 2. Main page: annotated course cards ---------- */
.cards { position: relative; }
.cards__img { width: 100%; filter: drop-shadow(0 30px 40px rgba(17, 0, 52, .18)); }
/* Four card layers (no hover: Amir removed the lift, 2026-10-23) */
.cards { container-type: inline-size; }
.cards__stack { position: relative; aspect-ratio: 1530 / 1121; }
.cards__card {
  position: absolute; height: auto; filter: drop-shadow(0 14px 22px rgba(17, 0, 52, .2));
  transition: translate .5s var(--ease-out), filter .5s ease;
}
.cards .pin { transition: opacity .3s ease, transform .35s var(--ease-out), background .3s ease, color .3s ease, translate .5s var(--ease-out); }
/* Catch-up: the tip card slides in from the screen edge each time the frame shows */
.frame--catchup { overflow: hidden; }
.frame--catchup .catchup { position: absolute; height: auto; opacity: 0; translate: 110% 0; }
[data-seq].is-seen .frame--catchup.is-active .catchup { animation: catchup-in .8s cubic-bezier(.3, .7, .4, 1) .45s forwards; }
@keyframes catchup-in { 0% { opacity: 0; translate: 110% 0; } 25% { opacity: 1; } 62% { translate: -6% 0; } 80% { translate: 1.5% 0; } 100% { opacity: 1; translate: 0 0; } }
.pin {
  position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(17, 0, 52, .3);
  opacity: .55; transform: scale(.8); cursor: pointer; transition: opacity .3s ease, transform .35s var(--ease-out), background .3s ease, color .3s ease;
}
.pin.is-active { opacity: 1; transform: scale(1.15); background: var(--sd-yellow); color: var(--ink); }
.pin.is-active::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--sd-yellow); animation: pin-ring 1.6s ease-out infinite; }
@keyframes pin-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* ---------- 3. Course map ---------- */
.map-intro { max-width: 760px; margin: 0 auto; padding-bottom: 56px; text-align: center; }
.map-intro--sub { padding-top: 24px; }
.map-intro--sub .h3 { font-size: 28px; line-height: 1.25; }
.map-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: 56px; }
.map-note b { display: block; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--ink); }
.map-note b::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 16px; border-radius: 2px; background: var(--sd-violet); }
.map-note span { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--ink-soft); }

/* ---------- 4. Course screen ---------- */
.pair { --sw: 1025; --sh: 569; }
/* The course screen scrolls sideways under its fixed header (the Figma content is 2486 of the 1171 screen wide) */
.hscroll { aspect-ratio: 1171 / 744; }
.hscroll__track { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__track.is-dragging { cursor: grabbing; }
.hscroll__track > img { display: block; height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.hscroll__track:focus-visible { outline: 3px solid var(--sd-yellow); outline-offset: -3px; }
.hscroll__fixed { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }

/* ---------- 5. Video lesson ---------- */
.lesson { position: relative; padding-bottom: 7%; }
.lesson__phone { position: absolute; z-index: 3; right: -7%; bottom: 0; width: 36%; rotate: -5deg; }
/* Padding % resolves against the parent, so the phone bezel is scaled down to its 36% width */
.lesson__phone { padding: .76% 1.3%; }
.eq { position: absolute; left: 24.47%; top: 90.32%; width: 1.96%; height: 3.48%; pointer-events: none; }
.eq i { position: absolute; bottom: 0; width: 16.7%; height: 100%; border-radius: 2px 2px 1px 1px; background: #f2efe0; transform-origin: 50% 100%; animation: eq-bar 1s ease-in-out infinite alternate; }
.eq i:nth-child(1) { left: 4.2%; transform: scaleY(.33); animation-duration: .62s; }
.eq i:nth-child(2) { left: 41.7%; animation-duration: .86s; animation-delay: -.3s; }
.eq i:nth-child(3) { left: 79.2%; transform: scaleY(.5); animation-duration: .71s; animation-delay: -.5s; }
@keyframes eq-bar { 0% { transform: scaleY(.25); } 40% { transform: scaleY(.9); } 70% { transform: scaleY(.45); } 100% { transform: scaleY(1); } }

/* ---------- 6. Interactive practice ---------- */
.practice-head { max-width: 680px; }
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 64px; }
.practice__item h3 { margin-top: 26px; font-size: 16px; font-weight: 600; line-height: 24px; }
.practice__item p { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--ink-soft); }
/* Quiz: a tappable flow (opening Lottie, two questions with right/wrong states, the end card) */
.practice--quiz { align-items: center; margin-top: 72px; }
.practice__text h3 { font-size: 20px; font-weight: 600; line-height: 28px; }
.practice__text p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--ink-soft); }
.quiz-step { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.33, 1, .68, 1), visibility 0s .3s; }
.quiz-step.is-on { opacity: 1; visibility: visible; transition: opacity .3s cubic-bezier(.33, 1, .68, 1); z-index: 1; }
.quiz-step[data-step="open"] { background: #7b16ff; }
.quiz-lottie { position: absolute; inset: 0; }
.quiz-lottie--idle { visibility: hidden; }
.quiz-step.is-idle .quiz-lottie { visibility: hidden; }
.quiz-step.is-idle .quiz-lottie--idle { visibility: visible; }
.quiz-hot { position: absolute; z-index: 3; padding: 0; border: 0; background: none; border-radius: 1.4cqw; cursor: pointer; }
/* Sound button: bottom left on every quiz screen (the right corner holds the next arrow) */
.quiz-sound { right: auto; left: 2.7%; bottom: 4.5%; z-index: 8; }
/* Answer feedback: the tapped answer pops (right) or shakes (wrong), the dashed arrow draws in, then the hint bubble grows out of its pointer */
.quiz-confetti { position: absolute; z-index: 2; pointer-events: none; }
.quiz-step.is-play[data-result="right"] .quiz-ans { animation: quiz-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
.quiz-step.is-play[data-result="wrong"] .quiz-ans { animation: quiz-shake .5s cubic-bezier(.36, .07, .19, .97); }
.quiz-step.is-play .quiz-arr { animation: quiz-draw .5s .3s ease-out both; }
.quiz-step.is-play .quiz-bub { animation: quiz-bubble .45s .55s cubic-bezier(.3, 1.45, .5, 1) both; }
@keyframes quiz-pop { 0% { transform: scale(.9); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes quiz-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-1.1%); } 35% { transform: translateX(.9%); } 55% { transform: translateX(-.6%); } 75% { transform: translateX(.3%); } }
@keyframes quiz-draw { from { clip-path: inset(0 78% 0 21%); } to { clip-path: inset(0 0 0 0); } }
@keyframes quiz-bubble { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.quiz-score { visibility: hidden; }
.quiz-score.is-on { visibility: visible; }
.quiz-hot:focus-visible { outline: 3px solid var(--sd-yellow); outline-offset: 2px; }
[data-quiz]:not(.is-used) [data-step="open"] .quiz-hot { animation: quiz-pulse 1.6s ease-in-out infinite; }
@keyframes quiz-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 60% { box-shadow: 0 0 0 1.4cqw rgba(255, 255, 255, 0); } }
.il-layer { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.il-full { inset: 0; width: 100%; height: 100%; }
.il-step { opacity: 0; }
.ll-trunk { left: 22.8%; top: 28.09%; width: 54.48%; }
.ll-ray { left: 39.62%; top: 14.52%; width: 20.96%; z-index: 3; transform-origin: 50.31% 17.58%; }
.pp-svg { z-index: 1; overflow: visible; }
.pp-house { border-radius: 8%; }
.pp-house::before { inset: -8%; border-radius: 8%; }
.pp-house:focus-visible { outline-offset: 2px; }
.il-handle { position: absolute; z-index: 4; padding: 0; border: 0; background: none; border-radius: 50%; cursor: grab; touch-action: none; }
.il-handle::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; }
.il-handle img { width: 100%; pointer-events: none; transition: transform .2s cubic-bezier(.33, 1, .68, 1); }
.il-handle:hover img, .il-handle:focus-visible img, .il-handle.is-dragging img { transform: scale(1.12); }
.il-handle.is-dragging { cursor: grabbing; }
.il-handle:focus-visible { outline: 3px solid var(--sd-yellow); outline-offset: 4px; }
[data-scrub]:not(.is-used) .il-handle img { animation: il-pulse 1.6s ease-in-out 3; }
@keyframes il-pulse { 50% { transform: scale(1.15); } }

/* ---------- Results ---------- */
.results-head { max-width: 700px; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.score { display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(17, 0, 52, .05); --c: var(--sd-good); }
.score--warn { --c: var(--sd-warn); }
.score__n { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--c); font-variant-numeric: tabular-nums; }
.score__bar { position: relative; display: block; height: 6px; margin: 20px 0 16px; border-radius: 3px; background: rgba(17, 0, 52, .07); overflow: hidden; }
.score__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: 3px; background: var(--c); transform-origin: left; }
.scores.is-counted .score__bar i { animation: bar-grow 1.4s var(--ease-out); }
@keyframes bar-grow { from { transform: scaleX(0); } }
.score__label { font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.insight { margin-top: 24px; padding: 32px 40px 34px; border-radius: 24px; background: #fff; box-shadow: 0 6px 24px rgba(17, 0, 52, .05); position: relative; overflow: hidden; }
.insight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sd-yellow); }
.insight__label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.insight__label img { width: 22px; height: 22px; }
.insight__text { margin-top: 14px; max-width: 920px; font-size: 18px; line-height: 30px; font-weight: 300; color: var(--ink); }
.insight__text b { font-weight: 600; }
.insight__why { margin-top: 10px; max-width: 820px; font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.finding { margin-top: 24px; padding: 28px 40px 30px; border-radius: 24px; background: rgba(123, 47, 247, .06); border: 1px solid rgba(123, 47, 247, .14); }
.finding .insight__label { color: var(--sd-violet); }
.finding__text { margin-top: 10px; max-width: 900px; font-size: 18px; line-height: 30px; font-weight: 300; color: var(--ink); }
.finding__text b { font-weight: 600; color: var(--sd-violet); }
/* Kids finding: text beside two lifestyle photos (Amir's photos, 2026-10-24) */
.finding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; align-items: center; }
.finding__more { margin-top: 10px; max-width: 900px; font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.finding__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.finding__photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 24px rgba(17, 0, 52, .08); }
@media (max-width: 900px) {
  .finding { grid-template-columns: 1fr; gap: 22px; }
}
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.verdict__col { padding: 28px 32px 20px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(17, 0, 52, .05); }
.verdict__col .h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.verdict__col .h3 img { width: 26px; height: 26px; }
.verdict ul { list-style: none; margin: 14px 0 0; padding: 0; }
.verdict li { padding: 12px 0; border-top: 1px solid rgba(17, 0, 52, .06); font-size: 14px; line-height: 22px; color: var(--ink-soft); }
.verdict li b { font-weight: 600; color: var(--ink); }

/* ---------- What came next ---------- */
.next-card {
  display: grid; grid-template-columns: 96px 1fr 24px; align-items: center; column-gap: 20px; margin-top: 48px; padding: 18px 26px 18px 14px;
  border-radius: 24px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .16); color: var(--ink); text-decoration: none;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.next-card img { width: 96px; height: 96px; object-fit: contain; }
.next-card__text { display: grid; gap: 2px; }
.next-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sd-violet); }
.next-card b { font-size: 22px; font-weight: 600; line-height: 30px; }
.next-card__text > span:last-child { font-size: 14px; line-height: 22px; color: var(--ink-soft); }
.next-card__arrow { width: 24px; height: 24px; color: var(--sd-violet); transition: transform .3s var(--ease-out); }
.next-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, .24); }
.next-card:hover .next-card__arrow { transform: translateX(4px); }
.next-card:focus-visible { outline: 3px solid var(--sd-yellow); outline-offset: 3px; }

/* ---------- Tablet & mobile ---------- */

/* ---------- MVP V2 ---------- */
.v2-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.v2-map { max-width: 880px; margin: 56px auto 0; }
.v2-changes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 48px auto 0; }
.v2-change { position: relative; padding: 28px 32px 30px; border-radius: 20px; background: rgba(243, 240, 223, .06); border: 1px solid rgba(243, 240, 223, .1); }
.v2-change__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sd-yellow); color: var(--night); font-size: 14px; font-weight: 700; }
.v2-change h3 { margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 26px; color: var(--cream); }
.v2-change p { margin-top: 6px; font-size: 15px; line-height: 24px; color: rgba(243, 240, 223, .72); }
.v2-course { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; max-width: 1000px; margin: 72px auto 0; }
.closing { max-width: 1000px; margin: 112px auto 0; padding-top: 72px; border-top: 1px solid rgba(243, 240, 223, .14); }
/* The next-case row needs more room than the 760px summary, so it widens around it, centred */
/* Shares the 1000px left edge with V2 results and the next-case row; text keeps a readable measure */
.closing > .h2, .closing > .body { max-width: 760px; }
.closing .body b { font-weight: 600; color: var(--cream); }
.closing .next-case { width: min(1000px, calc(100vw - 40px)); margin-left: 50%; translate: -50% 0; }

/* V2 AI feedback: intro video and the living drawing */
.v2-feedback { max-width: 1000px; margin: 96px auto 0; }
.v2-feedback__head { max-width: 720px; }
.v2-feedback__head .h3 { margin-top: 10px; color: var(--cream); }
.v2-feedback__head .body { margin-top: 14px; color: rgba(243, 240, 223, .78); }
.v2-feedback__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: end; }
.v2-feedback .mini h3 { color: var(--cream); }
.v2-feedback .mini p { color: rgba(243, 240, 223, .72); }
.v2-feedback__rive { display: block; width: 100%; height: 100%; }
.has-sound .sound-toggle { display: grid; }
.replay-btn { position: absolute; z-index: 7; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(17, 0, 52, .75); color: #fff; cursor: pointer; transition: transform .3s var(--ease-out); }
.replay-btn svg { width: 17px; height: 17px; }
.replay-btn:hover { transform: rotate(-40deg); }
@font-face { font-family: 'Basis App'; src: url('vendor/basis-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
/* AI feedback intro: holds its last frame, then the app's camera CTA rises in */
.cam-cta { position: absolute; z-index: 6; left: 50%; bottom: 7%; display: flex; align-items: center; gap: 1.2cqw; padding: 2.1cqw 4.4cqw; border-radius: 2cqw;
  background: #8217ff; color: #f3f0df; font: 700 2.8cqw/1 'Basis App', var(--font, sans-serif); white-space: nowrap; box-shadow: 0 .8cqw 2.4cqw rgba(10, 0, 40, .45);
  opacity: 0; transform: translate(-50%, 40%); transition: opacity .35s var(--ease-out), transform .45s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.cam-cta svg { width: 3.4cqw; height: 3.4cqw; }
.is-ended .cam-cta { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1099.98px) {
  .section__inner { padding: 0; display: block; }
  .wrap { padding: 64px var(--gutter); }
  .chapter, .chapter--flip, .chapter--solo { display: flex; flex-direction: column; gap: 0; }
  .chapter > .chapter__device { margin-top: 32px; width: 100%; }
  .chapter > .chapter__steps { margin-top: 24px; }

  .hero { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding: 56px 0 40px var(--gutter); }
  .hero__text { padding-right: var(--gutter); }
  .hero__logo { height: 156px; width: auto; max-width: 100%; }
  .hero__sub { font-size: 19px; line-height: 28px; margin-top: 20px; }
  .awards { margin-top: 32px; padding-top: 22px; gap: 12px 20px; }
  .awards img { height: 28px; }
  .hero__stage { width: calc(100% + var(--gutter)); margin: 36px 0 0 calc(var(--gutter) * -1); }
  .hero__fill { display: block; }

  .brief { display: block; padding-top: 56px; padding-bottom: 32px; }
  .brief .app-icons { max-width: 440px; margin: 32px auto 0; }
  .facts { grid-template-columns: 1fr; gap: 16px; }

  .paper { display: flex; flex-direction: column-reverse; }
  .paper__text { margin-bottom: 32px; }
  .paper__photo { height: auto; aspect-ratio: 4 / 3; border-radius: 20px; }
  .paper__device { position: relative; right: auto; bottom: auto; width: 88%; margin: -22% 0 0 auto; transform: rotate(4deg); }

  .research { display: block; }
  .quote { margin-top: 48px; }
  .quote__mark { width: 34px; }
  .quote blockquote { font-size: 24px; margin-top: 16px; }
  .needs-head { display: block; margin-top: 64px; }
  .needs-head .body { text-align: left; margin-top: 6px; }
  .needs { grid-template-columns: 1fr; }

  .bet__statement { font-size: 20px; }
  .journey { margin-top: 40px; }
  .journey__line { display: none; }
  .journey ol { grid-template-columns: 1fr; height: auto; gap: 0; width: fit-content; max-width: 100%; margin: 0 auto; } /* centered as a block under the centered hypothesis */
  .journey li:nth-child(n) { padding: 0 0 26px; }
  .journey li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; border-left: 2px dashed rgba(243, 240, 223, .3); }
  .journey a { grid-template-columns: 56px 1fr; column-gap: 16px; justify-items: start; text-align: left; align-items: center; }
  .journey__dot { width: 56px; height: 56px; font-size: 20px; grid-row: span 2; box-shadow: 0 0 0 6px rgba(243, 240, 223, .08); }
  .journey__label { margin-top: 0; }
  .journey__sub { max-width: none; }

  .duo { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 12px; }
  .map-intro { text-align: left; padding-bottom: 32px; }
  .map-notes { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .pair { aspect-ratio: auto; display: grid; gap: 28px; }
  .pair .st { position: relative; left: auto; top: auto; width: 100%; transform: none; }
  .lesson { padding-bottom: 12%; }
  .lesson__phone { right: -2%; width: 42%; padding: .88% 1.51%; }
  .practice { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }

  .scores { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
  .score { padding: 20px 18px; }
  .score__n { font-size: 36px; }
  .insight { padding: 28px 24px 30px 28px; }
  .insight__text { font-size: 17px; line-height: 28px; }
  .finding { padding: 26px 24px 28px; }
  .finding__text { font-size: 17px; line-height: 28px; }
  .verdict { grid-template-columns: 1fr; }
  .verdict__col { padding: 24px 22px 14px; }

  .v2-map { margin-top: 36px; }
  .v2-changes, .v2-course { grid-template-columns: 1fr; gap: 16px; }
  .v2-feedback { margin-top: 64px; }
  .v2-feedback__pair { grid-template-columns: 1fr; gap: 40px; }
  .v2-course { margin-top: 40px; gap: 24px; }
  .v2-results { margin-top: 56px; }
  .closing { margin-top: 64px; padding-top: 48px; }
  .next-card { max-width: 480px; margin-top: 36px; grid-template-columns: 72px 1fr 24px; padding: 16px 20px 16px 12px; column-gap: 16px; }
  .next-card img { width: 72px; height: 72px; }
  .next-card b { font-size: 19px; line-height: 26px; }
}
@media (min-width: 700px) and (max-width: 1099.98px) {
  .needs { grid-template-columns: repeat(2, 1fr); }
  .duo, .practice { grid-template-columns: 1fr 1fr; gap: 28px; }
  .map-notes { grid-template-columns: repeat(3, 1fr); }
  .scores { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .persona { padding: 24px 20px 22px; }
  .persona__facts { grid-template-columns: 1fr; }
  .score__n { font-size: 32px; }
}

/* Reduce motion calms decoration only; the story animations (sequences, quiz, catch-up, cards) keep playing */
@media (prefers-reduced-motion: reduce) {
  .float, .sparkle, .ai-float, .pin.is-active::after { animation: none !important; }
  .journey__dot { transform: none; }
}

/* No single word left alone on a last line: headings balance, body text wraps "pretty" */
h1, h2, h3, h4, .h2, .h3, .bet__statement, .insight__text, .finding__text, .quote, .journey__label, .journey__sub, .next-card b { text-wrap: balance; }
p, li, dd, .steps span, .next-card__text > span:last-child { text-wrap: pretty; }

/* Journal notes: two plain points, no numbering */
.jnotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.jnote { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgba(17, 0, 52, .05); }
.jnote b { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.jnote > span:last-child { font-size: 15px; line-height: 24px; color: var(--ink-soft); text-wrap: pretty; }
.jnote__ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 168, 146, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2300a892' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.jnote__ic--next { background: rgba(123, 47, 247, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5S21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z' fill='none' stroke='%237b2ff7' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%237b2ff7' stroke-width='2'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* V2 outcome: product market fit */
@media (max-width: 1099px) { .jnote { padding: 18px; } }

/* V2 results: same scoreboard as the MVP results, on the dark section */
.v2-results { max-width: 1000px; margin: 88px auto 0; }
.v2-results__head .h3 { margin-top: 10px; font-size: 28px; line-height: 1.25; color: #fff; }
.scores--v2 { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.scores--v2 .score { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; --c: #3fd9b6; }
.scores--v2 .score__bar { background: rgba(255, 255, 255, .1); }
.scores--v2 .score__label { color: rgba(243, 240, 223, .72); }
@media (max-width: 1099px) {
  .v2-results { margin-top: 56px; }
  .scores--v2 { grid-template-columns: repeat(2, 1fr); }
  .v2-pmf { gap: 16px; padding: 20px; }
  .v2-pmf__medal { width: 52px; }
  .v2-pmf p { font-size: 19px; line-height: 27px; }
}
@media (max-width: 600px) {
  .v2-pmf { align-items: flex-start; }
  .v2-pmf__text { min-width: 0; }
  .v2-pmf p { font-size: 18px; line-height: 26px; }
  .v2-pmf p span, .v2-pmf b { white-space: normal !important; }
}

/* MVP V2 map: surprise drawings unlock (Rive) and side confetti (Lottie) over the scrolling track */
.hscroll__track > .v2-track { position: relative; display: flex; height: 100%; width: max-content; }
/* Background sparks trail the scroll (parallax, see draw.js) behind the content. They sit in a clipped box the size
   of the track, so moving them never adds scroll past the last card. The track paints the base colour behind them. */
.map-track:has(> .map-sky), .hscroll__track > .v2-track { isolation: isolate; }
.hscroll__track > .v2-track { background: #200854; }
.hscroll__fixed { transition: opacity .35s ease; }
.hscroll__fixed.is-away { opacity: 0; }
.map-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.map-sky > img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; will-change: transform; }
.v2-track.is-still > .map-sky { display: none; }
.v2-track > img { display: block; height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.v2-track__bonus, .v2-track__confetti { position: absolute; pointer-events: none; }
.v2-track.is-still .v2-track__bonus, .v2-track.is-still .v2-track__confetti, .v2-track.is-still .v2-seq { display: none; }
/* Completion sequence (draw.js): faded items unlock, rings fill, a bounce, the gift hops */
.v2-seq { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.v2-seq__item, .v2-seq__medal { transform-box: fill-box; transform-origin: center; }
.v2-seq__art { opacity: .5; transition: opacity .35s var(--ease-out); }
.v2-seq__item.has-locked .v2-seq__art { opacity: 0; }
.v2-seq__item.is-done .v2-seq__art { opacity: 1; }
/* Round caps close the seam where the filled ring meets itself; the lilac track goes once it is full */
.v2-seq__fill { opacity: 0; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s cubic-bezier(.3, .7, .3, 1); }
.v2-seq__item.is-done .v2-seq__fill { opacity: 1; stroke-dashoffset: 0; }
.v2-seq__track { transition: opacity 0s .55s; }
.v2-seq__item.is-done .v2-seq__track { opacity: 0; }
.v2-seq__medal { opacity: 0; }
.v2-seq__medal-off { transition: opacity .2s .28s; }
.v2-seq__item.is-done .v2-seq__medal-off { opacity: 0; }
.v2-seq__item.is-done { animation: seq-bounce .55s .42s ease-out; }
.v2-seq__item.is-done .v2-seq__medal { animation: seq-medal .5s .28s cubic-bezier(.3, 1.6, .5, 1) both; }
.v2-seq__item--gift.is-done { animation: seq-gift 1s ease-in-out; }
.v2-seq__item.is-static, .v2-seq__item.is-static * { animation: none !important; transition: none !important; }
.v2-seq__item.is-static .v2-seq__medal { opacity: 1; }
@keyframes seq-bounce { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } 70% { transform: scale(.97); } }
@keyframes seq-medal { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes seq-gift {
  0%, 100% { transform: none; }
  20% { transform: translateY(-16%) rotate(-9deg) scale(1.12); }
  40% { transform: translateY(-16%) rotate(8deg) scale(1.12); }
  60% { transform: translateY(0) rotate(-5deg); }
  80% { transform: rotate(3deg); }
}

/* V2 milestone: an achievement card, the app's gold medal on a glowing gradient border */
.v2-pmf { position: relative; display: flex; align-items: center; gap: 24px; margin-top: 16px; padding: 26px 32px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(#2a0c66, #2a0c66) padding-box, linear-gradient(110deg, var(--sd-yellow), #ff6fb5 55%, #3fd9b6) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 0 1px rgba(255, 212, 79, .08), 0 18px 60px -18px rgba(255, 212, 79, .45); }
.v2-pmf::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 160px at 70px 50%, rgba(255, 212, 79, .22), transparent 70%); pointer-events: none; }
.v2-pmf::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent); transform: skewX(-18deg); pointer-events: none; }
.v2-pmf.is-in::after { animation: pmf-shine 1.6s .4s var(--ease-out) both; }
@keyframes pmf-shine { to { left: 120%; } }
.v2-pmf__medal { position: relative; flex: none; width: 64px; height: auto; filter: drop-shadow(0 6px 14px rgba(255, 180, 0, .35)); }
.v2-pmf.is-in .v2-pmf__medal { animation: pmf-pop .7s .2s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes pmf-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.v2-pmf__text { position: relative; }
.v2-pmf__kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-yellow); }
.v2-pmf p { margin: 4px 0 0; font-size: 24px; line-height: 32px; font-weight: 300; color: #fff; text-wrap: balance; }
.v2-pmf b { white-space: nowrap; font-weight: 600; background: linear-gradient(90deg, var(--sd-yellow), #ffb3d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .v2-pmf::after { display: none; } .v2-pmf__medal { animation: none !important; } }

/* Phones (mobile review, 2026-10-23): hero platforms one per line, awards in a 2x2 set,
   stats as rows (number left, bar and label right), needs with the badge beside the title */
.hero__meta .pl { white-space: nowrap; }
@media (max-width: 600px) {
  .hero__meta .sep { display: none; }
  .hero__meta .pl { display: block; }
  .awards { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; justify-items: start; gap: 16px 28px; }
  .awards img { max-width: 100%; }
  .scores, .scores--v2 { grid-template-columns: 1fr; gap: 8px; }
  .score { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; }
  .score__n { grid-row: 1 / 3; font-size: 30px; }
  .score__bar { margin: 4px 0 8px; }
  .score__label { line-height: 20px; }
  .needs { gap: 10px; }
  .need { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 16px 18px 18px; border-radius: 16px; }
  .need__n { width: 36px; height: 36px; font-size: 14px; }
  .need h4 { margin: 0; }
  .need p { grid-column: 2; margin-top: 2px; }
}
@media (min-width: 460px) and (max-width: 600px) { /* all four awards fit on one row at full size */
  .awards { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 16px; }
}
.score__label, .bet__statement { text-wrap: balance; }
/* Narrow phones: the hypothesis stays within six balanced lines and "product-market" fits the milestone card */
@media (max-width: 400px) {
  .bet__statement { font-size: 19px; }
  .v2-pmf { padding: 18px 16px; gap: 12px; }
  .v2-pmf__medal { width: 44px; }
  .v2-pmf p { font-size: 17px; line-height: 25px; }
}
/* The Product Hunt badge has no laurels, so it reads smaller than the others at the same height (Amir, 2026-10-23) */
.awards img[src*="product-hunt"] { height: 26px; } /* image cropped to the badge itself, so it centers on the row */
@media (max-width: 1099px) { .awards img[src*="product-hunt"] { height: 25px; } }

/* Phones: the step list is a swipe carousel under the screen, with progress dots (Amir, 2026-10-23, all projects) */
.step-dots { display: none; }
@media (max-width: 1099.98px) {
  .steps.is-swipe {
    display: flex; gap: 10px; min-width: 0; align-self: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .steps.is-swipe::-webkit-scrollbar { display: none; }
  .steps.is-swipe::after { content: ""; flex: 0 0 calc(100% - min(86%, 440px) - 10px); } /* lets the last card snap to the start */
  .steps.is-swipe > li { flex: 0 0 min(86%, 440px); scroll-snap-align: start; display: flex; }
  .steps.is-swipe > li > button:first-child { height: 100%; align-content: start; padding-right: 52px; }
  .steps.is-swipe span { max-height: none; opacity: 1; margin-top: 2px; transition: none; }
  .steps.is-swipe button::after { display: none; }
  .step-dots { display: flex; margin-top: 4px; margin-left: -2px; }
  .step-dots button { display: grid; place-items: center; padding: 8px 3px; border: 0; background: none; cursor: pointer; }
  .step-dots i { display: block; position: relative; overflow: hidden; width: 8px; height: 8px; border-radius: 4px; background: var(--dot, rgba(17, 0, 52, .14)); transition: width .3s ease; }
  .step-dots i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--dot-on); transform-origin: left; transform: scaleX(0); }
  .step-dots .is-on i { width: 28px; }
  .step-dots .is-done i::after { transform: none; opacity: .4; }
  .step-dots .is-running i::after { animation: step-fill var(--dur, 3s) linear forwards; animation-play-state: var(--play, running); }
  .step-dots button:focus-visible { outline: 2px solid var(--dot-on); outline-offset: -2px; border-radius: 8px; }
}
.step-dots { --dot-on: var(--sd-violet); }
