/* deckiy.com landing page only (<body class="home">). Shared tokens, buttons, nav and footer live in site.css.
   The look: the app icon's blue as a drenched hero and "get" block, navy in between, yellow for emphasis.
   Motion is transforms and opacity only, and everything settles at once for people who ask for reduced motion. */

.home {
  --sky: #0475FC; --sky-hi: #3D95FF; --sky-deep: #0356C4; --sky-night: #032F70;
  --ink: #14152A; --snow: #F7FAFF; --card-white: #FBFCFF; --paper: #FFF8EA; --paper-edge: #D9CDB4;
  --line: #DFE3F2; --soft-ink: #4A4F78; --quiet-ink: #6B7096;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  background: var(--navy-deep);
}

/* ---------- buttons added for this page ---------- */
.btn-sun { background: var(--yellow); color: #2A2100; box-shadow: 0 5px 0 var(--yellow-deep); }
.btn-sun:active { box-shadow: 0 1px 0 var(--yellow-deep); }
.btn-small.btn-sun { box-shadow: 0 4px 0 var(--yellow-deep); }
.btn-ink { background: var(--navy-deep); color: var(--snow); box-shadow: 0 5px 0 #05060F; }
.btn-ink:active { box-shadow: 0 1px 0 #05060F; }
.btn-small.btn-ink { box-shadow: 0 4px 0 #05060F; }
.btn-sun svg, .btn-ink svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- nav: blue over the hero, navy past it ---------- */
.home .nav { background: var(--sky); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .3s, border-color .3s; }
.home .nav.scrolled { border-color: rgba(3, 47, 112, .35); }
.home .nav.past-hero { background: rgba(15, 16, 34, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(52, 56, 107, .7); }
.home .nav:not(.past-hero) .nav-links a { color: rgba(247, 250, 255, .84); }
.home .nav:not(.past-hero) .nav-links a:hover { color: var(--snow); }
.home .nav:not(.past-hero) :focus-visible { outline-color: var(--snow); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.xp-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--navy-deep); color: var(--yellow); font: 700 15px/1 var(--head); white-space: nowrap; }
.xp-pill svg { width: 15px; height: 15px; fill: currentColor; }
.xp-pill.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ---------- hero ---------- */
.hero-x { position: relative; isolation: isolate; background: var(--sky); color: var(--snow); padding: clamp(24px, 4vw, 52px) 0 0; overflow-x: clip; }
/* Notebook paper: faint ruled lines and a red margin line. */
.hero-x::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(247, 250, 255, .11) 43px 44px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent); }
.hero-x::after { content: ''; position: absolute; top: 0; bottom: 0; left: max(10px, calc((100vw - var(--wrap)) / 2 - 36px)); width: 2px; z-index: -1; background: rgba(255, 140, 140, .45); }
.hero-x-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(96px, 10vw, 132px); }
.hero-x-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(3, 47, 112, .32); color: #E6F0FF; font-weight: 800; font-size: 14px; }
.hero-x-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(93, 226, 176, .25); }
.hero-x h1 { margin-top: 22px; font-size: clamp(46px, 7.2vw, 98px); line-height: .98; letter-spacing: -.025em; color: var(--snow); text-wrap: balance; }
.sticky-word { position: relative; display: inline-block; margin-left: .04em; padding: .04em .17em .1em; border-radius: .1em; background: var(--yellow); color: var(--ink); transform: rotate(-4deg);
  box-shadow: 0 .07em 0 var(--yellow-deep), 0 .35em .5em -.25em rgba(3, 30, 80, .5); }
