/* Shiro UI for the websites: monochrome, Manrope, hairline cards, pill
   buttons. Same tokens as the apps (lib/theme.dart). */

@font-face { font-family: Manrope; src: url(/fonts/Manrope-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --raised: #FBFBFA;
  --line: #E7E7E3;
  --line-strong: #D9D9D4;
  --text: #17181B;
  --muted: #6B6D72;
  --faint: #A3A5AA;
  --accent: #17181B;
  --on-accent: #FFFFFF;
  --soft: #EFEFEC;
  --track: #E9E9E5;
  --header: rgba(246, 246, 244, 0.78);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 60px rgba(17, 18, 20, 0.10), 0 4px 12px rgba(17, 18, 20, 0.04);
  --bezel: #17181B;
  --cta-bg: #17181B; --cta-fg: #FFFFFF; --cta-line: transparent;
  --green: #3BB273;
  --red: #E5484D;
  --green-soft: rgba(59, 178, 115, 0.10);
  --red-soft: rgba(229, 72, 77, 0.09);
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --tk-k: #17181B; --tk-n: #6B6D72; --tk-s: #4A4C51; --tk-f: #17181B; --tk-v: #3A3C42;
  --dots: rgba(23, 24, 27, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0F11; --surface: #16171A; --raised: #1C1D21; --line: #2A2B30; --line-strong: #36373D;
    --text: #F2F2F0; --muted: #9A9CA3; --faint: #6B6D74; --accent: #F2F2F0; --on-accent: #0E0F11;
    --soft: #1F2024; --track: #2A2B30; --header: rgba(14, 15, 17, 0.72);
    --shadow: none; --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
    --bezel: #2A2B30; --cta-bg: #1C1D21; --cta-fg: #F2F2F0; --cta-line: #2A2B30; --green-soft: rgba(59, 178, 115, 0.14); --red-soft: rgba(229, 72, 77, 0.14);
    --tk-k: #F2F2F0; --tk-n: #9A9CA3; --tk-s: #C4C5CA; --tk-f: #F2F2F0; --tk-v: #DADBDE;
    --dots: rgba(242, 242, 240, 0.06);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0F11; --surface: #16171A; --raised: #1C1D21; --line: #2A2B30; --line-strong: #36373D;
  --text: #F2F2F0; --muted: #9A9CA3; --faint: #6B6D74; --accent: #F2F2F0; --on-accent: #0E0F11;
  --soft: #1F2024; --track: #2A2B30; --header: rgba(14, 15, 17, 0.72);
  --shadow: none; --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --bezel: #2A2B30; --cta-bg: #1C1D21; --cta-fg: #F2F2F0; --cta-line: #2A2B30; --green-soft: rgba(59, 178, 115, 0.14); --red-soft: rgba(229, 72, 77, 0.14);
  --tk-k: #F2F2F0; --tk-n: #9A9CA3; --tk-s: #C4C5CA; --tk-f: #F2F2F0; --tk-v: #DADBDE;
  --dots: rgba(242, 242, 240, 0.06);
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 16px/1.6 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.i { width: 1em; height: 1em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
@media (max-width: 600px) { .lead { font-size: 16.5px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 Manrope, system-ui, sans-serif; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out;
}
.btn .i { width: 20px; height: 20px; }
.btn:active { transform: scale(0.98); }
.btn-filled { background: var(--accent); color: var(--on-accent); }
.btn-filled:hover { opacity: 0.88; }
.btn-tonal { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-tonal:hover { border-color: var(--line-strong); background: var(--raised); }
.btn-text { background: transparent; color: var(--text); padding: 0 12px; }
.btn-inverse { background: var(--cta-fg); color: var(--cta-bg); }
.btn-inverse:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--cta-fg); border-color: color-mix(in srgb, var(--cta-fg) 28%, transparent); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--cta-fg) 55%, transparent); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-sm .i { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
  transition: border-color 200ms ease-out;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn .i { width: 20px; height: 20px; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.chip-ink { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  transition: border-color 200ms ease-out;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.top-nav { display: flex; gap: 4px; margin-left: 12px; }
.top-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: color 200ms ease-out, background-color 200ms ease-out;
}
.top-nav a:hover { color: var(--text); background: var(--soft); }
.top-nav a[aria-current] { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-close { display: none; }
.menu[open] .menu-close { display: block; }
.menu[open] .menu-open { display: none; }
.menu-panel {
  position: fixed; left: 12px; right: 12px; top: 72px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; gap: 2px; animation: drop 200ms ease-out;
}
.menu-panel > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; text-decoration: none; font-weight: 700; font-size: 17px; border-radius: 14px; }
.menu-panel > a:hover { background: var(--soft); }
.menu-panel > a .i { color: var(--faint); }
.menu-ctas { display: grid; gap: 8px; padding: 8px 4px 4px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .menu { display: block; }
  .top-row { height: 60px; }
  .menu-panel { top: 64px; }
}
@media (max-width: 480px) { [data-hide-sm] { display: none; } }

/* ------------------------------------------------------------ sections */
.sec { padding: 56px 0; }
.sec-tight { padding: 8px 0 24px; }
.sec-top0 { padding-top: 0; }
@media (min-width: 900px) { .sec { padding: 72px 0; } .sec-tight { padding: 8px 0 24px; } .sec-top0 { padding-top: 0; } }
.sec-head { margin-bottom: 32px; display: grid; gap: 12px; }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.sec-head .lead { font-size: 17px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -0.045em; line-height: 1.02; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .i { color: var(--text); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
}
@media (max-width: 600px) {
  .hero { padding: 28px 0 24px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-art { min-height: 0; margin-top: 8px; }
}

/* floating cards around the phone */
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 18px; box-shadow: var(--shadow-lg); font-size: 13px; z-index: 2;
  animation: bob 6s ease-in-out infinite;
}
.float > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--soft); }
.float .ring { width: 40px; height: 40px; }
.float strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.float span { color: var(--muted); font-weight: 600; }
.f1 { top: 15%; left: calc(50% - 310px); }
.f2 { top: 36%; right: calc(50% - 300px); animation-delay: -2s; }
.f3 { bottom: 16%; left: calc(50% - 300px); animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 1100px) { .f1 { left: -8px; } .f2 { right: -8px; } .f3 { left: 0; } }
@media (max-width: 600px) { .float { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ phone mockup */
.phone {
  width: 300px; height: 612px; border-radius: 48px; padding: 10px; background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06); position: relative; z-index: 1;
}
.phone-screen {
  height: 100%; border-radius: 39px; background: var(--bg); overflow: hidden;
  padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 13px;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 40px; font-weight: 700; font-size: 13px; padding: 0 8px; position: relative; }
.ph-notch { position: absolute; left: 50%; top: 9px; width: 86px; height: 24px; margin-left: -43px; border-radius: 99px; background: var(--bezel); }
.ph-sys { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid var(--text); opacity: 0.8; }
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-top .i { width: 20px; height: 20px; color: var(--muted); }
.ph-top .bar { flex: 1; }
.ph-title { flex: 1; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.ph-count { font-weight: 700; font-size: 12px; color: var(--muted); }
.ph-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.ph-code {
  margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  font: 500 12.5px/1.65 var(--mono); color: var(--text); overflow: hidden; white-space: pre;
}
.tk-k { color: var(--tk-k); font-weight: 700; }
.tk-n { color: var(--tk-n); }
.tk-s { color: var(--tk-s); }
.tk-f { color: var(--tk-f); font-weight: 700; }
.tk-v { color: var(--tk-v); }
.ph-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-opt {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font: 700 13px var(--mono);
}
.ph-opt.is-right { border-color: var(--green); background: var(--green-soft); }
.ph-opt .i { color: var(--green); width: 16px; height: 16px; }
.ph-feedback { margin-top: auto; display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ph-fb-title { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; }
.ph-fb-title .i { color: var(--green); width: 18px; height: 18px; }
.ph-fb-text { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ph-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13.5px;
}
.ph-btn.tonal { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.ph-btn .i { width: 16px; height: 16px; }
.ph-mastery { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ph-m-row { display: flex; justify-content: space-between; font-weight: 700; }
.ph-m-row strong { font-weight: 800; }
.ph-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-chips .chip { height: 24px; font-size: 11px; padding: 0 9px; }
.ph-flash {
  flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ph-front { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.ph-divider { height: 1px; background: var(--line); }
.ph-back { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ph-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.bar { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.bar.thin { height: 4px; }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--track); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; }

/* ------------------------------------------------------------ course strip */
.course-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip-course {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 7px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  font-weight: 700; font-size: 15px; transition: border-color 200ms ease-out, transform 200ms ease-out;
}
.chip-course:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
}
.badge.sm { width: 32px; height: 32px; border-radius: 999px; font-size: 11.5px; }
.badge.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }

/* ------------------------------------------------------------ steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px; display: grid; gap: 10px; align-content: start; }
.step-n { position: absolute; top: 22px; right: 24px; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--track); line-height: 1; }
.step-icon, .feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--soft); border: 1px solid var(--line); margin-bottom: 8px;
}
.step-icon .i, .feature-icon .i { width: 24px; height: 24px; }
.step h3, .feature h3 { font-size: 20px; letter-spacing: -0.02em; }
.step p, .feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ------------------------------------------------------------ split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-copy { order: 2; }
}
.split-copy { display: grid; gap: 4px; justify-items: start; }
.split-copy .sec-head { margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks .i { width: 22px; height: 22px; color: var(--text); margin-top: 2px; }
.ticks strong { color: var(--text); }
.split-art { display: grid; justify-items: center; }
.art-stack { gap: 16px; }
.art-stack > .card { width: 100%; max-width: 480px; }
@media (min-width: 900px) {
  .art-stack { position: relative; }
  .art-stack > .card:last-child { width: 78%; justify-self: end; margin-top: -40px; box-shadow: var(--shadow-lg); }
}

/* unit mock */
.unit-mock { width: 100%; max-width: 480px; padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow-lg); }
.um-head { display: flex; gap: 16px; align-items: center; }
.um-head h3 { font-size: 22px; }
.um-ring { position: relative; width: 56px; height: 56px; flex: none; }
.um-ring .ring { width: 56px; height: 56px; }
.um-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.um-rows { display: grid; gap: 8px; }
.um-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px;
}
.um-row.is-current { background: var(--surface); border-color: var(--accent); }
.um-row.is-locked { color: var(--faint); }
.um-quiz { grid-template-columns: 1fr auto; }
.um-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.um-title .i { width: 18px; height: 18px; }
.um-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.um-row.is-locked .um-step { color: var(--faint); }
.um-step .i { width: 18px; height: 18px; }
.st-done { color: var(--text); }
.st-now { color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 3px; }
.st-lock { color: var(--faint); }
@media (max-width: 420px) { .um-row { grid-template-columns: 1fr auto; } .um-row .um-step:nth-child(2) { display: none; } }

/* editor + review mocks */
.editor-mock { padding: 0; overflow: hidden; }
.ed-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--raised); }
.ed-dots { display: flex; gap: 6px; }
.ed-dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--track); }
.ed-name { font: 600 13px var(--mono); color: var(--muted); }
.ed-run { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 12.5px; }
.ed-code { border: 0; border-radius: 0; font-size: 13px; padding: 18px; overflow-x: auto; }
.ed-tests { display: flex; gap: 8px; padding: 0 18px 18px; flex-wrap: wrap; }
.ed-test { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green-soft); }
.ed-test .i { color: var(--green); }
.review-mock { padding: 20px; display: grid; gap: 12px; }
.rv-row { display: flex; justify-content: space-between; align-items: baseline; }
.rv-k { font-weight: 700; }
.rv-v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.rv-bars { display: flex; align-items: flex-end; gap: 10px; height: 100px; }
.rv-bar { flex: 1; display: grid; justify-items: center; gap: 6px; }
.rv-bar i { display: block; width: 100%; border-radius: 8px; background: var(--track); }
.rv-bar:last-child i { background: var(--accent); }
.rv-bar span { font-size: 11px; font-weight: 700; color: var(--muted); }

/* study mocks */
.upload-mock { width: 100%; max-width: 480px; padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.up-row { display: flex; gap: 14px; align-items: center; }
.up-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); flex: none; }
.up-icon .i { width: 22px; height: 22px; }
.up-body { flex: 1; display: grid; gap: 8px; min-width: 0; }
.up-line { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14px; }
.up-line span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-done { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: var(--raised); border: 1px dashed var(--line-strong); font-size: 14px; color: var(--muted); }
.up-done strong { color: var(--text); }
.up-done .i { width: 20px; height: 20px; color: var(--text); }
.practice-mock { padding: 22px; display: grid; gap: 14px; }
.pm-q { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.pm-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-item { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.pm-item.ok { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); background: var(--green-soft); }
.pm-item.ok .i { color: var(--green); }
.pm-item.miss { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); background: var(--red-soft); }
.pm-item.miss .i { color: var(--red); }
.session-mock { padding: 20px; display: grid; gap: 12px; }
.sm-bars { display: flex; align-items: flex-end; gap: 14px; height: 110px; }
.sm-bar { flex: 1; display: grid; justify-items: center; gap: 4px; position: relative; }
.sm-bar i { display: block; width: 100%; border-radius: 10px; background: var(--track); }
.sm-bar:last-child i { background: var(--accent); }
.sm-bar span { font-size: 11px; font-weight: 700; color: var(--muted); }
.sm-bar b { position: absolute; top: -20px; font-size: 12px; }
.langs { padding: 28px; display: grid; gap: 22px; }
.langs-copy { display: flex; gap: 16px; align-items: flex-start; }
.langs-copy h2 { font-size: 24px; margin-bottom: 4px; }
.langs-copy .feature-icon { margin: 0; }
.langs-list { display: flex; flex-wrap: wrap; gap: 8px; }
.langs-list .chip { height: 36px; font-size: 14px; padding: 0 14px; }
@media (min-width: 900px) { .langs { grid-template-columns: 0.8fr 1.2fr; align-items: center; padding: 36px; } }

/* ------------------------------------------------------------ features */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .features.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px; display: grid; gap: 8px; align-content: start; transition: border-color 200ms ease-out, transform 200ms ease-out; }
.feature:hover { border-color: var(--line-strong); }
.cols-4 .feature h3 { font-size: 18px; }
.cols-4 .feature p { font-size: 14.5px; }

