/* =========================================================
   学迹 Xueji — 学生作业跟踪 App 官网
   Hand-built static site · no external assets
   ========================================================= */

:root {
  --ink: #111b34;
  --ink-2: #263451;
  --ink-3: #4f5d78;
  --muted: #6f7c95;
  --muted-2: #98a4b9;
  --line: #e4e9f3;
  --line-strong: #d5dced;
  --paper: #f7f9ff;
  --paper-2: #eef3ff;
  --white: #ffffff;
  --blue: #2f6df6;
  --blue-2: #4f8cff;
  --blue-deep: #1c4fd7;
  --navy: #0b1226;
  --navy-2: #101b38;
  --mint: #3ecfb2;
  --mint-soft: #dff8f1;
  --amber: #ffb84d;
  --amber-soft: #fff1d8;
  --peach: #ffd9c7;
  --rose: #ff7a7a;
  --purple: #9d7bff;
  --radius: 30px;
  --radius-sm: 18px;
  --shadow-sm: 0 2px 6px rgba(20, 36, 76, 0.04), 0 10px 28px rgba(20, 36, 76, 0.05);
  --shadow-md: 0 18px 50px rgba(22, 40, 86, 0.1);
  --shadow-lg: 0 40px 100px rgba(13, 28, 66, 0.18);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { background: #cfe0ff; color: var(--ink); }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 18px; }

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(250, 251, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(20, 36, 76, 0.06), 0 12px 40px rgba(20, 36, 76, 0.05);
}
.site-header.on-dark {
  background: rgba(8, 14, 28, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.site-header.on-dark .brand-word { color: #fff; }
.site-header.on-dark .brand-en {
  color: rgba(255, 255, 255, 0.38);
  border-left-color: rgba(255, 255, 255, 0.16);
}
.site-header.on-dark .nav-links { color: rgba(231, 238, 250, 0.7); }
.site-header.on-dark .nav-links > a:not(.nav-cta):hover { color: #fff; }
.site-header.on-dark .nav-links > a:not(.nav-cta)::after { background: #fff; }
.site-header.on-dark .nav-cta { color: var(--ink); background: #fff; }
.site-header.on-dark .nav-cta:hover { color: #fff; background: var(--blue); }
.site-header.on-dark .menu-toggle { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.site-header.on-dark .menu-toggle span { background: #fff; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #1c4fd7 0%, #2f6df6 55%, #56a0ff 100%);
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-word {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-dot { color: var(--blue); }
.brand-en {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  transform: translateY(1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}
.nav-links > a:not(.nav-cta) {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links > a:not(.nav-cta):hover { color: var(--ink); }
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(17, 27, 52, 0.16);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.nav-cta span { font-size: 13px; transition: transform 0.25s var(--ease); }
.nav-cta:hover { background: var(--blue); transform: translateY(-2px); }
.nav-cta:hover span { transform: translate(2px, -2px); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 19px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: top 0.3s var(--ease), transform 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ── Shared type / buttons ────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
}
.eyebrow span:not(.pulse-dot) { color: var(--muted-2); }
.eyebrow-dark { color: var(--blue-deep); }
.eyebrow-light { color: #8fb6ff; }
.eyebrow-light span { color: rgba(255, 255, 255, 0.35); }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(62, 207, 178, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 178, 0.55); }
  65% { box-shadow: 0 0 0 8px rgba(62, 207, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 178, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3a7bff 0%, #2f6df6 55%, #245ee4 100%);
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(47, 109, 246, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.66);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-sm); }
.btn-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(17, 27, 52, 0.18);
}
.btn-dark:hover { transform: translateY(-2px); background: var(--blue); box-shadow: 0 18px 36px rgba(47, 109, 246, 0.28); }
.btn-full { width: 100%; }

.play-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f0ff;
}
.play-dot svg { width: 11px; height: 11px; transform: translateX(1px); }
.btn:hover .play-dot svg { transform: translateX(1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #cfe0ff;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(207, 224, 255, 0.3);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease), border-color 0.25s ease;
}
.text-link:hover { gap: 15px; border-color: #cfe0ff; }
.text-link.dark { color: var(--blue-deep); border-color: rgba(47, 109, 246, 0.25); }
.text-link.dark:hover { border-color: var(--blue); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 156px 0 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 72% -10%, rgba(222, 234, 255, 0.9) 0%, rgba(247, 249, 255, 0) 62%),
    linear-gradient(180deg, #fbfcff 0%, #f7f9ff 68%, #f8faff 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.blob-blue {
  width: 620px;
  height: 620px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle at 30% 30%, #b9d3ff, #d9e7ff 48%, rgba(217, 231, 255, 0) 70%);
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.blob-peach {
  width: 460px;
  height: 460px;
  right: 160px;
  bottom: -210px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 206, 173, 0.85), rgba(255, 224, 198, 0.25) 55%, rgba(255, 224, 198, 0) 72%);
  animation: blobDrift 20s ease-in-out 1s infinite alternate-reverse;
}
@keyframes blobDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 24px, 0) scale(1.06); }
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 91, 148, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 91, 148, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 0%, transparent 78%);
}
.hero-ring {
  position: absolute;
  border: 1px dashed rgba(60, 98, 175, 0.18);
  border-radius: 50%;
}
.ring-one { width: 720px; height: 720px; right: -40px; top: 50px; transform: rotate(-18deg); }
.ring-two { width: 520px; height: 520px; right: 80px; top: 150px; transform: rotate(24deg); border-style: solid; border-color: rgba(60, 98, 175, 0.1); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  gap: 42px;
  align-items: center;
}

.hero-copy { padding-bottom: 34px; }
.hero-copy .eyebrow {
  padding: 7px 14px 7px 11px;
  border: 1px solid #dce6fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 16px rgba(30, 60, 120, 0.04);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: none;
}
.hero-copy .eyebrow .pulse-dot { width: 6px; height: 6px; }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(58px, 6.9vw, 90px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.highlight {
  position: relative;
  color: var(--blue-deep);
  background: linear-gradient(180deg, transparent 61%, rgba(255, 215, 133, 0.8) 61%, rgba(255, 225, 166, 0.8) 91%, transparent 91%);
  padding: 0 0.04em;
}

.lede {
  max-width: 525px;
  margin-top: 27px;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.92;
  letter-spacing: 0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 10px;
  line-height: 1;
}

/* ── Hero visual / phone ──────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-stage {
  position: relative;
  z-index: 2;
  width: 378px;
  perspective: 1400px;
}
.phone {
  position: relative;
  transform: rotate(-2.4deg);
  transition: transform 0.6s var(--ease);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-2.4deg) translateY(0); }
  50% { transform: rotate(-1.7deg) translateY(-12px); }
}
.phone-shell {
  position: relative;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(145deg, #1c2742 0%, #0c1427 55%, #263452 100%);
  box-shadow:
    0 60px 110px rgba(13, 28, 66, 0.29),
    0 24px 44px rgba(13, 28, 66, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.17),
    inset 0 0 0 3px rgba(255, 255, 255, 0.045);
}
.phone-shell::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 120px;
  width: 3px;
  height: 58px;
  border-radius: 3px;
  background: #263452;
}
.phone-shell::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 158px;
  width: 3px;
  height: 84px;
  border-radius: 3px;
  background: #263452;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 640px;
  padding: 14px 15px 0;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(300px 200px at 80% 0%, #e9f1ff 0%, rgba(246, 248, 255, 0) 70%),
    #f5f7fd;
}
.phone-screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 92px;
  height: 24px;
  border-radius: 20px;
  background: #0b1224;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}
.status-icons { display: flex; align-items: center; gap: 5px; }
.status-icons svg { width: 14px; height: 10px; }

.app-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 15px 5px 0;
}
.app-kicker { font-size: 9px; font-weight: 600; color: var(--muted-2); letter-spacing: 0.04em; }
.app-top h2 { font-size: 27px; line-height: 1.15; letter-spacing: -0.045em; font-weight: 800; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd3a8, #ffb47d);
  color: #7b431b;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(214, 133, 66, 0.22);
}

.app-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5px 0;
}
.app-greeting p { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.app-greeting span { font-size: 9px; color: var(--muted-2); }
.app-greeting b { color: var(--blue); }

.focus-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding: 16px 17px;
  overflow: hidden;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(120px 120px at 90% 20%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(135deg, #1e53dc 0%, #2f6df6 58%, #4f8cff 100%);
  box-shadow: 0 12px 26px rgba(45, 103, 235, 0.28);
}
.focus-copy { position: relative; z-index: 1; }
.focus-tag { font-size: 8px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.72; }
.focus-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 39px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.focus-copy strong small { margin-left: 1px; font-size: 15px; font-weight: 700; opacity: 0.8; }
.focus-copy p { margin-top: 5px; font-size: 9px; opacity: 0.72; }
.progress-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--value) * 1%), rgba(255, 255, 255, 0.18) 0);
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #2d66ee;
}
.progress-ring span {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
}
.focus-orbit {
  position: absolute;
  right: -42px;
  top: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.focus-orbit::after {
  content: "";
  position: absolute;
  inset: 19px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.task-stack { display: grid; gap: 8px; margin-top: 10px; }
.task-card {
  padding: 11px 12px;
  border: 1px solid #e7ecf7;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 36, 76, 0.035);
}
.task-card.is-urgent { border-color: #ffd4d4; }
.task-head { display: flex; align-items: center; gap: 9px; }
.subject-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-math { background: var(--blue); }
.dot-english { background: var(--amber); }
.dot-physics { background: var(--mint); }
.dot-chinese { background: var(--purple); }
.task-head > div { min-width: 0; flex: 1; }
.task-head h3 {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-head p { margin-top: 2px; font-size: 8px; color: var(--muted-2); }
.task-badge {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 5px;
  background: #ffeded;
  color: #e15858;
  font-size: 7px;
  font-weight: 700;
}
.task-badge.badge-soft { background: #eef4ff; color: var(--blue); }
.task-check {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1.5px solid #d7dfed;
  border-radius: 50%;
}
.task-bar {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: #eef2f9;
}
.task-bar span { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.task-bar.bar-english span { background: var(--amber); }
.task-bar.bar-physics span { background: var(--mint); }

.phone-insight {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #e6ecf7;
  border-radius: 13px;
  background: #fff;
}
.insight-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--amber-soft);
  color: #b77717;
  font-size: 10px;
}
.phone-insight > div { flex: 1; min-width: 0; }
.phone-insight b { display: block; font-size: 8.5px; }
.phone-insight small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7px; }
.insight-arrow { color: var(--muted-2); font-size: 11px; }

.app-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: auto -15px 0;
  padding: 10px 9px 17px;
  border-top: 1px solid #e8edf7;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #a7b1c4;
}
.tab svg { width: 15px; height: 15px; }
.tab i { font-style: normal; font-size: 7px; font-weight: 600; }
.tab.is-active { color: var(--blue); }

.visual-note {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  border: 1px solid rgba(220, 229, 245, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 32px rgba(22, 40, 86, 0.09);
  backdrop-filter: blur(12px);
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.55;
  font-weight: 500;
}
.note-top { right: -14px; top: 48px; transform: rotate(2deg); }
.note-bottom { left: -48px; bottom: 62px; display: flex; align-items: center; gap: 9px; transform: rotate(-2deg); }
.note-spark { display: block; margin-bottom: 3px; color: var(--amber); font-size: 13px; }
.mini-avatars { display: flex; }
.mini-avatars i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e5edff;
  color: var(--blue-deep);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}
.mini-avatars i:first-child { margin-left: 0; background: #dff6f0; color: #16866f; }
.mini-avatars i:last-child { background: #fff0d8; color: #a76517; }

.floating-card {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(226, 233, 246, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(22, 40, 86, 0.13);
  backdrop-filter: blur(14px);
}
.float-progress {
  left: -148px;
  top: 70px;
  width: 158px;
  padding: 12px 14px 8px;
  transform: rotate(-2deg);
}
.float-head { display: flex; align-items: center; justify-content: space-between; font-size: 8px; color: var(--muted); }
.float-pill { padding: 2px 5px; border-radius: 4px; background: var(--mint-soft); color: #17856d; font-size: 7px; font-weight: 700; }
.float-progress strong { display: block; margin-top: 6px; font-size: 25px; line-height: 1; letter-spacing: -0.05em; }
.float-progress strong small { font-size: 11px; color: var(--muted); }
.sparkline { width: 100%; height: 28px; margin-top: 3px; }
.float-report {
  right: -104px;
  bottom: 116px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 212px;
  padding: 12px 14px;
  transform: rotate(1.5deg);
}
.report-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: #17856d;
}
.report-icon svg { width: 17px; height: 17px; }
.float-report b { display: block; font-size: 9px; }
.float-report span:not(.report-icon) { display: block; margin-top: 3px; font-size: 7.5px; color: var(--muted-2); }

/* ── Metrics ──────────────────────────────────────────── */
.metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 76px;
  padding: 31px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics > div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.metrics > div:first-child { padding-left: 0; border-left: 0; }
.metrics dt {
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.metrics dd { margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }

/* ── Section base ─────────────────────────────────────── */
.section { position: relative; padding: 122px 0; }
section[id], [id="top"] { scroll-margin-top: 64px; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2,
.showpiece-copy h2,
.faq-intro h2,
.beta-copy h2 {
  margin-top: 18px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.section-lede {
  max-width: 580px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.9;
}
.section-head.center .section-lede { margin-inline: auto; }

/* ── Features / bento ─────────────────────────────────── */
.features {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(241, 245, 255, 0.8), transparent 70%),
    #fff;
}
.features .section-head { max-width: 670px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
}
.bento-card:hover {
  transform: translateY(-5px);
  border-color: #d7e2f5;
  box-shadow: var(--shadow-md);
}
.feature-tag {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.bento-card h3 {
  font-size: 26px;
  line-height: 1.24;
  letter-spacing: -0.043em;
  font-weight: 750;
}
.bento-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.feature-wide {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: end;
  min-height: 390px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(213, 228, 255, 0.7), transparent 70%),
    #fbfcff;
}
.feature-wide .card-copy { align-self: center; }
.feature-wide h3 { font-size: 30px; }

.split-demo {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  margin-right: -6px;
  padding: 17px;
  border: 1px solid #e5ebf7;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(30, 58, 112, 0.06);
  transform: rotate(0.7deg);
}
.split-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e8edf7;
  border-radius: 12px;
  background: #fff;
}
.source-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e7f9f3;
  color: #16856d;
  font-size: 11px;
  font-weight: 700;
}
.split-source b { display: block; font-size: 10px; }
.split-source small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.source-more { margin-left: auto; color: var(--muted-2); font-size: 13px; letter-spacing: 0.1em; }
.split-line { width: 1px; height: 12px; margin-left: 24px; background: #dfe6f3; }
.split-steps { display: grid; gap: 7px; }
.split-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7f9fe;
}
.split-step > div { flex: 1; min-width: 0; }
.split-step b { display: block; font-size: 9.5px; }
.split-step small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7.5px; }
.step-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--mint-soft);
  color: #17856d;
  font-size: 9px;
  font-weight: 700;
}
.split-step.is-now {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px #dbe7ff;
}
.split-step.is-now .step-check { background: var(--blue); color: #fff; }
.now-pill {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}

.feature-radar {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(260px 200px at 100% 100%, rgba(255, 232, 205, 0.65), transparent 70%),
    #fbfcff;
}
.radar-demo {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
}
.radar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e8edf7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.83);
}
.radar-row.is-hot { border-color: #ffd7d7; box-shadow: 0 6px 18px rgba(225, 88, 88, 0.06); }
.radar-day {
  flex: 0 0 34px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
}
.radar-row.is-hot .radar-day { color: #e15858; }
.radar-row > div { flex: 1; min-width: 0; }
.radar-row b { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.radar-row small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7.5px; }
.radar-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff7a7a; box-shadow: 0 0 0 4px #ffeded; }
.radar-dot.dot-blue { background: var(--blue); box-shadow: 0 0 0 4px #eaf1ff; }
.radar-dot.dot-green { background: var(--mint); box-shadow: 0 0 0 4px #e5f9f4; }

.feature-small {
  grid-column: span 4;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.feature-small h3 { font-size: 24px; }

.timer-demo { margin-top: auto; padding-top: 24px; }
.timer-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 76%, #e8eefb 76% 100%);
}
.timer-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fbfcff; }
.timer-ring span { position: relative; z-index: 1; font-size: 24px; font-weight: 800; letter-spacing: -0.05em; }
.timer-ring small { position: absolute; z-index: 1; bottom: 35px; color: var(--muted-2); font-size: 7px; }
.timer-wave { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 22px; margin-top: 14px; }
.timer-wave i { width: 3px; border-radius: 3px; background: #ccd9f2; animation: wave 1.4s ease-in-out infinite; }
.timer-wave i:nth-child(1) { height: 7px; animation-delay: 0s; }
.timer-wave i:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.timer-wave i:nth-child(3) { height: 22px; animation-delay: 0.2s; background: var(--blue); }
.timer-wave i:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.timer-wave i:nth-child(5) { height: 6px; animation-delay: 0.4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

.report-demo { margin-top: auto; padding-top: 25px; }
.report-bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.report-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #8fb6ff 0%, #dce8ff 100%);
}
.report-bars i:nth-child(6) { background: linear-gradient(180deg, #2f6df6 0%, #8fb6ff 100%); }
.report-days { display: flex; gap: 7px; margin-top: 7px; }
.report-days span { flex: 1; text-align: center; color: var(--muted-2); font-size: 7px; }
.report-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.report-foot b { font-size: 13px; }
.report-foot span { color: var(--mint); font-size: 8px; font-weight: 600; }

.devices-demo {
  position: relative;
  flex: 1;
  min-height: 165px;
  margin-top: 24px;
}
.device {
  position: absolute;
  padding: 8px;
  border: 1px solid #e5ebf7;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 45, 92, 0.08);
}
.device span { display: block; padding: 4px 3px 7px; color: var(--ink-3); font-size: 7px; font-weight: 700; }
.device-phone {
  left: 16px;
  top: 16px;
  width: 84px;
  height: 134px;
  border-radius: 16px;
  transform: rotate(-5deg);
}
.device-phone i { display: block; height: 15px; margin-bottom: 5px; border-radius: 5px; background: #eef3ff; }
.device-phone i:nth-child(2) { background: #fff2dd; }
.device-phone i:nth-child(3) { background: #e4f8f2; }
.device-tablet {
  right: 3px;
  top: 4px;
  width: 132px;
  height: 98px;
  border-radius: 12px;
  transform: rotate(4deg);
}
.device-chart { display: flex; align-items: flex-end; gap: 5px; height: 54px; padding: 0 5px; }
.device-chart i { flex: 1; height: 50%; border-radius: 3px 3px 0 0; background: #dce8ff; }
.device-chart i:nth-child(2) { height: 78%; background: #b8d1ff; }
.device-chart i:nth-child(3) { height: 60%; background: #8fb6ff; }
.device-chart i:nth-child(4) { height: 90%; background: var(--blue); }
.sync-badge {
  position: absolute;
  left: 50%;
  bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #e5ebf7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 36, 76, 0.08);
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  transform: translateX(-50%);
  white-space: nowrap;
}
.sync-badge span { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }

.privacy-card {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(500px 260px at 88% 20%, rgba(47, 109, 246, 0.38), transparent 70%),
    linear-gradient(120deg, #0d1730 0%, #111d3b 55%, #142547 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.privacy-card::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -140px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.privacy-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  color: #9ec4ff;
}
.privacy-mark svg { width: 40px; height: 40px; }
.privacy-card > div { position: relative; z-index: 1; }
.privacy-card .tag-light { color: #8fb6ff; margin-bottom: 9px; }
.privacy-card h3 { font-size: 27px; }
.privacy-card p { max-width: 690px; color: rgba(226, 236, 255, 0.63); font-size: 13px; }
.privacy-seal {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-align: right;
}

/* ── Showpiece ────────────────────────────────────────── */
.showpiece {
  overflow: hidden;
  padding: 142px 0;
  color: #fff;
  background:
    radial-gradient(800px 600px at 90% 0%, rgba(47, 109, 246, 0.2), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(62, 207, 178, 0.07), transparent 65%),
    #0b1226;
}
.showpiece::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
}
.showpiece-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 62px;
  align-items: center;
}
.showpiece-copy h2 { color: #fff; }
.showpiece-copy > p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 24px;
  color: rgba(219, 230, 250, 0.62);
  font-size: 15px;
  line-height: 1.9;
}
.check-list { display: grid; gap: 12px; margin-top: 30px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 239, 252, 0.82);
  font-size: 13px;
}
.check-list span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(62, 207, 178, 0.3);
  border-radius: 50%;
  background: rgba(62, 207, 178, 0.1);
  color: var(--mint);
  font-size: 9px;
}

.dashboard-wrap { position: relative; }
.dash-glow {
  position: absolute;
  inset: 12% -8% -12% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(47, 109, 246, 0.35), transparent 65%);
  filter: blur(50px);
}
.dash {
  position: relative;
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: #f6f8fd;
  color: var(--ink);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.03);
  transform: perspective(1600px) rotateY(-2.5deg) rotateX(1deg);
}
.dash-side {
  display: flex;
  flex-direction: column;
  padding: 22px 15px;
  border-right: 1px solid #e5ebf6;
  background: #eef3fc;
}
.dash-logo span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.dash-side nav { display: grid; gap: 3px; margin-top: 30px; }
.dash-side nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 7px;
  color: #8290a8;
  font-size: 9px;
  font-weight: 600;
}
.dash-side nav span.is-active { background: #fff; color: var(--blue); box-shadow: 0 3px 10px rgba(30, 60, 120, 0.06); }
.dash-side nav i { width: 10px; height: 10px; border: 1.4px solid currentColor; border-radius: 3px; }
.dash-side-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; }
.side-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffdcb9;
  color: #8e5520;
  font-size: 8px;
  font-weight: 700;
}
.dash-side-foot b { display: block; font-size: 8px; }
.dash-side-foot small { display: block; color: #93a0b7; font-size: 6.5px; }

.dash-main { padding: 22px 24px 20px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.dash-head p { color: #98a4b9; font-size: 7.5px; }
.dash-head h3 { margin-top: 2px; font-size: 22px; letter-spacing: -0.04em; line-height: 1.2; }
.dash-actions { display: flex; align-items: center; gap: 7px; }
.dash-search {
  display: flex;
  align-items: center;
  width: 105px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e2e9f5;
  border-radius: 8px;
  background: #fff;
  color: #a8b2c4;
  font-size: 7px;
}
.dash-bell {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e2e9f5;
  border-radius: 8px;
  background: #fff;
  color: #7c8aa3;
  font-size: 11px;
}
.dash-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffdcb9;
  color: #8e5520;
  font-size: 8px;
  font-weight: 700;
}

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.dash-stat {
  padding: 11px 12px;
  border: 1px solid #e6ebf6;
  border-radius: 10px;
  background: #fff;
}
.dash-stat > span { display: block; color: #8e9bb1; font-size: 7px; }
.dash-stat strong { display: block; margin-top: 3px; font-size: 20px; line-height: 1.1; letter-spacing: -0.04em; }
.dash-stat strong small { margin-left: 2px; color: #a6b1c3; font-size: 8px; font-weight: 500; }
.dash-stat em {
  display: inline-block;
  margin-top: 4px;
  color: #1b9f86;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 600;
}
.dash-stat em.em-warm { color: #d8922e; }

.dash-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 10px; margin-top: 10px; }
.dash-left,
.dash-right { display: grid; gap: 10px; align-content: start; }
.dash-card {
  padding: 13px;
  border: 1px solid #e6ebf6;
  border-radius: 11px;
  background: #fff;
}
.dash-card-head { display: flex; align-items: center; justify-content: space-between; }
.dash-card-head b { font-size: 9px; }
.dash-card-head span { color: #a4afc1; font-size: 6.5px; }

.subject-bars { display: grid; gap: 9px; margin-top: 13px; }
.subject-bars > div { display: grid; grid-template-columns: 48px 1fr 30px; align-items: center; gap: 7px; }
.subject-bars > div > span { display: flex; align-items: center; gap: 5px; color: #63708a; font-size: 7px; }
.subject-bars > div > span i { width: 5px; height: 5px; border-radius: 50%; }
.subject-bars > div > b { color: #65728b; font-size: 6.5px; text-align: right; font-weight: 600; }
.bar { height: 4px; overflow: hidden; border-radius: 4px; background: #edf1f8; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.bar.bar-english i { background: var(--amber); }
.bar.bar-physics i { background: var(--mint); }
.bar.bar-chinese i { background: var(--purple); }

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 196px;
  margin-top: 13px;
}
.heatmap i {
  height: 21px;
  border-radius: 3px;
  background: #eef2fa;
}
.heatmap i[style*="--v:1"] { background: #dbe7fb; }
.heatmap i[style*="--v:2"] { background: #b9d0f8; }
.heatmap i[style*="--v:3"] { background: #7fa9f2; }
.heatmap i[style*="--v:4"] { background: var(--blue); }
.heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 8px;
  color: #a7b2c5;
  font-size: 5.5px;
}
.heat-legend i { width: 6px; height: 6px; border-radius: 2px; background: #eef2fa; }
.heat-legend i:nth-of-type(2) { background: #cfe0ff; }
.heat-legend i:nth-of-type(3) { background: #8fb6ff; }
.heat-legend i:nth-of-type(4) { background: var(--blue); }
.heat-caption { margin-top: 9px; color: #a4afc1; font-size: 6px; }

.deadline-card { padding-bottom: 9px; }
.deadline-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f9;
}
.deadline-item:last-child { border-bottom: 0; }
.deadline-time { flex: 0 0 35px; color: #a5b0c2; font-size: 5.8px; line-height: 1.5; }
.deadline-time b { color: #68758e; font-size: 7px; }
.deadline-item.is-hot .deadline-time b { color: #e15858; }
.deadline-item > div { flex: 1; min-width: 0; }
.deadline-item b { display: block; overflow: hidden; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.deadline-item small { display: block; margin-top: 1px; color: #a5b0c2; font-size: 6px; }
.deadline-dot { width: 5px; height: 5px; border-radius: 50%; background: #ff7a7a; }
.deadline-dot.dot-blue { background: var(--blue); }
.deadline-dot.dot-green { background: var(--mint); }
.deadline-dot.dot-purple { background: var(--purple); }

.weekly-note {
  color: #fff;
  background:
    radial-gradient(120px 100px at 100% 0%, rgba(255, 255, 255, 0.15), transparent 70%),
    linear-gradient(135deg, #1d50da, #2f6df6 60%, #4f8cff);
  border-color: transparent;
}
.weekly-note-top { display: flex; align-items: center; justify-content: space-between; }
.weekly-note-top span { font-size: 6.5px; opacity: 0.65; }
.weekly-note-top b { padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); font-size: 6.5px; }
.weekly-note p { margin-top: 10px; font-size: 8px; line-height: 1.7; opacity: 0.9; }
.weekly-line { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.weekly-line i { display: block; height: 100%; border-radius: 4px; background: #fff; }
.weekly-note small { display: block; margin-top: 7px; font-size: 5.8px; opacity: 0.55; }

/* ── How ──────────────────────────────────────────────── */
.how { background: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 385px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fbfcff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num {
  color: transparent;
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.2px #cdd8ea;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
}
.step h3 { margin-top: 18px; font-size: 23px; letter-spacing: -0.04em; }
.step > p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.step-visual {
  margin-top: auto;
  padding: 15px;
  border: 1px solid #e7ecf7;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 36, 76, 0.04);
}
.input-line { display: block; padding: 9px 10px; border: 1px dashed #dbe4f3; border-radius: 8px; color: var(--ink-3); font-size: 9px; }
.input-meta { display: flex; gap: 6px; margin-top: 8px; }
.input-meta i { padding: 3px 7px; border-radius: 5px; background: #eef4ff; color: var(--blue); font-size: 7px; font-style: normal; font-weight: 600; }
.input-meta i:last-child { background: #f2f4f8; color: var(--muted); }
.split-visual { display: grid; gap: 5px; }
.mini-step { padding: 7px 9px; border-radius: 6px; background: #f6f8fc; color: var(--muted); font-size: 8px; }
.mini-step.done { color: #16856d; background: #eaf9f4; }
.mini-step.now { color: #fff; background: var(--blue); font-weight: 600; }
.week-visual { display: flex; align-items: flex-end; gap: 12px; }
.week-bars { display: flex; align-items: flex-end; gap: 4px; flex: 1; height: 70px; }
.week-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #cfe0ff; }
.week-bars i:nth-child(6) { background: #8fb6ff; }
.week-bars i:last-child { background: var(--blue); }
.week-label { flex: 0 0 auto; color: var(--muted); font-size: 8px; line-height: 1.5; }
.how-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ── Roles ────────────────────────────────────────────── */
.roles {
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(224, 236, 255, 0.7), transparent 70%),
    #f2f6ff;
}
.roles-shell {
  margin-top: 52px;
  padding: 12px;
  border: 1px solid #dfe7f5;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 60px rgba(30, 58, 112, 0.06);
}
.roles-shell {
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 12px;
}
.role-tabs { display: grid; align-content: start; gap: 7px; padding: 7px; }
.role-tab {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: transparent;
  text-align: left;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.role-tab:hover { background: rgba(255, 255, 255, 0.65); }
.role-tab.is-active {
  border-color: #e0e8f6;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 48, 98, 0.07);
}
.role-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 15px;
}
.role-tab:nth-child(2) .role-emoji { background: var(--amber-soft); color: #b77717; }
.role-tab:nth-child(3) .role-emoji { background: var(--mint-soft); color: #16856d; }
.role-tab b { display: block; font-size: 13px; letter-spacing: -0.01em; }
.role-tab small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }

.role-panels { position: relative; min-height: 470px; }
.role-panel {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 34px;
  height: 100%;
  padding: 32px 34px 32px 22px;
  animation: panelIn 0.5s var(--ease);
}
.role-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.role-kicker { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }
.role-copy h3 {
  margin-top: 11px;
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.role-copy > p:not(.role-kicker) {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
.role-list { display: grid; gap: 8px; margin-top: 20px; }
.role-list li {
  display: flex;
  gap: 9px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}
.role-list span { color: var(--blue); font-size: 9px; font-weight: 700; padding-top: 2px; }

.role-visual {
  padding: 19px;
  border: 1px solid #e4eaf5;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 45px rgba(25, 48, 98, 0.08);
}
.rv-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid #eef2f8; }
.rv-head span { color: var(--muted); font-size: 8px; font-weight: 600; }
.rv-head b { color: var(--blue); font-size: 11px; }
.rv-task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f5fa;
}
.rv-check { width: 15px; height: 15px; border: 1.4px solid #d7e0ef; border-radius: 50%; flex: 0 0 auto; }
.rv-task > div { flex: 1; min-width: 0; }
.rv-task b { display: block; font-size: 9px; }
.rv-task small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7px; }
.rv-task em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.rv-task.is-now { margin: 4px -7px 0; padding: 10px 7px; border-bottom: 0; border-radius: 9px; background: #eef4ff; }
.rv-task.is-now .rv-check { border-color: var(--blue); background: var(--blue); position: relative; }
.rv-task.is-now .rv-check::after { content: ""; position: absolute; left: 4px; top: 3.5px; width: 5px; height: 3px; border-left: 1.4px solid #fff; border-bottom: 1.4px solid #fff; transform: rotate(-45deg); }
.rv-task.is-now b { color: var(--blue-deep); }
.rv-focus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}
.rv-focus-ring {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
}
.rv-focus > div { flex: 1; }
.rv-focus b { display: block; font-size: 8.5px; }
.rv-focus small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.45); font-size: 6.5px; }
.rv-play { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 7px; }

.parent-card { padding: 3px; }
.parent-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #eef2f8; }
.parent-head span { font-size: 9px; font-weight: 700; }
.parent-head small { color: var(--muted-2); font-size: 7px; }
.parent-score { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.parent-score strong { font-size: 34px; line-height: 1; letter-spacing: -0.06em; }
.parent-score strong small { color: var(--muted-2); font-size: 12px; }
.parent-score b { display: block; font-size: 9px; }
.parent-score small { display: block; margin-top: 2px; color: var(--mint); font-size: 7px; }
.parent-bars { display: flex; align-items: flex-end; gap: 5px; height: 78px; margin-top: 15px; padding-bottom: 4px; border-bottom: 1px dashed #e8edf6; }
.parent-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #dbe8ff; }
.parent-bars i:nth-child(5) { background: #b8d1ff; }
.parent-bars i:nth-child(6) { background: var(--blue); }
.parent-note { margin-top: 12px; padding: 10px; border-radius: 10px; background: #f6f8fd; }
.parent-note span { display: block; color: var(--muted-2); font-size: 6.5px; }
.parent-note b { display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 4px; background: #fff; color: var(--blue); font-size: 8px; }
.parent-note small { display: block; margin-top: 5px; color: var(--muted); font-size: 6.5px; }

.teacher-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid #eef2f8; }
.teacher-head b { display: block; font-size: 9.5px; }
.teacher-head small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7px; }
.teacher-head > span { padding: 4px 7px; border-radius: 5px; background: #eef4ff; color: var(--blue); font-size: 7px; font-weight: 600; }
.teacher-progress { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 4px; background: #edf2f9; }
.teacher-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.teacher-grid > div { padding: 9px 7px; border-radius: 8px; background: #f7f9fd; text-align: center; }
.teacher-grid b { display: block; font-size: 13px; letter-spacing: -0.03em; }
.teacher-grid small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 6px; }
.teacher-rows { display: grid; gap: 6px; margin-top: 13px; }
.teacher-rows span { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 7.5px; }
.teacher-rows i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--mint-soft); color: #16856d; font-size: 7px; font-style: normal; font-weight: 700; }
.teacher-rows span.is-warn i { background: #fff0e4; color: #d47921; }

/* ── Beta ─────────────────────────────────────────────── */
.beta {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(255, 184, 77, 0.16), transparent 65%),
    radial-gradient(600px 500px at 0% 100%, rgba(62, 207, 178, 0.08), transparent 65%),
    #0c1429;
}
.beta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -240px;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translateX(-50%);
}
.beta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 70px;
  align-items: center;
}
.beta-copy h2 { color: #fff; max-width: 520px; }
.beta-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin-top: 22px;
  color: rgba(220, 231, 250, 0.65);
  font-size: 15px;
  line-height: 1.9;
}
.beta-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; }
.beta-points span { display: inline-flex; align-items: center; gap: 7px; color: rgba(233, 241, 253, 0.8); font-size: 12px; }
.beta-points i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(62, 207, 178, 0.12);
  color: var(--mint);
  font-size: 8px;
  font-style: normal;
}

.beta-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}
.beta-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.beta-card-head h3 { font-size: 23px; letter-spacing: -0.04em; }
.beta-card-head span { color: var(--muted-2); font-size: 9px; text-align: right; }
.field { margin-bottom: 13px; }
.field label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.field label span { color: var(--muted-2); font-size: 9px; font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #e1e8f4;
  border-radius: 10px;
  background: #f8faff;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field input,
.field select { height: 41px; padding: 0 12px; }
.field textarea { min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #aab5c7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #9dbdff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.1);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; }
.field-hint {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}
.field-hint.is-error { color: #d84f4f; }
.field select.is-invalid {
  border-color: #f0a6a6;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(216, 79, 79, 0.08);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.form-note { margin-top: 10px; color: var(--muted-2); font-size: 9px; line-height: 1.7; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.form-error {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff0f0;
  color: #c23d3d;
  font-size: 10px;
  line-height: 1.6;
}
.form-success {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #c7ece4;
  border-radius: 10px;
  background: var(--mint-soft);
  color: #14745f;
  font-size: 11px;
  line-height: 1.7;
}
.form-success b { color: var(--ink); }
.form-success a { text-decoration: underline; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { background: #fff; }
.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  align-items: start;
}
.faq-intro { position: sticky; top: 120px; }
.faq-intro > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 14px; }
.faq-intro .text-link { margin-top: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 4px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-plus {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.3px;
  border-radius: 2px;
  background: var(--ink-3);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--ink); border-color: var(--ink); transform: rotate(45deg); }
.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after { background: #fff; }
.faq-answer { padding: 0 40px 24px 4px; }
.faq-answer p { color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  padding: 76px 0 26px;
  color: #fff;
  background: #080e1c;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.8fr);
  gap: 40px;
  padding-bottom: 58px;
}
.brand-footer .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.brand-footer .brand-word { font-size: 22px; }
.footer-brand p { margin-top: 20px; color: rgba(232, 239, 252, 0.72); font-size: 15px; line-height: 1.7; }
.footer-tag { display: block; margin-top: 15px; color: rgba(255, 255, 255, 0.3); font-size: 9px; letter-spacing: 0.06em; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { margin-bottom: 8px; color: rgba(255, 255, 255, 0.38); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a,
.footer-col span { color: rgba(232, 239, 252, 0.66); font-size: 12px; transition: color 0.25s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
}
.footer-made { letter-spacing: 0.04em; }
.back-top { color: rgba(255, 255, 255, 0.55); transition: color 0.25s ease; }
.back-top:hover { color: #fff; }

/* ── Reveal animation (only when JS active) ───────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-copy.reveal { transform: translateY(18px); }
.js .hero-copy.reveal.is-visible { transform: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1279px) {
  .float-progress,
  .float-report,
  .visual-note { display: none; }
}

@media (max-width: 1180px) {
  .note-top { right: -6px; }
  .note-bottom { left: -18px; }
  .showpiece-grid { gap: 42px; }
  .dash { transform: none; }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr 0.88fr; gap: 20px; }
  .hero-visual { min-height: 660px; }
  .hero h1 { font-size: clamp(52px, 6.5vw, 76px); }
  .float-progress { left: -34px; top: 32px; }
  .float-report { right: -30px; bottom: 82px; }
  .feature-wide { grid-column: span 12; grid-template-columns: 1fr 1fr; min-height: 340px; }
  .feature-radar { grid-column: span 12; }
  .feature-small { grid-column: span 4; }
  .privacy-card { grid-column: span 12; }
  .showpiece-grid { grid-template-columns: 1fr; gap: 48px; }
  .showpiece-copy { max-width: 640px; }
  .showpiece-copy > p:not(.eyebrow) { max-width: 560px; }
  .dash { max-width: 780px; margin-inline: auto; }
  .roles-shell { grid-template-columns: 250px 1fr; }
  .role-panel { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
  .role-visual { max-width: 360px; }
  .role-panels { min-height: 0; }
  .beta-grid { gap: 44px; }
  .faq-grid { gap: 44px; }
}

@media (max-width: 880px) {
  .container { width: calc(100% - 44px); }
  .section { padding: 96px 0; }
  .nav-links { gap: 22px; }
  .float-progress,
  .float-report,
  .visual-note { display: none; }
  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(56px, 11vw, 88px); }
  .hero-visual { min-height: 690px; margin-top: 10px; }
  .float-progress { left: 4%; }
  .float-report { right: 2%; }
  .note-top { right: 6%; }
  .note-bottom { left: 3%; }
  .metrics { margin-top: 54px; }
  .metrics > div { padding-left: 18px; }
  .metrics dt { font-size: 24px; }
  .metrics dd { font-size: 10.5px; }
  .feature-wide { grid-template-columns: 1fr; }
  .split-demo { max-width: 430px; }
  .feature-small { grid-column: span 6; }
  .privacy-card { flex-wrap: wrap; }
  .privacy-seal { display: none; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { min-height: 0; }
  .step-visual { margin-top: 22px; }
  .roles-shell { grid-template-columns: 1fr; }
  .role-tabs { grid-template-columns: repeat(3, 1fr); }
  .role-tab { flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px; }
  .role-tab small { display: none; }
  .role-panel { padding: 22px 18px 26px; }
  .beta-grid { grid-template-columns: 1fr; gap: 36px; }
  .beta-copy { max-width: 600px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 82px 0; }
  .float-progress,
  .float-report,
  .visual-note { display: none; }
  .site-header { padding: 12px 0; }
  .brand-en { display: none; }
  .nav-links {
    position: fixed;
    inset: 66px 12px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fcfdff;
    box-shadow: 0 24px 60px rgba(18, 34, 70, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.nav-cta) {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f3f9;
    font-size: 15px;
  }
  .nav-links > a:not(.nav-cta)::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 8px; }
  .menu-toggle { display: block; }
  .hero { padding-top: 116px; }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero h1 { font-size: clamp(48px, 14.6vw, 68px); margin-top: 20px; }
  .lede { margin-top: 22px; font-size: 15.5px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 0 18px; }
  .hero-proof { gap: 10px 16px; margin-top: 28px; font-size: 11px; }
  .hero-visual { min-height: 660px; margin-top: 8px; }
  .phone-stage { width: 330px; }
  .phone-screen { height: 620px; }
  .float-progress { left: 0; top: 92px; width: 138px; }
  .float-report { right: 0; bottom: 100px; width: 186px; }
  .note-top { display: none; }
  .note-bottom { left: 0; bottom: 30px; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics > div:nth-child(3),
  .metrics > div:nth-child(4) { padding-top: 4px; }
  .section-head h2,
  .showpiece-copy h2,
  .faq-intro h2,
  .beta-copy h2 { font-size: clamp(36px, 10vw, 48px); }
  .bento { margin-top: 34px; gap: 12px; }
  .bento-card { padding: 24px; border-radius: 24px; }
  .feature-wide { min-height: 0; }
  .feature-wide h3,
  .bento-card h3 { font-size: 23px; }
  .feature-small { grid-column: span 12; min-height: 330px; }
  .privacy-card { gap: 18px; }
  .privacy-mark { width: 56px; height: 56px; border-radius: 16px; }
  .privacy-mark svg { width: 30px; height: 30px; }
  .privacy-card h3 { font-size: 23px; }
  .showpiece { padding: 92px 0; }
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
  .dash-main { padding: 18px; }
  .dash-actions { display: none; }
  .dash-stats { gap: 6px; }
  .dash-stat { padding: 9px; }
  .dash-stat strong { font-size: 17px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-right { grid-template-columns: 1fr 1fr; }
  .roles-shell { padding: 8px; border-radius: 26px; }
  .role-tabs { grid-template-columns: 1fr; }
  .role-tab { flex-direction: row; align-items: center; padding: 11px 12px; }
  .role-tab small { display: block; }
  .role-panel { padding: 18px 6px 14px; }
  .role-copy h3 { font-size: 26px; }
  .role-visual { max-width: 100%; }
  .beta-card { padding: 21px; border-radius: 22px; }
  .beta-card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .beta-card-head span { text-align: left; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-col:last-child { display: flex; grid-column: span 2; }
  .footer-bottom { flex-wrap: wrap; gap: 10px 18px; }
  .footer-made { order: 3; width: 100%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { display: grid; gap: 8px; }
  .hero-visual { min-height: 660px; transform: none; }
  .hero h1 { font-size: 46px; }
  .phone-stage { width: 310px; transform: scale(0.82); transform-origin: center top; }
  .phone-screen { height: 618px; }
  .metrics dt { font-size: 22px; }
  .metrics dd { font-size: 9.5px; }
  .split-demo { padding: 12px; }
  .dash-main { padding: 13px; }
  .dash-head h3 { font-size: 18px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stat:nth-child(3) { display: none; }
  .dash-right { grid-template-columns: 1fr; }
  .step { padding: 21px; }
  .beta-card { padding: 18px; }
  .faq-item summary { padding: 18px 2px; font-size: 14px; }
  .faq-answer { padding-right: 12px; }
}

@media (max-width: 360px) {
  .hero-visual { min-height: 600px; }
  .hero h1 { font-size: 46px; }
  .phone-stage { transform: scale(0.82); }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .phone { animation: none; }
  .hero-blob { animation: none; }
}

/* ── Scenarios: family / class / school ───────────────── */
.scenes {
  background: linear-gradient(180deg, #f6f8ff 0%, #fbfcff 100%);
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}
.scene-card {
  padding: 28px;
  border: 1px solid #e4e9f4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 53, 99, 0.06);
}
.scene-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #2f6df6;
  background: #edf3ff;
  font-size: 20px;
  font-weight: 700;
}
.scene-kicker {
  margin: 18px 0 8px;
  color: #2f6df6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.scene-card h3 {
  margin: 0;
  color: #101a31;
  font-size: 22px;
  line-height: 1.3;
}
.scene-card > p:not(.scene-kicker) {
  margin: 12px 0 18px;
  color: #66738c;
  font-size: 14px;
  line-height: 1.75;
}
.scene-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.scene-card li {
  position: relative;
  padding-left: 18px;
  margin: 9px 0;
  color: #46536c;
  font-size: 13px;
  line-height: 1.55;
}
.scene-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55c8b0;
}
.scene-permission {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #e4e9f4;
  border-radius: 18px;
  background: #e4e9f4;
}
.scene-permission > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  background: #fff;
}
.scene-permission b {
  color: #101a31;
  font-size: 13px;
}
.scene-permission span {
  color: #7b879e;
  font-size: 12px;
}
@media (max-width: 900px) {
  .scene-grid { grid-template-columns: 1fr; }
  .scene-permission { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .scene-card { padding: 22px; }
  .scene-card h3 { font-size: 20px; }
  .scene-permission { grid-template-columns: 1fr; }
}
