/* ---- Палитра в стиле VS Code ---- */
:root {
  --accent: #007acc;              /* акцент VS Code */
  --link: #9cdcfe;                 /* ссылки в тёмной теме */
  --bg: #1e1e1e;
  --bg-soft: #252526;
  --fg: #d4d4d4;
  --muted: #858585;
  --border: #333;
  --card: #252526;
  --star: #ffce00;
  --shadow: 0 2px 10px rgba(0, 0, 0, .5);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .55);
  --input-bg: #3c3c3c;
  --input-border: #464646;
  --btn-bg: #0e639c;
  --btn-hover: #1177bb;
  --btn-secondary: #3c3c3c;
  --btn-secondary-hover: #464646;
  --code-bg: #1e1e1e;
  --code-fg: #d4d4d4;
  --code-border: #333;
  --warn-bg: #3a1e1e;
  --warn-fg: #ff8a80;
  --warn-border: #5a2a2a;
  --ok-bg: #1a2f1a;
  --ok-fg: #4caf50;
  --ok-border: #2d5a2d;
  --panel-bg: #252526;
  --panel-border: #333;
  --panel-header-bg: #2d2d30;
  --panel-header-fg: #cccccc;
  --nav-bg: #2d2d30;
  --nav-border: #333;
  --nav-fg: #cccccc;
  --nav-link-hover-bg: #2d2d30;
  --footer-bg: #1e1e1e;
  --footer-fg: #858585;
  --hr-color: #333;
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .05);
}

html[data-theme="light"] {
  --accent: #007acc;
  --link: #0066cc;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --fg: #1e1e1e;
  --muted: #6e6e6e;
  --border: #e0e0e0;
  --card: #ffffff;
  --star: #ffce00;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .1);
  --input-bg: #ffffff;
  --input-border: #c0c0c0;
  --btn-bg: #007acc;
  --btn-hover: #0063a5;
  --btn-secondary: #e1e1e1;
  --btn-secondary-hover: #d0d0d0;
  --code-bg: #f5f5f5;
  --code-fg: #1e1e1e;
  --code-border: #d0d0d0;
  --warn-bg: #fdecec;
  --warn-fg: #c0392b;
  --warn-border: #f5c6c6;
  --ok-bg: #e8f5e9;
  --ok-fg: #2e7d32;
  --ok-border: #c8e6c9;
  --panel-bg: #ffffff;
  --panel-border: #e0e0e0;
  --panel-header-bg: #f8f8f8;
  --panel-header-fg: #1e1e1e;
  --nav-bg: #f8f8f8;
  --nav-border: #e0e0e0;
  --nav-fg: #1e1e1e;
  --nav-link-hover-bg: #e1e1e1;
  --footer-bg: #ffffff;
  --footer-fg: #6e6e6e;
  --hr-color: #e0e0e0;
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- шапка ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); font-size: 14px; }
.nav-link:hover { color: var(--fg); text-decoration: none; }

/* ---- кнопки ---- */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .12s ease, transform .06s ease;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }

/* ---- заголовок курса ---- */
.course-head { background: var(--bg-soft); padding: 34px 0 40px; border-bottom: 1px solid var(--border); }
.head-inner { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

.course-title { font-size: 32px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.4px; }
.course-sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; max-width: 70ch; }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.meta .rating { color: var(--fg); }
.meta .rating b { color: var(--fg); margin-left: 6px; }
.stars { color: var(--star); letter-spacing: 1px; }
.sep { width: 1px; height: 16px; background: var(--border); }
.chip {
  background: var(--card); border: 1px solid var(--border);
  color: var(--fg); padding: 3px 10px; border-radius: 999px; font-size: 13px;
}

