/* Amigo landing — soft, playful "crew" style */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0f0f12;
  --body: #3f3f46;
  --muted: #71717a;
  --line: rgba(15, 15, 18, .08);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .9);
  --btn-dark: #121216;
  --btn-dark-ink: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15,15,18,.05), 0 4px 14px -6px rgba(15,15,18,.12);
  --shadow: 0 2px 6px rgba(15,15,18,.04), 0 24px 48px -24px rgba(15,15,18,.22);
  --mesh-a: #8fa8ff; --mesh-b: #c6a6ff; --mesh-c: #ffb3d6; --mesh-d: #9ef0d2;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0f;
  --surface: #16161c;
  --ink: #f4f4f5;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(28, 28, 36, .7);
  --glass-line: rgba(255, 255, 255, .08);
  --btn-dark: #f4f4f5;
  --btn-dark-ink: #0f0f12;
  --shadow-sm: 0 0 0 1px rgba(255,255,255,.05), 0 6px 16px -8px rgba(0,0,0,.6);
  --shadow: 0 0 0 1px rgba(255,255,255,.05), 0 24px 48px -24px rgba(0,0,0,.7);
  --mesh-a: #3b4fb8; --mesh-b: #5b3aa8; --mesh-c: #8a2f66; --mesh-d: #1d7a63;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 760px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--btn-dark); color: var(--btn-dark-ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.btn.dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.55); }