/* ------------------------------------------------------------ stats */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); overflow: hidden;
}
.stats > div { padding: 28px 24px; display: grid; gap: 4px; border-color: var(--line); border-style: solid; border-width: 0; }
.stats > div:nth-child(odd) { border-right-width: 1px; }
.stats > div:nth-child(-n+2) { border-bottom-width: 1px; }
.stats strong { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stats span { color: var(--muted); font-weight: 600; }
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { border-width: 0 1px 0 0 !important; padding: 36px 32px; }
  .stats > div:last-child { border-right-width: 0 !important; }
}

/* ------------------------------------------------------------ courses */
.course-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; text-decoration: none;
  transition: border-color 200ms ease-out, transform 200ms ease-out;
}
.course-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cc-body h3 { font-size: 20px; margin-bottom: 4px; }
.cc-body p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.cc-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cc-meta .i { width: 18px; height: 18px; color: var(--text); transition: transform 200ms ease-out; }
.course-card:hover .cc-meta .i { transform: translateX(3px); }

.page-hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .page-hero { padding: 72px 0 64px; } }
.page-hero .wrap { display: grid; gap: 18px; justify-items: start; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.04em; line-height: 1.05; }
.page-hero .meta { font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .page-hero { padding: 32px 0 28px; } .page-hero .hero-ctas .btn { flex: 1 1 100%; } .page-hero .hero-ctas { width: 100%; } }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.back:hover { color: var(--text); }
.course-hero-grid { display: grid !important; gap: 32px; align-items: end; }
.course-hero-grid > div:first-child { display: grid; gap: 18px; justify-items: start; }
.course-title { display: flex; align-items: center; gap: 18px; }
.course-title .label { margin-bottom: 4px; }
.course-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 8px; width: 100%; }
.course-facts > div { padding: 16px; display: grid; gap: 4px; }
.course-facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.course-facts dd { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
@media (min-width: 960px) { .course-hero-grid { grid-template-columns: 1fr 380px; } }
.course-body { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .course-body { grid-template-columns: 1fr 340px; } .course-side { position: sticky; top: 92px; } }
.units { display: grid; gap: 16px; }
.unit { padding: 24px; display: grid; gap: 18px; }
.unit-head { display: flex; gap: 16px; align-items: flex-start; }
.unit-head h2 { font-size: 22px; margin: 2px 0 4px; }
.unit-head .muted { font-size: 15px; }
.unit-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; flex: none; }
.unit-n .i { width: 22px; height: 22px; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 640px) { .topics { grid-template-columns: 1fr 1fr; } }
.topics li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.topics .i { width: 18px; height: 18px; color: var(--muted); }
.topics .topic-extra { background: transparent; border-style: dashed; color: var(--muted); }
.unit-exam { background: var(--raised); }
.side-card { padding: 24px; display: grid; gap: 18px; }
.side-card h2 { font-size: 20px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-list li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.side-list strong { color: var(--text); }
.side-list .i { width: 20px; height: 20px; color: var(--text); margin-top: 2px; }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  position: relative; overflow: hidden; display: grid; gap: 28px; padding: 40px 28px; border-radius: 28px;
  background: var(--cta-bg); color: var(--cta-fg); border: 1px solid var(--cta-line);
}
.cta-band::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cta-fg) 14%, transparent);
  box-shadow: 0 0 0 48px color-mix(in srgb, var(--cta-fg) 3%, transparent), 0 0 0 96px color-mix(in srgb, var(--cta-fg) 2%, transparent);
  pointer-events: none;
}
.cta-copy { display: grid; gap: 10px; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; }
.cta-band p { opacity: 0.72; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 56px; } }
@media (max-width: 600px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ prose, faq */
.prose-sec { padding: 0 0 72px; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 8px; }
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose a, .faq-a a, .page-hero .lead a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; font-weight: 700; color: var(--text); }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; margin-bottom: 10px; transition: border-color 200ms ease-out; }
.faq[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--muted); transition: transform 200ms ease-out; }
.faq[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); line-height: 1.7; }