/* ---- чему научитесь ---- */
.learn { margin-top: 26px; }
.learn h2 { font-size: 19px; margin: 0 0 12px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.check {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

/* ---- карточка покупки ---- */
.buy-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; box-shadow: var(--shadow-lg); position: sticky; top: 78px;
}
.cover {
  height: 150px; border-radius: 8px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0a2a52));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff;
}
.cover-mark { font-size: 34px; opacity: .95; }
.cover-tag { font-weight: 700; letter-spacing: 1px; opacity: .9; font-size: 13px; text-transform: uppercase; }

.btn.buy {
  display: block; width: 100%;
  background: var(--accent); color: #fff;
  font-size: 17px; padding: 13px 20px; margin-bottom: 12px;
}
.btn.buy:hover { filter: brightness(1.07); }

.buy-facts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.buy-alt { margin: 6px 0 0; font-size: 14px; }
.plain-link { color: var(--link); }

/* ---- о курсе ---- */
.about { padding: 34px 0 56px; }
.about h2 { font-size: 20px; margin: 0 0 10px; }
.about p { color: var(--fg); max-width: 80ch; margin: 0; }

/* ---- страница настроек ---- */
.settings-page { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.settings-head h1 { font-size: 24px; margin: 0; }
.settings-link {
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
}
.settings-link:hover { border-color: var(--link); color: var(--link); text-decoration: none; }

.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.panel h2 { margin: 0 0 14px; font-size: 17px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.field input[type="text"], .field input[type="password"], .field textarea, .field select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--fg); font: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 18%, transparent);
}
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 150px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn.secondary { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--link); color: var(--link); }

.features-list { display: grid; gap: 8px; margin-bottom: 10px; }
.feature-row { display: flex; gap: 8px; align-items: center; }
.feature-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
.feature-row button {
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  border-radius: 8px; padding: 7px 11px; cursor: pointer;
}
.feature-row button:hover { color: #d33; border-color: #d33; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: all .2s ease; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 820px) {
  .head-inner { grid-template-columns: 1fr; }
  .buy-card { position: static; }
}

/* ---- ссылка оплаты ---- */
.pay-link {
  display: block;
  text-align: center;
  margin-top: 9px;
  font-size: 14px;
  color: var(--link);
}
.pay-link:hover { text-decoration: underline; }
.nav-cta-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav-cta-stack .pay-link { margin: 0; font-size: 12px; }

/* ---- страницы оплаты / входа / кабинета ---- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 20px;
  background: var(--bg-soft);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.auth-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--fg); }
.auth-brand:hover { text-decoration: none; }

.code-box {
  font: 700 30px/1 ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 7px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 20px 10px;
  margin: 16px 0;
  user-select: all;
  color: var(--fg);
}
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.price { font-size: 30px; font-weight: 800; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.summary { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.summary li { display: flex; align-items: center; gap: 9px; }

.alert {
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  margin-top: 14px;
  display: none;
}
.alert.show { display: block; }
.alert.ok {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.alert.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
html[data-theme="dark"] .alert.err { background: #3a1e1e; color: #ff8a80; border-color: #5a2a2a; }

.hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.back-link { display: inline-block; margin-top: 14px; font-size: 14px; }
.legal-checks { margin: 20px 0; padding: 14px; border: 1px solid #a8bfd1; border-radius: 10px; }
.legal-checks legend { padding: 0 5px; font-weight: 600; font-size: .85rem; }
.legal-checks label { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: .86rem; line-height: 1.55; cursor: pointer; }
.legal-checks input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #3776ab; }
.legal-checks a { color: #235f91; text-decoration: underline; text-underline-offset: 2px; }
.legal-status { padding: 10px; border-radius: 6px; background: #fff3c5; color: #5e470a; font-size: .8rem; line-height: 1.5; }
.auth-card button:disabled { opacity: .5; cursor: not-allowed; }
.footer-inner { flex-wrap: wrap; }
.footer-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---- главная «Робовзгляд» ---- */
html { scroll-behavior: auto; }