.btn.glass { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn.glass:hover { transform: translateY(-2px); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn.full { width: 100%; }
.btn span { font-weight: 500; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  height: calc(88px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--pad) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.logo { height: 76px; display: flex; }
.logo-img { height: 100%; width: auto; }
.logo-img.dark { display: none; }
[data-theme="dark"] .logo-img.light { display: none; }
[data-theme="dark"] .logo-img.dark { display: block; }
.nav-links { display: flex; gap: 34px; font-size: 14px; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-links .m-only { display: none; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--body); }
.nav-login:hover { color: var(--ink); }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.theme-btn:hover { color: var(--ink); background: var(--line); }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }
.burger { display: none; position: relative; width: 40px; height: 40px; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 23px; }
.nav.open .burger i:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .burger i:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(100px + env(safe-area-inset-top)); overflow: hidden; }
.mesh { position: absolute; inset: 60px -10% 0; pointer-events: none; z-index: 0; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.mesh .m1 { left: 2%; top: 14%; width: 46%; height: 62%; background: var(--mesh-a); }
.mesh .m2 { left: 24%; top: 4%; width: 34%; height: 46%; background: var(--mesh-b); animation-delay: -6s; }
.mesh .m3 { right: 4%; top: 8%; width: 40%; height: 56%; background: var(--mesh-c); animation-delay: -12s; }
.mesh .m4 { left: 32%; bottom: -6%; width: 46%; height: 48%; background: var(--mesh-d); animation-delay: -3s; }
@keyframes drift { to { transform: translate(4%, -5%) scale(1.08); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }

.hero-copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--pad); }
.lede { max-width: 520px; margin: 16px auto 0; font-size: clamp(16px, 1.4vw, 18px); color: var(--body); letter-spacing: -.01em; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Stage: the crew moves past as a carousel, each one showing its job */
.stage {
  position: relative; z-index: 2; margin: 0; height: 440px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; height: 100%; animation: carousel var(--dur, 30s) linear infinite; }
.stage:hover .track { animation-play-state: paused; }
@keyframes carousel { to { transform: translateX(calc(var(--loop, 50%) * -1)); } }
.mate { position: relative; flex: none; width: 215px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 30px; }
.mate img { height: var(--h); width: auto; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(15,15,18,.16)); animation: bob 4s ease-in-out infinite; user-select: none; -webkit-user-drag: none; }
.mate:nth-child(2n) img { animation-delay: -1.3s; } .mate:nth-child(3n) img { animation-delay: -2.6s; }
@keyframes bob { 50% { transform: var(--turn, translateZ(0)) translateY(-8px); } }
/* Gibo and Oli turned slightly, facing each other */
img[src*="oli.png"] { --turn: perspective(700px) rotateY(26deg); transform: var(--turn); }
.mate::after { content: ""; position: absolute; bottom: 18px; left: 25%; right: 25%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,15,18,.12), transparent); }
.cursor { position: absolute; z-index: 4; right: -4px; bottom: calc(var(--h) * .52); display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; animation: hover 4.8s cubic-bezier(.45,.05,.35,1) infinite; }
.cursor svg { width: 20px; height: 20px; fill: var(--c); stroke: #fff; stroke-width: 1.2; transform: rotate(-12deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.mate.live .cursor { animation: none; z-index: 6; transition: transform .65s cubic-bezier(.55, 0, .2, 1); }
.cursor::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; transform: scale(.3); }
.cursor.tap::before { animation: ripple .45s ease-out; }
.cursor.tap svg { animation: press .3s ease; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes press { 50% { transform: rotate(-12deg) scale(.78); } }
.cursor b { margin: -3px 0 0 14px; padding: 4px 11px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c) 80%, #000); }
@keyframes hover {
  0% { transform: translate(0, 0); }
  18% { transform: translate(-16px, -12px); }
  30% { transform: translate(-16px, -12px) scale(.9); }
  34% { transform: translate(-16px, -12px); }
  55% { transform: translate(8px, -20px); }
  75% { transform: translate(-6px, 8px); }
  100% { transform: translate(0, 0); }
}
.mate:nth-child(3n) .cursor { animation-duration: 5.6s; animation-delay: -2s; }
.mate:nth-child(3n+1) .cursor { animation-duration: 6.4s; animation-delay: -4s; }

/* Pop-ups: when an amigo reaches the middle, its job pops up above it */
.pop {
  gap: 6px !important;
  transform: scale(var(--fit, 1)); transform-origin: 50% 100%; transition: transform .3s var(--ease);
  position: absolute; left: 50%; bottom: calc(var(--h) + 60px); width: 196px; margin-left: -98px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.pop > * { opacity: 0; transform: translateY(14px) scale(.92); transition: opacity .35s var(--ease), transform .55s cubic-bezier(.34, 1.5, .64, 1); }
.mate.live .pop > * { opacity: 1; transform: none; }
.mate.live .pop > :nth-child(2) { transition-delay: .09s; }
.mate.live .pop > :nth-child(3) { transition-delay: .18s; }
.mate.live .pop > :nth-child(4) { transition-delay: .27s; }
.mate.live { z-index: 2; }

.glassy, .pill, .pcard, .status {
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 4px color-mix(in srgb, var(--surface) 35%, transparent), var(--shadow-sm);
}
.chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill svg { width: 14px; height: 14px; color: #4f6bff; }
.pill.ok { color: #15803d; }
.pcard { width: 100%; padding: 9px 11px 10px; border-radius: 14px; text-align: left; font-size: 11.5px; line-height: 1.35; }
.pcard small { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--c); margin-bottom: 6px; }
.pcard small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pcard .q { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field { padding: 7px 9px; border-radius: 9px; color: var(--body); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 2.3em; }
.paper .field { min-height: 3.2em; background: repeating-linear-gradient(transparent 0 17px, var(--line) 17px 18px), var(--surface); line-height: 18px; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--c); animation: blink .9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.score { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-style: normal; background: rgba(34,197,94,.14); color: #15803d; opacity: 0; transform: scale(.6); transition: .4s cubic-bezier(.34, 1.5, .64, 1); }
.mate.done .score { opacity: 1; transform: none; }

/* Name + job tag, always above each amigo; shows what it's doing while live */
.status {
  position: absolute; left: 50%; bottom: calc(var(--h) + 12px); transform: translateX(-50%); z-index: 3;
  display: grid; grid-template-columns: auto auto; column-gap: 9px; align-items: center; white-space: nowrap;
  padding: 7px 14px 8px 11px; border-radius: 14px; font-size: 12px; line-height: 1.25;
}
.status i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.status b { font-size: 13px; }
.status .role { color: var(--muted); padding: 0; font-size: inherit; }
.status .doing { display: none; color: #4f6bff; font-weight: 500; }
.mate.live .status .role { display: none; }
.mate.live .status .doing { display: block; }
.mate.live .status { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 4px color-mix(in srgb, var(--surface) 35%, transparent), var(--shadow-sm); }
.status em::after { content: "•••"; display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; margin-left: 3px; letter-spacing: 1px; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { to { width: 1.6em; } }

/* Multiple choice: the highlight hops, then B turns green */
.mc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mc i { padding: 6px 8px; border-radius: 9px; font-style: normal; font-weight: 800; font-size: 11.5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: background .25s, color .25s, box-shadow .25s, transform .25s; }
.mc i span { font-weight: 500; margin-left: 4px; color: var(--body); }
.mc i.on { color: var(--ink); box-shadow: inset 0 0 0 2px var(--c); transform: translateY(-2px); }
.mc i.ok { color: #fff; background: #22c55e; box-shadow: none; }
.mc i.ok span { color: #fff; }

/* Matching: lines draw between the pairs while the amigo is live */
.pairs { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.pairs .col { display: grid; gap: 8px; }
.pairs .col span { height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 7px; font-size: 11px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; transition: box-shadow .3s; }
.pairs svg { display: block; width: 64px; height: 94px; overflow: visible; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; }
.pairs path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pairs path.on { animation: draw .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pairs .col span.on { box-shadow: inset 0 0 0 1.5px var(--c); }

/* True or false: a questionnaire, answers get picked one row at a time */
.tfrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.tfrow:first-of-type { border-top: 0; padding-top: 2px; }
.tfrow p { flex: 1; font-size: 11.5px; color: var(--ink); font-weight: 500; line-height: 1.25; white-space: nowrap; }
.tfrow span { display: flex; gap: 4px; }
.tfrow b { width: 22px; height: 20px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 800; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tfrow b.pick.on { animation: pick .35s cubic-bezier(.34, 1.5, .64, 1) forwards; }
@keyframes pick { 50% { transform: scale(1.18); } to { background: var(--c); color: #fff; box-shadow: none; } }

/* ---------- 3 steps strip ---------- */
.steps-strip { position: relative; z-index: 2; padding: 30px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 10px 28px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step .ico { grid-row: span 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.step small { font-size: 11px; color: var(--muted); font-weight: 600; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.strip-foot { margin-top: 34px; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding: 130px 0 0; }
.sec-head { margin-bottom: 52px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sec-head .side { max-width: 360px; color: var(--muted); font-size: 15px; }
.sec-head.center { text-align: center; }

/* Crew cards */
.crew { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mate-card { border-radius: 22px; padding: 12px 12px 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.mate-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.mate-card .art { height: 190px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 8%, var(--surface))); }
.mate-card .art img { height: 140px; width: auto; filter: drop-shadow(0 12px 12px rgba(15,15,18,.15)); transition: transform .5s var(--ease); }
.mate-card:hover .art img { transform: var(--turn, translateZ(0)) translateY(-6px) rotate(-3deg); }
.who { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 16px; letter-spacing: -.02em; }
.who i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.role { padding: 0 6px 0 23px; font-size: 13px; color: var(--muted); }
.chip { display: inline-block; margin: 12px 6px 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink); }

/* Feature blocks */
.feat { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feat.rev .feat-copy { order: 2; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--mesh-b) 22%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #4f6bff); }
.lede-sm { margin-top: 18px; font-size: 18px; color: var(--body); max-width: 440px; }
.ticks { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--body); }
.ticks .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); color: var(--ink); }
.ticks .ic svg { width: 17px; height: 17px; }

.feat-vis { position: relative; height: 460px; border-radius: 30px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vis-mesh { position: absolute; inset: 0; background:
  radial-gradient(40% 50% at 20% 25%, color-mix(in srgb, var(--mesh-a) 70%, transparent), transparent 70%),
  radial-gradient(40% 50% at 85% 30%, color-mix(in srgb, var(--mesh-c) 60%, transparent), transparent 70%),
  radial-gradient(50% 50% at 55% 95%, color-mix(in srgb, var(--mesh-d) 70%, transparent), transparent 70%); opacity: .75; }
.vis-mesh.alt { background:
  radial-gradient(45% 50% at 80% 20%, color-mix(in srgb, var(--mesh-d) 70%, transparent), transparent 70%),
  radial-gradient(40% 50% at 15% 40%, color-mix(in srgb, var(--mesh-b) 60%, transparent), transparent 70%),
  radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--mesh-a) 60%, transparent), transparent 70%); }
.card { position: absolute; padding: 16px 18px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow); }
.card small { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.card h4 { font-size: 20px; letter-spacing: -.03em; }
.card p { font-size: 13px; color: var(--body); margin-top: 6px; line-height: 1.45; }
.card ul { list-style: none; margin-top: 10px; display: grid; gap: 6px; font-size: 12.5px; }
.card li::before { content: "•"; color: #4f6bff; margin-right: 8px; font-weight: 800; }
.g-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 13px; }
.g-h span { padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; background: rgba(34,197,94,.14); color: #15803d; }
.card.sum { left: 7%; top: 9%; width: 58%; }
.card.grade { right: 6%; bottom: 10%; width: 52%; }
.card.game { left: 8%; top: 10%; width: 66%; }
.tiles { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.tiles i { width: 28px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-weight: 800; font-size: 13px; background: #fde68a; color: #78350f; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.card.board { right: 6%; bottom: 10%; width: 46%; }
.card.gwa { right: 6%; bottom: 10%; width: 50%; }
.card.gwa p, .card.board p { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.card.board small { margin: 0; letter-spacing: 0; font-size: 11px; }
.card.chat { left: 7%; top: 9%; width: 62%; }
.g-h .live { background: rgba(239,68,68,.12); color: #dc2626; }
.msg { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.msg i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--c); }
.msg span { padding: 6px 10px; border-radius: 4px 12px 12px 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.msg span b { display: block; font-size: 11px; color: var(--muted); }
.msg.me { justify-content: flex-end; }
.msg.me span { border-radius: 12px 4px 12px 12px; background: #4f6bff; color: #fff; box-shadow: none; }
.card.board p { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.card.board p.me { padding: 4px 8px; margin-left: -8px; margin-right: -8px; border-radius: 8px; background: rgba(79,107,255,.12); font-weight: 700; }
.vis-mate { position: absolute; left: 8%; bottom: 6%; height: 150px; width: auto; filter: drop-shadow(0 16px 16px rgba(15,15,18,.18)); animation: bob 4.5s ease-in-out infinite; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1040px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.plan.pro { box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow); }
.p-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--btn-dark); color: var(--btn-dark-ink); }
.tag.soft { background: color-mix(in srgb, var(--mesh-b) 30%, var(--surface)); color: var(--ink); }
.p-price { margin-top: 16px; font-size: 48px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.p-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.p-sub { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 42px; }
.plan ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 14px; color: var(--body); }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, #22c55e 16%, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.pay { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 22px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin-top: -6px; font-size: 14.5px; color: var(--body); }

/* Final */
.final { position: relative; margin-top: 140px; padding: 120px var(--pad) 0; text-align: center; overflow: hidden; }
.final-mesh { position: absolute; inset: 30% -10% -20%; background:
  radial-gradient(40% 50% at 20% 60%, color-mix(in srgb, var(--mesh-a) 70%, transparent), transparent 70%),
  radial-gradient(45% 55% at 80% 55%, color-mix(in srgb, var(--mesh-b) 80%, transparent), transparent 70%),
  radial-gradient(40% 40% at 50% 90%, color-mix(in srgb, var(--mesh-c) 50%, transparent), transparent 70%);
  filter: blur(30px); opacity: .7; pointer-events: none; }
.final h2, .final .cta, .wordmark, .foot { position: relative; }
.wordmark {
  margin-top: 40px; font-size: clamp(110px, 26vw, 360px); font-weight: 800; letter-spacing: -.07em; line-height: .9;
  color: rgba(255,255,255,.6); text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(120,100,220,.08), 0 18px 50px rgba(110, 90, 220, .28); user-select: none;
}
[data-theme="dark"] .wordmark { color: rgba(255,255,255,.07); text-shadow: 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.4); }
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mesh i, .mate img, .cursor, .vis-mate, .track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .crew { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 40px; }
  .feat.rev .feat-copy { order: 0; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: var(--pad); right: var(--pad);
    flex-direction: column; gap: 0; padding: 8px 20px; border-radius: 20px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { background: var(--bg); }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 0; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .m-only { display: block; }
  .nav-login { display: none; }
  .burger { display: block; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .sec-head.split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { border-left: 0; padding: 0; }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(100px + env(safe-area-inset-top)); }
  .stage { height: 400px; margin-top: 4px; }
  .cta { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .cta .btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .lede { font-size: 15px; margin-top: 12px; }
  .fine { margin-top: 10px; }
  .mate { width: 165px; padding-bottom: 30px; }
  .mate img { height: calc(var(--h) * .72); }
  .pop { bottom: calc(var(--h) * .72 + 54px); }
  .status { bottom: calc(var(--h) * .72 + 8px); font-size: 11px; padding: 6px 11px 7px 9px; }
  .status b { font-size: 12px; }
  .cursor { right: -6px; bottom: calc(var(--h) * .72 * .5); }
  .crew { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mate-card .art { height: 150px; }
  .mate-card .art img { height: 110px; }
  .sec { padding-top: 96px; }
  .feat-vis { height: 400px; }
  .card.sum, .card.game { width: 78%; left: 6%; }
  .card.grade, .card.board, .card.gwa { width: 66%; }
  .card.chat { width: 80%; left: 6%; }
  .vis-mate { height: 110px; }
  .final { margin-top: 100px; padding-top: 80px; }
  .btn { height: 46px; padding: 0 20px; }
}
@media (max-width: 420px) {
  .crew .mate-card:last-child { grid-column: 1 / -1; }
}

/* Study kit: the AI tutor stands out */
.ticks li.tutor { align-items: flex-start; margin: 4px -14px; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, #8b5cf6 12%, var(--surface)), color-mix(in srgb, #3b82f6 10%, var(--surface)));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #8b5cf6 35%, transparent), var(--shadow-sm); }
.ticks li.tutor .ic { color: #fff; background: linear-gradient(135deg, #8b5cf6, #3b82f6); box-shadow: 0 6px 16px -6px rgba(124, 92, 246, .6); }
.ticks li.tutor > span:not(.ic) { flex: 1; font-size: 14px; line-height: 1.45; }
.ticks li.tutor b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.plus-tag { flex: none; font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
.card.tutor-card { left: 7%; top: 9%; width: 70%; }
.g-h .ai { background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important; color: #fff !important; }
.tutor-card .ask { margin-left: auto; width: fit-content; max-width: 85%; padding: 7px 11px; border-radius: 12px 4px 12px 12px; background: #4f6bff; color: #fff; font-size: 12.5px; margin-top: 10px; }
.tutor-card .reply { padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; margin-top: 8px; color: var(--body); }
.tutor-card .src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tutor-card .src span { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, #8b5cf6 12%, var(--surface)); color: #6d28d9; }
[data-theme="dark"] .tutor-card .src span { color: #c4b5fd; }
@media (max-width: 760px) { .card.tutor-card { width: 84%; left: 6%; } .ticks li.tutor { margin: 4px 0; } }
@media (max-width: 760px) {
  .feat-vis:has(.tutor-card) { height: 470px; }
  .feat-vis:has(.tutor-card) .card.gwa { width: 58%; right: 5%; bottom: 6%; }
  .feat-vis:has(.tutor-card) .vis-mate { left: 3%; bottom: 4%; height: 96px; }
}

@media (max-width: 760px) { .logo { height: 60px; } }

/* Hero crew interactions: lean, hop, little speech bubbles and things tossed between neighbours */
.mate img { transform-origin: 50% 92%; transition: rotate .45s cubic-bezier(.34, 1.4, .64, 1), translate .2s cubic-bezier(.3, 0, .2, 1); }
.mate.lean-r img { rotate: 7deg; }
.mate.lean-l img { rotate: -7deg; }
.mate.hop img { translate: 0 -18px; transition: rotate .45s cubic-bezier(.34, 1.4, .64, 1), translate .16s cubic-bezier(.2, .8, .3, 1); }
.say {
  position: absolute; z-index: 4; display: grid; place-items: center; width: 36px; height: 32px; border-radius: 14px;
  background: var(--surface, #fff); box-shadow: 0 6px 16px -6px rgba(15,15,18,.28), inset 0 0 0 1px var(--line, rgba(0,0,0,.06));
  font-size: 17px; line-height: 1; pointer-events: none; animation: say 1.7s cubic-bezier(.34, 1.5, .64, 1) forwards;
}
.say::after { content: ""; position: absolute; bottom: -4px; width: 9px; height: 9px; background: inherit; border-radius: 2px; transform: rotate(45deg); box-shadow: 1px 1px 0 0 var(--line, rgba(0,0,0,.06)); }
.say.r { left: calc(50% + 22px); } .say.r::after { left: 7px; }
.say.l { right: calc(50% + 22px); } .say.l::after { right: 7px; }
@keyframes say { 0% { opacity: 0; transform: translateY(8px) scale(.5); } 14%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px) scale(.9); } }
.toss { position: absolute; z-index: 5; font-size: 20px; line-height: 1; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(15,15,18,.18)); }
@media (prefers-reduced-motion: reduce) { .say, .toss { display: none; } .mate img { transition: none; } }
.track { position: relative; }

/* Log in / sign up pop-up: the dashboard's own sign-in card, shown over the landing page */
.auth-pop { position: fixed; inset: 0; z-index: 200; background: rgba(20, 20, 28, .38); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.auth-pop.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.auth-pop iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: light; transform: translateY(14px) scale(.98); transition: transform .45s cubic-bezier(.34, 1.3, .64, 1); }
.auth-pop.open iframe { transform: none; }
.auth-pop .x { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #1d1d1f; box-shadow: 0 4px 14px -4px rgba(0,0,0,.25); font-size: 22px; line-height: 1; }
.auth-pop .x:hover { background: #fff; }
.auth-pop .spin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .8s linear infinite; }
.auth-pop.ready .spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
html.pop-lock { overflow: hidden; }
/* Name tag: dot on the left, name with the role/status lined up right under it */
.status i { grid-column: 1; grid-row: 1 / span 2; }
.status b, .status .role, .status .doing { grid-column: 2; justify-self: start; text-align: left; }
/* Crew cards: role and chip line up under the name, past the colour dot */
.mate-card .role { padding-left: 23px; padding-right: 6px; }
.mate-card .chip { margin-left: 23px; }

/* ---------- Amigo at work: the looping demo below "How it works" ---------- */
.demo-sec { padding-top: 120px; }
.demo {
  --blue: #4f6bff; position: relative; aspect-ratio: 16 / 10.4; border-radius: 30px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 0% 0%, color-mix(in srgb, var(--mesh-a) 30%, transparent), transparent 70%),
    radial-gradient(50% 45% at 100% 0%, color-mix(in srgb, var(--mesh-c) 26%, transparent), transparent 70%),
    linear-gradient(#f3f4f8, #eceef4 60%, #f6f7fa);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px var(--line), 0 40px 80px -40px rgba(15,15,18,.35);
}
.demo svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* top bar: crew, status island, status pill */
.dm-top { position: absolute; z-index: 6; inset: 0 0 auto; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; }
.dm-crew { display: flex; gap: 6px; }
.dm-crew span { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; overflow: visible; transition: transform .4s cubic-bezier(.34,1.5,.64,1); }
.dm-crew span::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; }
.dm-crew img { width: 30px; height: 30px; object-fit: contain; margin-top: 4px; }
.dm-crew span.on { transform: translateY(-4px) scale(1.12); }
.dm-island { justify-self: center; display: flex; align-items: center; gap: 9px; min-width: 230px; max-width: 360px; height: 38px; padding: 0 18px; border-radius: 999px; background: #0f0f12; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); transition: min-width .5s cubic-bezier(.34,1.3,.64,1); }
.dm-island i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 60%, transparent); animation: dmPulse 1.6s infinite; }
.dm-island span { overflow: hidden; text-overflow: ellipsis; }
.dm-island span.swap { animation: dmSwap .45s cubic-bezier(.22,1,.36,1); }
@keyframes dmSwap { from { opacity: 0; transform: translateY(8px); } }
@keyframes dmPulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.dm-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.dm-status { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; }
.dm-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.demo[data-scene="4"] .dm-status i { background: #22c55e; }
.dm-play { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.dm-play svg { width: 15px; height: 15px; }
.dm-play .pl { display: none; fill: currentColor; } .demo.paused .dm-play .pl { display: block; } .demo.paused .dm-play .pz { display: none; }

/* body + app window */
.dm-body { position: absolute; inset: 64px 0 0; z-index: 3; }
.dm-app { position: absolute; left: 11%; top: 2%; width: 44%; height: 56%; border-radius: 22px; padding: 10px; background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 0 0 1px rgba(79,107,255,.12), 0 30px 60px -30px rgba(15,15,18,.35), 0 0 40px -10px color-mix(in srgb, var(--blue) 30%, transparent); display: flex; flex-direction: column; gap: 8px; }
.dm-bar { display: flex; align-items: center; justify-content: center; position: relative; height: 30px; }
.dm-url { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--body); box-shadow: var(--shadow-sm); }
.dm-url svg { width: 12px; height: 12px; }
.dm-badge { position: absolute; right: 4px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--blue); background: #e8ecff; }
.dm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo[data-scene="4"] .dm-badge { color: #15803d; background: #dcfce7; }
.dm-screen { position: relative; flex: 1; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15,15,18,.05); overflow: hidden; }
.dm-s { position: absolute; inset: 0; padding: 18px 20px; display: grid; align-content: center; gap: 10px; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s, transform .6s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.demo[data-scene="0"] .s-up, .demo[data-scene="1"] .s-mix, .demo[data-scene="2"] .s-gen, .demo[data-scene="3"] .s-quiz, .demo[data-scene="4"] .s-res { opacity: 1; transform: none; }
.dm-label { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* 1 upload */
.dm-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; border: 1.5px dashed #d4d8e6; border-radius: 16px; text-align: center; transition: background .3s, border-color .3s, transform .3s; }
.dm-drop b { font-size: 14px; color: var(--ink); } .dm-drop small { font-size: 11.5px; color: var(--muted); }
.dm-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: #e8ecff; margin-bottom: 4px; }
.dm-ico svg { width: 20px; height: 20px; }
.s-up.over .dm-drop { border-color: var(--blue); background: #f2f4ff; transform: scale(1.02); }
.dm-file { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f6f7fb; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.34,1.4,.64,1); overflow: hidden; }
.s-up.got .dm-file { opacity: 1; transform: none; }
.ext { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #fff; background: #ec3d8a; }
.dm-file .nm { display: grid; flex: 1; min-width: 0; } .dm-file b { font-size: 12.5px; color: var(--ink); } .dm-file small { font-size: 11px; color: var(--muted); }
.dm-file .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #22c55e; transform: scale(0); transition: transform .4s cubic-bezier(.34,1.6,.64,1); }
.dm-file .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.s-up.done .dm-file .tick { transform: none; }
.dm-file .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.dm-file .prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.s-up.got .dm-file .prog i { width: 100%; }
.s-up.done .dm-file .prog { opacity: 0; transition: opacity .3s; }

/* the dragged file + cursor */
.dm-fly { position: absolute; z-index: 8; left: 78%; top: 70%; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -16px rgba(15,15,18,.4); font-size: 12.5px; color: var(--ink);
  transform: rotate(6deg); opacity: 0; transition: left .9s cubic-bezier(.45,0,.2,1), top .9s cubic-bezier(.45,0,.2,1), opacity .3s, transform .5s; pointer-events: none; }
.dm-fly.show { opacity: 1; } .dm-fly.drop { transform: rotate(0) scale(.6); opacity: 0; transition: transform .35s, opacity .35s; }
.dm-cursor { position: absolute; z-index: 9; left: 92%; top: 92%; width: 26px; height: 26px; fill: #0f0f12 !important; stroke: #fff !important; stroke-width: 1.5 !important; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); opacity: 0;
  transition: left .8s cubic-bezier(.45,0,.2,1), top .8s cubic-bezier(.45,0,.2,1), opacity .3s, transform .15s; pointer-events: none; }
.dm-cursor.show { opacity: 1; } .dm-cursor.click { transform: scale(.82); }

/* 2 pick your mix */
.dm-counts { display: grid; gap: 6px; }
.dm-count { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border-radius: 12px; background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); font-size: 12.5px; color: var(--ink); }
.dm-count img { width: 24px; height: 24px; object-fit: contain; }
.dm-count span { flex: 1; font-weight: 600; }
.dm-count b { min-width: 26px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.dm-count b.bump { animation: dmBump .35s cubic-bezier(.34,1.6,.64,1); color: var(--c); }
@keyframes dmBump { 50% { transform: scale(1.3); } }
.dm-btn { justify-self: stretch; height: 36px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: var(--blue); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--blue) 80%, transparent); transition: transform .15s, filter .2s; }
.dm-btn.press { transform: scale(.96); filter: brightness(.92); }

/* 3 the crew writes */
.dm-load { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #e8ecff; border-top-color: var(--blue); animation: dmSpin .8s linear infinite; }
@keyframes dmSpin { to { transform: rotate(360deg); } }
.dm-skel { display: grid; gap: 8px; transition: opacity .4s; }
.dm-skel i { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #eef0f5 0%, #f7f8fb 50%, #eef0f5 100%); background-size: 200% 100%; animation: dmShim 1.2s linear infinite; }
@keyframes dmShim { to { background-position: -200% 0; } }
.dm-sum { display: none; gap: 6px; }
.s-gen.ready .dm-load, .s-gen.ready .dm-skel { display: none; }
.s-gen.ready .dm-sum { display: grid; animation: dmSwap .5s cubic-bezier(.22,1,.36,1); }
.dm-sum > b { font-size: 17px; letter-spacing: -.03em; color: var(--ink); }
.dm-sum p { font-size: 12.5px; color: var(--body); line-height: 1.45; }
.dm-sum ul { list-style: none; display: grid; gap: 4px; margin-top: 2px; }
.dm-sum li { font-size: 12px; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.dm-sum li::before { content: "•"; color: var(--blue); font-weight: 800; margin-right: 7px; }
.dm-sum li.in { opacity: 1; transform: none; }

/* 4 practice */
.dm-qhead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); }
.dm-qhead img { width: 26px; height: 26px; object-fit: contain; }
.dm-qhead span { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.dm-q { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }
.dm-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dm-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #f6f7fb; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink); transition: background .3s, box-shadow .3s, transform .2s; }
.dm-opt i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 800; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.dm-opt.hover { box-shadow: inset 0 0 0 1.5px #9b6cf0; }
.dm-opt.right { background: #dcfce7; box-shadow: inset 0 0 0 1.5px #22c55e; transform: scale(1.03); }
.dm-opt.right i { background: #22c55e; color: #fff; box-shadow: none; }
.dm-fb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #15803d; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.dm-fb svg { width: 16px; height: 16px; stroke-width: 2.6; }
.s-quiz.ok .dm-fb { opacity: 1; transform: none; }

/* 5 results */
.s-res { grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.dm-ringwrap { position: relative; width: 120px; height: 120px; }
.dm-ringwrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dm-ringwrap circle { fill: none; stroke-width: 11; }
.dm-ringwrap .trk { stroke: #eef0f5; }
.dm-ringwrap .val { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s cubic-bezier(.22,1,.36,1); }
.dm-ringwrap > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dm-ringwrap b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.dm-ringwrap small { font-size: 10.5px; color: var(--muted); }
.dm-rows { display: grid; gap: 7px; }
.dm-rows > div { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--body); }
.dm-rows > div > i { height: 7px; border-radius: 99px; background: #eef0f5; overflow: hidden; }
.dm-rows > div > i > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.s-res.fill .dm-rows > div > i > i { width: var(--w); }
.dm-rows b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* notification card */
.dm-toast { position: absolute; right: 7%; top: 18%; width: 31%; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(15,15,18,.04), 0 30px 60px -24px rgba(15,15,18,.35);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .4s, transform .55s cubic-bezier(.34,1.4,.64,1); }
.dm-toast.show { opacity: 1; transform: none; }
.dm-th { display: flex; align-items: center; gap: 11px; }
.dm-th .ok { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #22c55e; }
.dm-th .ok svg { width: 18px; height: 18px; stroke-width: 3; }
.dm-th > span:last-child { display: grid; }
.dm-th b { font-size: 16px; letter-spacing: -.025em; color: var(--ink); } .dm-th small { font-size: 12.5px; color: var(--muted); }
.dm-toast ul { list-style: none; display: grid; gap: 5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dm-toast ul:empty { display: none; }
.dm-toast li { font-size: 12.5px; color: var(--body); }
.dm-toast li::before { content: "•"; color: #c4c7d2; margin-right: 8px; }
.dm-tbtns { display: none; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.dm-toast.full .dm-tbtns { display: flex; }
.dm-tbtns span { height: 34px; padding: 0 16px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 600; transition: transform .15s, filter .2s; }
.dm-tbtns .ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dm-tbtns .go { color: #fff; background: var(--blue); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--blue) 80%, transparent); }
.dm-tbtns .go.press { transform: scale(.94); filter: brightness(.92); }

/* the crew on the glowing stage */
.dm-stage { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 40%; }
.dm-floor { position: absolute; left: -6%; right: -6%; top: 26%; bottom: -40%; border-radius: 50% 50% 0 0 / 34% 34% 0 0; background: linear-gradient(#fbfbfd, #f1f2f6);
  box-shadow: 0 -2px 0 0 #8ff0ff, 0 -6px 18px 0 rgba(78,220,255,.75), 0 -24px 60px -10px rgba(120,160,255,.55); }
.dm-mate { position: absolute; bottom: 9%; left: var(--x); height: 64%; margin: 0; transform: translateX(-50%); }
.dm-mate img { height: 100%; width: auto; filter: drop-shadow(0 18px 14px rgba(15,15,18,.18)); transform-origin: 50% 100%; animation: dmIdle 4s ease-in-out infinite; transition: translate .25s cubic-bezier(.2,.8,.3,1), scale .3s; }
.dm-mate:nth-child(3) img { animation-delay: -.8s; } .dm-mate:nth-child(4) img { animation-delay: -1.6s; } .dm-mate:nth-child(5) img { animation-delay: -2.4s; } .dm-mate:nth-child(6) img { animation-delay: -3.2s; }
@keyframes dmIdle { 50% { transform: translateY(-4px) rotate(-1deg); } }
.dm-mate::after { content: ""; position: absolute; left: 50%; bottom: -6%; width: 70%; height: 12%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(15,15,18,.18), transparent 70%); z-index: -1; }
.dm-mate.on img { scale: 1.05; filter: drop-shadow(0 18px 14px rgba(15,15,18,.18)) drop-shadow(0 0 18px color-mix(in srgb, var(--blue) 45%, transparent)); }
.dm-mate.hop img { translate: 0 -22px; }
/* even out body sizes: Oli's bunny ears add height */
.dm-mate[data-who="oli"] img { height: 104%; }
.dm-say { position: absolute; z-index: 3; left: 50%; bottom: 100%; margin-bottom: 4px; transform: translateX(-50%) scale(.5); opacity: 0; white-space: nowrap; padding: 6px 12px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(15,15,18,.35), inset 0 0 0 1px var(--line); transition: opacity .25s, transform .4s cubic-bezier(.34,1.5,.64,1); pointer-events: none; }
.dm-say::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: -4px; width: 10px; height: 10px; background: inherit; border-radius: 2px; transform: rotate(45deg); box-shadow: 1px 1px 0 0 var(--line); }
.dm-say.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* chapters under the video */
.dm-chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dm-chapters button { display: grid; gap: 4px; text-align: left; padding: 0 2px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.dm-chapters button small { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.dm-chapters button > i { display: block; height: 4px; margin-bottom: 8px; border-radius: 99px; background: rgba(15,15,18,.08); overflow: hidden; }
.dm-chapters button > i > i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; }
.dm-chapters button.done > i > i { width: 100%; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.dm-chapters button[aria-selected=true] { color: var(--ink); }
.dm-chapters button:hover { color: var(--ink); }

/* tablets and phones: stack the window, the card and the crew */
@media (max-width: 900px) {
  .demo { aspect-ratio: auto; height: 640px; }
  .dm-app { left: 5%; width: 90%; top: 2%; height: 48%; }
  .dm-toast { left: 8%; right: 8%; width: auto; top: auto; bottom: 30%; z-index: 4; }
  .dm-stage { height: 30%; }
  .dm-island { min-width: 0; max-width: 46vw; }
  .dm-chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .dm-chapters button { font-size: 0; } .dm-chapters button small { font-size: 11px; }
}
@media (max-width: 560px) {
  .demo { height: 660px; border-radius: 24px; }
  .dm-app { height: 60%; padding: 8px; }
  .dm-badge { display: none; }
  .s-mix .dm-label { display: none; }
  .dm-counts { gap: 4px; } .dm-count { padding: 3px 8px 3px 5px; font-size: 12px; } .dm-count img { width: 20px; height: 20px; }
  .dm-btn { height: 32px; }
  .dm-stage { height: 24%; }
  .dm-mate { height: 58% !important; bottom: 12%; }
  .dm-sum p { display: none; }
  .dm-top { padding: 0 12px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .dm-crew span:nth-child(n+3) { display: none; }
  .dm-crew span { width: 28px; height: 28px; } .dm-crew img { width: 24px; height: 24px; }
  .dm-status { display: none; }
  .dm-island { justify-self: stretch; max-width: none; font-size: 12px; padding: 0 12px; }
  .dm-s { padding: 14px; }
  .dm-opts { grid-template-columns: 1fr; gap: 5px; } .dm-opt { padding: 6px 9px; }
  .s-res { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .dm-ringwrap { width: 96px; height: 96px; } .dm-rows { width: 100%; }
  .dm-rows > div { grid-template-columns: 84px 1fr 30px; }
  .dm-toast { left: 5%; right: 5%; padding: 13px; bottom: 26%; }
  .dm-mate { height: 64%; }
  .dm-say { font-size: 11px; padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; transition: none !important; }
}

/* ---------- Get the app ---------- */
.app-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 64px 64px 0; border-radius: 34px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.app-mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(45% 60% at 100% 10%, color-mix(in srgb, var(--mesh-b) 45%, transparent), transparent 70%),
  radial-gradient(40% 55% at 80% 100%, color-mix(in srgb, var(--mesh-a) 45%, transparent), transparent 70%),
  radial-gradient(35% 45% at 0% 100%, color-mix(in srgb, var(--mesh-d) 35%, transparent), transparent 70%); }
.app-copy { padding-bottom: 64px; }
.app-copy h2 { margin: 2px 0 16px; }
.app-sub { max-width: 420px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.avail-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.avail { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px; cursor: default; user-select: none;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.avail svg { width: 26px; height: 26px; flex: none; }
.avail span { display: grid; line-height: 1.05; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.avail small { white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.app-perks { list-style: none; display: grid; gap: 10px; margin: 28px 0 0; padding: 0; }
.app-perks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--body); }
.app-perks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #4f6bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* the phone */
.app-visual { position: relative; align-self: end; height: 470px; }
.phone { position: absolute; left: 50%; bottom: -40px; width: 250px; height: 510px; transform: translateX(-50%) rotate(-4deg); border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a2a33, #0f0f12 60%); box-shadow: 0 40px 70px -30px rgba(15,15,18,.55), inset 0 0 0 1.5px rgba(255,255,255,.12);
  animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat { 50% { transform: translateX(-50%) rotate(-3deg) translateY(-8px); } }
.phone-notch { position: absolute; z-index: 2; top: 20px; left: 50%; width: 78px; height: 22px; border-radius: 99px; background: #0f0f12; transform: translateX(-50%); }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; padding: 52px 14px 14px; display: grid; align-content: start; gap: 10px;
  background: radial-gradient(80% 50% at 0% 0%, #e8ecff, transparent 70%), radial-gradient(70% 50% at 100% 30%, #f3e8ff, transparent 70%), #f6f7fb; color: #0f0f12; }
.ps-top img { height: 30px; width: auto; }
.ps-card { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,15,18,.05), 0 10px 20px -14px rgba(15,15,18,.3); font-size: 11.5px; }
.ps-card b { font-size: 13px; letter-spacing: -.02em; line-height: 1.25; }
.ps-card span, .ps-card small { color: #71717a; }
.ps-card i { font-style: normal; padding: 7px 10px; border-radius: 10px; background: #f4f4f6; font-weight: 600; }
.ps-card i.ok { background: #e7f8ee; color: #15803d; box-shadow: inset 0 0 0 1.5px #4ade80; }
.ps-streak { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 16px; color: #fff; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #4f6bff, #9b6cf0); box-shadow: 0 12px 22px -12px rgba(79,107,255,.8); }
.ps-streak em { font-style: normal; font-size: 18px; letter-spacing: -.03em; }
.app-mate { position: absolute; bottom: 0; width: auto; filter: drop-shadow(0 14px 14px rgba(15,15,18,.2)); }
.app-mate.m1 { left: 0; height: 200px; animation: mateBob 4s ease-in-out infinite; }
.app-mate.m2 { right: -4px; height: 180px; animation: mateBob 4s ease-in-out -2s infinite; }
@keyframes mateBob { 50% { transform: translateY(-6px); } }

@media (max-width: 900px) {
  .app-card { grid-template-columns: 1fr; padding: 44px 28px 0; gap: 10px; }
  .app-copy { padding-bottom: 0; }
  .app-visual { height: 420px; margin-top: 16px; }
  .phone { width: 220px; height: 450px; }
}
@media (max-width: 560px) {
  .app-card { padding: 36px 20px 0; border-radius: 28px; }
  .avail { flex: 1 1 140px; justify-content: center; height: 54px; padding: 0 14px; }
  .avail span { font-size: 17px; }
  .app-visual { height: 390px; }
  .phone { width: 200px; height: 410px; }
  .app-mate.m1 { height: 150px; } .app-mate.m2 { height: 136px; }
}
@media (prefers-reduced-motion: reduce) { .phone, .app-mate { animation: none !important; } }
