/* Quillnest public home page: dark aurora with liquid glass. Self-contained (no app stylesheet or scripts). */
:root {
  --bg: #F6F3FF; --ink: #1C1830; --muted: #5B5775; --faint: #83809B;
  --purple: #8d84ff; --violet: #6B5FE0; --teal: #0F8F68; --coral: #E05A35; --amber: #C9951F; --blue: #2F7BE8;
  --line: rgba(28, 20, 70, .12);
  --display: "Baloo 2", "Nunito", system-ui, sans-serif; --body: "Nunito", -apple-system, "Segoe UI", system-ui, sans-serif;
  --r: 26px; --blur: 16px;
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* no blue tap or focus box on buttons and options; keyboard users still get a clear ring */
button, a, summary { outline: none; touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #7f77dd; outline-offset: 3px; }
.tq-opt, .aud-btn, .seg2-btn, .ph-opt, .btn, .tcard, .f, .nav a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-text-size-adjust: 100%; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; --body: var(--purple); --skin: #f1c7a2; --hair: #2b2540; --cap: #1d1a33; --collar: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), rgba(255,255,255,.06)); border: 1px solid var(--line); }
.av.sm { width: 30px; height: 30px; } .av.xs { width: 26px; height: 26px; } .av.lg { width: 74px; height: 74px; } .av.xl { width: 104px; height: 104px; }
.a-purple { --body: #8d84ff; --skin: #f1c7a2; --hair: #2b2540; }
.a-teal { --body: #2bbf90; --skin: #c68a5e; --hair: #171726; }
.a-coral { --body: #ff7a52; --skin: #f6d3b3; --hair: #5a3825; }
.a-amber { --body: #f0a020; --skin: #a96f45; --hair: #15121f; }
.a-blue { --body: #4a93f5; --skin: #e7b88f; --hair: #3a2418; }

/* ---------- background ---------- */
/* One smooth lavender wash. The glows stay inside a single purple family and
   fade right out, so they read as soft light, not coloured blotches. */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(176deg, #EDE7FF 0%, #F4F0FF 46%, #FBFAFF 100%); }
.orb { position: absolute; border-radius: 50%; will-change: transform; contain: strict; filter: blur(60px); }
.o1 { width: 72vmax; height: 72vmax; left: -24vmax; top: -30vmax; background: radial-gradient(circle, rgba(124,108,235,.20) 0%, rgba(124,108,235,0) 72%); animation: drift1 36s ease-in-out infinite alternate; }
.o2 { width: 60vmax; height: 60vmax; right: -22vmax; top: 2vmax; background: radial-gradient(circle, rgba(120,140,255,.15) 0%, rgba(120,140,255,0) 72%); animation: drift2 44s ease-in-out infinite alternate; }
.o3 { width: 58vmax; height: 58vmax; left: 10vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(150,122,246,.14) 0%, rgba(150,122,246,0) 72%); animation: drift3 40s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; opacity: .035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift1 { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, 7vmax, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(9vmax, -8vmax, 0) scale(1.2); } }
.scroll-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--purple), var(--teal), var(--coral)); }

/* ---------- liquid glass ---------- */
.glass { position: relative; isolation: isolate; border-radius: var(--r);
  background: linear-gradient(145deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.7) 100%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%); backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(28,20,70,.04), 0 24px 60px rgba(40,30,90,.10), 0 2px 8px rgba(40,30,90,.06); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(141,132,255,.16), transparent 45%); }
.glass:hover::before { opacity: 1; }
.glass.lite { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(145deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.82) 100%); }
.glass.lite::before { display: none; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(141,132,255,.14) 32%, rgba(141,132,255,.04) 58%, rgba(28,20,70,.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (max-width: 700px) { :root { --blur: 14px; --r: 22px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 800; text-decoration: none; color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #a79fff 0%, #7f77dd 45%, #5b50d6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(40,20,140,.35), 0 10px 30px rgba(110,96,230,.5); transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s, filter .25s; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transition: left .7s; }
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 16px 44px rgba(110,96,230,.7); }
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: linear-gradient(145deg, rgba(141,132,255,.1), rgba(141,132,255,.04)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(141,132,255,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn.sm { padding: 9px 20px; font-size: 14.5px; } .btn.big { padding: 17px 34px; font-size: 18px; }
.btn-text { text-decoration: none; font-weight: 800; font-size: 14.5px; color: var(--muted); padding: 8px 10px; } .btn-text:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 12px; z-index: 50; width: min(1120px, calc(100% - 24px)); margin: 12px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px 9px 16px; border-radius: 999px; transition: transform .35s, background .3s; }
.nav.hide { transform: translateY(-140%); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; }
.brand img { border-radius: 9px; box-shadow: 0 0 20px rgba(141,132,255,.6); } .brand small { color: var(--faint); font: 600 12px var(--body); margin-left: 4px; }
.nav-links { display: flex; gap: 6px; } .nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(141,132,255,.1); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 30px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: center; }
.hero.solo { grid-template-columns: 1fr; max-width: 900px; padding-top: 110px; }
@media (max-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 34px; } }
.hero-copy { min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
.pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(63,217,168,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63,217,168,0); } 100% { box-shadow: 0 0 0 0 rgba(63,217,168,0); } }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 800; margin-bottom: 18px; }
.shine { background: linear-gradient(100deg, #b7b0ff 0%, #5eead4 30%, #ffcb57 55%, #ff8f6b 75%, #b7b0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shine { to { background-position: -250% 0; } }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 56ch; margin: 0 0 24px; }

.audience { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; margin-bottom: 18px; max-width: 100%; flex-wrap: wrap;
  background: linear-gradient(145deg, rgba(141,132,255,.08), rgba(141,132,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(141,132,255,.18); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.aud-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 120px; border-radius: 999px; z-index: 0; transition: transform .45s cubic-bezier(.3,1.3,.4,1), width .45s cubic-bezier(.3,1.3,.4,1);
  background: linear-gradient(145deg, #fff, #f1efff); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(110,96,230,.3); }
.aud-btn { position: relative; z-index: 1; cursor: pointer; background: none; border: 0; padding: 10px 18px; font-weight: 800; font-size: 14px; border-radius: 999px; color: var(--muted); transition: color .25s; white-space: nowrap; }
.aud-btn.active { color: #5b50d6; }
@media (max-width: 520px) { .aud-btn { padding: 9px 11px; font-size: 12.5px; } }
.aud-panels { min-height: 218px; }
.aud-panel:not([hidden]) { animation: panelIn .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.aud-title { font-size: clamp(21px, 2.8vw, 28px); font-weight: 800; margin-bottom: 12px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.ticks li .ic { color: var(--teal); background: rgba(63,217,168,.14); border-radius: 50%; padding: 3px; width: 1.55em; height: 1.55em; margin-top: 1px; box-shadow: 0 0 14px rgba(63,217,168,.35); }
.ticks.small li { font-size: 14.5px; margin: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; } .cta-row.center { justify-content: center; }
.fine { color: var(--faint); font-size: 13px; margin: 16px 0 0; font-weight: 600; } .fine a { color: var(--violet); }

/* ---------- hero stage (floating glass product) ---------- */
.stage-box { position: relative; width: 100%; min-width: 0; display: flex; justify-content: center; overflow-x: clip; overflow-y: visible; padding-top: 14px; }
.stage { position: relative; width: 540px; height: 580px; flex: none; transform-origin: top center; --px: 0; --py: 0; }
.stage [data-depth] { translate: calc(var(--px) * var(--depth, 10) * 1px) calc(var(--py) * var(--depth, 10) * 1px); transition: translate .25s ease-out; }
.phone { position: absolute; left: 14px; top: 16px; width: 266px; height: 520px; border-radius: 42px; padding: 38px 18px 18px; animation: bob 7s ease-in-out infinite;
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 60%, rgba(120,110,255,.1)); }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 99px; background: rgba(0,0,0,.55); }
.phone-top { display: flex; justify-content: space-between; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; background: rgba(28,20,70,.05); box-shadow: inset 0 0 0 1px rgba(28,20,70,.09); }
.chip.flame { color: #D8572E; } .chip.xp { color: #A9700B; }
.ph-tag { font-size: 11.5px; font-weight: 800; color: var(--violet); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.ph-q { font-weight: 700; font-size: 15.5px; line-height: 1.4; margin: 0 0 14px; min-height: 88px; }
.ph-opts { display: grid; gap: 8px; }
.ph-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 15px; font-weight: 700; font-size: 14px; background: rgba(28,20,70,.04); box-shadow: inset 0 0 0 1px rgba(28,20,70,.09); transition: background .3s, box-shadow .3s, transform .3s; }
.ph-opt i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--body); font-style: normal; background: rgba(28,20,70,.08); }
.ph-opt.pick { transform: scale(1.03); background: rgba(141,132,255,.28); box-shadow: inset 0 0 0 1.5px var(--purple), 0 0 22px rgba(141,132,255,.5); }
.ph-opt.right { background: rgba(63,217,168,.26); box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 26px rgba(63,217,168,.55); }
.ph-opt.right i { background: var(--teal); color: #05281d; }
.ph-toast { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 12px; border-radius: 16px; font-weight: 800; font-size: 14px; color: #066A4B; background: rgba(40,190,140,.18); box-shadow: inset 0 0 0 1px rgba(63,217,168,.45), 0 10px 24px rgba(31,185,140,.2); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s, transform .45s cubic-bezier(.3,1.5,.5,1); }
.ph-toast.show { opacity: 1; transform: none; } .ph-toast b { color: #A9700B; }
.float-card { position: absolute; padding: 14px 16px; border-radius: 22px; animation: bob 8s ease-in-out infinite; }
.report { right: 0; top: 22px; width: 226px; animation-delay: -2s; }
.board { right: 0; bottom: 24px; width: 226px; animation-delay: -4s; }
.fc-head { display: flex; align-items: center; gap: 10px; } .fc-head b { display: block; font-size: 14px; line-height: 1.2; } .fc-head small, .ring-row small { color: var(--faint); font-size: 11.5px; font-weight: 700; }
.ring-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; } .ring-row .big { display: block; font: 800 24px var(--display); line-height: 1; }
.ring { width: 54px; height: 54px; transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring-bg { stroke: rgba(28,20,70,.1); } .ring-fg { stroke: var(--teal); filter: drop-shadow(0 0 6px rgba(63,217,168,.7)); stroke-dashoffset: 0; animation: ringIn 2.4s ease-out both; }
@keyframes ringIn { from { stroke-dasharray: 0 100; } }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; } .mini-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #b7b0ff, #6c5ce7); transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2,.9,.3,1) both; }
.mini-bars i:nth-child(2) { animation-delay: .08s; } .mini-bars i:nth-child(3) { animation-delay: .16s; } .mini-bars i:nth-child(4) { animation-delay: .24s; } .mini-bars i:nth-child(5) { animation-delay: .32s; } .mini-bars i:nth-child(6) { animation-delay: .4s; } .mini-bars i:nth-child(7) { animation-delay: .48s; }
@keyframes grow { from { transform: scaleY(0); } }
.fc-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 10px; } .live { width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; animation: pulse 1.6s infinite; box-shadow: 0 0 0 0 rgba(255,93,93,.7); }
.lb { list-style: none; margin: 0; padding: 0; position: relative; height: 138px; }
.lb li { position: absolute; left: 0; right: 0; height: 42px; display: grid; grid-template-columns: 30px 56px 1fr 24px; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; transition: transform .8s cubic-bezier(.3,1.2,.4,1); }
.lb .av { width: 30px; height: 30px; }
.lb .bar, .racer em, .hw em { display: block; height: 7px; border-radius: 9px; background: rgba(28,20,70,.08); overflow: hidden; } .lb .bar i, .racer em i, .hw em i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #7f77dd, #3fd9a8); transition: width .8s ease-out; }
.lb b { text-align: right; font-family: var(--display); }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float-chip b { color: var(--teal); }
.c1 { left: -18px; bottom: 150px; animation-delay: -1s; } .c2 { left: 70px; top: -8px; animation-delay: -3s; } .c2 .ic { color: var(--amber); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(.4deg); } }

/* ---------- ribbon + stats ---------- */
.ribbon { overflow: hidden; margin: 26px 0 10px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ribbon-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.ribbon-track span { white-space: nowrap; padding: 9px 18px; border-radius: 99px; font-weight: 800; font-size: 13.5px; color: var(--muted); background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(28,20,70,.1), 0 2px 8px rgba(40,30,90,.05); }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats { width: min(1120px, calc(100% - 32px)); margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 22px 20px; text-align: left; } .stat b { display: block; font: 800 clamp(30px, 4vw, 44px)/1 var(--display); background: linear-gradient(180deg, #2b2550, #7f77dd); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- sections ---------- */
.block { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 0; content-visibility: auto; contain-intrinsic-size: auto 640px; }
.block-head { max-width: 760px; margin-bottom: 36px; } .kicker { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.block-head h2, .try-copy h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; margin-bottom: 14px; } .sub { color: var(--muted); font-size: clamp(16px, 1.9vw, 18.5px); margin: 0; max-width: 60ch; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.tcard { padding: 26px; display: flex; flex-direction: column; gap: 10px; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s; }
.tcard h3 { font-size: 26px; } .tcard p { color: var(--muted); margin: 0 0 8px; flex: 1; }
.tcard:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 30px 80px color-mix(in srgb, var(--acc) 40%, transparent), 0 2px 6px rgba(2,0,20,.3); }
.tc-art { position: relative; height: 150px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--acc) 50%, transparent), transparent 70%); }
.crowd { display: flex; align-items: flex-end; gap: 0; } .crowd .av.lg { margin: 0 -8px; position: relative; z-index: 0; opacity: .92; } .crowd .av.xl { position: relative; z-index: 1; }
.orbit { position: absolute; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 20px rgba(0,0,0,.3); animation: bob 5s ease-in-out infinite; color: #fff; }
.o-a { left: 22px; top: 22px; } .o-b { right: 24px; bottom: 20px; animation-delay: -2.2s; }
.tlink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; color: #5b50d6; padding: 10px 0; } .tlink .ic { transition: transform .25s; } .tlink:hover .ic { transform: translateX(5px); }

/* try it */
.try { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; } @media (max-width: 900px) { .try { grid-template-columns: 1fr; } }
.seg2 { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(28,20,70,.045); box-shadow: inset 0 0 0 1px rgba(28,20,70,.1); margin: 18px 0 18px; }
.seg2-btn { cursor: pointer; border: 0; background: none; padding: 9px 20px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--muted); transition: all .25s; } .seg2-btn.active { color: #fff; background: linear-gradient(145deg, #a79fff, #5b50d6); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 14px rgba(110,96,230,.4); }
.try-card { padding: 24px; position: relative; overflow: hidden; --r: 30px; }
.tq-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .tq-count { color: var(--faint); font-weight: 800; font-size: 13px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--violet); background: rgba(141,132,255,.16); box-shadow: inset 0 0 0 1px rgba(141,132,255,.35); }
.tq-text { font-weight: 700; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.45; margin: 0 0 16px; min-height: 58px; }
.tq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 520px) { .tq-opts { grid-template-columns: 1fr; } }
.tq-opt { cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 0; font-weight: 800; font-size: 16px; background: rgba(28,20,70,.04); box-shadow: inset 0 0 0 1px rgba(28,20,70,.1); transition: transform .25s cubic-bezier(.3,1.5,.5,1), background .25s, box-shadow .25s; }
.tq-opt i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--body); font-style: normal; background: rgba(28,20,70,.08); flex: none; }
.tq-opt:hover:not(:disabled) { transform: translateY(-3px); background: rgba(28,20,70,.07); box-shadow: inset 0 0 0 1px rgba(28,20,70,.2), 0 10px 22px rgba(40,30,90,.12); }
.tq-opt:disabled { cursor: default; } .tq-opt.right { background: rgba(63,217,168,.24); box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 30px rgba(63,217,168,.45); animation: jelly .6s; } .tq-opt.right i { background: var(--teal); color: #05281d; }
.tq-opt.wrong { background: rgba(255,93,93,.2); box-shadow: inset 0 0 0 1.5px #ff6b6b; animation: shake .45s; } .tq-opt.dim { opacity: .5; }
@keyframes jelly { 30% { transform: scale(1.06, .94); } 60% { transform: scale(.97, 1.04); } }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.tq-expl { margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; color: var(--muted); background: rgba(28,20,70,.04); box-shadow: inset 0 0 0 1px rgba(28,20,70,.1); animation: panelIn .45s both; } .tq-expl b { color: var(--ink); }
.tq-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; min-height: 40px; } .tq-xp { font-weight: 800; color: var(--faint); font-size: 14px; } .tq-xp.good { color: var(--amber); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; top: 40%; left: 50%; }

/* teacher scenes */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 70px; } .scene.flip .scene-copy { order: 2; } @media (max-width: 900px) { .scene { grid-template-columns: 1fr; gap: 22px; } .scene.flip .scene-copy { order: 0; } }
.scene-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 16px; color: var(--violet); } .scene-ic .ic { width: 26px; height: 26px; }
.scene-copy h3 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; } .scene-copy p { color: var(--muted); font-size: 16.5px; margin: 0 0 16px; max-width: 52ch; }
.scene-art { padding: 22px; min-height: 280px; --r: 28px; }
.join-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--muted); font-size: 14px; margin-bottom: 14px; } .code { font: 800 22px var(--display); letter-spacing: .16em; color: var(--ink); padding: 6px 16px; border-radius: 14px; background: rgba(28,20,70,.06); box-shadow: inset 0 0 0 1px rgba(28,20,70,.16); }
.racers { display: grid; gap: 12px; } .racer { display: grid; grid-template-columns: 30px 64px 1fr 34px; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; } .racer em, .hw em { height: 11px; } .racer b, .hw b { text-align: right; font-family: var(--display); font-size: 15px; }
.players { display: flex; align-items: center; margin-top: 18px; } .players .av { margin-left: -9px; border: 2px solid #fff; } .players .av:first-child { margin-left: 0; } .players span { margin-left: 12px; color: var(--faint); font-size: 13px; font-weight: 700; }
.hw-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.timer-wrap { position: relative; width: 150px; height: 150px; margin: 6px auto 14px; } .timer { width: 100%; height: 100%; transform: rotate(-90deg); } .timer circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.t-bg { stroke: rgba(28,20,70,.1); } .t-fg { stroke: url(#g-teal); stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 8px rgba(63,217,168,.6)); }
.timer-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .timer-num b { font: 800 44px/1 var(--display); } .timer-num small { color: var(--faint); font-weight: 700; font-size: 12px; }
.hw-list { display: grid; gap: 10px; } .hw { display: grid; grid-template-columns: 26px 56px 1fr 44px; gap: 10px; align-items: center; font-weight: 800; font-size: 14px; } .hw em i { width: 0; transition: width 1.4s cubic-bezier(.2,.9,.3,1); } .in .hw em i { width: var(--w); }
.report-sheet { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.85)); }
.rs-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid rgba(141,132,255,.7); padding-bottom: 8px; } .rs-head b { font: 800 20px var(--display); } .rs-head small { color: var(--faint); font-weight: 700; font-size: 12px; }
.rs-name { font: 800 24px var(--display); margin: 14px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .chip-s { font: 800 11.5px var(--body); padding: 4px 11px; border-radius: 99px; } .chip-s.bad { color: #9A2F12; background: rgba(255,93,93,.14); box-shadow: inset 0 0 0 1px rgba(255,93,93,.35); }
.rs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .rs-tiles div { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(28,20,70,.045); } .rs-tiles b { display: block; font: 800 20px var(--display); color: #5b50d6; } .rs-tiles small { color: var(--faint); font-size: 10.5px; font-weight: 800; }
.rs-days { display: flex; align-items: flex-end; gap: 7px; height: 56px; margin: 14px 0 4px; } .rs-days i { flex: 1; height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #b7b0ff, #6c5ce7); transition: height 1.2s cubic-bezier(.2,.9,.3,1); } .in .rs-days i { height: max(3px, var(--h)); }
.rs-note { color: var(--muted); font-size: 14px; margin: 10px 0 14px !important; } .rs-note b { color: var(--ink); }
.rs-actions { display: flex; gap: 10px; flex-wrap: wrap; } .rs-actions span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 99px; font-weight: 800; font-size: 13px; background: rgba(28,20,70,.05); box-shadow: inset 0 0 0 1px rgba(28,20,70,.1); } .rs-actions .wa { background: rgba(37,211,102,.16); color: #0E7A3E; box-shadow: inset 0 0 0 1px rgba(37,211,102,.4); }
.scan .note { position: relative; padding: 18px; border-radius: 16px; background: #f6f0df; color: #3a3426; font-family: "Nunito", cursive; overflow: hidden; transform: rotate(-1.5deg); box-shadow: 0 16px 40px rgba(0,0,0,.4); background-image: repeating-linear-gradient(transparent 0 25px, rgba(60,80,160,.18) 25px 26px); }
.scan .note p { margin: 0 0 6px; line-height: 26px; font-weight: 600; font-size: 14.5px; } .scan .hand { font-weight: 800; color: #2a4fd6; font-size: 17px; transform: rotate(-2deg); }
.scanline { position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(180deg, transparent, rgba(63,217,168,.55), transparent); border-bottom: 2px solid rgba(63,217,168,.9); animation: scan 4s ease-in-out infinite; }
@keyframes scan { 0% { top: -46px; } 55%, 100% { top: 100%; } }
.extracted { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: rgba(63,217,168,.12); box-shadow: inset 0 0 0 1px rgba(63,217,168,.4); animation: pop 4s ease-in-out infinite; } .extracted p { margin: 8px 0 0; font-weight: 700; font-size: 14.5px; }
@keyframes pop { 0%, 45% { opacity: .15; transform: translateY(12px) scale(.97); } 62%, 100% { opacity: 1; transform: none; } }

/* features, steps, faq */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } @media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.f { padding: 22px; } .f h3 { font-size: 20px; margin: 14px 0 6px; } .f p { color: var(--muted); font-size: 14.5px; margin: 0; }
.f { position: relative; }
.new-pill { position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--teal, #1d9e75), #0f6e56); padding: 3px 9px; border-radius: 999px; }
.fi { width: 44px; height: 44px; padding: 10px; border-radius: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(0,0,0,.3); }
.c-purple { background: linear-gradient(145deg, #a79fff, #5b50d6); } .c-teal { background: linear-gradient(145deg, #5eebc2, #14946d); } .c-coral { background: linear-gradient(145deg, #ffa488, #e05a35); } .c-amber { background: linear-gradient(145deg, #ffdd80, #e8981a); } .c-blue { background: linear-gradient(145deg, #8fc7ff, #2f7be8); }
.f:hover .fi { animation: jelly .6s; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; } @media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; } .step h3 { font-size: 20px; margin: 14px 0 6px; } .step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--display); background: linear-gradient(145deg, #a79fff, #5b50d6); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 24px rgba(110,96,230,.55); }
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq details { padding: 4px 22px; border-radius: 20px; } .faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 26px/1 var(--display); color: var(--violet); transition: transform .3s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); animation: panelIn .4s both; }
.final { width: min(1120px, calc(100% - 32px)); margin: 90px auto 0; } .final-card { padding: clamp(34px, 6vw, 70px) 24px; text-align: center; --r: 36px; background: linear-gradient(145deg, rgba(141,132,255,.28), rgba(63,217,168,.12) 60%, rgba(255,143,107,.14)); }
.final-card h2 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; margin-bottom: 12px; } .final-card p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.foot { margin-top: 70px; padding: 30px 16px 40px; border-top: 1px solid rgba(28,20,70,.1); } .foot-in { width: min(1120px, 100%); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--faint); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .foot nav a { text-decoration: none; font-weight: 700; font-size: 14px; } .foot nav a:hover { color: var(--ink); } .foot .brand { font-size: 18px; color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease-out var(--d, 0ms), transform .7s cubic-bezier(.2,.9,.3,1) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tcard.reveal.in { transition: transform .25s ease-out, box-shadow .3s; }

/* phones: keep it calm and light */
@media (max-width: 700px) {
  :root { --blur: 10px; }
  .orb { animation: none; }
  .phone, .float-card, .float-chip, .orbit { animation: none; }
  .block { padding-top: 56px; }
}
/* phones: the hero stage is a single centred phone -- the report and live-game
   cards are shown in full further down, so the hero stays clean with no dead gap */
@media (max-width: 600px) {
  .stage-box { overflow: visible; padding-top: 0; }
  .stage { position: static; width: auto; height: auto !important; transform: none !important; }
  .phone { position: relative; left: auto; top: auto; width: 100%; max-width: 300px; margin: 0 auto; }
  .float-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
}

/* ---------- what's new bar and the install pop-up ---------- */
.news { width: min(1120px, calc(100% - 24px)); margin: 10px auto 0; border-radius: 999px; padding: 0; --r: 999px; }
.news[open] { border-radius: 22px; }
.news summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 8px; font-weight: 700; font-size: 13.5px; }
.news summary::-webkit-details-marker { display: none; }
.news-new { flex: none; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; color: #05281d; background: linear-gradient(135deg, #7df0cc, #3fd9a8); }
.news-line { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-more { flex: none; color: var(--violet); font-weight: 800; padding-right: 8px; }
.news-more::after { content: " ▾"; } .news[open] .news-more::after { content: " ▴"; }
.news-list { list-style: none; margin: 0; padding: 4px 18px 14px; display: grid; gap: 8px; }
.news-list li { color: var(--muted); font-size: 14px; display: flex; gap: 12px; } .news-list time { flex: none; width: 52px; color: var(--faint); font-weight: 800; }
.install-pop { position: relative; margin-top: 14px; padding: 14px 40px 14px 16px; max-width: 420px; font-size: 14px; --r: 18px; }
.install-pop p { margin: 6px 0 0; color: var(--muted); } .install-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.nav-cta .js-install { display: none; } @media (min-width: 900px) { .nav-cta .js-install { display: inline-flex; } }
.h1-kw { display: block; font-size: clamp(14px, 1.6vw, 17px); font-weight: 800; letter-spacing: .04em; color: var(--teal); margin-bottom: 10px; }