body.brand-home {
  --brand-blue: #3776ab;
  --brand-blue-deep: #234a73;
  --brand-yellow: #ffd343;
  --brand-ink: #17212b;
  --brand-paper: #f7fafc;
  --brand-blue-soft: #eaf3fa;
  --brand-line: #cfdeea;
  margin: 0;
  overflow-x: hidden;
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.brand-home * { box-sizing: border-box; }
.brand-home a { color: inherit; }
.brand-home .wrap { width: calc(100% - 40px); max-width: 1180px; padding: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand-yellow);
  color: var(--brand-ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.brand-home .nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(35, 74, 115, .12);
  background: rgba(247, 250, 252, .94);
  backdrop-filter: blur(16px);
}
.brand-home .nav-inner { height: 78px; }
.brand-home .brand { gap: 12px; color: var(--brand-blue-deep); }
.brand-home .brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-blue-deep);
}
.brand-home .brand-name {
  font-family: "Unbounded", "Arial Black", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand-home .nav-links { gap: 26px; }
.brand-home .nav-link { color: #526779; font-size: .92rem; font-weight: 600; }
.brand-home .nav-link:hover { color: var(--brand-blue-deep); }
.brand-home a:focus-visible,
.brand-home button:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.brand-home .btn {
  border: 0;
  border-radius: 11px;
  padding: 13px 20px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.brand-home .btn:hover { text-decoration: none; transform: translateY(-2px); }
.brand-home .btn:active { transform: translateY(0) scale(.98); }
.brand-home .btn.primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 26px rgba(35, 74, 115, .18);
}
.brand-home .btn.primary:hover { background: var(--brand-blue-deep); filter: none; }
.brand-home .nav-action { padding: 11px 17px; }

.hero {
  position: relative;
  padding: 84px 0 78px;
  background-color: var(--brand-paper);
  background-image:
    linear-gradient(rgba(55, 118, 171, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 118, 171, .055) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 28% 28%, rgba(234, 243, 250, .96), rgba(247, 250, 252, .2) 48%, transparent 66%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}
.hero-grid > * { min-width: 0; }
.eyebrow,
.section-number,
.tech-label {
  margin: 0;
  color: var(--brand-blue);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 24px;
  color: var(--brand-blue-deep);
  font-family: "Unbounded", "Arial Black", sans-serif;
  font-size: clamp(3.25rem, 5.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}
.hero-copy h1 span { color: var(--brand-blue); }
.hero-lead {
  width: 100%;
  max-width: 60ch;
  margin: 0;
  color: #526779;
  font-size: 1.16rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.text-link { color: var(--brand-blue-deep); font-weight: 700; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform 180ms ease; }
.text-link:hover { text-decoration: none; color: var(--brand-blue); }
.text-link:hover span { transform: translateY(3px); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--brand-line);
}
.hero-facts li { padding: 18px 18px 0 0; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--brand-line); }
.hero-facts strong { display: block; color: var(--brand-blue-deep); font-size: .9rem; }
.hero-facts span { display: block; margin-top: 4px; color: #687c8d; font-size: .78rem; line-height: 1.4; }

.vision-demo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--brand-blue-deep);
  box-shadow: 0 28px 60px rgba(35, 74, 115, .24);
  color: #fff;
}
.vision-demo::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -58px;
  width: 145px;
  height: 145px;
  border: 22px solid rgba(255, 211, 67, .16);
  border-radius: 50%;
}
.demo-topline { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.tech-label { color: var(--brand-yellow); }
.demo-status { display: inline-flex; align-items: center; gap: 7px; color: #dce9f4; font-size: .78rem; }
.demo-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-yellow); box-shadow: 0 0 0 4px rgba(255, 211, 67, .12); }
.demo-stage { padding: 28px 28px 24px; }
.snake-lab {
  position: relative;
  overflow: hidden;
  contain: layout paint;
  aspect-ratio: 560 / 340;
  border-radius: 14px;
  background: var(--brand-paper);
  box-shadow: inset 0 0 0 1px rgba(55, 118, 171, .12);
}
.snake-lab > svg { display: block; width: 100%; height: auto; }
.vision-scene { overflow: hidden; }
#serpent-route { fill: none; stroke: none; }
.signal-rail { fill: none; stroke: #3776ab; stroke-width: 1; stroke-dasharray: 2 7; opacity: .16; }
.signal-bit { fill: #3776ab; font: 600 16px "JetBrains Mono", Consolas, monospace; }
.signal-bit-gold { fill: #9a7413; }
.living-serpent { opacity: 0; }
.serpent-body { fill: url(#serpent-surface); stroke: #234a73; stroke-width: 1.3; stroke-linejoin: round; }
.serpent-belly { fill: none; stroke: #ffd343; stroke-width: 4; stroke-linecap: round; opacity: .85; }
.serpent-sheen { fill: none; stroke: #b8def3; stroke-width: 3; stroke-linecap: round; opacity: .45; }
.serpent-head-shape { fill: #438bc2; stroke: #234a73; stroke-width: 1.5; }
.serpent-cheek { fill: #ffd343; }
.serpent-eye-white { fill: #f7fafc; }
.serpent-eye-pupil, .serpent-nostril { fill: #17212b; }
.serpent-eye-glint { fill: #fff; }
.serpent-mouth { fill: none; stroke: #234a73; stroke-width: 1.4; stroke-linecap: round; }
.serpent-shadow { fill: #234a73; opacity: 0; }
.gateway-orbit { fill: none; stroke: #3776ab; stroke-width: 1; stroke-dasharray: 3 10; }
.gateway-orbit-inner { fill: #eaf3fa; stroke: #cfdeea; stroke-width: 1; }
.gateway-eye { fill: #234a73; stroke: #f7fafc; stroke-width: 5; }
.gateway-iris { fill: url(#lens-surface); stroke: #ffd343; stroke-width: 4; }
.gateway-pupil { fill: #17212b; }
.gateway-glint { fill: #fff; opacity: .8; }
.gateway-bracket { fill: none; stroke: #3776ab; stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.scene-label { fill: #526779; font: 500 10px "JetBrains Mono", Consolas, monospace; letter-spacing: .04em; }
.scene-progress { position: absolute; inset: auto 16px 14px; display: flex; justify-content: space-between; gap: 8px; }
.scene-step { padding-bottom: 5px; border-bottom: 2px solid transparent; color: #526779; font: 500 10px "JetBrains Mono", Consolas, monospace; transition: color .3s, border-color .3s; }
.scene-step.is-active { color: #234a73; border-color: #ffd343; }
.motion-toggle { position: relative; z-index: 1; flex: none; padding: 5px 9px; border: 1px solid #7392af; border-radius: 7px; background: transparent; color: #f7fafc; font: 500 11px "Onest", "Segoe UI", sans-serif; cursor: pointer; }
.motion-toggle:hover { background: #3776ab; }
.motion-toggle[hidden] { display: none; }
.demo-caption { display: grid; gap: 4px; padding: 0 28px 28px; }
.demo-caption strong { font-size: 1rem; }
.demo-caption span { max-width: 46ch; color: #bed0df; font-size: .88rem; }

.learning-path { background: var(--brand-yellow); }
.path-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; color: var(--brand-blue-deep); font-family: "JetBrains Mono", Consolas, monospace; font-size: .86rem; font-weight: 700; }
.path-row i { font-style: normal; opacity: .55; }

.program-section { padding: 112px 0 126px; }
.program-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(64px, 9vw, 132px); }
.section-intro h2,
.format-section h2 {
  margin: 16px 0 24px;
  color: var(--brand-blue-deep);
  font-family: "Unbounded", "Arial Black", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section-intro > p:last-child { max-width: 52ch; margin: 0; color: #5d7284; font-size: 1.05rem; }
.learn-list { padding-top: 4px; }
.learn-list h3 { margin: 0 0 24px; color: var(--brand-ink); font-size: 1.25rem; }
.brand-home .checklist { display: grid; gap: 0; }
.brand-home .checklist li { position: relative; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--brand-line); color: #405569; font-size: 1rem; }
.brand-home .check {
  width: 26px;
  height: 26px;
  margin-top: 0;
  border-radius: 8px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-family: "JetBrains Mono", Consolas, monospace;
}

.format-section { padding: 106px 0 118px; background: var(--brand-blue-soft); }
.format-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px 92px; }
.format-steps { margin: 0; padding: 0; list-style: none; }
.format-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid #c5d8e7; }
.format-steps li > span { color: var(--brand-blue); font: 700 .83rem/1.5 "JetBrains Mono", Consolas, monospace; }
.format-steps strong { color: var(--brand-blue-deep); font-size: 1.08rem; }
.format-steps p { max-width: 55ch; margin: 5px 0 0; color: #5d7284; }
.app-card { grid-column: 1 / -1; display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 24px; margin-top: 10px; padding: 26px 28px; border-radius: 18px; background: #fff; box-shadow: 0 20px 45px rgba(35, 74, 115, .1); }
.app-card img { width: 74px; height: 74px; border-radius: 50%; }
.app-card strong { color: var(--brand-blue-deep); font-size: 1.08rem; }
.app-card p { max-width: 72ch; margin: 5px 0 0; color: #607587; font-size: .92rem; }
.app-card .purchase-label { margin: 0 0 8px; color: #3776ab; font: 600 .78rem "JetBrains Mono", Consolas, monospace; }
.brand-home .btn.yellow { background: var(--brand-yellow); color: var(--brand-ink); box-shadow: 0 10px 24px rgba(167, 123, 0, .14); }
.brand-home .btn.yellow:hover { background: #f3c838; }

.site-footer { padding: 32px 0; background: var(--brand-blue-deep); color: #fff; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner > span { font-family: "Unbounded", "Arial Black", sans-serif; font-weight: 700; letter-spacing: -.03em; }
.footer-inner p { flex: 1; margin: 0; color: #bdd0df; font-size: .9rem; }
.footer-inner a { color: #fff; font-size: .9rem; font-weight: 600; }


@media (max-width: 980px) {
  .brand-home .nav-link { display: none; }
  .hero { padding-top: 62px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 760px; }
  .vision-demo { max-width: 680px; }
  .program-grid,
  .format-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 680px) {
  .brand-home .wrap { width: calc(100% - 28px); }
  .brand-home .nav-inner { height: 68px; }
  .brand-home .brand-mark { width: 40px; height: 40px; }
  .brand-home .brand-name { font-size: .88rem; }
  .brand-home .nav-action { display: none; }
  .hero { padding: 52px 0 58px; }
  .hero-grid { width: calc(100vw - 28px); max-width: calc(100vw - 28px); gap: 48px; }
  .hero-copy,
  .hero-lead,
  .vision-demo { width: 100%; max-width: calc(100vw - 28px); }
  .hero-copy h1 { font-size: clamp(2.25rem, 10.7vw, 2.75rem); line-height: 1.03; }
  .hero-copy h1 span { display: block; }
  .hero-lead { font-size: 1.03rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { padding: 14px 0; }
  .hero-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--brand-line); }
  .demo-topline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .demo-stage { padding: 18px; }
  .demo-caption { padding: 0 18px 22px; }
  .path-row { flex-wrap: wrap; justify-content: flex-start; padding: 20px 0; }
  .program-section,
  .format-section { padding: 76px 0 84px; }
  .app-card { grid-template-columns: 58px 1fr; padding: 22px; }
  .app-card img { width: 58px; height: 58px; }
  .app-card .btn { grid-column: 1 / -1; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-home *,
  .brand-home *::before,
  .brand-home *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Explicit display rules must not expose hidden checkout/auth controls. */
[hidden] { display: none !important; }
