/* Lumino landing page: palette, fonts and shapes taken from the app */
:root {
  --cream: #F6F1E7;
  --card: #FBF9F4;
  --white: #FFFFFF;
  --border: #E4DCCB;
  --ink: #211D18;
  --ink-soft: #524B41;
  --muted: #6B6459;
  --amber: #EE9E2E;
  --amber-light: #F7BE57;
  --amber-dark: #D9871A;
  --amber-tag: #FBEACB;
  --indigo: #5A57C9;
  --indigo-bg: #EAE9FB;
  --green: #7FB069;
  --green-dark: #2F5637;
  --green-bg: #E9EFEA;
  --coral: #FF6B4A;
  --wrong: #D2593A;
  --night: #161210;
  --night-card: #211C16;
  --night-line: #332C22;
  --night-ink: #F3EDE0;
  --night-soft: #CFC6B6;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --chalk: "Caveat", cursive;
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 52px); line-height: 1.06; }
p { margin: 0; }

.section { padding: clamp(70px, 9vw, 120px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 19px; margin-top: 18px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 16px;
}
.hl { color: var(--amber-dark); background: linear-gradient(var(--amber-light), var(--amber-light)) no-repeat 0 88% / 0% .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: underline 1s .9s var(--ease) forwards; }
@keyframes underline { to { background-size: 100% .16em; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- scroll progress ---------- */
.scroll-bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.scroll-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-light)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 16px; border-radius: 999px; z-index: 50;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border: 1px solid transparent;
}
.nav.solid { background: rgba(251, 249, 244, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); box-shadow: 0 10px 30px -18px rgba(33, 29, 24, .35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 21px; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); padding: 9px 14px; border-radius: 99px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--amber-tag); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); font-weight: 800; font-size: 13.5px; }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(33, 29, 24, .35); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 60; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font-weight: 600; font-size: 15px; text-align: left; }
.lang-menu button b { width: 28px; font-size: 12px; color: var(--amber-dark); }
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { background: var(--amber-tag); }
.tab-caption { display: none; }
.way-text, .di-text { display: block; font-style: normal; }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 15px; background: var(--ink); color: var(--night-ink);
  padding: 11px 18px; border-radius: 99px; transition: transform .2s var(--spring);
}
.nav-cta:hover { transform: translateY(-2px); }

/* ---------- buttons ---------- */
.duo {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  border: 0; border-radius: 17px; background: var(--amber); color: var(--ink);
  font-weight: 800; font-size: 15.5px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--amber-dark); transition: transform .12s, box-shadow .12s;
}
.duo:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--amber-dark); }
.duo:active { transform: translateY(5px); box-shadow: 0 0 0 var(--amber-dark); }
.duo.ghost { background: var(--card); box-shadow: 0 5px 0 var(--border); border: 2px solid var(--border); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 20px 9px 16px;
  border: 0; border-radius: 16px; background: var(--ink); color: #fff; text-align: left;
  box-shadow: 0 5px 0 #000; transition: transform .15s var(--spring), box-shadow .15s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #000; }
.store:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.05; }
.store small { font-family: var(--body); font-weight: 500; font-size: 11.5px; opacity: .8; letter-spacing: .02em; }
.store.light { background: var(--white); color: var(--ink); box-shadow: 0 5px 0 var(--border); border: 1.5px solid var(--border); }
.micro { font-size: 14px; color: var(--muted); margin-top: 14px; }

.pill { display: inline-flex; align-items: center; background: var(--ink); color: var(--amber-light); font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: 99px; }

/* ---------- phone: iPhone frame (Higgsfield mockup) with the live screen inside ---------- */
/* screen rect and island measured on assets/iphone-frame.png */
.phone {
  --sx: 50%;               /* horizontal centre of the screen */
  position: relative; width: min(307px, 100%); aspect-ratio: 1087 / 2250;
  filter: drop-shadow(0 40px 46px rgba(33, 29, 24, .32)) drop-shadow(0 12px 16px rgba(33, 29, 24, .18));
}
.phone::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: url("assets/iphone-frame.png") center / 100% 100% no-repeat;
}
.phone .screen {
  position: absolute; left: 4.692%; top: 2%; right: 4.692%; bottom: 2.8%;
  border-radius: 14.8% / 6.8%; overflow: hidden; background: var(--cream);
}
.phone .di, .phone .island {
  position: absolute; top: 22px; left: var(--sx); transform: translateX(-50%); z-index: 5;
  width: 89px; height: 27px; border-radius: 20px; background: #000;
}
/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px;
  max-width: 1240px; margin: 0 auto; padding: 130px clamp(16px, 5vw, 64px) 80px;
}
.hero-bg { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #F7BE57; right: 4%; top: 12%; }
.b2 { width: 340px; height: 340px; background: #CFCDF7; right: 30%; bottom: 4%; animation-delay: -6s; }
.b3 { width: 260px; height: 260px; background: #CBE0CF; left: -60px; top: 30%; animation-delay: -12s; }
@keyframes drift { 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 20px) scale(.95); } }
.hero-copy .lead { font-size: 20px; color: var(--ink-soft); margin: 24px 0 32px; max-width: 560px; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-3deg); } }
.tilt { transition: transform .4s var(--ease); transform-style: preserve-3d; }
.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 99px; padding: 10px 16px;
  font-weight: 700; font-size: 14px; box-shadow: 0 14px 30px -16px rgba(33, 29, 24, .4);
  animation: bob 5s ease-in-out infinite;
}
.float-chip img { width: 26px; height: 26px; }
.chip-a { left: -110px; top: 76%; animation-delay: -1.2s; }
.chip-b { right: -22px; top: 58%; animation-delay: -2.6s; }