.sticky-word::before { content: ''; position: absolute; top: -.13em; left: 50%; width: 1.05em; height: .28em; transform: translateX(-50%) rotate(4deg); background: rgba(247, 250, 255, .6); border-radius: .04em; }
.js .sticky-word { animation: slap .75s var(--ease-out) .3s both; }
@keyframes slap { from { opacity: 0; transform: rotate(-16deg) scale(1.7); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.hero-x-lede { margin-top: 24px; max-width: 31em; color: #EAF2FF; font-size: clamp(17px, 1.45vw, 20px); font-weight: 700; line-height: 1.5; }
.hero-x-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* The playable deck */
.quiz-zone { position: relative; justify-self: center; width: min(440px, 100%); padding-top: 104px; }
.quiz-hint { position: absolute; left: -12px; top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--snow); font: 600 21px/1 var(--head); transform: rotate(-6deg); }
.quiz-hint svg { width: 78px; height: 46px; margin-left: 52px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.deck { position: relative; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease-out); }
.deck-back { position: absolute; inset: 0; border-radius: 28px; }
.deck-back-1 { background: var(--yellow); box-shadow: 0 7px 0 var(--yellow-deep); transform: translate(12px, 4px) rotate(5deg); }
.deck-back-2 { background: var(--navy); box-shadow: 0 7px 0 #0A0B18; transform: translate(-12px, 10px) rotate(-6deg); }
.qcard { position: relative; z-index: 2; padding: 22px 22px 20px; border-radius: 28px; background: var(--card-white); color: var(--ink);
  box-shadow: 0 8px 0 var(--sky-night), 0 44px 70px -34px rgba(2, 22, 70, .7); transition: transform .45s var(--ease-out), opacity .35s ease; }
.qcard.fly-out { opacity: 0; transform: translate(70%, -6%) rotate(16deg); }
.qcard.fly-in { opacity: 0; transform: translateY(26px) scale(.95); transition: none; }
.quiz-deckiy { position: absolute; z-index: 3; right: -6px; top: -150px; width: 176px; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(3, 30, 80, .28)); }
.qcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; }
.qcard-subject { padding: 6px 11px; border-radius: 999px; background: #E6F0FF; color: var(--sky-deep); }
.qcard-count { color: var(--quiet-ink); white-space: nowrap; }
.qcard-progress { height: 8px; margin-top: 14px; border-radius: 99px; background: #E9ECF7; overflow: hidden; }
.qcard-progress span { display: block; height: 100%; border-radius: inherit; background: var(--sky); transform-origin: left; transform: scaleX(var(--p, .333)); transition: transform .6s var(--ease-out); }
.qcard-q { margin-top: 16px; font: 600 clamp(20px, 1.9vw, 23px)/1.25 var(--head); }
.qcard-options { display: grid; gap: 10px; margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 9px 12px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; background: var(--card-white); color: var(--ink);
  font: 700 16px/1.25 var(--body); text-align: left; cursor: pointer; transition: transform .15s var(--ease-out), border-color .15s, background-color .15s, opacity .2s; }
.opt:hover:not([disabled]) { border-color: #B6C4EE; transform: translateY(-1px); }
.opt:active:not([disabled]) { transform: translateY(2px); }
.opt[disabled] { cursor: default; }
.opt-key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 10px; color: var(--quiet-ink); font: 700 14px/1 var(--head); }
.opt-text { flex: 1; }
.opt-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: center / 15px no-repeat; }
.opt.is-right { border-color: var(--mint-deep); background: #E2FAF0; }
.opt.is-right .opt-key { border-color: var(--mint-deep); background: var(--mint-deep); color: var(--snow); }
.opt.is-right .opt-mark { background-color: var(--mint-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7FAFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opt.is-wrong { border-color: var(--coral-deep); background: #FFE9E9; animation: shake .42s; }
.opt.is-wrong .opt-key { border-color: var(--coral-deep); background: var(--coral-deep); color: var(--snow); }
.opt.is-wrong .opt-mark { background-color: var(--coral-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7FAFF' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.opt.is-dim { opacity: .45; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.qcard-feedback { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.qcard.answered .qcard-feedback { grid-template-rows: 1fr; }
.qcard-feedback-in { min-height: 0; overflow: hidden; }
.qcard-feedback-in > :first-child { padding-top: 16px; }
.fb-title { font: 700 21px/1.2 var(--head); }
.fb-title.is-good { color: #12825A; }
.fb-title.is-bad { color: var(--coral-deep); }
.fb-why { margin-top: 6px; color: var(--soft-ink); font-size: 15px; line-height: 1.5; }
.mastery-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 800; }
.mastery-name { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mastery-track { flex: 1; height: 10px; border-radius: 99px; background: #E9ECF7; overflow: hidden; }
.mastery-fill { display: block; height: 100%; border-radius: inherit; background: var(--mint-deep); transform-origin: left; transform: scaleX(var(--m, .42)); transition: transform .9s var(--ease-out) .1s, background-color .3s; }
.mastery-fill.is-low { background: var(--coral); }
.mastery-pct { min-width: 3ch; font-family: var(--head); text-align: right; }
.qcard-next { width: 100%; margin-top: 16px; }
.qcard-done { display: grid; gap: 10px; padding: 8px 0 2px; }
.qcard-done h2 { font-size: 30px; }
.qcard-done p { color: var(--soft-ink); }
.qcard-done .btn { width: 100%; margin-top: 6px; }
.qcard-again { justify-self: center; padding: 8px; border: 0; background: none; color: var(--sky-deep); font: 800 15px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.xp-float { position: absolute; z-index: 6; right: 24px; top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 20px/1 var(--head); box-shadow: 0 4px 0 var(--yellow-deep); pointer-events: none; animation: xpUp 1.2s var(--ease-out) forwards; }
@keyframes xpUp { 0% { opacity: 0; transform: translateY(10px) scale(.7); } 18% { opacity: 1; transform: translateY(0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }

/* Subject ribbon across the hero's bottom edge */
.ribbon { position: absolute; z-index: 4; left: -4%; right: -4%; bottom: -26px; padding: 15px 0; overflow: hidden; background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-deep); transform: rotate(-2deg); }
.ribbon-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; font: 700 21px/1 var(--head); white-space: nowrap; }
.ribbon span::after { content: ''; width: 11px; height: 11px; border-radius: 3px; background: var(--sky); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- shared section heads ---------- */
.x-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.x-kicker { color: var(--yellow); font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.x-head h2, .meet-copy h2, .keep-copy h2, .faq-x-head h2, .shots-head h2 { margin-top: 12px; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.home h2 em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255, 216, 77, .9) 60% 90%, transparent 90%); padding: 0 .06em; }
.x-sub { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- how it works: pinned story ---------- */
.story { padding: clamp(120px, 13vw, 168px) 0 clamp(72px, 9vw, 120px); background: var(--navy-deep); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.story-stage-wrap { order: 2; position: relative; }
.stage { position: sticky; top: max(92px, calc(50vh - 290px)); height: min(580px, calc(100vh - 120px)); }
.stage-inner { position: absolute; left: 50%; top: 50%; width: 460px; height: 540px; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.chapter { display: flex; flex-direction: column; justify-content: center; min-height: 74vh; padding: 24px 0; transition: opacity .45s ease; }
.js .chapter { opacity: .32; }
.js .chapter.is-on { opacity: 1; }
.chapter-num { width: fit-content; padding: 6px 10px; border-radius: 10px; background: var(--yellow); color: var(--ink); font: 700 15px/1 var(--head); box-shadow: 0 3px 0 var(--yellow-deep); }
.chapter h3 { margin-top: 18px; font-size: clamp(28px, 3.2vw, 40px); }
.chapter p { margin-top: 14px; max-width: 30em; color: var(--muted); font-size: 18px; }

.paper { position: absolute; z-index: 1; left: 40px; top: 60px; width: 340px; padding: 50px 24px 30px 50px; border-radius: 18px; color: var(--ink);
  background: linear-gradient(to right, transparent 34px, rgba(255, 107, 107, .5) 34px 36px, transparent 36px), repeating-linear-gradient(to bottom, var(--paper) 0 27px, #EADFC8 27px 28px);
  background-position: 0 0, 0 -6px; background-color: var(--paper); box-shadow: 0 8px 0 var(--paper-edge), 0 40px 60px -30px rgba(0, 0, 0, .7); transform-origin: 50% 0; transition: transform .9s var(--ease-out), opacity .6s ease; }
.paper p { font: 700 14px/28px var(--body); }
.paper .paper-title { color: var(--sky-deep); font: 700 18px/28px var(--head); }
.paper-tab { position: absolute; top: -16px; left: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--card-white); color: var(--ink); font: 800 12px/1 var(--body); box-shadow: 0 4px 0 #CFD6EA; }
.paper-tab svg { width: 16px; height: 16px; fill: none; stroke: var(--coral-deep); stroke-width: 2; stroke-linejoin: round; }
.paper mark { padding: 0 2px; border-radius: 3px; color: inherit; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 62% / 0% 72%; transition: background-size .5s var(--ease-out); }
.stage:not([data-step="1"]) .paper mark { background-size: 100% 72%; }
.paper mark:nth-of-type(2) { transition-delay: .05s; }
.paper p:nth-of-type(3) mark { transition-delay: .15s; }
.paper p:nth-of-type(4) mark { transition-delay: .25s; }
.paper p:nth-of-type(4) mark + mark { transition-delay: .32s; }
.paper p:nth-of-type(5) mark { transition-delay: .4s; }
.scan { position: absolute; left: 14px; right: 14px; top: 46px; height: 3px; border-radius: 2px; background: var(--sky); box-shadow: 0 0 0 5px rgba(4, 117, 252, .14); animation: scan 2.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; transition: opacity .3s; }
@keyframes scan { to { transform: translateY(200px); } }
.reading { position: absolute; right: 18px; bottom: -16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--sky); color: var(--snow); font: 800 12px/1 var(--body); box-shadow: 0 4px 0 var(--sky-deep); transition: opacity .3s; }
.reading i { width: 8px; height: 8px; border-radius: 50%; background: var(--snow); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stage:not([data-step="1"]) .scan, .stage:not([data-step="1"]) .reading { opacity: 0; }
.stage[data-step="1"] .paper { transform: translate(20px, 36px) rotate(-2deg); }
.stage[data-step="2"] .paper { transform: translate(-46px, 262px) rotate(-7deg) scale(.62); }
.stage[data-step="3"] .paper { opacity: .4; transform: translate(-56px, 278px) rotate(-9deg) scale(.56); }

.map { position: absolute; z-index: 2; left: 46px; top: 16px; width: 390px; height: 325px; overflow: visible; opacity: 0; transition: opacity .5s ease; }
.stage:not([data-step="1"]) .map { opacity: 1; }
.edges path { fill: none; stroke: #5A60A8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease-out); }
.stage:not([data-step="1"]) .edges path { stroke-dashoffset: 0; }
.edges path:nth-child(2) { transition-delay: .1s; } .edges path:nth-child(3) { transition-delay: .2s; }
.edges path:nth-child(4) { transition-delay: .3s; } .edges path:nth-child(5) { transition-delay: .4s; }
.edges path:nth-child(6) { transition-delay: .5s; } .edges path:nth-child(7) { transition-delay: .6s; }
.node { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: transform .55s var(--ease-out), opacity .3s ease; }
.stage:not([data-step="1"]) .node { opacity: 1; transform: none; }
.node.n2 { transition-delay: .08s; } .node.n3 { transition-delay: .16s; } .node.n4 { transition-delay: .24s; } .node.n5 { transition-delay: .32s; } .node.n6 { transition-delay: .4s; }
.node rect { fill: var(--sky); stroke: var(--navy-deep); stroke-width: 3; transition: fill .5s ease; }
.node text { fill: var(--snow); font: 700 14px var(--body); text-anchor: middle; transition: fill .5s ease; }
.node-big text { font-size: 15px; }
.node .pct { fill: var(--cream); font: 800 12px var(--body); opacity: 0; transition: opacity .4s ease .3s; }
.stage[data-step="3"] .node .pct { opacity: 1; }
.stage[data-step="3"] .m-hi rect { fill: var(--mint); }
.stage[data-step="3"] .m-mid rect { fill: var(--yellow); }
.stage[data-step="3"] .m-lo rect { fill: var(--coral); }
.stage[data-step="3"] .node text:not(.pct) { fill: var(--ink); }

.stage-q { position: absolute; z-index: 3; left: 130px; top: 352px; width: 310px; padding: 16px; border-radius: 20px; background: var(--card-white); color: var(--ink);
  box-shadow: 0 6px 0 #C9D2EA, 0 30px 50px -24px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(46px) rotate(2deg); transition: transform .7s var(--ease-out), opacity .45s ease; }
.stage[data-step="3"] .stage-q { opacity: 1; transform: rotate(2deg); }
.stage-q-top { display: flex; align-items: center; gap: 6px; color: var(--coral-deep); font: 800 12px/1 var(--body); }
.dot-lo { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.stage-q-text { margin-top: 8px; font: 600 16px/1.3 var(--head); }
.stage-opt { display: inline-block; margin: 10px 6px 0 0; padding: 7px 12px; border: 2px solid var(--line); border-radius: 12px; font: 700 13px/1 var(--body); }
.stage-opt.is-pick { border-color: var(--mint-deep); background: #E2FAF0; }

/* ---------- the real app ---------- */
.shots { padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); background: var(--navy); }
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.shots-head h2 { max-width: 13em; }
.shots-nav { display: flex; gap: 10px; }
.round-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 16px; background: var(--card-high); color: var(--cream); box-shadow: 0 4px 0 #191B38; cursor: pointer; transition: transform .1s; }
.round-btn:active { transform: translateY(3px); }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.shots-row { --gutter: max(16px, calc((100vw - var(--wrap)) / 2)); display: flex; gap: clamp(20px, 3vw, 36px); margin: 36px 0 0; padding: 20px var(--gutter) 48px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.shots-row::-webkit-scrollbar { display: none; }
.shots-row:focus-visible { outline-offset: -6px; border-radius: 24px; }
.shot { flex: 0 0 auto; width: clamp(210px, 23vw, 272px); scroll-snap-align: start; }
.shot .phone { transform: rotate(-2deg); transition: transform .5s var(--ease-out); }
.shot:nth-child(even) .phone { transform: rotate(2deg) translateY(18px); }
.shot:hover .phone { transform: rotate(0deg) translateY(-6px); }
.shot p { margin-top: 30px; color: var(--muted); font-size: 15px; }
.shot b { display: block; color: var(--cream); font: 700 19px/1.3 var(--head); }

/* ---------- features: bento of live widgets ---------- */
.bento-sec { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy-deep); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--stroke); border-radius: 28px; background: var(--card); box-shadow: 0 6px 0 #0B0C1C; overflow: hidden; }
.tile h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.12; }
.tile p { color: var(--muted); font-size: 16px; }
.tile-copy { display: grid; gap: 10px; }
.tile-foot { margin-top: auto; }

.tile-curve { grid-column: span 4; border-color: transparent; background: var(--sky); box-shadow: 0 6px 0 var(--sky-deep); }
.tile-curve p { max-width: 34em; color: #E3EEFF; }
.curve { width: 100%; height: auto; margin-top: auto; overflow: visible; }
.curve-grid { stroke: rgba(247, 250, 255, .28); stroke-width: 2; }
.curve-fade { fill: none; stroke: rgba(247, 250, 255, .5); stroke-width: 3; stroke-dasharray: .012 .014; opacity: 0; transition: opacity .8s ease .2s; }
.curve-main { fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.65, 0, .35, 1) .2s; }
.curve-dots circle { fill: var(--yellow); stroke: var(--sky); stroke-width: 4; opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-out), opacity .2s; }
.curve-labels text { fill: var(--snow); font: 800 12px var(--body); text-anchor: middle; opacity: 0; transition: opacity .5s ease; }
.curve-labels .curve-note { text-anchor: end; fill: rgba(247, 250, 255, .75); }
.live .curve-main { stroke-dashoffset: 0; }
.live .curve-fade, .live .curve-labels text { opacity: 1; }
.live .curve-dots circle { opacity: 1; transform: none; }
.curve-dots circle:nth-child(1), .curve-labels text:nth-child(1) { transition-delay: .7s; }
.curve-dots circle:nth-child(2), .curve-labels text:nth-child(2) { transition-delay: 1.3s; }
.curve-dots circle:nth-child(3), .curve-labels text:nth-child(3) { transition-delay: 2s; }
.curve-labels text:nth-child(4) { transition-delay: .9s; }

.tile-streak { grid-column: span 2; border-color: transparent; background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-deep); }
.tile-streak p { color: #5C4B0E; }
.streak-top { display: flex; align-items: center; gap: 12px; }
.flame { width: 58px; height: 58px; fill: var(--flame); stroke: #C9600F; stroke-width: 1.2; stroke-linejoin: round; }
.live .flame { animation: flicker 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 50% { transform: scale(1.06, .96) rotate(-2deg); } }
.streak-num b { display: block; font: 700 58px/1 var(--head); }
.streak-num span { font-size: 15px; font-weight: 800; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.week li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: rgba(21, 22, 43, .1); color: rgba(21, 22, 43, .6); font: 800 12px/1 var(--body); }
.live .week li { animation: dayOn .45s var(--ease-out) both; }
.week li:nth-child(2) { animation-delay: .1s; } .week li:nth-child(3) { animation-delay: .2s; } .week li:nth-child(4) { animation-delay: .3s; }
.week li:nth-child(5) { animation-delay: .4s; } .week li:nth-child(6) { animation-delay: .5s; } .week li:nth-child(7) { animation-delay: .6s; }
@keyframes dayOn { from { transform: scale(.5); } to { background: var(--ink); color: var(--yellow); transform: scale(1); } }

.tile-types { grid-column: span 2; }
.types { position: relative; min-height: 104px; }
.type { position: absolute; inset: 0; padding: 16px; border-radius: 18px; background: var(--card-high); color: var(--muted); font-size: 15px; opacity: 0; transform: translateY(14px) rotate(-1.5deg); transition: opacity .35s ease, transform .5s var(--ease-out); }
.type.is-on { opacity: 1; transform: none; }
.type b { display: block; margin-bottom: 4px; color: var(--cream); font: 700 19px/1.2 var(--head); }

.tile-why { grid-column: span 2; border-color: transparent; background: #5634C2; box-shadow: 0 6px 0 #3B2290; }
.tile-why p.tile-foot { color: #E2DAFF; }
.chat { display: grid; gap: 8px; }
.bubble { max-width: 90%; padding: 10px 14px; border-radius: 18px; font-size: 14px; font-weight: 700; line-height: 1.4; opacity: 0; transform: translateY(8px); }
.bubble-me { justify-self: end; border-bottom-right-radius: 6px; background: var(--snow); color: var(--ink); }
.bubble-typing, .bubble-deckiy { grid-area: 2 / 1; justify-self: start; border-bottom-left-radius: 6px; background: var(--sky); color: var(--snow); }
.bubble-typing { display: flex; gap: 5px; align-self: start; }
.bubble-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--snow); animation: blink 1s ease-in-out infinite; }
.bubble-typing i:nth-child(2) { animation-delay: .15s; } .bubble-typing i:nth-child(3) { animation-delay: .3s; }
.live .bubble-me { animation: bubbleIn .5s var(--ease-out) .2s both; }
.live .bubble-typing { animation: typing 1.5s ease .8s both; }
.live .bubble-deckiy { animation: bubbleIn .5s var(--ease-out) 2.25s both; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
@keyframes typing { 0% { opacity: 0; transform: translateY(8px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

.tile-friends { grid-column: span 2; }
.board { position: relative; height: 160px; margin: 0; padding: 0; list-style: none; }
.row { --rank: 0; position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card-high); transform: translateY(calc(var(--rank) * 56px)); transition: transform .8s var(--ease-out); }
.r-leo { --rank: 1; } .r-you { --rank: 2; background: var(--sky); color: var(--snow); box-shadow: 0 4px 0 var(--sky-deep); }
.board.climbed .r-you { --rank: 0; } .board.climbed .r-maya { --rank: 1; } .board.climbed .r-leo { --rank: 2; }
.rank { width: 18px; color: var(--muted); font: 700 16px/1 var(--head); }
.r-you .rank { color: var(--snow); }
.r-maya .rank::before { content: '1'; } .r-leo .rank::before { content: '2'; } .r-you .rank::before { content: '3'; }
.board.climbed .r-you .rank::before { content: '1'; } .board.climbed .r-maya .rank::before { content: '2'; } .board.climbed .r-leo .rank::before { content: '3'; }
.who { flex: 1; font-weight: 800; }
.pts { font: 700 16px/1 var(--head); font-variant-numeric: tabular-nums; }

.tile-mastery { grid-column: span 3; }
.bars { display: grid; gap: 14px; margin: auto 0 0; padding: 0; list-style: none; }
.bar { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 3em; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; }
.bar-track { height: 12px; border-radius: 99px; background: var(--card-high); overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out); }
.bar b { font-family: var(--head); text-align: right; }
.b-hi .bar-track span { background: var(--mint); } .b-mid .bar-track span { background: var(--yellow); transition-delay: .15s; } .b-lo .bar-track span { background: var(--coral); transition-delay: .3s; }
.live .b-hi .bar-track span { transform: scaleX(.92); } .live .b-mid .bar-track span { transform: scaleX(.61); } .live .b-lo .bar-track span { transform: scaleX(.34); }

.tile-energy { grid-column: span 3; flex-direction: row; align-items: center; gap: 18px; }
.energy-deckiy { flex: none; width: clamp(110px, 12vw, 160px); }
.battery { position: relative; display: flex; gap: 5px; width: 156px; margin-top: 6px; padding: 5px; border: 2px solid var(--stroke); border-radius: 10px; }
.battery::after { content: ''; position: absolute; right: -8px; top: 50%; width: 5px; height: 12px; margin-top: -6px; border-radius: 0 3px 3px 0; background: var(--stroke); }
.battery span { flex: 1; height: 18px; border-radius: 4px; background: var(--mint); }
.live .battery span { animation: drain 7s ease-in-out infinite; }
.battery span:nth-child(5) { animation-delay: 0s; } .battery span:nth-child(4) { animation-delay: .35s; } .battery span:nth-child(3) { animation-delay: .7s; }
.battery span:nth-child(2) { animation-delay: 1.05s; } .battery span:nth-child(1) { animation-delay: 1.4s; }
@keyframes drain { 0%, 12% { opacity: 1; } 30%, 72% { opacity: .14; } 100% { opacity: 1; } }

/* ---------- exams ---------- */
.exams-x { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 190px; padding: 14px 20px; border: 2px solid var(--stroke); border-radius: 18px; background: var(--card); color: var(--cream); box-shadow: 0 5px 0 #0B0C1C; cursor: pointer; text-align: left; transition: transform .1s, background-color .2s, border-color .2s; }
.tab:active { transform: translateY(3px); }
.tab b { font: 700 30px/1 var(--head); }
.tab span { color: var(--muted); font-size: 13px; font-weight: 800; }
.tab[aria-selected="true"] { border-color: var(--sky); background: var(--sky); box-shadow: 0 5px 0 var(--sky-deep); }
.tab[aria-selected="true"] span { color: #E3EEFF; }
.panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--stroke); border-radius: 32px; background: var(--card); }
.panel + .panel { margin-top: 18px; }
.js .panel:not(.is-on) { display: none; }
.js .panel.is-on { animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel h3 { font-size: clamp(28px, 3vw, 38px); }
.panel-copy > p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.formats li { padding: 8px 12px; border-radius: 12px; background: var(--yellow); color: var(--ink); font: 700 15px/1 var(--head); box-shadow: 0 3px 0 var(--yellow-deep); }
.course-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.course-cloud li { padding: 12px 18px; border-radius: 999px; background: var(--card-high); font: 700 17px/1 var(--head); transform: rotate(-2deg); transition: transform .3s var(--ease-out), background-color .2s; }
.course-cloud li:nth-child(even) { transform: rotate(2deg); }
.course-cloud li:nth-child(3n) { transform: rotate(-1deg) translateY(4px); }
.course-cloud li:hover { background: var(--sky); transform: rotate(0) scale(1.05); }
.course-cloud li.more { border: 2px dashed var(--stroke); background: transparent; color: var(--muted); }
.panel.is-on .course-cloud li, .panel.is-on .sections li { animation: popIn .5s var(--ease-out) both; }
.course-cloud li:nth-child(2), .sections li:nth-child(2) { animation-delay: .04s; } .course-cloud li:nth-child(3), .sections li:nth-child(3) { animation-delay: .08s; }
.course-cloud li:nth-child(4), .sections li:nth-child(4) { animation-delay: .12s; } .course-cloud li:nth-child(5) { animation-delay: .16s; } .course-cloud li:nth-child(6) { animation-delay: .2s; }
.course-cloud li:nth-child(7) { animation-delay: .24s; } .course-cloud li:nth-child(8) { animation-delay: .28s; } .course-cloud li:nth-child(9) { animation-delay: .32s; }
@keyframes popIn { from { opacity: 0; scale: .7; } }
.modules { display: grid; grid-template-columns: minmax(0, 1fr) clamp(56px, 8vw, 100px) minmax(0, 1fr); align-items: center; }
.mod { padding: 16px; border-radius: 18px; background: var(--card-high); }
.mod b { display: block; font: 700 18px/1.2 var(--head); }
.mod span { color: var(--muted); font-size: 13px; font-weight: 800; }
.mod-1 { background: var(--sky); box-shadow: 0 5px 0 var(--sky-deep); }
.mod-1 span { color: #E3EEFF; }
.mod-lines { width: 100%; height: 200px; overflow: visible; }
.mod-lines path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mod-up { stroke: var(--mint); } .mod-down { stroke: var(--stroke); }
.panel.is-on .mod-up { animation: draw 1s var(--ease-out) .25s forwards; }
.panel.is-on .mod-down { animation: draw 1s var(--ease-out) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mod-2 { display: grid; gap: 72px; }
.mod-hard { border: 2px solid var(--mint); }
.mod-easy { border: 2px solid var(--stroke); }
.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sections li { display: flex; align-items: flex-end; min-height: 110px; padding: 18px 20px; border-radius: 22px; color: var(--ink); font: 700 26px/1 var(--head); }
.sec-en { background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-deep); }
.sec-ma { background: var(--mint); box-shadow: 0 5px 0 var(--mint-deep); }
.sec-re { background: #B9A6FF; box-shadow: 0 5px 0 #8B70E8; }
.sec-sc { background: #FF9B9B; box-shadow: 0 5px 0 #E06565; }

/* ---------- meet Deckiy ---------- */
.meet { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy-deep); }
.meet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.mood-stage { --mood: var(--mint); --mood-deep: var(--mint-deep); position: relative; display: grid; place-items: end center; aspect-ratio: 1; overflow: hidden; border-radius: 40px; background-color: var(--mood);
  background-image: radial-gradient(rgba(247, 250, 255, .28) 2px, transparent 2.6px); background-size: 26px 26px; box-shadow: 0 10px 0 var(--mood-deep); transition: background-color .5s ease, box-shadow .5s ease; }
.mood-stage[data-mood="reading"] { --mood: var(--yellow); --mood-deep: var(--yellow-deep); }
.mood-stage[data-mood="confused"] { --mood: var(--coral); --mood-deep: var(--coral-deep); }
.mood-stage[data-mood="asleep"] { --mood: var(--purple); --mood-deep: var(--purple-deep); }
.mood-stage .mood-img { width: 84%; margin-bottom: -1%; }
.mood-say { position: absolute; z-index: 2; left: 7%; top: 7%; max-width: 62%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--card-white); color: var(--ink); font: 700 clamp(18px, 2vw, 24px)/1.2 var(--head); box-shadow: 0 5px 0 rgba(10, 12, 30, .22); }
.mood-say.pop { animation: sayPop .45s var(--ease-out); }
@keyframes sayPop { from { opacity: 0; transform: translateY(8px) scale(.85); } }
.mood-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.mood-pick { padding: 16px; border: 2px solid var(--stroke); border-radius: 18px; background: var(--card); color: var(--cream); box-shadow: 0 5px 0 #0B0C1C; font: inherit; text-align: left; cursor: pointer; transition: transform .1s, border-color .2s, background-color .2s; }
.mood-pick:active { transform: translateY(3px); }
.mood-pick b { display: flex; align-items: center; gap: 8px; font: 700 19px/1.2 var(--head); }
.mood-pick b::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--mint); }
.mood-pick[data-mood="reading"] b::before { background: var(--yellow); }
.mood-pick[data-mood="confused"] b::before { background: var(--coral); }
.mood-pick[data-mood="asleep"] b::before { background: var(--purple); }
.mood-pick span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.mood-pick[aria-pressed="true"] { border-color: var(--cream); background: var(--card-high); }

/* ---------- privacy ---------- */
.keep { padding: clamp(72px, 9vw, 120px) 0; background: var(--navy); }
.keep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.keep-art { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 48px 20px; border-radius: 32px; color: var(--ink);
  background: repeating-linear-gradient(to bottom, var(--paper) 0 31px, #EADFC8 31px 32px); box-shadow: 0 8px 0 var(--paper-edge); }
.file-card { position: relative; display: grid; justify-items: center; gap: 8px; width: 124px; padding: 18px 12px; border-radius: 16px; background: var(--card-white); box-shadow: 0 5px 0 var(--paper-edge); font: 800 13px/1 var(--body); }
.file-card svg { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.file-card i { position: absolute; left: 50%; top: 40%; padding: 4px 8px; border: 3px solid var(--coral-deep); border-radius: 8px; background: rgba(255, 248, 234, .9); color: var(--coral-deep); font: 700 14px/1 var(--head); font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -50%) rotate(-14deg); }
.keep-arrow { flex: none; width: 54px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.text-card { display: grid; gap: 9px; width: 144px; padding: 16px; border-radius: 16px; background: var(--sky); box-shadow: 0 5px 0 var(--sky-deep); }
.text-card b { color: var(--snow); font: 700 15px/1 var(--head); }
.text-card span { height: 8px; border-radius: 4px; background: rgba(247, 250, 255, .75); }
.text-card span:nth-of-type(2) { width: 82%; } .text-card span:nth-of-type(3) { width: 92%; } .text-card span:nth-of-type(4) { width: 60%; }
.keep-copy .ticks { margin-top: 22px; }
.keep-copy .link { display: inline-block; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-x { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy-deep); }
.faq-x-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 5vw, 72px); }
.faq-x-head { position: sticky; top: 112px; }
.faq-deckiy { width: min(250px, 70%); margin-top: 20px; }
.qa { display: grid; gap: 12px; }
.qa details { border: 1px solid var(--stroke); border-radius: 20px; background: var(--card); box-shadow: 0 4px 0 #0B0C1C; transition: background-color .2s; }
.qa details[open] { background: var(--card-high); }
.qa summary { position: relative; padding: 22px 64px 22px 24px; list-style: none; cursor: pointer; font: 600 20px/1.3 var(--head); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--yellow); transition: transform .3s var(--ease-out); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa summary:focus-visible { border-radius: 20px; }
.qa details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- get the app ---------- */
.get { padding: 0 0 clamp(72px, 9vw, 120px); background: var(--navy-deep); }
.get-block { position: relative; display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1.22fr) minmax(220px, .8fr); align-items: center; gap: clamp(20px, 3vw, 40px); min-height: 440px; padding: 48px clamp(28px, 4vw, 52px) 48px 0; overflow: hidden; border-radius: 36px; background: var(--sky); color: var(--snow); box-shadow: 0 10px 0 var(--sky-deep); }
/* Deckiy peeks in from the block's left edge, like the app icon. His picture's blue matches the block, and its top and right edges fade out. */
.get-peek { align-self: end; width: 100%; max-width: 380px; margin-bottom: -48px;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 99%), linear-gradient(to bottom, transparent 0, #000 20%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 72%, transparent 99%), linear-gradient(to bottom, transparent 0, #000 20%); mask-composite: intersect; }
.get-copy h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.get-copy > p { margin-top: 14px; color: #E3EEFF; font-weight: 700; }
.get-copy > p a { color: var(--snow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.get .store-buttons { margin-top: 26px; }
.get .btn-store { box-shadow: 0 5px 0 #A8B4CF; }
.receipt { position: relative; justify-self: end; width: 100%; max-width: 270px; padding: 22px 20px 26px; border-radius: 6px 6px 0 0; background: var(--paper); color: var(--ink); transform: rotate(3deg); filter: drop-shadow(0 18px 22px rgba(2, 22, 70, .4)); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 0) 0 0 / 16px 100% repeat-x; }
.receipt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 2px dashed var(--paper-edge); }
.receipt-head b { color: var(--sky); font: 700 22px/1 var(--head); }
.receipt-head span { color: #8A8066; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.receipt dl { display: grid; gap: 8px; margin: 12px 0 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 800; }
.receipt dt { color: #6E6550; }
.receipt dd { margin: 0; font-family: var(--head); font-weight: 700; text-align: right; }
.receipt-foot { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--paper-edge); color: #6E6550; font-size: 13px; line-height: 1.45; }
.receipt.printed { animation: printed .6s var(--ease-out); }
@keyframes printed { from { transform: rotate(3deg) translateY(-10px); } }

/* ---------- footer ---------- */
.footer-x { position: relative; padding-bottom: 0; overflow: hidden; background: var(--navy-deep); }
.footer-word { margin: 28px 0 0; color: var(--card); font: 700 clamp(100px, 25vw, 360px)/.74 var(--head); letter-spacing: -.045em; text-align: center; user-select: none; transform: translateY(.12em); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-x-grid { grid-template-columns: minmax(0, 1fr); }
  .quiz-hint { display: none; }
  .quiz-zone { padding-top: 112px; }
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-curve, .tile-mastery { grid-column: span 2; }
  .tile-streak, .tile-types, .tile-why, .tile-friends, .tile-energy { grid-column: span 1; }
  .tile-energy { flex-direction: column; align-items: flex-start; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .meet-grid, .keep-grid, .faq-x-grid { grid-template-columns: minmax(0, 1fr); }
  .mood-stage { width: min(480px, 100%); justify-self: center; }
  .faq-x-head { position: static; }
  .faq-deckiy { display: none; }
  .get-block { grid-template-columns: minmax(0, 1fr); padding: 40px 24px 0; min-height: 0; }
  .get-copy { order: 1; }
  .receipt { order: 2; justify-self: center; transform: rotate(2deg); margin-bottom: 8px; }
  .get-peek { order: 3; justify-self: start; width: min(300px, 78%); margin: 0 0 0 -24px; }
}
@media (max-width: 760px) {
  .home .nav .btn-small { padding: 0 14px; }
  .xp-pill { height: 34px; padding: 0 10px; font-size: 14px; }
  .hero-x h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero-x::after { display: none; }
  .ribbon span { font-size: 17px; gap: 18px; padding-right: 18px; }
  .ribbon { padding: 12px 0; bottom: -22px; }
  /* Story: the stage sticks to the top half of the screen and the chapters scroll under it. */
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-stage-wrap { order: 0; position: sticky; top: 72px; z-index: 2; height: 46vh; margin: 0 -16px; background: var(--navy-deep); }
  .story-stage-wrap::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 36px; background: linear-gradient(var(--navy-deep), transparent); pointer-events: none; }
  .stage { position: relative; top: 0; height: 100%; }
  .chapter { min-height: 62vh; justify-content: flex-start; padding-top: 48px; }
  .chapter p { font-size: 17px; }
  .shots-head { align-items: flex-start; flex-direction: column; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-curve, .tile-mastery, .tile-streak, .tile-types, .tile-why, .tile-friends, .tile-energy { grid-column: auto; }
  .tile-energy { flex-direction: row; align-items: center; }
  .tabs { flex-wrap: nowrap; }
  .tab { flex: 1 1 0; min-width: 0; align-items: center; padding: 12px 8px; text-align: center; }
  .tab span { display: none; }
  .modules { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .mod { padding: 12px; }
  .mod b { font-size: 16px; }
  .sections li { min-height: 88px; font-size: 22px; }
  .mood-picks { grid-template-columns: minmax(0, 1fr); }
  .mood-pick { padding: 12px 14px; }
  .keep-art { gap: 8px; padding: 36px 12px; }
  .file-card { width: 104px; }
  .text-card { width: 118px; }
  .keep-arrow { width: 36px; }
  .qa summary { font-size: 18px; padding: 18px 56px 18px 18px; }
  .qa details p { padding: 0 18px 18px; }
}
@media (max-width: 420px) {
  .home .nav .btn-small { font-size: 12px; padding: 0 10px; }
  .brand span { font-size: 21px; }
  .quiz-deckiy { width: 148px; top: -128px; }
  .quiz-zone { padding-top: 96px; }
  .qcard { padding: 18px 16px 16px; }
  .opt { min-height: 48px; font-size: 15px; }
  .hero-x-actions { gap: 10px; }
  .hero-x-actions .btn { flex: 1 1 0; padding: 0 12px; }
}

/* ---------- reduced motion: everything lands in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ribbon-track, .scan { animation: none !important; }
}
