/* ============ HOME PAGE ============ */

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero-bg .b1 { width: 460px; height: 460px; background: #cfe0fb; top: -120px; right: -80px; }
.hero-bg .b2 { width: 360px; height: 360px; background: #d7f1f8; top: 180px; left: -120px; opacity: .55; }
.hero-bg .b3 { width: 300px; height: 300px; background: #ffe0cf; bottom: -120px; right: 12%; opacity: .4; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-copy .pill { margin-bottom: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 20px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-meta .material-icons { font-size: 18px; color: var(--cyan); }

.hero-app { position: relative; }
.hero-app .frame { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: center; }
.hero-float {
  position: absolute; background: #fff; border-radius: 13px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 11px 15px; display: flex; align-items: center; gap: 11px; z-index: 3;
}
.hero-float .material-icons { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 19px; }
.hero-float b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.2; }
.hero-float span { font-size: 11.5px; color: var(--muted); }
.hero-float.f-fsrs { bottom: 38px; left: -26px; }
.hero-float.f-fsrs .material-icons { background: linear-gradient(150deg,#34bce0,#1488ad); }
.hero-float.f-ai { top: 64px; right: -22px; }
.hero-float.f-ai .material-icons { background: linear-gradient(150deg,#ff7b46,#d84a14); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-app .frame { transform: none; }
  .hero-app { max-width: 540px; }
  .hero-float.f-fsrs { left: 0; }
  .hero-float.f-ai { right: 0; }
}
@media (max-width: 560px) {
  .hero-float { display: none; }
}

/* ---------- TRUST ---------- */
.trust { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--mist); padding: 26px 0; }
.trust-in { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; }
.trust-lbl { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--faint); letter-spacing: .02em; }
.trust-items { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.trust-items span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.trust-items .material-icons { font-size: 19px; color: var(--blue); }

/* ---------- shared feature layout ---------- */
.sci-grid, .feat-grid, .games-grid, .edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feat-grid.rev .feat-app { order: -1; }
.sci-copy .eyebrow, .feat-copy .eyebrow { margin-bottom: 16px; }
.sci-copy h2, .feat-copy h2 { margin-bottom: 18px; }
.sci-copy .lead, .feat-copy .lead { margin-bottom: 26px; }

.sci-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sci-list.tight { gap: 13px; margin-bottom: 24px; }
.sci-list li { display: flex; gap: 13px; align-items: flex-start; }
.sci-list li .material-icons { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; font-size: 20px; flex: none; }
.sci-list li div { font-size: 15.5px; color: var(--muted); padding-top: 5px; }
.sci-list li b { color: var(--ink); font-weight: 600; }

.feat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pill.dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #dce6f4; }
.pill.dark .material-icons { color: var(--cyan-soft); }

.feat-alt { background: var(--mist); }

/* ---------- GAMES band ---------- */
.games-band { background: linear-gradient(150deg,#10204a,#1b2c5e); }
.eyebrow.light { color: var(--cyan-soft); }
.eyebrow.light::before { background: var(--orange-soft); }

/* ---------- small feature grid ---------- */
.sec-head { margin-bottom: 46px; }
.sec-head h2 { margin-top: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card.mini { padding: 26px; }
.card.mini .ichip { margin-bottom: 16px; }
.card.mini h3 { font-size: 19px; margin-bottom: 8px; }
.card.mini p { font-size: 14.5px; color: var(--muted); }

/* ---------- compare teaser ---------- */
.compare-teaser { background: var(--mist); }
.ct-table { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ct-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; align-items: center; padding: 0 8px; }
.ct-row + .ct-row { border-top: 1px solid var(--line-2); }
.ct-row > span { padding: 15px 14px; text-align: center; font-size: 14px; }
.ct-row .ct-feat { text-align: left; font-weight: 500; color: var(--ink); }
.ct-head { background: var(--mist-2); }
.ct-head .ct-brand { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--muted); }
.ct-head .ct-brand.on { color: var(--blue); }
.ct-row .yes .material-icons { color: #1e8f54; background: #e3f5ea; border-radius: 50%; font-size: 17px; padding: 3px; }
.ct-row .no .material-icons { color: #c2ccd9; font-size: 16px; }
.ct-row .part { font-size: 12px; font-weight: 600; color: var(--orange); background: var(--orange-wash); border-radius: 999px; padding: 3px 10px; display: inline-block; }
.ct-row .ct-na { color: #c2ccd9; }
.ct-row .yes, .ct-row .no { display: flex; justify-content: center; }

/* ---------- educators teaser ---------- */
.edu-teaser { background: #fff; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(140deg, #15378a 0%, #1f56c9 55%, #1a8fc0 120%); padding: 96px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,82,.4), transparent 70%); top: -180px; right: -120px; }
.cta-in { position: relative; z-index: 1; text-align: center; }
.cta-in .eyebrow { margin-bottom: 16px; }
.wl { max-width: 520px; margin: 32px auto 16px; }
.wl-row { display: flex; gap: 10px; }
.wl-row input { flex: 1; height: 56px; border-radius: 13px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.96); padding: 0 18px; font-size: 16px; font-family: var(--font-body); color: var(--ink); outline: none; }
.wl-row input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.wl-row .btn { height: 56px; }
.wl-done { display: none; align-items: center; justify-content: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); border-radius: 13px; padding: 16px; }
.wl-done .material-icons { color: #6fe0a8; }
.wl-fine { color: #b9cdee; font-size: 14px; }
.wl-soon { max-width: 540px; margin: 32px auto 16px; display: flex; align-items: center; gap: 16px; text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 20px 24px; }
.wl-soon > .material-icons { font-size: 30px; color: var(--cyan-soft); flex: none; }
.wl-soon-tx b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.wl-soon-tx span { font-size: 14.5px; color: #c7d4ea; }
@media (max-width: 480px) { .wl-soon { flex-direction: column; text-align: center; } }

@media (max-width: 980px) {
  .sci-grid, .feat-grid, .games-grid, .edu-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid.rev .feat-app { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1.5fr .8fr .8fr .8fr; }
  .ct-row > span { padding: 12px 6px; font-size: 12.5px; }
  .wl-row { flex-direction: column; }
}

/* ---------- account-type matrix ---------- */
.plans { background: var(--mist); }
.plans-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plans-table { min-width: 720px; max-width: 1000px; margin: 44px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.pt-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-bottom: 2px solid var(--line); }
.pt-corner { padding: 24px 20px; display: flex; align-items: flex-end; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.pt-acct { padding: 22px 16px; text-align: center; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pt-acct .material-icons { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 22px; margin-bottom: 6px; background: linear-gradient(150deg,#2b6bf0,#1741a8); }
.pt-acct.learner .material-icons { background: linear-gradient(150deg,#34bce0,#1488ad); }
.pt-acct.educator .material-icons { background: linear-gradient(150deg,#ff7b46,#d84a14); }
.pt-acct b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.pt-acct span { font-size: 12px; color: var(--muted); line-height: 1.35; min-height: 32px; }
.pt-acct em { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--blue); background: var(--blue-wash); border-radius: 999px; padding: 3px 12px; margin-top: 4px; }
.pt-acct.educator { background: linear-gradient(180deg, #fff8f4, #fff); }
.pt-acct.educator em { color: var(--orange); background: var(--orange-wash); }

.pt-cat { background: var(--mist); padding: 10px 20px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.pt-cat .material-icons { font-size: 16px; color: var(--blue); }
.pt-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line-2); }
.pt-row:last-child { border-bottom: 0; }
.pt-feat { padding: 13px 20px; font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: center; }
.pt-cell { padding: 13px 16px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line-2); }
.pt-cell.edu { background: #fffaf6; }
.pt-yes .material-icons { color: #1e8f54; font-size: 19px; background: #e3f5ea; border-radius: 50%; padding: 3px; }
.pt-no .material-icons { color: #d3dae4; font-size: 18px; }
.pt-part { font-size: 11px; font-weight: 600; color: var(--orange); background: var(--orange-wash); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.plans-note { text-align: center; font-size: 13px; color: var(--muted); margin: 18px auto 0; max-width: 700px; }

@media (max-width: 760px) {
  .pt-acct .material-icons { width: 36px; height: 36px; font-size: 19px; }
  .pt-acct b { font-size: 14px; }
}

/* ---------- activities & live games ---------- */
.activities { background: #fff; }
.act-legend { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.act-legend .pill { background: var(--mist); }
.act-legend .pill b { font-family: var(--font-display); color: var(--ink); }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.act-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s; }
.act-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.act-card .ai { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.act-card .ai .material-icons { font-size: 22px; }
.act-card b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; display: block; margin-bottom: 3px; }
.act-card p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.games-note { display: flex; align-items: center; gap: 11px; justify-content: center; text-align: center; max-width: 780px; margin: 30px auto 0; font-size: 15px; color: var(--ink-2); background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 16px 24px; }
.games-note .material-icons { color: var(--orange); font-size: 20px; flex: none; }
.games-note b { color: var(--ink); font-weight: 600; }

/* live band */
.live-band { margin-top: 24px; background: linear-gradient(150deg,#10204a,#1b2c5e); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px clamp(24px,3.5vw,48px); }
.live-band .lb-copy .eyebrow { color: var(--cyan-soft); }
.live-band .lb-copy .eyebrow::before { background: var(--orange-soft); }
.live-band .lb-copy h3 { color: #fff; font-size: clamp(24px,2.6vw,32px); margin: 12px 0 12px; }
.live-band .lb-copy p { color: #b9c6dc; font-size: 15.5px; }
.live-band .lb-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.live-band .lb-tags .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #dce6f4; }
.live-band .lb-tags .pill .material-icons { color: var(--cyan-soft); }

/* balloon race mockup */
.race-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; }
.race-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.race-head .rt { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; }
.race-head .rt .material-icons { color: var(--orange-soft); font-size: 19px; }
.race-head .live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(232,93,34,.22); border: 1px solid rgba(255,138,82,.4); padding: 3px 10px; border-radius: 999px; }
.race-head .live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #ff8a52; animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.lane { display: flex; align-items: center; gap: 11px; }
.lane + .lane { margin-top: 11px; }
.lane .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; flex: none; }
.lane .track { position: relative; flex: 1; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.lane .track .fill { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.lane .balloon { position: absolute; top: 50%; width: 17px; height: 21px; border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%; transform: translate(50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.lane .balloon::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 1px; height: 7px; background: rgba(255,255,255,.45); transform: translateX(-50%); }
.lane .pos { width: 22px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #cfd9ea; flex: none; }
.lane .pos.first { color: #ffd56b; }

/* speedygrading callout */
.speedy { margin-top: 24px; display: flex; align-items: center; gap: 22px; background: linear-gradient(120deg, var(--orange-wash), #fff 70%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px clamp(22px,3vw,40px); }
.speedy .sp-ic { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(150deg,#ff7b46,#d84a14); color: #fff; display: grid; place-items: center; flex: none; }
.speedy .sp-ic .material-icons { font-size: 30px; }
.speedy .sp-body { flex: 1; }
.speedy .sp-body .tagrow { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.speedy .sp-body h3 { font-size: 21px; }
.speedy .sp-body .edu-badge { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); background: #fff; border: 1px solid var(--orange-soft); border-radius: 999px; padding: 3px 11px; }
.speedy .sp-body p { color: var(--muted); font-size: 15px; margin-top: 2px; }

@media (max-width: 900px) {
  .act-grid { grid-template-columns: 1fr; }
  .live-band { grid-template-columns: 1fr; gap: 28px; }
  .speedy { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* integrations & SSO */
.integrations { margin-top: 26px; }
.intg-head { text-align: center; margin-bottom: 22px; }
.intg-h { font-size: clamp(22px, 2.4vw, 28px); margin-top: 8px; }
.intg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intg-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s; }
.intg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.intg-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.intg-logo.gc { background: #e8f1ff; color: #1a73e8; }
.intg-logo.gc .material-icons { font-size: 26px; }
.intg-logo.g { background: #fff; border: 1px solid var(--line); color: #1a73e8; box-shadow: var(--shadow-sm); }
.intg-body { flex: 1; }
.intg-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.intg-top b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.intg-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.intg-badge .material-icons { font-size: 13px; }
.intg-badge.pending { color: var(--orange); background: var(--orange-wash); }
.intg-badge.live { color: #1e8f54; background: #e8f6ee; }
.intg-body p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .intg-grid { grid-template-columns: 1fr; } }