.di-hero { display: flex; align-items: center; justify-content: space-between; padding: 0 11px; width: 176px !important; color: #fff; font-weight: 700; font-size: 13px; }
.di-flame { display: flex; align-items: center; gap: 4px; }
.di-flame svg, .flame svg { width: 15px; height: 15px; fill: var(--amber); }
.di-count { color: var(--amber-light); font-family: var(--mono); font-size: 12px; }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.scene.is-active { opacity: 1; visibility: visible; }

/* scene: snap */
.scene-snap { background: #0f0d0b; color: #fff; display: flex; flex-direction: column; align-items: center; padding: 62px 18px 22px; }
.cam-top { width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--amber-light); }
.cam-x { font-size: 18px; color: #fff; }
.paper {
  position: relative; margin-top: 46px; width: 100%; padding: 26px 20px 30px; border-radius: 10px;
  background: repeating-linear-gradient(#fdfaf2 0 27px, #dfe7f3 27px 28px); color: #2a3b8f; transform: rotate(-2deg);
}
.paper-label { font-family: var(--body); font-weight: 700; font-size: 12px; color: #9b4a2c; }
.chalk { font-family: var(--chalk); font-size: 26px; line-height: 1.1; }
.chalk.big { font-size: 40px; margin-top: 6px; }
.corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--amber); }
.c1 { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.c2 { top: -8px; right: -8px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.c3 { bottom: -8px; left: -8px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.c4 { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.is-active .corner { animation: lock-in .6s .3s var(--spring) both; }
@keyframes lock-in { from { transform: scale(1.5); opacity: 0; } }
.scanline { position: absolute; left: 4px; right: 4px; height: 3px; top: 0; border-radius: 3px; background: var(--amber); box-shadow: 0 0 18px 4px rgba(238, 158, 46, .7); opacity: 0; }
.is-active .scanline { animation: scan 1.6s .7s ease-in-out 1 both; }
@keyframes scan { 0% { top: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 94%; opacity: 0; } }
.cam-hint { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, .7); }
.shutter { margin-top: 14px; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.shutter span { width: 50px; height: 50px; border-radius: 50%; background: #fff; }
.is-active .shutter span { animation: press .3s 2.45s ease-in-out both; }
@keyframes press { 50% { transform: scale(.82); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.is-active .flash { animation: flash .5s 2.55s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: .95; } 100% { opacity: 0; } }

/* scene: veil */
.scene-veil { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 50% 42%, #fff7e6, var(--cream) 70%); }
.veil-ring { position: relative; width: 190px; height: 190px; }
.veil-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.veil-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.veil-ring .track { stroke: #EADFC9; }
.veil-ring .bar { stroke: var(--amber); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.is-active .veil-ring .bar { animation: ring 2.6s .1s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes ring { 85% { stroke-dashoffset: 34; } 100% { stroke-dashoffset: 10; } }
.veil-ring img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
.veil-label { font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.dots i { font-style: normal; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

/* scene: explanation */
.scene-explain, .wscene { padding: 64px 18px 18px; display: flex; flex-direction: column; }
.ex-top { display: flex; justify-content: space-between; align-items: center; }
.ex-time { font-size: 12px; color: var(--muted); font-weight: 600; }
.ex-title { font-size: 23px; line-height: 1.1; margin: 14px 0 14px; }
.ex-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: p; }
.ex-points li {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 9px 11px 9px 38px; font-size: 13.5px; line-height: 1.35;
  counter-increment: p;
}
.ex-points li::before { content: counter(p); position: absolute; left: 10px; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber-tag); color: var(--amber-dark); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.ex-points li, .ex-formula, .ex-quiz { opacity: 0; transform: translateY(14px); }
.is-active .ex-points li, .is-active .ex-formula, .is-active .ex-quiz { animation: fade-down .55s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .45s); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.ex-formula { margin-top: 10px; background: var(--ink); color: var(--night-ink); border-radius: 14px; padding: 9px 12px; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.ex-formula span { display: block; font-family: var(--body); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 2px; }
.ex-quiz { margin-top: 10px; font-size: 13px; font-weight: 700; }
.ex-opts { display: flex; gap: 6px; margin-top: 6px; }
.ex-opts span { flex: 1; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 7px 0; font-weight: 600; transition: all .3s; }
.is-active .ex-opts .ok { animation: ok-pop .5s 3s var(--spring) forwards; }
@keyframes ok-pop { 50% { transform: scale(1.08); } to { background: var(--green-bg); border: 2px solid var(--green-dark); color: var(--green-dark); } }

/* scene: live tutor in the hero */
.scene-live { padding: 62px 16px 16px; display: flex; flex-direction: column; }
.scene-live .board { flex: none; display: flex; flex-direction: column; padding: 14px 16px; }
.board-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #BFE3CC; opacity: .8; }
.scene-live .chalkline { font-size: 30px; }
.scene-live.is-active .l1 { animation: write .8s .4s steps(10) forwards; }
.scene-live.is-active .l2 { animation: write 1s 2.1s steps(14) forwards; color: var(--amber-light); }
.pies { display: flex; gap: 10px; margin: 6px 0 4px; }
.pies svg { width: 54px; height: 54px; }
.pies circle, .pies .cut { fill: none; stroke: #EFEDE3; stroke-width: 1.6; stroke-dasharray: 110; stroke-dashoffset: 110; }
.pies .fill { fill: var(--amber-light); opacity: 0; transform-origin: 20px 20px; }
.scene-live.is-active .pies circle, .scene-live.is-active .pies .cut { animation: draw .7s 1.1s ease-out forwards; }
.scene-live.is-active .pies .f1 { animation: slice .35s 1.6s var(--spring) forwards; }
.scene-live.is-active .pies .f2 { animation: slice .35s 1.75s var(--spring) forwards; }
.scene-live.is-active .pies .f3 { animation: slice .35s 1.9s var(--spring) forwards; }
.scene-live.is-active .pies .f4 { animation: slice .35s 2.05s var(--spring) forwards; }
@keyframes slice { from { opacity: 0; transform: scale(.6); } to { opacity: .85; transform: none; } }
.live-ask { align-self: flex-end; margin-top: auto; max-width: 78%; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 13px; padding: 9px 12px; border-radius: 16px 16px 4px 16px; opacity: 0; }
.scene-live.is-active .live-ask { animation: fade-down .45s 3.2s var(--ease) forwards; }
.scene-live .live-bubble { margin-top: 8px; }
.scene-live.is-active .live-bubble { animation: fade-down .5s 4.3s var(--ease) forwards; }
.live-talk { display: flex; align-items: center; gap: 3px; margin-top: 8px; height: 18px; color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 600; }
.live-talk i { width: 3px; height: 5px; border-radius: 2px; background: #8FC79A; }
.live-talk span { margin-left: 6px; }
.scene-live.is-active .live-talk i { animation: talk .9s ease-in-out infinite; }
@keyframes talk { 50% { height: 16px; } }
.live-talk i:nth-child(2) { animation-delay: -.2s !important; } .live-talk i:nth-child(3) { animation-delay: -.5s !important; }
.live-talk i:nth-child(4) { animation-delay: -.3s !important; } .live-talk i:nth-child(5) { animation-delay: -.7s !important; }

/* which mode the hero phone is showing */
.hero-modes { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 26px -16px rgba(33, 29, 24, .4); z-index: 4; white-space: nowrap; }
.hero-modes span { padding: 7px 13px; border-radius: 99px; font-weight: 700; font-size: 13px; color: var(--muted); transition: background .3s, color .3s; }
.hero-modes span.on { background: var(--ink); color: var(--amber-light); }

/* ---------- the app's real screens, inside the phones ---------- */
.screen svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* a homework sheet on a desk, as the camera sees it */
.desk { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(130% 100% at 25% 15%, #9a7650, #6a4d33 55%, #3f2d1e); }
.desk::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, .38)); pointer-events: none; }
.paper2 {
  position: absolute; left: 11%; right: 9%; top: 13%; bottom: 15%; padding: 14px 12px 10px 24px; border-radius: 3px;
  background: repeating-linear-gradient(#fbf8f0 0 19px, #d6e0ee 19px 20px); color: #27398f;
  transform: rotate(-3deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .4), 0 2px 4px rgba(0, 0, 0, .25);
}
.paper2::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 1.5px; background: #e6a2a2; }
.p-label { font: 700 9.5px/1.2 var(--body); color: #a2482a; margin-bottom: 4px; }
.p-hand { font-family: var(--chalk); font-size: 21px; line-height: 1.1; }
.p-hand.big { font-size: 30px; }
.p-hand.small { font-size: 18px; }
.p-hand.tried { color: #b0402a; text-decoration: line-through; text-decoration-thickness: 2px; font-size: 22px; opacity: .85; }
.p-tri { width: 70%; margin-top: 4px; }
.p-tri path { stroke: #27398f; stroke-width: 2.2; fill: none; }
.vf { position: absolute; width: 18px; height: 18px; border: 2.5px solid #fff; z-index: 2; }
.v1 { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.v2 { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.v3 { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.v4 { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.lv-scan { position: absolute; left: 12%; right: 12%; height: 2px; top: 20%; z-index: 2; background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px 2px rgba(238, 158, 46, .7); animation: lv-scan 3.2s ease-in-out infinite alternate; }
@keyframes lv-scan { to { top: 80%; } }
.rb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.rb svg { width: 15px; height: 15px; }
.rb.light { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.rb.q { font-weight: 800; font-size: 13px; }

/* Photo: camera */
.app-cam { background: #14110E; color: #fff; padding: 44px 12px 14px; display: flex; flex-direction: column; align-items: center; }
.cam-head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.cam-head b { font-family: var(--head); font-size: 13.5px; }
.cam-chip { margin-top: 8px; background: #2D2920; border-radius: 99px; padding: 5px 11px; font-size: 10.5px; font-weight: 600; }
.cam-view { position: relative; width: 100%; flex: 1; margin-top: 10px; border-radius: 14px; overflow: hidden; }
.cam-hint2 { margin-top: 8px; font-size: 9.5px; color: rgba(255, 255, 255, .7); }
.cam-ctrls { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 0; }
.gal { width: 34px; height: 34px; border-radius: 9px; background: repeating-linear-gradient(135deg, #2D2920 0 5px, #3a3428 5px 10px); }
.side { width: 34px; height: 34px; border-radius: 9px; background: #2D2920; display: grid; place-items: center; }
.side svg { width: 17px; height: 17px; }
.shut { width: 58px; height: 58px; border-radius: 50%; background: #F6F1E7; display: grid; place-items: center; box-shadow: 0 0 0 3px #14110E, 0 0 0 5px rgba(246, 241, 231, .5); }
.shut i { width: 48px; height: 48px; border-radius: 50%; background: #F6F1E7; }
.is-active .shut { animation: press .3s 2.3s ease-in-out both; }
.app-cam .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.app-cam.is-active .flash { animation: flash .5s 2.45s ease-out both; }

/* Photo: your photo, then ask out loud */
.app-ask { background: #F1ECE2; padding: 42px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ask-head { display: flex; align-items: center; gap: 12px; }
.ask-back { background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 6px 10px; font-weight: 700; font-size: 10.5px; }
.ask-head b { font-family: var(--head); font-size: 13.5px; }
.ask-photo { position: relative; height: 34%; border-radius: 16px; overflow: hidden; background: #1E1A16; }
.ask-photo .desk { inset: 10% 0; }
.ask-panel { flex: 1; background: #211D18; color: #F3EDE0; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; }
.ask-top { display: flex; gap: 9px; align-items: flex-start; }
.ask-mic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 3px #5a3d14; }
.ask-mic svg { width: 17px; height: 17px; }
.is-active .ask-mic { animation: pulse-mic 1.4s ease-in-out infinite; }
@keyframes pulse-mic { 50% { box-shadow: 0 0 0 6px rgba(238, 158, 46, .25); } }
.ask-k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.ask-q { font-family: var(--head); font-weight: 700; font-size: 14px; line-height: 1.2; margin-top: 2px; }
.ask-said { margin-top: 10px; min-height: 34px; font-size: 12px; color: rgba(243, 237, 224, .85); }
.ask-send { margin-top: auto; display: grid; place-items: center; height: 38px; border-radius: 13px; background: #7a5121; color: rgba(33, 29, 24, .7); font-weight: 800; font-size: 12px; transition: background .3s, color .3s; }
.ask-send.on { background: var(--amber); color: var(--ink); box-shadow: 0 3px 0 var(--amber-dark); }
.ask-links { display: flex; justify-content: center; gap: 16px; margin-top: 9px; font-size: 10px; font-weight: 700; color: rgba(243, 237, 224, .75); }

/* loading veil text */
.veil-label { text-align: center; padding: 0 22px; }
.veil-sub { text-align: center; padding: 0 26px; font-size: 11.5px; color: var(--muted); margin-top: -12px; }

/* explanation card */
.app-detail { background: #FBF9F4; padding: 42px 12px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.det-back { color: var(--amber-dark); font-weight: 700; font-size: 11px; }
.det-head { display: flex; align-items: center; gap: 9px; }
.det-head img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.det-head h4 { font-family: var(--head); font-size: 16.5px; line-height: 1.12; margin: 0; }
.det-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 9.5px; color: var(--muted); }
.det-tag { background: var(--amber-tag); color: var(--amber-dark); font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.det-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 11px; }
.det-k { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.det-k:first-child { margin-top: 0; }
.det-k.amber { color: var(--amber-dark); }
.det-sum { font-weight: 800; font-size: 11.5px; line-height: 1.45; }
.det-sum mark { background: var(--amber-tag); color: var(--ink); padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.det-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; counter-reset: d; }
.det-points li { position: relative; padding-left: 22px; font-size: 10.5px; line-height: 1.35; counter-increment: d; opacity: 0; }
.det-points li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 9.5px; display: grid; place-items: center; }
.is-active .det-points li { animation: fade-down .5s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .4s); }
.det-rule { border: 2px dashed #E2CFA5; border-radius: 11px; padding: 8px 6px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 13px; }
.det-quiz { opacity: 0; }
.is-active .det-quiz { animation: fade-down .5s 1.9s var(--ease) forwards; }
.det-qq { font-weight: 800; font-size: 11.5px; }
.det-opts { display: grid; gap: 5px; margin-top: 6px; }
.det-opts span { background: #F7F3EA; border: 1px solid var(--border); border-radius: 9px; padding: 6px 9px; font-weight: 600; font-size: 10.5px; }
.is-active .det-opts .ok { animation: ok-pop .5s 3.3s var(--spring) forwards; }

/* Live Tutor: camera + voice */
.app-live { background: #14110E; color: #fff; padding: 42px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.lv-top { display: flex; justify-content: space-between; align-items: center; }
.lv-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .14); background: #1E1A16; border-radius: 99px; padding: 5px 9px; font-weight: 800; font-size: 9.5px; letter-spacing: .02em; }
.lv-pill svg { width: 11px; height: 11px; color: #8FC79A; }
.lv-ok { font-weight: 700; }
.lv-dot { width: 6px; height: 6px; border-radius: 50%; background: #E5484D; animation: blink 1.2s steps(1) infinite; }
.lv-sep { width: 1px; height: 10px; background: rgba(255, 255, 255, .25); }
.lv-time { font-family: var(--mono); font-weight: 400; }
.lv-cam { position: relative; flex: 1; border-radius: 16px; overflow: hidden; min-height: 0; }
.lv-chip { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: rgba(20, 17, 14, .72); border-radius: 99px; padding: 4px 9px; font-size: 9px; font-weight: 700; }
.lv-chip i { width: 5px; height: 5px; border-radius: 50%; background: #8FC79A; }
.lv-chip-top { top: 8px; }
.lv-chip-bottom { bottom: 8px; }
.lv-sheet { background: #F0E8D5; color: var(--ink); border-radius: 16px; padding: 9px 10px 8px; }
.lv-row { display: flex; align-items: center; gap: 8px; }
.lv-row img { width: 30px; height: 30px; border-radius: 50%; }
.lv-row b { display: block; font-family: var(--head); font-size: 12.5px; }
.lv-status { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted); font-weight: 600; }
.lv-status i { width: 5px; height: 5px; border-radius: 50%; background: #5E9A6A; }
.lv-status em { font-style: normal; }
.st-speak { display: none; }
.app-live.speaking .st-listen { display: none; }
.app-live.speaking .st-speak { display: inline; }
.lv-wave { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 16px; }
.lv-wave i { width: 2.5px; height: 4px; border-radius: 2px; background: var(--amber); }
.is-active .lv-wave i { animation: talk .8s ease-in-out infinite; }
.lv-wave i:nth-child(2) { animation-delay: -.2s !important; } .lv-wave i:nth-child(3) { animation-delay: -.45s !important; }
.lv-wave i:nth-child(4) { animation-delay: -.1s !important; } .lv-wave i:nth-child(5) { animation-delay: -.6s !important; }
.lv-box { position: relative; margin-top: 7px; background: #fff; border-radius: 11px; padding: 8px 9px; min-height: 52px; font-size: 10.5px; line-height: 1.4; color: var(--ink-soft); }
.lv-say { color: var(--ink); font-weight: 600; }
.app-live.speaking .lv-hint { display: none; }
.app-live:not(.speaking) .lv-say { display: none; }
.lv-tap { text-align: center; font-size: 8.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.lv-ctrls { display: flex; justify-content: space-around; padding: 2px 4px 0; }
.lv-c { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lv-c svg { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: #F6F1E7; color: var(--ink); stroke-width: 2.2; }
.lv-c.lv-mic svg { background: var(--amber); }
.lv-c.end svg { background: #C7503F; color: #fff; }
.lv-c em { font-style: normal; font-size: 8.5px; font-weight: 700; color: rgba(255, 255, 255, .85); }

/* Voice */
.app-voice { background: #F6F1E7; padding: 42px 12px 12px; display: flex; flex-direction: column; align-items: center; }
.vc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.vc-head b { font-size: 11.5px; font-weight: 700; }
.vc-title { font-family: var(--head); font-size: 17px; margin: 12px 0 0; text-align: center; }
.vc-sub { font-size: 10px; color: var(--muted); margin-top: 3px; }
.vc-mic { position: relative; width: 90px; height: 90px; margin: 16px 0 10px; display: grid; place-items: center; }
.vc-btn { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; }
.vc-btn svg { width: 30px; height: 30px; }
.halo { position: absolute; inset: 0; border-radius: 50%; background: rgba(238, 158, 46, .16); }
.is-active .halo { animation: halo 2s ease-out infinite; }
.is-active .h2 { animation-delay: 1s; }
@keyframes halo { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vc-state { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 11.5px; }
.vc-state i { width: 6px; height: 6px; border-radius: 50%; background: #E5484D; }
.vc-time { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.vc-wave { display: flex; align-items: center; gap: 3px; height: 20px; margin: 5px 0 8px; }
.vc-wave i { width: 3px; height: 5px; border-radius: 2px; background: var(--amber); }
.is-active .vc-wave i { animation: talk .9s ease-in-out infinite; }
.vc-wave i:nth-child(2n) { animation-delay: -.3s !important; } .vc-wave i:nth-child(3n) { animation-delay: -.6s !important; }
.vc-card { width: 100%; background: #fff; border-radius: 14px; padding: 10px 11px; box-shadow: 0 10px 22px -14px rgba(33, 29, 24, .45); min-height: 92px; }
.vc-k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-dark); }
.vc-text { margin-top: 5px; font-family: var(--head); font-weight: 700; font-size: 13px; line-height: 1.3; }
.vc-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; background: var(--green-bg); color: var(--green-dark); border-radius: 99px; padding: 3px 8px; font-size: 9.5px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: all .4s var(--spring); }
.vc-chip svg { width: 10px; height: 10px; stroke-width: 3; }
.vc-chip.on { opacity: 1; transform: none; }
.vc-send { margin-top: auto; width: 100%; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #F3C98A; color: rgba(33, 29, 24, .5); font-weight: 800; font-size: 12px; transition: all .3s; }
.vc-send svg { width: 14px; height: 14px; }
.vc-send.on { background: var(--amber); color: var(--ink); box-shadow: 0 3px 0 var(--amber-dark); }
.vc-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.vc-row span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 32px; border-radius: 11px; background: #FBF9F4; border: 1px solid var(--border); font-size: 9.5px; font-weight: 700; }
.vc-row svg { width: 12px; height: 12px; }

/* typing caret while a text is being written */
[data-type].typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--amber-dark); animation: blink 1s steps(1) infinite; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--border); background: var(--card); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-row { display: flex; gap: 14px; padding-right: 14px; }
.marquee-row span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 22px; padding: 8px 22px 8px 10px; border-radius: 99px; background: var(--cream); border: 1px solid var(--border); white-space: nowrap; }
.marquee-row img { width: 40px; height: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- problem ---------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.problem-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 19px; margin-top: 18px; max-width: 460px; }
.felt { display: grid; gap: 10px; }
.felt-row {
  text-align: left; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--border); border-bottom-width: 4px; background: var(--card);
  font-weight: 600; font-size: 16px; transition: border-color .25s, background .25s, transform .2s var(--spring);
}
.felt-row:hover { transform: translateY(-2px); }
.felt-row.is-picked { border-color: var(--amber); background: #FFF7E8; }
.felt-reply { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 12px 16px 12px 8px; border-radius: 18px; background: var(--ink); color: var(--night-ink); }
.felt-reply p { font-weight: 600; font-size: 15px; transition: opacity .25s; }
.felt-sad { width: 70px; height: 70px; object-fit: contain; flex: none; }

/* ---------- three ways ---------- */
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ways-tabs { display: grid; gap: 12px; }
.way {
  position: relative; overflow: hidden; display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 20px;
  border-radius: 22px; border: 2px solid var(--border); background: var(--card); transition: border-color .3s, background .3s, transform .3s var(--spring);
}
.way b { display: block; font-family: var(--head); font-size: 21px; margin-bottom: 4px; }
.way span:last-of-type { color: var(--ink-soft); font-size: 15.5px; }
.way.is-active { border-color: var(--ink); background: var(--white); transform: translateX(6px); }
.way-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--amber-tag); }
.way-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--amber-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.way.is-active .way-icon { background: var(--amber); }
.way.is-active .way-icon svg { stroke: var(--ink); }
.way-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.way.is-active .way-progress { animation: prog var(--way-ms, 7000ms) linear forwards; }
.ways.paused .way-progress { animation: none; }
@keyframes prog { to { transform: scaleX(1); } }
.ways-stage { display: flex; justify-content: center; }

.wscene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .45s, transform .45s var(--ease), visibility .45s; }
.wscene.is-active { opacity: 1; visibility: visible; transform: none; }
.pill-sci { background: #0E2A38; color: #BDE3F3; }
.eq { margin: 4px 0 12px; padding: 16px 10px; border-radius: 16px; background: #7CC7E8; color: #0E2A38; font-family: var(--head); font-weight: 800; font-size: 25px; text-align: center; }
.co { display: inline-block; color: #fff; background: #0E2A38; border-radius: 8px; padding: 0 6px; margin-right: 2px; transform: scale(0); }
.is-active .co { animation: co-pop .5s var(--spring) forwards; }
.is-active .co:nth-of-type(1) { animation-delay: .7s; }
.is-active .co:nth-of-type(2) { animation-delay: 1.1s; }
@keyframes co-pop { to { transform: scale(1); } }
.atoms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.atoms div { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 7px; font-weight: 700; }
.atoms span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.atoms em { color: var(--green-dark); font-style: normal; }

.w-voice { align-items: center; text-align: center; background: radial-gradient(circle at 50% 30%, #fff5e1, var(--cream) 70%); }
.voice-sub { font-size: 13.5px; color: var(--muted); font-weight: 600; max-width: 220px; }
.mic { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; margin: 26px 0 18px; box-shadow: 0 6px 0 var(--amber-dark); }
.mic svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; position: relative; z-index: 1; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.is-active .ring { animation: ripple 2.4s ease-out infinite; }
.is-active .r2 { animation-delay: .8s; }
.is-active .r3 { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.wave i { width: 5px; height: 8px; border-radius: 4px; background: var(--ink); }
.is-active .wave i { animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .8s !important; }
.wave i:nth-child(3n) { animation-duration: 1.2s !important; background: var(--amber-dark); }
.wave i:nth-child(4n) { animation-delay: -.3s; }
.wave i:nth-child(5n) { animation-delay: -.6s; }
@keyframes wave { 50% { height: 36px; } }
.transcript { min-height: 66px; margin-top: 14px; font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.25; }
.caret { display: inline-block; width: 2px; height: 18px; background: var(--amber-dark); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.voice-reply { margin-top: auto; display: flex; gap: 8px; align-items: flex-end; text-align: left; opacity: 0; transform: translateY(14px); }
.voice-reply.show { opacity: 1; transform: none; transition: all .5s var(--ease); }
.voice-reply img { width: 68px; flex: none; }
.voice-reply p { background: var(--ink); color: var(--night-ink); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 13px; font-weight: 600; }

.w-live { background: #1d2a22; padding-top: 60px; }
.live-top { display: flex; align-items: center; gap: 7px; color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: blink 1.2s steps(1) infinite; }
.live-time { margin-left: auto; color: rgba(255, 255, 255, .7); }
.board { position: relative; flex: 1; margin-top: 12px; border-radius: 16px; background: #23332A; box-shadow: inset 0 0 0 6px #4b3a26; padding: 16px; color: #EFEDE3; overflow: hidden; }
.tri { width: 150px; height: 112px; margin-bottom: 14px; }
.tri path { fill: none; stroke: #EFEDE3; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.tri .sq { stroke-dasharray: 30; stroke-dashoffset: 30; stroke-width: 2; }
.is-active .tri path { animation: draw 1.4s .3s ease-out forwards; }
.is-active .tri .sq { animation-delay: 1.5s; animation-duration: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chalkline { font-family: var(--chalk); font-size: 27px; line-height: 1.15; clip-path: inset(0 100% 0 0); }
.is-active .l1 { animation: write .9s 1.9s steps(14) forwards; }
.is-active .l2 { animation: write 1s 2.9s steps(16) forwards; }
.is-active .l3 { animation: write 1s 4s steps(16) forwards; color: var(--amber-light); }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.lbl { position: absolute; font-family: var(--chalk); font-size: 20px; color: #BFE3CC; opacity: 0; }
.la { left: 40px; top: 74px; }
.lb { left: 70px; top: 118px; }
.lc { left: 100px; top: 46px; color: var(--amber-light); }
.is-active .lbl { animation: appear .4s 1.6s forwards; }
@keyframes appear { to { opacity: 1; } }
.live-bubble { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; opacity: 0; }
.is-active .live-bubble { animation: fade-down .5s 5s var(--ease) forwards; }
.live-bubble img { width: 62px; }
.live-bubble p { background: var(--night-ink); color: var(--ink); border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: 13px; font-weight: 700; }

/* ---------- own the answer ---------- */
.own-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: var(--amber); }
.own-card .eyebrow { color: var(--ink); opacity: .7; }
.own-copy p:not(.eyebrow) { font-size: 19px; margin-top: 18px; max-width: 520px; color: #3a2a12; }
.own-copy .own-parent { background: rgba(255, 255, 255, .35); border-radius: 16px; padding: 14px 16px; font-size: 16px; }
.own-steps { display: grid; gap: 12px; }
.step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: var(--night-ink); font-weight: 700; font-size: 17px; opacity: 0; transform: translateX(40px); }
.in .step { animation: slide-in .6s var(--spring) forwards; }
.in .s2 { animation-delay: .25s; } .in .s3 { animation-delay: .5s; } .in .s4 { animation-delay: .75s; }
@keyframes slide-in { to { opacity: 1; transform: none; } }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--amber-light); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.step .n.ok { background: #8FC79A; }
.s4 { background: var(--green-bg); color: var(--green-dark); }

/* ---------- dark lock section ---------- */
.dark { max-width: none; background: var(--night); color: var(--night-ink); }
.dark .section-head p:not(.eyebrow) { color: var(--night-soft); }
.dark .eyebrow { color: #F0A93F; }
.lock-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.di-controls { display: grid; gap: 10px; }
.di-controls button {
  position: relative; overflow: hidden; text-align: left; padding: 18px 20px; border-radius: 20px; border: 1.5px solid var(--night-line); background: var(--night-card); color: var(--night-soft); font-size: 15px; transition: all .3s;
}
.di-controls b { display: block; font-family: var(--head); font-size: 20px; color: var(--night-ink); margin-bottom: 2px; }
.di-controls button.is-active { border-color: var(--amber); background: #2A241C; transform: translateX(6px); }
.di-controls button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.di-controls button.is-active::after { animation: prog 4200ms linear forwards; }
.lock.paused .di-controls button::after { animation: none; }
.lock-stage { position: relative; display: flex; justify-content: center; align-items: center; gap: 30px; }

.phone-lock { width: min(320px, 100%); }
.lock-screen { background: radial-gradient(120% 80% at 30% 0%, #8A5A12 0%, #3b2614 45%, #120d09 100%) !important; color: #fff; padding: 0 14px; display: flex; flex-direction: column; }
.ls-status { display: flex; justify-content: space-between; padding: 20px 14px 0; font-size: 14px; font-weight: 700; }
.ls-icons { font-size: 10px; letter-spacing: 2px; }
.ls-date { text-align: center; margin-top: 46px; font-weight: 600; font-size: 17px; opacity: .85; }
.ls-time { text-align: center; font-family: var(--head); font-weight: 700; font-size: 86px; line-height: 1; letter-spacing: -.02em; margin-top: 2px; }
.ls-bottom { margin-top: auto; display: flex; justify-content: space-between; padding: 0 22px 26px; font-size: 18px; }
.ls-bottom span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; backdrop-filter: blur(8px); }
.app-blur { position: absolute; inset: 0; z-index: 3; background: var(--cream); color: var(--ink); padding: 74px 16px 16px; display: flex; flex-direction: column; gap: 10px; transition: opacity .45s, transform .45s var(--ease); }
[data-state="lock"] .app-blur { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.ab-status { position: absolute; top: 21px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; font-size: 12px; font-weight: 700; }
.ab-card { display: flex; flex-direction: column; gap: 9px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.ab-card .pill { align-self: flex-start; }
.ab-card b { font-family: var(--head); font-size: 19px; line-height: 1.15; }
.ab-card i { height: 10px; border-radius: 6px; background: #EADFC9; }
.ab-card i.short { width: 60%; }
.ab-formula { background: var(--ink); color: var(--night-ink); border-radius: 14px; padding: 11px 13px; font-family: var(--mono); font-size: 12px; }
.ab-quiz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ab-quiz span { background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 9px 0; text-align: center; font-weight: 700; font-size: 13px; }
.ab-quiz .ok { background: var(--green-bg); border: 2px solid var(--green-dark); color: var(--green-dark); }
[data-state="lock"] .ls-status { opacity: 1; }
[data-state="minimal"] .ab-status span:last-child { opacity: 0; }
.store span { white-space: nowrap; }

/* island morphs */
.island { transition: width .55s var(--spring), height .55s var(--spring), border-radius .55s var(--spring), top .55s var(--spring); overflow: hidden; color: #fff; }
.island > div { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.is-compact { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-weight: 800; font-size: 14px; }
.is-compact .flame { display: flex; align-items: center; gap: 4px; }
.gold { color: var(--amber-light); font-family: var(--mono); font-size: 13px; }
.is-expanded { padding: 16px 20px; }
.xp-row { display: flex; justify-content: space-between; align-items: flex-start; }
.xp-left { display: flex; align-items: baseline; gap: 6px; }
.xp-left b { font-family: var(--head); font-size: 38px; line-height: 1; }
.xp-left small, .xp-right small { color: rgba(255, 255, 255, .6); font-size: 12.5px; font-weight: 600; }
.xp-right { text-align: right; display: flex; flex-direction: column; }
.xp-right b { font-size: 17px; }
.coral { color: var(--coral); }
.flame.big svg { width: 30px; height: 30px; align-self: center; }
.xp-bar { height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .15); margin: 12px 0 10px; overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--amber-light)); border-radius: 9px; transition: width 1s .35s var(--ease); }
.xp-msg { font-size: 13px; color: rgba(255, 255, 255, .75); }
.xp-msg .cd { color: var(--amber-light); font-family: var(--mono); font-size: 12px; }

.island-min { position: absolute; top: 21.5px; left: calc(var(--sx) + 50px); z-index: 5; width: 28px; height: 28px; border-radius: 50%; background: #000; display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--spring); }
.island-min svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.island-min circle { fill: none; stroke-width: 3; }
.island-min .mt { stroke: rgba(255, 255, 255, .15); }
.island-min .mb { stroke: var(--amber); stroke-dasharray: 81.7; stroke-dashoffset: 27; stroke-linecap: round; }
.island-min .flame svg { position: static; width: 13px; height: 13px; transform: none; }

[data-state="compact"] .island { width: 196px; }
[data-state="compact"] .is-compact { opacity: 1; transition-delay: .2s; }
[data-state="expanded"] .island { width: calc(83.5% - 14px); height: 156px; border-radius: 42px; top: 18px; }
[data-state="expanded"] .is-expanded { opacity: 1; transition-delay: .25s; }
[data-state="expanded"] .xp-bar span { width: 66%; }
[data-state="minimal"] .island { left: var(--sx); }
[data-state="minimal"] .island-min { transform: scale(1); }
[data-state="lock"] .island { width: 89px; }

.la-card {
  margin-top: 36px; border-radius: 22px; padding: 13px 14px; background: rgba(31, 26, 21, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(30px) scale(.94); opacity: 0; transition: transform .6s var(--spring), opacity .4s;
}
[data-state="lock"] .la-card, .in-view[data-state] .la-card { transform: none; opacity: 1; }
[data-state="lock"] .la-card { box-shadow: 0 0 0 2px rgba(238, 158, 46, .7), 0 20px 40px -10px rgba(238, 158, 46, .35); }
.la-top { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.la-top img { width: 20px; height: 20px; border-radius: 6px; }
.la-cd { margin-left: auto; }
.la-cd b { color: var(--coral); font-family: var(--mono); font-weight: 700; }
.la-main { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.la-days { display: block; font-family: var(--head); font-size: 24px; line-height: 1; }
.la-msg { font-size: 13px; color: var(--amber-light); font-weight: 600; }
.la-week { display: flex; justify-content: space-between; }
.la-week .d { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .55); border: 1.5px solid rgba(255, 255, 255, .18); }
.la-week .done { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.la-week .today { border-color: var(--coral); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 107, 74, .25); } }
.in-view .la-week .done { animation: fill .45s var(--spring) both; }
.la-week .done:nth-child(1) { animation-delay: .5s; } .la-week .done:nth-child(2) { animation-delay: .62s; }
.la-week .done:nth-child(3) { animation-delay: .74s; } .la-week .done:nth-child(4) { animation-delay: .86s; }
@keyframes fill { from { transform: scale(0); } }


/* ---------- review ---------- */
.review-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.flip-wrap { perspective: 1400px; }
.flip { position: relative; height: 400px; transform-style: preserve-3d; transition: transform .8s var(--spring); cursor: pointer; outline: none; }
.flip.flipped { transform: rotateY(180deg); }
.flip:focus-visible { box-shadow: 0 0 0 4px var(--amber-light); border-radius: 32px; }
.face { position: absolute; inset: 0; border-radius: 32px; padding: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.front { background: #A5A3F0; color: #17143A; }
.back { background: var(--white); border: 2px solid var(--border); transform: rotateY(180deg); display: flex; flex-direction: column; }
.pill.dark { background: #17143A; color: #C9C7F7; }
.back .pill.dark { background: var(--ink); color: var(--amber-light); align-self: flex-start; }
.fq { font-family: var(--head); font-weight: 700; font-size: 36px; line-height: 1.08; margin-top: 18px; max-width: 80%; }
.flip-mascot { position: absolute; right: -10px; bottom: -10px; width: 170px; }
.bubble { position: absolute; left: 28px; bottom: 28px; background: #17143A; color: #F3EDE0; font-family: var(--head); font-weight: 700; padding: 11px 14px; border-radius: 16px 16px 4px 16px; }
.fa { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.12; margin-top: 18px; }
.rate-q { margin-top: auto; font-weight: 700; color: var(--muted); font-size: 14px; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.rates span { text-align: center; padding: 14px 6px; border-radius: 16px; border: 2px solid var(--border); border-bottom-width: 4px; font-weight: 700; font-size: 15px; transition: all .3s; }
.flip.flipped .rates .pick { animation: pick .6s 1.2s var(--spring) forwards; }
@keyframes pick { 50% { transform: scale(1.06); } to { border-color: var(--green-dark); background: var(--green-bg); color: var(--green-dark); } }

.timeline { margin-top: 26px; }
.tl-line { height: 6px; border-radius: 9px; background: var(--border); overflow: hidden; }
.tl-line span { display: block; height: 100%; width: 0; background: var(--amber); transition: width 1.4s var(--ease); }
.timeline.go .tl-line span { width: 100%; }
.tl-dots { display: flex; justify-content: space-between; margin-top: -16px; }
.tl-dots span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.tl-dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 3px solid var(--border); transition: all .4s var(--spring); }
.timeline.go .tl-dots span:nth-child(1) i { background: var(--amber); border-color: var(--amber); transition-delay: .1s; }
.timeline.go .tl-dots span:nth-child(2) i { background: var(--amber); border-color: var(--amber); transition-delay: .5s; }
.timeline.go .tl-dots span:nth-child(3) i { background: var(--amber); border-color: var(--amber); transition-delay: .9s; }
.timeline.go .tl-dots span:nth-child(4) i { background: var(--amber); border-color: var(--amber); transition-delay: 1.3s; }

.review-side { display: grid; gap: 16px; }
.mini-card { background: var(--card); border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 26px; padding: 22px; }
.mini-k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-dark); }
.mini-q { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.2; margin-top: 8px; }
.mini-note { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.q-opts { display: grid; gap: 8px; margin-top: 14px; }
.q-opts span { padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); font-weight: 600; transition: all .35s; display: flex; justify-content: space-between; }
.quiz.step1 [data-q="wrong"] { border: 2px solid var(--wrong); }
.quiz.step1 [data-q="wrong"]::after { content: "✕"; color: var(--wrong); font-weight: 800; }
.quiz.step2 [data-q="right"] { border: 2px solid var(--green-dark); background: var(--green-bg); color: var(--green-dark); font-weight: 700; }
.quiz.step2 [data-q="right"]::after { content: "✓"; font-weight: 800; }
.q-verdict { margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--green-dark); opacity: 0; transition: opacity .4s; }
.quiz.step2 .q-verdict { opacity: 1; }
.challenge { background: var(--amber); border-color: var(--amber-dark); }
.challenge .mini-k { color: var(--ink); opacity: .7; }
.challenge .mini-note { color: #3a2a12; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; text-align: center; font-size: 12px; font-weight: 800; color: #5a3d10; }
.week i { height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .4); position: relative; }
.week i.ok::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: var(--green-dark); font-weight: 800; }
.week i.ok { background: var(--green-bg); }
.week i.today { background: #fff7e6; box-shadow: 0 0 0 2px var(--ink) inset; }
.challenge.done .week i.today { background: var(--green-bg); }
.challenge.done .week i.today::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: var(--green-dark); font-weight: 800; animation: fill .5s var(--spring); }
.in .week i.ok { animation: fill .45s var(--spring) both; }
.in .week i.ok:nth-of-type(2) { animation-delay: .12s; } .in .week i.ok:nth-of-type(3) { animation-delay: .24s; }

/* ---------- road ---------- */
.road-stage { position: relative; height: 340px; max-width: 1100px; margin: 0 auto; }
.road-svg { position: absolute; inset: 0; width: 100%; height: 300px; overflow: visible; }
.road-svg path { fill: none; stroke-linecap: round; }
#roadPath { stroke: #E8DEC9; stroke-width: 34; }
.road-done { stroke: var(--amber); stroke-width: 10; stroke-dasharray: 1 1; }
.road-nodes { position: absolute; inset: 0; height: 300px; }
.node { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 3px solid var(--border); display: grid; place-items: center; font-weight: 800; font-size: 15px; transition: all .35s var(--spring); }
.node.reached { background: var(--amber); border-color: var(--amber-dark); transform: translate(-50%, -50%) scale(1.08); }
.node.goal { width: 64px; height: 64px; background: var(--ink); color: var(--amber-light); border-color: var(--ink); font-size: 12px; flex-direction: column; line-height: 1.05; }
.node.goal b { font-size: 20px; }
.node.goal.reached { background: var(--green-dark); color: #fff; }
.road-mascot { position: absolute; left: 0; top: 0; width: 120px; height: 120px; pointer-events: none; will-change: transform; transition: opacity .4s; }
.road-mascot.fade { opacity: 0; }
.road-mascot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rm-walk { transform: scaleX(-1); opacity: 0; }          /* the clip faces left, the road goes right */
.road-mascot.walking .rm-walk { opacity: 1; }
.road-mascot.walking .rm-idle { opacity: 0; }
.rm-shadow { position: absolute; left: 49%; top: 89.5%; width: 50%; height: 12%; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(33, 29, 24, .28); filter: blur(3px); }
.node.pop { animation: node-pop .55s var(--spring); }
@keyframes node-pop { 40% { transform: translate(-50%, -50%) scale(1.25); } }
.node.goal.party { animation: goal-party 1.2s ease-in-out 2; }
@keyframes goal-party { 50% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 10px rgba(238, 158, 46, .3); } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 30px; background: var(--card); border: 2px solid var(--border); border-bottom-width: 5px; transition: transform .3s var(--spring); }
.plan:hover { transform: translateY(-6px); }
.plan.best { border-color: var(--amber); background: var(--white); }
.badge { position: absolute; top: -15px; left: 30px; background: var(--ink); color: var(--amber-light); font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 99px; }
.plan-name { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); }
.price { font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; margin-top: 10px; }
.price small { font-size: 18px; color: var(--muted); font-weight: 600; }
.per { color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.plan li::before { content: "✓"; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--green-bg); color: var(--green-dark); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.plan .duo { margin-top: auto; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.faq-tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 99px;
  border: 2px solid var(--border); background: var(--card); font-weight: 700; font-size: 15px; transition: all .25s var(--spring);
}
.faq-tabs button span { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--amber-tag); color: var(--amber-dark); font-size: 12.5px; display: grid; place-items: center; }
.faq-tabs button:hover { transform: translateY(-2px); }
.faq-tabs button.is-active { background: var(--ink); border-color: var(--ink); color: var(--night-ink); }
.faq-tabs button.is-active span { background: var(--amber); color: var(--ink); }
.faq-group { display: none; gap: 12px; }
.faq-group.is-active { display: grid; }
.faq-group.is-active details { animation: fade-down .45s var(--ease) both; }
.faq-group.is-active details:nth-child(2) { animation-delay: .05s; }
.faq-group.is-active details:nth-child(3) { animation-delay: .1s; }
.faq-group.is-active details:nth-child(4) { animation-delay: .15s; }
.faq-group.is-active details:nth-child(5) { animation-delay: .2s; }
.faq-a { overflow: hidden; }
.faq-help { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px 18px 16px 10px; border-radius: 24px; background: var(--ink); color: var(--night-ink); }
.faq-help img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.faq-help b { font-family: var(--head); font-size: 19px; }
.faq-help p { color: var(--night-soft); font-size: 14.5px; margin-top: 2px; }
.faq-mail { margin-left: auto; flex: none; text-decoration: none; background: var(--amber); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 14px; box-shadow: 0 4px 0 var(--amber-dark); }
@media (max-width: 560px) {
  .faq-help { flex-wrap: wrap; padding: 16px; }
  .faq-help img { width: 64px; height: 64px; }
  .faq-help > div { flex: 1 1 200px; }
  .faq-mail { margin-left: 0; width: 100%; text-align: center; }
  .faq-tabs { justify-content: flex-start; }
}
details { background: var(--card); border: 2px solid var(--border); border-radius: 20px; padding: 0 22px; transition: border-color .3s; }
details[open] { border-color: var(--amber); }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--head); font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: .8; color: var(--amber-dark); transition: transform .3s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details .faq-a p { padding: 0 0 20px; color: var(--ink-soft); }

/* ---------- final ---------- */
.final-card { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 30px; padding: clamp(24px, 5vw, 56px); border-radius: 40px; background: #FAF9F4; border: 2px solid var(--border); overflow: hidden; }
.final-video { width: 100%; max-width: 360px; justify-self: center; border-radius: 30px; }
.final-copy h2 { font-size: clamp(34px, 4.6vw, 58px); }
.final-copy > p { font-size: 20px; color: var(--ink-soft); margin: 14px 0 26px; }

/* ---------- footer ---------- */
.foot { max-width: 1240px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 64px) 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14.5px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--ink); }

/* ---------- coming soon ---------- */
.soon { border: 0; border-radius: 32px; padding: 26px 26px 30px; width: min(380px, calc(100% - 32px)); text-align: center; background: #FBF3DE; color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); }
.soon::backdrop { background: rgba(22, 18, 16, .55); backdrop-filter: blur(4px); }
.soon[open] { animation: pop-in .5s var(--spring); }
@keyframes pop-in { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.soon video { width: 190px; margin: -6px auto 0; border-radius: 24px; }
.soon h3 { font-size: 30px; margin-top: 4px; }
.soon p { color: var(--ink-soft); margin: 8px 0 22px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; min-height: 0; }
  .hero-visual { margin-top: 10px; }
  .chip-a { left: 2%; top: 70%; }
  .chip-b { right: 2%; }
  .problem, .ways-grid, .own-card, .lock-grid, .review-grid, .final-card { grid-template-columns: 1fr; }
  .ways-stage { order: -1; }
  .lock-stage { flex-direction: column; gap: 60px; }
  .road-stage { height: 260px; }
  .road-svg, .road-nodes { height: 220px; }
  .road-mascot { width: 84px; height: 84px; }
  .node { width: 36px; height: 36px; font-size: 12px; }
  .node.goal { width: 50px; height: 50px; font-size: 10px; }
  .node.goal b { font-size: 15px; }
  .plans { grid-template-columns: 1fr; }
  .final-video { max-width: 260px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .chip-a { right: 0; top: 4%; }
  .chip-b { display: none; }
  .store { flex: 1 1 160px; justify-content: center; }
  .store { padding: 9px 14px; }
  .store span { font-size: 17px; }
  .fq { font-size: 28px; }
  .flip { height: 360px; }
  .flip-mascot { width: 130px; }
  .fa { font-size: 24px; }
  .tl-dots span { font-size: 11.5px; }
  .nav-cta { padding: 10px 14px; font-size: 14px; }
  [data-state="compact"] .island { width: 172px; }
  .ab-status { padding: 0 12px; font-size: 11px; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 980px) {
  .nav { padding: 8px 8px 8px 14px; }
  .nav-toggle {
    display: grid; place-items: center; gap: 4px; align-content: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--card);
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--spring), opacity .2s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.open { background: rgba(251, 249, 244, .97); border-color: var(--border); border-radius: 26px; }
  .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(33, 29, 24, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }

  /* the three ways and the island views: compact buttons above the phone */
  .ways-grid { gap: 18px; }
  .ways-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .way { flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 14px; text-align: center; border-radius: 18px; }
  .way.is-active { transform: none; }
  .way b { font-size: 15px; margin: 0; }
  .way-text, .di-text { display: none; }
  .way-icon { width: 40px; height: 40px; border-radius: 12px; }
  .way-icon svg { width: 22px; height: 22px; }
  .ways-stage { order: 0; }
  .tab-caption { display: block; text-align: center; color: var(--ink-soft); font-size: 15.5px; margin: 0 auto; max-width: 460px; min-height: 48px; }
  .dark-cap { color: var(--night-soft); }
  .di-controls { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .di-controls button { padding: 12px 4px; text-align: center; border-radius: 16px; }
  .di-controls button.is-active { transform: none; }
  .di-controls b { font-size: 14.5px; margin: 0; }
  .lock-grid { gap: 18px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 16px; }
  .section-head { margin-bottom: 34px; }
  .section-head p:not(.eyebrow), .problem-copy p:not(.eyebrow) { font-size: 17px; }
  .hero { padding: 100px 16px 40px; gap: 26px; }
  .hero-copy .lead { font-size: 18px; margin: 18px 0 24px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .1em; }
  .float-chip { display: none; }
  .eq { font-size: 20px; padding: 12px 6px; }
  .ex-title { font-size: 21px; }
  .ls-time { font-size: 72px; }
  .ls-date { margin-top: 38px; }
  .di-controls { grid-template-columns: repeat(2, 1fr); }
  .own-card { border-radius: 28px; gap: 28px; }
  .own-copy p:not(.eyebrow) { font-size: 17px; }
  .step { font-size: 15.5px; padding: 13px 14px; }
  .felt-row { font-size: 15px; padding: 14px 15px; }
  .price { font-size: 46px; }
  .plan { padding: 24px; }
  .final-card { border-radius: 28px; text-align: center; }
  .final-copy .stores { justify-content: center; }
  summary { font-size: 17px; }
  .marquee-row span { font-size: 18px; }
  .marquee-row img { width: 32px; height: 32px; }
}
@media (max-width: 360px) {
  .nav-cta { display: none; }
  .ways-tabs { gap: 6px; }
  .way b { font-size: 13.5px; }
  .fq { font-size: 25px; }
  .flip-mascot { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