/* ------------------------------------------------------------ status (verify, 404) */
.center-sec { padding: 72px 0 96px; min-height: 62vh; display: grid; align-items: center; }
.status-card { max-width: 520px; margin: 0 auto; padding: 40px 32px; text-align: center; }
.status { display: grid; gap: 12px; justify-items: center; }
.status h1 { font-size: 28px; letter-spacing: -0.03em; }
.status p { color: var(--muted); }
.status-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 8px; }
.status-icon .i { width: 34px; height: 34px; }
.status-icon.ok .i { color: var(--green); }
.status-icon.bad .i { color: var(--red); }
.status-icon.spin .i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
@media (max-width: 600px) { .status-card { padding: 32px 20px; } .status-actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ shared set */
.share-grid { display: grid !important; gap: 32px; align-items: center; }
.share-grid > div:first-child { display: grid; gap: 18px; justify-items: start; }
@media (min-width: 960px) { .share-grid { grid-template-columns: 1.1fr 0.9fr; } }
.share-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-counts li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.share-counts strong { color: var(--text); font-weight: 800; }
.share-cover { overflow: hidden; padding: 0; }
.share-cover img { width: 100%; height: auto; }
.share-body { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .share-body { grid-template-columns: 1fr 360px; } }
.h-sub { font-size: 22px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.h-sub .muted { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.flash-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .flash-grid { grid-template-columns: 1fr 1fr; } }
.flash { padding: 0; cursor: pointer; transition: border-color 200ms ease-out; }
.flash:hover, .flash[open] { border-color: var(--line-strong); }
.flash summary { list-style: none; padding: 20px; display: grid; gap: 8px; }
.flash summary::-webkit-details-marker { display: none; }
.flash summary p { font-weight: 800; font-size: 17px; letter-spacing: -0.015em; line-height: 1.4; }
.flash-back { padding: 16px 20px 20px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }
.flash-back p { color: var(--muted); }
.share-notes { padding: 24px; }
.share-notes ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); font-weight: 600; }
.share-notes li::marker { color: var(--faint); font-weight: 700; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 56px 0 28px; background: var(--surface); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 340px; }
.foot-brand p { color: var(--muted); font-size: 15px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 4px; }
.foot-col a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: 13.5px; }
.foot-mono { font-family: var(--mono); font-size: 12.5px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* ------------------------------------------------------------ phones: denser cards */
@media (max-width: 639px) {
  .feature, .step { grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; padding: 20px; }
  .feature .feature-icon, .step .step-icon { grid-row: span 2; margin: 0; }
  .feature h3, .step h3 { font-size: 18px; align-self: end; }
  .step-n { top: 16px; right: 18px; font-size: 32px; }
  .course-strip {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px; scroll-snap-type: x proximity;
  }
  .course-strip::-webkit-scrollbar { display: none; }
  .chip-course { flex: none; scroll-snap-align: start; }
  .sec { padding: 44px 0; }
}

.foot-base::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }
@media (max-width: 600px) { .foot-base::before { left: 16px; right: 16px; } }

/* shared set without its own picture: a little stack of cards */
.share-stack { position: relative; height: 340px; width: 100%; justify-self: stretch; }
.share-stack .stack-card {
  position: absolute; left: 0; right: 0; top: 40px; margin: 0 auto; width: min(100%, 400px); min-height: 250px; padding: 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start;
}
.share-stack .stack-card:nth-child(1) { transform: rotate(-6deg) translate(-18px, 10px); background: var(--raised); }
.share-stack .stack-card:nth-child(2) { transform: rotate(4deg) translate(14px, -4px); background: var(--raised); }
.share-stack .stack-card:nth-child(3) { box-shadow: var(--shadow-lg); }
.stack-card .ph-front { font-size: 22px; }
.stack-card .ph-back { font-size: 15.5px; }
@media (max-width: 959px) { .share-stack { display: none; } }
