/* Ping My Lab · learn.pingmylab.in
   One stylesheet for every page. Brand tokens match pingmylab.in and the course emails. */

:root {
  --bg: #07101F;
  --bg-2: #0B1A33;
  --bg-3: #12264A;
  --line: rgba(167, 177, 196, .16);
  --line-2: rgba(167, 177, 196, .30);
  --ink: #EEF3FF;
  --ink-2: #B6C2D6;
  --ink-3: #8592A8;
  --teal: #05D0C8;
  --teal-d: #0E7490;
  --amber: #F5A020;
  --amber-2: #FFB547;
  --on-amber: #050B18;
  --ok: #34D399;
  --err: #FF5B7F;
  --r-s: 8px;
  --r: 14px;
  --r-l: 20px;
  --f-head: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-body: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.35rem + 3.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.028em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--ink); font-weight: 600; }
a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #5FF0E8; }
ul, ol { margin: 0; padding: 0; }
code, kbd, .mono { font-family: var(--f-mono); font-size: .9em; }
code { color: var(--ink); background: rgba(5, 208, 200, .08); border: 1px solid rgba(5, 208, 200, .18); border-radius: 5px; padding: .05em .35em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: rgba(5, 208, 200, .35); color: #fff; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); font-weight: 700; padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }
mark.todo { background: rgba(245, 160, 32, .16); color: var(--amber-2); border: 1px dashed rgba(245, 160, 32, .6); border-radius: 4px; padding: 0 .3em; font-family: var(--f-mono); font-size: .88em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 + p { margin-top: 12px; font-size: 1.06rem; }
.kicker { display: inline-block; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; line-height: 1.55; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 16, 31, .86); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .ping { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: var(--r-s); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta { color: var(--teal); border: 1px solid rgba(5, 208, 200, .45); }
.nav .nav-cta:hover { color: var(--ink); border-color: var(--teal); background: rgba(5, 208, 200, .08); }
@media (max-width: 520px) {
  .nav .nav-wide { display: none; }
  .brand { font-size: 1.1rem; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent; font-family: var(--f-head); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; text-align: center; }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-2); color: var(--on-amber); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--teal); background: rgba(5, 208, 200, .06); }
.btn-teal { background: var(--teal); color: var(--on-amber); }
.btn-teal:hover { background: #3FE6DF; color: var(--on-amber); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .6; transform: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: #5FF0E8; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(167, 177, 196, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 177, 196, .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; background: radial-gradient(closest-side, rgba(5, 208, 200, .16), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero + .section { padding-top: clamp(28px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-3); }
.tagline { font-family: var(--f-head); font-weight: 700; color: var(--ink-2); letter-spacing: -0.005em; }
.tagline span { color: var(--amber); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- terminal (home hero) ---------- */
.term { background: #050B16; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 30px 80px -30px rgba(5, 208, 200, .25), 0 0 0 1px rgba(5, 208, 200, .06) inset; overflow: hidden; font-family: var(--f-mono); font-size: .86rem; line-height: 1.7; color: var(--ink-2); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: .78rem; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3954; display: block; }
.term-bar span { margin-left: 8px; }
.term-body { padding: 16px 18px 18px; }
.term .prompt { color: var(--teal); }
.term .cmd { color: var(--ink); }
.term table { width: 100%; border-collapse: collapse; margin: 10px 0 12px; }
.term th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 2px 14px 4px 0; white-space: nowrap; }
.term td { padding: 3px 14px 3px 0; vertical-align: top; color: var(--ink); white-space: nowrap; }
.term td.st-open { color: var(--ok); }
.term td.st-wait { color: var(--amber); }
.term .cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--teal); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term .out { color: var(--ink-3); }
@media (max-width: 560px) {
  .term { font-size: .78rem; }
  .term-body { padding: 14px 14px 16px; }
}

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .02em; line-height: 1; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-open { color: var(--ok); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .07); }
.chip-wait { color: var(--amber); border-color: rgba(245, 160, 32, .45); background: rgba(245, 160, 32, .07); }
.chip-closed { color: var(--ink-3); }
.chip-live { color: var(--err); border-color: rgba(255, 91, 127, .5); background: rgba(255, 91, 127, .08); }

/* ---------- batch cards (home) ---------- */
.batches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.batch-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg-2), rgba(11, 26, 51, .55)); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: clamp(22px, 3vw, 30px); }
.batch-card.is-open { border-color: rgba(5, 208, 200, .45); }
.batch-card .bc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.batch-card .vendor { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); }
.batch-card h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px; }
.batch-card .bc-sub { color: var(--ink-2); margin-bottom: 18px; }
.bc-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; margin: 0 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bc-facts div { min-width: 0; }
.bc-facts dt { font-size: .8rem; color: var(--ink-3); }
.bc-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; font-size: .95rem; }
.bc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.bc-price .now { font-family: var(--f-head); font-weight: 800; font-size: 1.9rem; color: var(--ink); letter-spacing: -0.02em; }
.bc-price s { color: var(--ink-3); font-size: 1.05rem; }
.bc-note { font-size: .9rem; color: var(--ink-3); margin-bottom: 22px; }
.batch-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 800px) {
  .batches { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); font-family: var(--f-mono); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 48px; right: -16px; height: 1px; background: linear-gradient(90deg, rgba(5, 208, 200, .5), transparent); }
.steps h3 { margin-bottom: 8px; }
@media (max-width: 800px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps li { padding: 0 0 0 54px; }
  .steps li:not(:last-child)::after { top: 44px; bottom: -14px; left: 18px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(5, 208, 200, .5), transparent); }
}

/* ---------- course links (home) ---------- */
.course-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.course-col { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: rgba(11, 26, 51, .35); }
.course-col h3 { margin-bottom: 4px; }
.course-col > p { color: var(--ink-3); font-size: .92rem; margin-bottom: 14px; }
.link-list { list-style: none; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--teal); }
.link-list .meta { color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
@media (max-width: 800px) {
  .course-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- batch page ---------- */
.batch-hero .hero-grid { align-items: start; grid-template-areas: "intro price" "free price"; grid-template-rows: auto 1fr; row-gap: 30px; }
.batch-hero .facts { margin-bottom: 0; }
.batch-hero .intro { grid-area: intro; }
.batch-hero .price-card { grid-area: price; }
.batch-hero .free-class { grid-area: free; align-self: start; margin-top: 0; }
@media (max-width: 900px) {
  .batch-hero .hero-grid { grid-template-areas: "intro" "price" "free"; row-gap: 28px; }
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0 0 30px; max-width: 560px; }
.facts div { min-width: 0; border-left: 2px solid var(--teal-d); padding-left: 12px; }
.facts dt { font-size: .82rem; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.price-card { background: linear-gradient(180deg, var(--bg-2), #091629); border: 1px solid rgba(245, 160, 32, .35); border-radius: var(--r-l); padding: clamp(22px, 3vw, 30px); box-shadow: 0 30px 70px -35px rgba(245, 160, 32, .28); }
.price-card .pc-label { font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.price-row .now { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.price-row s { color: var(--ink-3); font-size: 1.2rem; }
.pc-deadline { color: var(--amber-2); font-weight: 500; margin-bottom: 4px; }
.pc-lines { list-style: none; margin: 16px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.pc-lines li { position: relative; padding-left: 22px; }
.pc-lines li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pc-seats { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); margin-top: 12px; }
.pc-foot { margin-top: 14px; font-size: .88rem; color: var(--ink-3); }

.free-class { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 18px 20px; max-width: 620px; }
.free-class .date { font-family: var(--f-mono); text-align: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; min-width: 64px; line-height: 1.2; }
.free-class .date b { display: block; font-size: 1.5rem; font-family: var(--f-head); color: var(--ink); }
.free-class .date span { font-size: .75rem; color: var(--ink-3); }
.free-class h2 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 4px; }
.free-class p { font-size: .93rem; margin-bottom: 8px; }
.h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.01em; }
.learn-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.learn-head .section-head { margin-bottom: 0; }
.learn-head .rules { margin: 0; max-width: none; }
@media (max-width: 900px) {
  .learn-head { grid-template-columns: minmax(0, 1fr); }
}
.sched-foot { margin-top: 14px; }
.ticks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
@media (max-width: 700px) {
  .ticks.two-col { grid-template-columns: minmax(0, 1fr); }
}

/* rulebase visual */
.rules { margin: 30px 0 0; border: 1px solid var(--line-2); border-radius: var(--r); background: #050B16; overflow: hidden; max-width: 620px; }
.rules-head { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }
.rules table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .82rem; }
.rules th { text-align: left; color: var(--ink-3); font-weight: 500; padding: 9px 12px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rules td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.rules tr:last-child td { border-bottom: 0; }
.rules td.no { color: var(--ink-3); width: 1%; }
.rules .act { font-weight: 700; text-align: right; width: 1%; white-space: nowrap; }
.rules .allow { color: var(--ok); }
.rules .deny { color: var(--err); }
.rules .zone { color: var(--ink-3); font-size: .76rem; display: block; margin-top: 2px; }
@media (max-width: 560px) {
  .rules thead { display: none; }
  .rules table, .rules tbody { display: block; }
  .rules tr { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "no app act" "no where act"; column-gap: 10px; row-gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .rules tr:last-child { border-bottom: 0; }
  .rules td { display: block; padding: 0; border: 0; }
  .rules td.no { grid-area: no; width: auto; }
  .rules td:nth-child(2) { grid-area: app; }
  .rules td:nth-child(3) { grid-area: where; color: var(--ink-3); font-size: .76rem; }
  .rules td.act { grid-area: act; align-self: center; width: auto; }
}
.rules-cap { padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); font-family: var(--f-body); }

/* chapters */
.chapters { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.chapter .when { font-family: var(--f-mono); font-size: .86rem; color: var(--teal); }
.chapter .when b { display: block; color: var(--ink-3); font-weight: 500; }
.chapter h3 { margin-bottom: 6px; }
.chapter p { margin: 0; }
.chapter .labs { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chapters-note { margin-top: 18px; font-size: .95rem; }
@media (max-width: 760px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .chapter .labs { justify-self: start; margin-top: 6px; }
}

/* schedule strip */
.sched-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dl-plain { display: grid; gap: 14px; margin: 0; }
.dl-plain div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dl-plain dt { color: var(--ink-3); font-size: .92rem; }
.dl-plain dd { margin: 0; color: var(--ink); }
.class-dates { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.class-dates li { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 10px 9px; font-family: var(--f-mono); line-height: 1.25; background: rgba(11, 26, 51, .4); }
.class-dates .n { font-size: .72rem; color: var(--ink-3); display: block; margin-bottom: 4px; }
.class-dates .d { color: var(--ink); font-size: .9rem; font-weight: 500; display: block; }
.class-dates .w { color: var(--ink-3); font-size: .74rem; }
.class-dates li.gap { border-style: dashed; background: transparent; }
@media (max-width: 900px) {
  .sched-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .class-dates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-plain div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* fit lists */
.fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fit { border-top: 2px solid var(--teal); padding-top: 16px; }
.fit.need { border-top-color: var(--ink-3); }
.fit.not { border-top-color: var(--err); }
.fit h3 { margin-bottom: 12px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.fit.need .ticks li::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--ink-3); transform: none; top: .55em; left: 2px; }
.fit.not .ticks li::before { width: 12px; height: 2px; border: 0; background: var(--err); transform: none; top: .8em; }
@media (max-width: 900px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
}

/* what's included */
.incl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.incl-grid h3 { margin-bottom: 14px; }
.kit { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.kit li { padding: 14px 0; border-top: 1px solid var(--line); }
.kit b { display: block; font-family: var(--f-head); color: var(--ink); margin-bottom: 2px; }
.kit span { font-size: .93rem; }
@media (max-width: 900px) {
  .incl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .kit { grid-template-columns: minmax(0, 1fr); }
}

/* labs: two platforms */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel { border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; background: rgba(11, 26, 51, .45); }
.panel .tag { display: inline-block; font-family: var(--f-mono); font-size: .78rem; color: var(--ok); margin-bottom: 10px; }
.panel.lic .tag { color: var(--amber); }
.panel h3 { margin-bottom: 10px; }
.panel p { font-size: .96rem; }
.split-note { margin-top: 18px; font-size: .95rem; color: var(--ink-3); }
@media (max-width: 800px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* fee & policy list */
.terms-list { margin: 0; border-top: 1px solid var(--line); }
.terms-list div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms-list dt { color: var(--ink); font-family: var(--f-head); font-weight: 700; }
.terms-list dd { margin: 0; }
@media (max-width: 640px) {
  .terms-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-family: var(--f-head); font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--teal); font-size: 1.2rem; line-height: 1.2; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--teal); }
.faq .ans { padding: 0 0 20px; max-width: 70ch; }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkout-sum h2 { margin-bottom: 14px; }
.after-pay { list-style: none; counter-reset: ap; display: grid; gap: 14px; margin-top: 22px; }
.after-pay li { counter-increment: ap; position: relative; padding-left: 40px; }
.after-pay li::before { content: counter(ap); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--teal); color: var(--teal); font-family: var(--f-mono); font-size: .8rem; display: grid; place-items: center; }
.form-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: clamp(20px, 3vw, 28px); }
.form-card h3 { margin-bottom: 4px; }
.form-card .fc-price { color: var(--ink-2); margin-bottom: 18px; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #06101F; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: #5D6A80; }
.field input:hover { border-color: rgba(167, 177, 196, .45); }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 208, 200, .2); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field .hint { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.field .err { font-size: .87rem; color: var(--err); margin-top: 6px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin: 6px 0 18px; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.check.is-invalid { color: var(--err); }
.status { margin-top: 14px; font-size: .94rem; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink-2); }
.status:empty { display: none; }
.status.is-error { border-color: rgba(255, 91, 127, .5); background: rgba(255, 91, 127, .07); color: #FFD3DD; }
.status.is-ok { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .07); color: #CFF7E6; }
.status.is-busy { border-color: rgba(5, 208, 200, .4); }
.status p { margin: 0 0 8px; }
.status p:last-child { margin: 0; }
.status .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.status .actions .btn { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.status code { word-break: break-all; }
.pay-foot { margin-top: 14px; font-size: .86rem; color: var(--ink-3); }
.notice { border: 1px solid rgba(245, 160, 32, .45); background: rgba(245, 160, 32, .07); border-radius: var(--r); padding: 18px 20px; }
.notice h3 { margin-bottom: 6px; }
.notice p { margin-bottom: 14px; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
}

/* mobile sticky call to action */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 16, 31, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); visibility: hidden; transform: translateY(110%); transition: transform .2s ease, visibility 0s linear .2s; }
.mobile-cta .mc-price { font-family: var(--f-head); font-weight: 800; color: var(--ink); font-size: 1.15rem; line-height: 1.15; }
.mobile-cta .mc-price small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .75rem; color: var(--ink-3); }
.mobile-cta .btn { min-height: 44px; padding: 10px 18px; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  .mobile-cta.is-on { visibility: visible; transform: none; transition: transform .2s ease, visibility 0s; }
}

.disclaimer { font-size: .85rem; color: var(--ink-3); max-width: 80ch; margin: 8px 0 48px; }

/* ---------- portal ---------- */
.portal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 30px; }
.portal-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); }
.portal-head p { margin: 6px 0 0; }
.batch-panel { border: 1px solid var(--line-2); border-radius: var(--r-l); background: rgba(11, 26, 51, .45); padding: clamp(18px, 3vw, 30px); margin-bottom: 28px; }
.bp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 18px; margin-bottom: 4px; }
.bp-head h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
.bp-sched { color: var(--ink-2); margin: 4px 0 22px; }
.next-class { border: 1px solid rgba(5, 208, 200, .45); background: linear-gradient(135deg, rgba(5, 208, 200, .10), rgba(5, 208, 200, .02)); border-radius: var(--r); padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin-bottom: 28px; }
.next-class.is-live { border-color: rgba(255, 91, 127, .55); background: linear-gradient(135deg, rgba(255, 91, 127, .12), rgba(255, 91, 127, .02)); }
.next-class .nc-label { font-family: var(--f-mono); font-size: .8rem; color: var(--teal); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.next-class.is-live .nc-label { color: var(--err); }
.next-class h3 { font-size: 1.25rem; margin-bottom: 4px; }
.next-class .nc-when { color: var(--ink); font-weight: 500; }
.next-class .nc-local { color: var(--ink-3); font-size: .88rem; margin-top: 2px; }
.next-class .nc-meet { color: var(--ink-3); font-size: .9rem; max-width: 280px; }
@media (max-width: 700px) {
  .next-class { grid-template-columns: minmax(0, 1fr); }
  .next-class .btn { width: 100%; }
}
.bp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 40px; }
.bp-grid h3 { font-size: 1rem; margin-bottom: 10px; }
.bp-col { display: grid; gap: 28px; align-content: start; }
.class-list { list-style: none; border-top: 1px solid var(--line); }
.class-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.class-row .cr-no { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-3); }
.class-row .cr-title { color: var(--ink); display: block; line-height: 1.4; }
.class-row .cr-when { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); }
.class-row .cr-state { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); white-space: nowrap; }
.class-row.is-done .cr-title { color: var(--ink-2); }
.class-row.is-next, .class-row.is-live { background: rgba(5, 208, 200, .06); box-shadow: inset 3px 0 0 var(--teal); padding-left: 10px; margin-left: -10px; padding-right: 10px; margin-right: -10px; border-radius: 4px; }
.class-row.is-next .cr-state { color: var(--teal); }
.class-row.is-live .cr-state { color: var(--err); }
.res-list { list-style: none; border-top: 1px solid var(--line); }
.res-list li { border-bottom: 1px solid var(--line); }
.res-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--ink); }
.res-list a:hover { color: var(--teal); }
.res-list .meta { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.empty { color: var(--ink-3); font-size: .93rem; padding: 12px 0; border-top: 1px solid var(--line); }
.support-box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: .95rem; }
@media (max-width: 860px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); }
}
.login-card { max-width: 560px; }
.login-card h1 { margin-bottom: 14px; }
.login-card .lead { margin-bottom: 24px; }
.login-card form .btn { margin-top: 2px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- legal pages ---------- */
.legal-head { padding: clamp(40px, 6vw, 72px) 0 28px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 12px; }
.legal-head p { margin: 0; }
.legal { padding: 36px 0 72px; }
.legal .summary { border: 1px solid rgba(5, 208, 200, .35); background: rgba(5, 208, 200, .05); border-radius: var(--r); padding: 20px 22px; margin-bottom: 36px; }
.legal .summary h2 { font-size: 1.05rem; margin: 0 0 10px; }
.legal .summary ul { list-style: none; display: grid; gap: 8px; }
.legal .summary li { position: relative; padding-left: 20px; }
.legal .summary li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; scroll-margin-top: 90px; }
.legal h2 .num { font-family: var(--f-mono); font-size: .85rem; color: var(--teal); margin-right: 10px; font-weight: 500; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 8px; }
.legal p, .legal li { max-width: 72ch; }
.legal ul.bullets, .legal ol.alpha { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal ol.alpha { list-style: lower-alpha; }
.legal .contact-lines { list-style: none; display: grid; gap: 6px; margin-bottom: 1em; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 8px 0 32px; }
.contact-card { border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; background: rgba(11, 26, 51, .45); }
.contact-card h2 { font-size: 1rem; margin: 0 0 6px; color: var(--ink-2); font-family: var(--f-body); font-weight: 500; }
.contact-card .big { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-card .big:hover { color: var(--teal); }
.contact-card p { margin: 8px 0 0; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 404 ---------- */
.notfound { padding: clamp(60px, 10vw, 120px) 0; }
.notfound .term { max-width: 560px; margin-bottom: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #050C18; padding: 56px 0 32px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin: 12px 0 0; color: var(--ink-3); max-width: 300px; }
.foot-col h2 { font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--teal); text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-3); font-size: .84rem; }
.foot-bottom p { margin: 0; max-width: 90ch; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .term .cursor { animation: none; }
}
