:root {
  --aura: #c6b9ee;
  --violet: #7d6b9c;
  --violet-dark: #5c4b7a;
  --ink: #17151b;
  --mute: #6a6572;
  --line: rgba(23, 21, 27, 0.1);
  --line-dark: rgba(255, 255, 255, 0.14);
  --paper: #ffffff;
  --white: #f6f2ea;
  --snow: #fcfbfe;
  --night: #0e0c12;
  --fog: #eee9e0;
  --glass: rgba(15, 14, 18, 0.68);
  --display: "Unbounded", Arial, sans-serif;
  --serif: "Unbounded", Arial, sans-serif;
  --sans: "Golos Text", Arial, sans-serif;
  --gutter: max(32px, calc((100vw - 1180px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; background: #17151b; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--white);
  touch-action: pan-x pan-y;
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  background: #17151b;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button, input, textarea, select, a, label {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
input, textarea, select {
  font-size: 16px;
  touch-action: pan-y;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.inner { width: min(920px, calc(100% - 48px)); margin: 0 auto; }
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aura);
  font-weight: 600;
}
.lead { max-width: 34em; color: rgba(246, 243, 255, 0.78); }
.fine { font-size: 13px; color: var(--mute); }
.fine a { text-decoration: underline; text-underline-offset: 3px; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 28px;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 14, 0.28) 0%, rgba(10, 9, 14, 0.18) 40%, rgba(10, 9, 14, 0.62) 100%),
    linear-gradient(90deg, rgba(176, 166, 223, 0.18), transparent 42%);
}
.glass, .hero-center, .dock { position: relative; z-index: 1; }

.glass {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.brand { font-weight: 600; letter-spacing: -0.02em; }
.glass nav { display: flex; gap: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.glass nav a:hover { color: #fff; }

.hero-center { text-align: center; padding: 8vh 16px 0; }
.hero-center h1 {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 8px 40px rgba(10, 9, 14, 0.35);
}
.hero-center em {
  font-style: italic;
  font-weight: 500;
}
.hero-center p {
  margin: 18px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.dock {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, calc(100% - 24px));
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(14, 13, 18, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.dock p { margin: 0; flex: 1; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.dock input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff;
  padding: 10px 0;
}
.dock input::placeholder { color: rgba(255, 255, 255, 0.55); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--aura); }
.btn.ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn:disabled { opacity: 0.45; cursor: default; }

.strip { background: var(--night); }
.strip .inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 28px 0;
}
.strip p { margin: 0; color: var(--mute); font-size: 14px; }
.strip b { color: var(--white); font-weight: 600; }

.block { padding: 88px 0; background: var(--paper); }
.block.dim { background: #12111a; }
.block h2 { font-size: clamp(36px, 5vw, 64px); max-width: 14ch; margin-bottom: 18px; }

.voices { list-style: none; padding: 0; margin: 36px 0 0; }
.voices li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  line-height: 1.25;
  max-width: 20em;
}
.voices li:last-child { border-bottom: 1px solid var(--line); }

.mods { list-style: none; padding: 0; margin: 40px 0 0; }
.mods li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.mods li:last-child { border-bottom: 1px solid var(--line); }
.mods span { font-size: 13px; color: var(--aura); letter-spacing: 0.08em; padding-top: 6px; }
.mods h3 { font-size: 28px; margin-bottom: 6px; }
.mods p { margin: 0; color: var(--mute); }

.foot { padding: 28px 0 40px; color: var(--mute); font-size: 13px; }
.foot .inner { display: flex; justify-content: space-between; gap: 16px; }

.nav.thin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.nav.thin .brand { color: var(--white); }
.text-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--mute);
  cursor: pointer;
}
.step-count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }

.flow { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--white); }
.flow-bar { height: 2px; background: rgba(255, 255, 255, 0.08); }
.flow-bar > i { display: block; height: 100%; background: var(--aura); }
.flow-main { width: min(680px, calc(100% - 40px)); margin: 48px auto 80px; }
.flow-main h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 16px; }
.flow-main .lead { color: var(--mute); }
.flow .btn { background: var(--aura); color: var(--ink); }
.flow .btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.actions {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 18px;
  margin-top: 8px;
}
.flow .actions .text-link {
  min-height: 44px;
  color: rgba(246, 242, 234, 0.62);
}

.stack-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.stack-form input,
.hw textarea,
.chat-in input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  outline: none;
}
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice {
  text-align: left;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.choice strong { display: block; font-size: 18px; margin-bottom: 4px; }
.choice span { display: block; font-size: 14px; color: var(--mute); }
.choice.on { background: var(--aura); color: var(--ink); border-color: var(--aura); }
.choice.on span { color: var(--ink); }
.price-line { font-family: var(--serif); font-size: 48px; margin: 8px 0 16px; }
.pay-points { list-style: none; padding: 0; margin: 0 0 28px; color: var(--mute); }

.app { min-height: 100vh; display: flex; flex-direction: column; background: #f6f3ff; color: var(--ink); }
.body { display: grid; grid-template-columns: 280px 1fr; flex: 1; }
.top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--night);
  color: var(--fog);
}
.top .brand { color: var(--fog); }
.top-titles { margin-right: auto; font-size: 13px; color: rgba(246, 243, 255, 0.7); }
.text-link.light { color: var(--fog); }

.side {
  background: #fff;
  border-right: 1px solid rgba(22, 20, 31, 0.08);
  padding: 22px 16px 36px;
}
.userbar { font-size: 12px; color: var(--mute); padding: 0 8px 16px; }
.progress { margin: 0 8px 22px; }
.progress .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.bar { height: 3px; background: rgba(22, 20, 31, 0.1); }
.bar > i { display: block; height: 100%; background: var(--aura); }
.nav-mod { padding: 12px 8px 16px; border-top: 1px solid rgba(22, 20, 31, 0.08); }
.nav-mod .n { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.nav-mod .t { font-family: var(--serif); font-size: 20px; margin: 6px 0 10px; }
.lessons a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.lessons a.on { font-weight: 700; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
  flex: 0 0 8px;
}
.dot.done { background: var(--aura); box-shadow: none; }
.side-foot { padding: 16px 8px; }
.side-foot a { font-size: 13px; }
.side-foot a.on { font-weight: 700; }
.portrait { margin: 16px 8px 0; }
.portrait img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: 50% 12%;
}
.portrait .cap { padding: 10px 0 0; font-size: 12px; color: var(--mute); }
.portrait .cap b { display: block; color: var(--ink); margin-bottom: 2px; }

.main { padding: 36px 48px 80px; max-width: 860px; }
.crumb { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.main h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 10px; }
.lede { color: var(--mute); margin: 0 0 28px; }

.video {
  aspect-ratio: 16 / 9;
  background: var(--night);
  color: var(--fog);
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.video .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fog);
  z-index: 2;
}
.video .play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: currentColor;
}
.video .play::before { content: none; }
.video .cap {
  position: absolute; left: 20px; bottom: 16px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section { margin-bottom: 40px; }
.section h3 { font-size: 28px; margin-bottom: 14px; }
.lecture p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; max-width: 40em; }

.hw { padding-top: 8px; }
.hw .ask { font-size: 18px; margin: 0 0 8px; }
.hw .hint { font-size: 14px; color: var(--mute); margin: 0 0 16px; }
.hw textarea {
  min-height: 140px;
  resize: vertical;
  border: 1px solid rgba(22, 20, 31, 0.12);
  padding: 12px;
  color: var(--ink);
}
.app .chat-in input,
.app .stack-form input { color: var(--ink); border-bottom-color: rgba(22, 20, 31, 0.16); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.app .btn { background: var(--ink); color: #fff; }
.app .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(22, 20, 31, 0.2); }
.review { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(22, 20, 31, 0.08); }
.review .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; color: var(--mute); }

.chat-wrap { border-top: 1px solid rgba(22, 20, 31, 0.08); min-height: 58vh; display: flex; flex-direction: column; }
.chat-log { flex: 1; overflow: auto; padding: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 72%; }
.msg .who { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.msg .bubble { background: #fff; padding: 10px 12px; border-radius: 14px; }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me .bubble { background: var(--ink); color: var(--fog); }
.chat-in { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(22, 20, 31, 0.08); }
.gpt-in { border-top: 0; padding-top: 8px; }
.gpt-box {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  padding: 10px 10px 10px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 21, 27, 0.1);
}
.gpt-box textarea {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  min-height: 24px;
  max-height: 140px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  line-height: 1.4;
  outline: none;
}
.gpt-send {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #17151b;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.gpt-send svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .glass nav { display: none; }
  .hero-center { padding-top: 12vh; }
  .strip .inner { grid-template-columns: 1fr; gap: 12px; }
  .body { grid-template-columns: 1fr; }
  .main { padding: 24px 18px 64px; }
  .portrait { display: none; }
  .dock { width: calc(100% - 16px); }
}

/* 2026 editorial system */
html, body { background: var(--snow); color: var(--ink); }
.site { overflow: clip; }
.inner { width: min(1180px, calc(100% - 64px)); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
}
.brand-mark img { width: 62px; height: auto; display: block; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy b { font-size: 13px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.brand-copy small { margin-top: 3px; font-size: 9px; line-height: 1; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .54; }
.brand-lockup.is-light { color: #fff; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
  padding: 0;
  isolation: isolate;
}
.hero-bg { object-position: 28% 50%; filter: saturate(1.05) contrast(1.04); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(8,6,12,.18) 0%, transparent 42%, rgba(8,6,12,.12) 100%),
    linear-gradient(180deg, rgba(8,6,12,.2) 0%, transparent 28%, rgba(8,6,12,.28) 100%);
}
.hero-east,
.hero-west { position: absolute; z-index: 2; }
.hero-east {
  top: 132px;
  right: max(40px, calc((100vw - 1180px) / 2));
  max-width: min(440px, 46vw);
  text-align: right;
}
.hero-east h1 {
  margin: 0 0 22px;
  max-width: none;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-shadow: none;
}
.hero-east .btn { min-height: 44px; padding: 10px 20px; }
.hero-west {
  left: max(40px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  max-width: 420px;
}
.hero-west p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a,
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10, 8, 14, .38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.chips a:hover { background: rgba(10, 8, 14, .55); }
.glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  margin: 0;
  justify-content: space-between;
  padding: 22px max(32px, calc((100vw - 1180px) / 2));
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .35s ease, padding .35s ease;
}
.glass.is-scrolled {
  padding-block: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 21, 27, .08);
}
.glass.is-scrolled .brand-lockup,
.glass.is-scrolled .brand-copy { color: var(--ink); }
.glass.is-scrolled .brand-mark img { filter: none; }
.glass.is-scrolled nav { color: var(--ink); }
.glass.is-scrolled nav a:hover { color: var(--ink); }
.glass.is-scrolled nav a::after { background: var(--ink); }
.glass.is-scrolled .btn.ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(23, 21, 27, .22);
}
.glass.is-scrolled .btn.ghost:hover { background: rgba(23, 21, 27, .05); }
.glass .brand { margin-right: auto; }
.glass .brand-mark { background: transparent; }
.glass .brand-mark img { filter: brightness(0) invert(1); }
.glass nav { margin: 0 auto; gap: 30px; }
.glass nav a { position: relative; font-size: 12px; letter-spacing: .02em; }
.glass nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: #fff; transition: right .25s ease; }
.glass nav a:hover::after { right: 0; }
.glass .btn { min-height: 40px; padding-inline: 17px; }

.btn i { margin-left: 10px; font-style: normal; font-size: 16px; font-weight: 400; }

.strip {
  background: var(--snow);
  color: var(--ink);
  border-top: 0;
  border-bottom: 1px solid rgba(23, 21, 27, .08);
}
.strip .inner { padding: 0; }
.strip p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 34px 30px;
  border-left: 1px solid rgba(23, 21, 27, .08);
  color: var(--mute);
}
.strip p:first-child { border-left: 0; padding-left: 0; }
.strip p:last-child { border-right: 0; padding-right: 0; }
.strip b { font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.strip span { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }

.block {
  padding: 130px 0;
  background: var(--snow);
  color: var(--ink);
}
.block .kicker { color: var(--violet); }
.block .lead { color: #5b5663; }
.block h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); }
.audience {
  padding: 96px 0 110px;
  background: var(--snow);
  color: var(--ink);
}
.audience .kicker { margin: 0 0 18px; color: var(--violet); }
.audience-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.audience-note {
  margin: 0;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.55;
  color: #6a6570;
}
.audience h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
}
.audience-voices {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(23, 21, 27, .1);
}
.audience-voices li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(23, 21, 27, .1);
}
.audience-voices span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--violet);
}
.audience-voices p {
  margin: 0;
  max-width: 22em;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.35;
}

.block.violet,
.closing {
  background: var(--violet);
  color: #fff;
}
.block.violet .kicker,
.closing .kicker { color: rgba(255,255,255,.68); }
.block.violet .lead,
.block.violet h2 { color: #fff; }
.program-head { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: end; }
.program-head p:last-child { margin: 0 0 8px; color: rgba(255,255,255,.74); line-height: 1.6; }
.mods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 70px;
  border-top: 1px solid rgba(255,255,255,.2);
  border-left: 1px solid rgba(255,255,255,.2);
}
.mods li,
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 28px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.mods li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.module-index { padding: 0; font-family: var(--display); font-size: 13px; color: rgba(255,255,255,.7) !important; }
.mods li > div { margin: auto 0 24px; }
.mods h3 { max-width: 16ch; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; color: #fff; }
.mods p { max-width: 32ch; line-height: 1.5; color: rgba(255,255,255,.72) !important; }
.module-time { padding: 0 !important; color: rgba(255,255,255,.58) !important; }

.author { background: var(--snow); color: var(--ink); padding-top: 76px; }
.author-stage {
  display: grid;
  grid-template-columns: minmax(280px, 42vw) minmax(0, 1fr);
  min-height: 720px;
}
.author-shot {
  margin: 0;
  height: 100%;
  min-height: 720px;
  background: #1a171c;
  overflow: hidden;
}
.author-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(.82) contrast(1.04);
}
.author-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 110px) clamp(32px, 6vw, 96px);
}
.author-meta .kicker { color: var(--violet); }
.author-meta h2 {
  margin: 0 0 40px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.author-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 360px;
}
.author-facts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(23, 21, 27, .1);
}
.author-facts li:last-child { border-bottom: 1px solid rgba(23, 21, 27, .1); }
.author-facts b { font-size: 14px; font-weight: 600; }
.author-facts span { font-size: 14px; line-height: 1.45; color: #6a6570; }
.author-quote {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 100px;
}
.author-quote p {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: var(--ink);
}

.closing {
  display: flex;
  min-height: min(78vh, 760px);
  padding: 0;
  background: var(--violet);
  color: #fff;
}
.closing-board {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
  padding: 88px 0 48px;
  display: flex;
  flex-direction: column;
  min-height: inherit;
}
.closing .kicker { color: rgba(255,255,255,.68); margin-bottom: 22px; }
.closing h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #fff;
}
.closing-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: auto;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.closing-action p {
  margin: 0;
  max-width: 28em;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
}
.closing .btn.light { color: var(--violet); min-height: 52px; padding-inline: 26px; }
.closing .btn.light:hover { background: #f3eefc; color: var(--violet); }
.foot {
  padding: 34px 0;
  background: var(--snow);
  color: var(--mute);
  border-top: 1px solid rgba(23, 21, 27, .08);
}
.foot .inner { align-items: center; }
.wordmark,
.nav.thin .brand,
.app .top .brand,
.foot .wordmark {
  font-family: "Play", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app .top .brand,
.nav.thin .brand { color: #fff; }
.foot .wordmark { color: var(--ink); }

.legal-foot {
  padding: 72px 0 48px;
  background: #111014;
  color: rgba(246, 242, 234, 0.62);
  border-top: 0;
}
.legal-foot-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}
.legal-brand {
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.legal-foot .wordmark {
  margin: 0 0 10px;
  color: #f6f2ea;
}
.legal-tag {
  margin: 0;
  max-width: 28em;
  color: rgba(246, 242, 234, 0.68);
  font-size: 15px;
  line-height: 1.45;
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 36px 48px;
}
.legal-grid h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.46);
}
.legal-owner {
  margin: 0 0 10px;
  color: #f6f2ea;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.legal-foot p { margin: 0 0 8px; }
.legal-foot p:last-child { margin-bottom: 0; }
.legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.legal-links a,
.legal-foot a {
  color: #f6f2ea;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 242, 234, 0.22);
  text-underline-offset: 3px;
}
.legal-links a:hover,
.legal-foot a:hover { border-bottom-color: #f6f2ea; }
.legal-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(246, 242, 234, 0.42);
}
.legal-bottom p { margin: 0; }
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #17151b;
  color: #eee9e0;
  box-shadow: 0 12px 40px rgba(14, 12, 18, .28);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 13px; line-height: 1.45; }
.cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #e4dafd;
  color: #17151b;
  cursor: pointer;
}
@media (max-width: 720px) {
  .cookie-bar { flex-direction: column; left: 10px; right: 10px; bottom: 10px; }
}

/* Public flow */
.flow { background: #121116; min-height: 100dvh; --line: rgba(255,255,255,0.14); }
.nav.thin {
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.flow-main {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: auto;
  padding: 80px 0 110px;
}
.flow-main::before { content: ""; position: absolute; left: -72px; top: 92px; width: 32px; height: 1px; background: var(--aura); }
.flow-main h1 { max-width: 11ch; font-size: clamp(52px, 7vw, 86px); line-height: .92; letter-spacing: -.055em; }
.flow-main .lead { max-width: 560px; margin-top: 22px; font-size: 16px; line-height: 1.6; }
.eye { color: var(--aura); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.stack-form { margin-top: 44px; gap: 22px; }
.stack-form input { min-height: 58px; font-size: 20px; }
.choices { gap: 10px; }
.choice { padding: 20px 22px; border-radius: 12px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.choice:hover { transform: translateX(4px); border-color: rgba(198,185,238,.5); }
.choice.on { background: #78699d; color: #fff; border-color: #78699d; }
.choice.on span { color: rgba(255,255,255,.68); }
.flow .btn { min-height: 48px; background: #e4dafd; }
.flow .btn.ghost { box-shadow: none; border: 1px solid rgba(255,255,255,.2); }
.price-line { font-size: clamp(56px, 8vw, 92px); letter-spacing: -.05em; }

/* Learning platform */
.app { background: #ece8e0; color: var(--ink); }
.top {
  min-height: 72px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top .brand { min-width: 0; }
.top-titles { display: flex; flex-direction: column; gap: 2px; color: #fff; font-size: 13px; }
.top-titles span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.43); }
.top-chat { font-size: 12px; color: rgba(255,255,255,.7); }
.body { grid-template-columns: 310px minmax(0, 1fr); }
.side { background: #f7f4ee; padding: 24px 18px 32px; }
.userbar { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.userbar > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #ddd4f4; color: #4f426c; font-family: var(--serif); font-size: 20px; }
.userbar div { display: flex; flex-direction: column; min-width: 0; }
.userbar b { color: var(--ink); font-size: 13px; font-weight: 600; }
.userbar small { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; color: var(--mute); }
.progress { margin-bottom: 28px; padding: 14px; border-radius: 12px; background: #ede9e2; }
.nav-mod { padding-block: 16px; }
.nav-mod .t { font-size: 21px; }
.lessons a { position: relative; margin-left: -8px; padding: 9px 8px; border-radius: 8px; color: #625d68; }
.lessons a.on { background: #e7e0f7; color: #3d344f; }
.side-foot a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 9px; background: #ede9e2; }
.portrait img { height: 220px; border-radius: 10px; filter: saturate(.72); }
.main {
  width: min(100%, 1040px);
  max-width: none;
  padding: 58px clamp(30px, 6vw, 84px) 100px;
}
.lesson-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.lesson-head h2 { max-width: 13ch; font-size: clamp(44px, 5vw, 66px); line-height: .95; letter-spacing: -.05em; }
.lesson-number { font-family: var(--serif); font-size: 72px; line-height: .8; color: #c6bcce; }
.video {
  margin: 42px 0 58px;
  border-radius: 14px;
  background: #111015;
  border: 1px solid rgba(255,255,255,.08);
}
.video::before { content: ""; position: absolute; inset: 0; background: url('assets/hero-4k.webp') center 42% / cover; opacity: .2; filter: grayscale(1); }
.video-meta { position: absolute; z-index: 1; left: 22px; bottom: 18px; }
.video-meta p { margin: 0 0 3px; font-family: var(--serif); font-size: 21px; }
.video-meta span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.section { max-width: 760px; margin-bottom: 64px; }
.section-label { margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #78699d; }
.section h3 { font-size: 36px; margin-bottom: 22px; }
.lecture p { font-size: 18px; line-height: 1.78; color: #39363d; }
.lecture .lec-drop::first-letter { float: left; margin: 6px 9px 0 0; font-family: var(--serif); font-size: 66px; line-height: .72; color: #78699d; }
.lec-block { margin: 0 0 28px; }
.lec-block h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #78699d;
}
.hw { padding: 28px; background: #f7f4ee; border-radius: 14px; }
.hw textarea { min-height: 180px; border-radius: 9px; background: #fff; }
.chat-wrap { min-height: 64vh; }
.msg .bubble { border-radius: 5px 15px 15px 15px; padding: 13px 15px; }
.msg.me .bubble { background: #4d435d; border-radius: 15px 5px 15px 15px; }

@media (max-width: 980px) {
  .hero { min-height: 100dvh; }
  .hero-east { top: 108px; right: 24px; max-width: min(360px, 58vw); }
  .hero-west { left: 24px; bottom: 28px; }
  .audience-head { grid-template-columns: 1fr; gap: 20px; }
  .program-head { grid-template-columns: 1fr; gap: 36px; }
  .author-stage { grid-template-columns: 1fr; min-height: 0; }
  .author-shot { min-height: 560px; }
  .author-meta { padding: 56px 32px 0; }
  .closing { min-height: 0; }
  .closing-action { flex-direction: column; align-items: flex-start; }
  .body { grid-template-columns: 260px minmax(0,1fr); }
  .top .brand-copy, .side .portrait { display: none; }
  .top .brand { min-width: auto; }
}

@media (max-width: 720px) {
  .inner { width: min(100% - 32px, 1180px); }
  .hero { min-height: 100dvh; padding: 0; }
  .hero-bg { object-position: 20% 50%; }
  .glass { padding: 14px 16px; }
  .glass .brand-copy { display: none; }
  .glass .brand { margin-right: 0; }
  .glass .brand-mark { width: 40px; height: 40px; }
  .glass .btn { padding-inline: 14px; }
  .hero-east {
    top: auto;
    right: 20px;
    left: 20px;
    bottom: 168px;
    max-width: none;
    text-align: left;
  }
  .hero-east h1 { font-size: 28px; }
  .hero-west { left: 20px; right: 20px; bottom: 24px; max-width: none; }
  .strip .inner { grid-template-columns: 1fr; }
  .strip p { border-left: 0; border-bottom: 1px solid rgba(23, 21, 27, .08); padding-inline: 0; }
  .strip p:first-child { padding-left: 0; }
  .strip p:last-child { border-right: 0; border-bottom: 0; padding-right: 0; }
  .block { padding: 84px 0; }
  .block h2 { font-size: 32px; }
  .audience { padding: 72px 0 84px; }
  .audience-head { margin-bottom: 36px; }
  .audience-voices li { grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; }
  .audience-voices p { font-size: 18px; }
  .mods { grid-template-columns: 1fr; }
  .module-card { min-height: 250px; }
  .author-shot { min-height: 460px; }
  .author-meta { padding: 42px 0 0; }
  .author-meta h2 { font-size: 40px; margin-bottom: 28px; }
  .author-quote { width: calc(100% - 32px); padding: 56px 0 72px; }
  .closing-board { width: calc(100% - 32px); padding: 72px 0 36px; }
  .closing h2 { font-size: 34px; }
  .closing-action { padding-top: 32px; }
  .foot .brand-copy { display: none; }
  .flow-main::before { display: none; }
  .nav.thin .brand-copy { display: none; }
  .body { display: block; }
  .side { padding: 12px 14px 4px; border-right: 0; border-bottom: 1px solid rgba(23,21,27,.08); }
  .userbar, .progress, .nav-mod .n, .nav-mod .t, .side-foot, .portrait { display: none; }
  .nav-mod { display: inline-block; padding: 0; border: 0; }
  .lessons { display: flex; }
  .lessons a { width: 38px; height: 38px; justify-content: center; margin: 0 4px 8px 0; padding: 0; background: #ebe6df; }
  .lessons a span:last-child { display: none; }
  .top { padding: 9px 14px; }
  .top-titles { margin-left: 0; }
  .top-studio { display: none; }
  .studio { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 10px; }
  .main { padding: 38px 18px 70px; }
  .lesson-number { font-size: 50px; }
  .lesson-head h2 { font-size: 42px; }
  .video { margin-top: 30px; border-radius: 10px; }
  .lecture p { font-size: 17px; }
  .hw { padding: 20px 16px; }
  .chat-in { flex-direction: column; }
}

/* Home hero: landing_coda visual only */
.site {
  overflow-x: hidden;
  background: var(--snow);
  color: var(--ink);
  --gutter: max(32px, calc((100vw - 1180px) / 2));
}
.site .hero-pic { display: contents; }
.site .hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--night);
  isolation: isolate;
  padding: 0;
}
.site .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 50%;
  filter: saturate(1.05) contrast(1.04);
  z-index: 0;
}
.site .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 6, 12, 0.22) 0%, transparent 42%, rgba(8, 6, 12, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 6, 12, 0.25) 0%, transparent 28%, rgba(8, 6, 12, 0.35) 100%);
}
.site .nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px var(--gutter);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.site .brand {
  margin-right: auto;
  font-family: "Play", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.site .nav nav {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.site .nav nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site .nav nav a::after { display: none; }
.site .nav .btn { min-height: 40px; padding-inline: 18px; }
.site .hero-copy { display: contents; }
.site .hero-east,
.site .hero-west { position: absolute; z-index: 2; }
.site .hero-east {
  top: 132px;
  right: var(--gutter);
  max-width: min(460px, 46vw);
  text-align: right;
}
.site .hero-east h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  text-shadow: none;
}
.site .hero-west {
  left: var(--gutter);
  bottom: 48px;
  max-width: 440px;
}
.site .hero-west p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.site .chips a,
.site .chips span {
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 980px) {
  .site .hero-east { top: 108px; right: 24px; max-width: min(380px, 58vw); }
  .site .hero-west { left: 24px; bottom: 28px; }
}
@media (max-width: 720px) {
  .site .hero {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    padding: 0;
  }
  .site .hero-pic { display: contents; }
  .site .nav {
    position: absolute;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  }
  .site .nav nav { display: none; }
  .site .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 8%;
  }
  .site .hero-shade {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    background: linear-gradient(180deg, rgba(8, 6, 12, 0.2) 0%, transparent 24%, rgba(8, 6, 12, 0.42) 58%, rgba(8, 6, 12, 0.7) 100%);
  }
  .site .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: max(20px, env(safe-area-inset-bottom));
    max-width: none;
  }
  .site .hero-east,
  .site .hero-west {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }
  .site .hero-east h1 { font-size: clamp(28px, 8vw, 34px); margin-bottom: 14px; }
  .site .hero-east .btn { width: 100%; }
  .site .hero-west p { font-size: 14px; margin: 0 0 12px; line-height: 1.4; }
  .site .chips { display: flex; flex-wrap: wrap; gap: 8px; }
}

.lesson-rail,
.step-rail,
.app-dock { display: none; }
.top-studio { display: flex; gap: 16px; margin-right: 8px; }
.top-studio a { font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: .06em; }
.top-studio a.on { color: #fff; }
.studio { margin: 8px 0 18px; display: flex; flex-direction: column; gap: 6px; }
.studio a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  background: #ede9e2;
  font-size: 13px;
  color: #3d344f;
}
.studio a.on { background: #e7e0f7; font-weight: 700; }
.kira-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.kira-pills button {
  border: 0;
  background: #e7e0f7;
  color: #3d344f;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.studio-visual {
  position: relative;
  margin: 20px 0 22px;
  overflow: hidden;
  border-radius: 14px;
  background: #111015;
  aspect-ratio: 16 / 9;
}
.studio-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: inherit;
}
.atlas-card { margin: 0 0 96px; max-width: 860px; padding-top: 8px; border-top: 1px solid rgba(23, 21, 27, 0.08); scroll-margin-top: 24px; }
.atlas-card h3 { max-width: 22ch; font-size: clamp(30px, 4vw, 44px); }
.atlas-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0 0 72px;
  padding: 22px 24px;
  border-radius: 14px;
  background: #f7f4ee;
}
.atlas-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 14px;
  color: #3d344f;
  border-bottom: 1px solid rgba(23, 21, 27, 0.06);
}
.atlas-toc a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.atlas-toc em {
  flex: 0 0 auto;
  font-family: var(--display);
  font-style: normal;
  font-size: 11px;
  color: #78699d;
}
.atlas-body { max-width: 720px; }
.atlas-block { margin: 0 0 28px; }
.atlas-block h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78699d;
}
.atlas-block p { margin: 0; font-size: 17px; line-height: 1.7; color: #39363d; }
.atlas-signs { margin: 0; padding: 0; list-style: none; }
.atlas-signs li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #39363d;
}
.atlas-signs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 2px;
  background: #78699d;
}
.atlas-shift { padding: 22px 24px; border-radius: 14px; background: #f7f4ee; }
.atlas-shift h4 { color: #4d435d; }
.atlas-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin: 0;
  font-size: 14px;
  color: #6a6572;
}
.atlas-link span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78699d;
}
.tool { max-width: 860px; margin: 0 0 72px; }
.tool h3 { max-width: 20ch; font-size: clamp(30px, 4vw, 44px); }
.tool-visual { margin-bottom: 24px; }
.tool-box { padding: 22px; background: #f7f4ee; border-radius: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.check-row input { margin-top: 4px; }
.sort-grid, .halt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sort-card, .halt-card {
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  min-height: 92px;
}
.sort-card small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #7d6b9c; margin-bottom: 6px; }
.sort-card.is-mine { background: #e7e0f7; }
.sort-card.is-his { background: #ece8e0; }
.sort-card.is-shared { background: #ddd4f4; }
.halt-card b { display: block; margin-bottom: 6px; }
.halt-card span { color: #6a6572; font-size: 14px; }
.halt-card.on { background: #e7e0f7; }
.script-slot { margin-bottom: 16px; }
.script-slot b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7d6b9c; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.chip-opt.on { background: #4d435d; color: #fff; }
.script-out { margin-top: 8px; padding: 16px; background: #fff; border-radius: 10px; font-size: 18px; line-height: 1.45; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dual label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #6a6572; }
.dual textarea {
  min-height: 140px;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #17151b;
  resize: vertical;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
  border-radius: 12px;
  background: #f7f4ee;
}
.field-card b { color: #3d344f; margin-bottom: 5px; }
.field-card span { min-height: 40px; color: #6a6572; font-size: 13px; line-height: 1.45; }
.field-card textarea {
  flex: 1;
  width: 100%;
  min-height: 110px;
  margin-top: 12px;
  border: 0;
  border-radius: 9px;
  padding: 12px;
  resize: vertical;
  background: #fff;
  color: #17151b;
}
.safety-tool { padding: 26px; border-radius: 16px; background: #17151b; color: #fff; }
.safety-tool .section-label { color: #c6b9ee; }
.safety-tool .lede { color: rgba(255,255,255,.72); }
.safety-tool .tool-box { background: rgba(255,255,255,.06); }
.safety-row { color: rgba(255,255,255,.9); }
.gloss-list { display: flex; flex-direction: column; gap: 16px; }
.gloss { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(23,21,27,.08); }
.gloss b { color: #3d344f; }
.gloss span { color: #39363d; }
@media (max-width: 720px) {
  .sort-grid, .halt-grid, .dual, .gloss, .field-grid { grid-template-columns: 1fr; }
  .atlas-card, .tool { margin-bottom: 56px; }
  .studio-visual { margin-inline: -16px; border-radius: 0; }
  .tool .studio-visual { margin-inline: 0; border-radius: 10px; }
  .safety-tool { padding: 20px 16px; }

  html, body, .site, .app, .flow { overflow-x: clip; }
  .inner { width: min(calc(100% - 32px), 1180px); }
  .btn { min-height: 44px; }
  textarea, input { font-size: 16px; }

  .site .nav {
    align-items: center;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  }
  .site .brand {
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    max-width: calc(100% - 96px);
  }
  .site .nav .btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 12px;
  }
  .site .hero {
    display: block;
    min-height: 100svh;
    padding: 0;
  }
  .site .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: max(20px, env(safe-area-inset-bottom));
  }
  .site .hero-east,
  .site .hero-west,
  .hero-east,
  .hero-west {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: 0;
    text-align: left;
  }
  .site .hero-east h1,
  .hero-east h1 {
    font-size: clamp(26px, 7.4vw, 32px);
    margin-bottom: 14px;
  }
  .site .hero-east .btn { width: 100%; }
  .site .hero-west p,
  .hero-west p { font-size: 14px; margin: 0 0 12px; }
  .chips { gap: 6px; }
  .chips a,
  .chips span { min-height: 32px; padding: 4px 10px; font-size: 12px; }
  body.has-cookie .site .hero-copy { bottom: max(96px, calc(20px + env(safe-area-inset-bottom))); }

  .block { padding: 72px 0; }
  .block h2 { font-size: 30px; max-width: none; }
  .program-head p:last-child { margin-bottom: 0; }
  .mods li,
  .module-card { min-height: 0; padding: 22px; }
  .author-shot,
  .author-shot img { min-height: 0; aspect-ratio: 4 / 5; height: auto; object-position: 50% 0; }
  .author-meta { padding: 36px 16px 0; }
  .author-meta h2 { font-size: 36px; }
  .author-facts { max-width: none; }
  .author-facts li { grid-template-columns: 84px minmax(0, 1fr); }
  .author-quote { width: calc(100% - 32px); padding: 48px 0 64px; }
  .author-quote p { max-width: none; font-size: 24px; }
  .closing-board { width: calc(100% - 32px); padding: 64px 0 36px; }
  .closing h2 { font-size: 30px; max-width: none; }
  .closing-action { gap: 20px; }
  .closing .btn.light { width: 100%; }
  .legal-foot { padding: 48px 0 40px; }
  .legal-foot-inner { width: calc(100% - 32px); }
  .legal-brand { margin-bottom: 28px; padding-bottom: 22px; }
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-bottom { flex-direction: column; }
  body.has-cookie .legal-foot { padding-bottom: 160px; }

  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  body.has-cookie:has(.app) .cookie-bar { bottom: calc(68px + env(safe-area-inset-bottom)); }

  .nav.thin {
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  }
  .nav.thin .brand,
  .nav.thin .wordmark,
  .top .brand,
  .top .wordmark {
    min-width: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.3;
  }
  .nav.thin .text-link,
  .nav.thin .step-count { flex: 0 0 auto; }
  .flow-main {
    width: calc(100% - 32px);
    padding: 48px 0 72px;
  }
  .flow-main::before { display: none; }
  .flow-main h1 {
    max-width: none;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.05;
  }
  .stack-form input,
  .chat-in input,
  .hw textarea,
  .dual textarea,
  .field-card textarea { font-size: 16px; }
  .stack-form input { min-height: 48px; }
  .choice { padding: 16px; }
  .choice:hover { transform: none; }
  .flow .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .flow .actions .btn,
  .flow .btn[type="submit"],
  .flow #payStub { width: 100%; }
  .flow .actions .text-link {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  html:has(.app),
  body:has(.app),
  body:has(.app) #app {
    height: 100%;
    height: var(--app-h, 100dvh);
    max-height: var(--app-h, 100dvh);
    overflow: hidden;
    background: #17151b;
    overscroll-behavior: none;
  }
  .app {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    overflow: hidden;
    background: #f7f4ee;
  }
  .app-head {
    position: relative;
    top: auto;
    z-index: 30;
    flex: 0 0 auto;
    background: #17151b;
  }
  .top {
    min-height: 56px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
    gap: 10px;
    background: #17151b;
  }
  .top-titles,
  .top-studio,
  .side { display: none !important; }
  .top .brand { flex: 1; }
  .top .wordmark {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top .text-link {
    min-height: 36px;
    padding: 0 4px;
  }
  .lesson-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    padding: 10px 14px;
    background: #f7f4ee;
    border-bottom: 1px solid rgba(23, 21, 27, 0.08);
    scrollbar-width: none;
  }
  .lesson-rail::-webkit-scrollbar { display: none; }
  .lesson-rail a {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ebe6df;
    color: #3d344f;
  }
  .lesson-rail a em {
    font-family: var(--display);
    font-style: normal;
    font-size: 13px;
    letter-spacing: -0.04em;
    color: inherit;
  }
  .lesson-rail a.on { background: #e7e0f7; color: #3d344f; font-weight: 600; }
  .lesson-rail a.is-done { box-shadow: inset 0 0 0 1.5px #78699d; }
  .body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .app-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
    background: #17151b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  }
  .app-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px 2px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    color: rgba(255, 255, 255, 0.42);
  }
  .app-dock a svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .app-dock a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-dock a.on { color: #fff; }
  .main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 24px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .lesson-head { grid-template-columns: 1fr; gap: 6px; }
  .lesson-number { display: none; }
  .lesson-head h2 {
    max-width: none;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.05;
  }
  .section { margin-bottom: 48px; }
  .section h3 { font-size: 26px; }
  .lecture p { font-size: 16px; }
  .lecture .lec-drop::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; }
  .video { margin: 24px 0 36px; border-radius: 16px; }
  .video .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .video .play svg { width: 20px; height: 20px; }
  .video-meta { display: none; }
  .hw { padding: 18px 14px; }
  .row { flex-direction: column; }
  .row .btn { width: 100%; }
  .chat-wrap { min-height: 0; padding-bottom: 140px; }
  .msg { max-width: 88%; }
  .chat-in {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom));
    z-index: 35;
    display: block;
    margin: 0;
    padding: 10px 12px 12px;
    background: #f7f4ee;
    box-shadow: 0 -10px 28px rgba(17, 14, 20, 0.08);
  }
  .gpt-box { border-radius: 26px; }
  .chat-in .btn,
  .chat-in .gpt-send { width: 36px; min-width: 36px; }
  body.has-cookie .chat-in { bottom: calc(132px + env(safe-area-inset-bottom)); }
  .kira-pills { gap: 6px; }
  .kira-pills button { min-height: 40px; }

  body.is-kira { overflow: hidden; }
  body.is-kira .app {
    height: var(--app-h, 100dvh);
    max-height: var(--app-h, 100dvh);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  body.is-kira .app-head { flex: 0 0 auto; }
  body.is-kira .body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }
  body.is-kira .main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 16px calc(68px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }
  body.is-kira .kira-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.is-kira .kira-page > .crumb,
  body.is-kira .kira-page > .lede { display: none; }
  body.is-kira .kira-page > h2 {
    flex: 0 0 auto;
    margin: 0 0 8px;
    font-size: 22px;
  }
  body.is-kira .kira-pills {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.is-kira .kira-pills::-webkit-scrollbar { display: none; }
  body.is-kira .kira-pills button { flex: 0 0 auto; }
  body.is-kira .chat-wrap {
    flex: 1 1 0;
    min-height: 0;
    padding-bottom: 0;
    border-top: 0;
    overflow: hidden;
  }
  body.is-kira .chat-log {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 10px;
  }
  body.is-kira .chat-in {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 5;
    flex: 0 0 auto;
    padding: 8px 0 4px;
    background: #f7f4ee;
    box-shadow: 0 -10px 18px rgba(17, 14, 20, 0.04);
  }
  body.has-cookie.is-kira .chat-in { bottom: auto; }
  body.has-cookie .main { padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px)); }
  body.has-cookie.is-kira .main { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
  .atlas-card h3,
  .tool h3 { max-width: none; font-size: clamp(26px, 7vw, 34px); }
  .atlas-card { margin-bottom: 72px; }
  .atlas-toc { grid-template-columns: 1fr; padding: 16px; margin-bottom: 48px; }
  .atlas-block p { font-size: 16px; }
  .atlas-shift { padding: 18px 16px; }
  .free-mod {
    min-height: min(92svh, 860px);
    padding: 36px 18px 32px;
    color: #fff;
    background: #120e12;
  }
  .free-mod-copy { max-width: none; }
  .free-mod h2 { font-size: clamp(30px, 8vw, 40px); color: #fff; }
  .free-mod .btn { width: 100%; }
  .goals { padding: 16px; }
  .survey-block { padding: 16px; }
  .scale-n { width: 32px; height: 32px; }
  .lesson-rail a.is-lock { opacity: .4; }
}

.module-card.is-free {
  grid-column: 1 / -1;
  min-height: 220px;
  flex-direction: row;
  align-items: flex-end;
  gap: 28px;
  background: rgba(255, 255, 255, 0.06);
}
.module-card.is-free > div { margin: 0 auto 0 0; }
.module-card.is-free .module-time { color: #f3eefc !important; }

.free-mod {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 72px var(--gutter, 32px) 64px;
  overflow: hidden;
  color: #fff;
  background: #17151b;
}
.free-mod-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: 0;
}
.free-mod-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 7, 9, 0.78) 0%, rgba(10, 7, 9, 0.4) 48%, rgba(10, 7, 9, 0.16) 100%),
    linear-gradient(180deg, rgba(10, 7, 9, 0.18) 0%, rgba(10, 7, 9, 0.28) 42%, rgba(10, 7, 9, 0.78) 100%);
}
.free-mod-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.free-mod .kicker { color: rgba(255, 245, 238, 0.72); }
.free-mod h2 {
  margin: 8px 0 16px;
  max-width: 14ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 8px 40px rgba(8, 6, 10, 0.35);
}
.free-mod-lead {
  margin: 0 0 22px;
  max-width: 38em;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.free-mod-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.free-mod-list li {
  position: relative;
  max-width: 42em;
  padding: 10px 0 10px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.free-mod-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c6b9ee;
}
.free-mod .btn.light {
  background: #fff;
  color: #17151b;
  min-height: 52px;
  padding-inline: 28px;
  box-shadow: 0 14px 40px rgba(8, 6, 10, 0.28);
}
.free-mod .btn.light:hover {
  background: #f6f0ff;
  color: #17151b;
}

.goals {
  max-width: 42em;
  margin: 18px 0 0;
  padding: 18px 20px;
  list-style: none;
  background: #f4efe8;
  border-radius: 12px;
}
.goals li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: #3d344f;
}
.goals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78699d;
}

.nav-mod.is-lock .t,
.nav-mod.is-lock .n { opacity: 0.45; }
.lessons a.is-lock { opacity: 0.42; }
.lessons a.is-lock .dot { background: #d7d1c8; }
.lock-card {
  max-width: 640px;
  padding: 28px;
  background: #f7f4ee;
  border-radius: 14px;
}

.quiz-form .choice,
.survey-form .choice {
  background: #fff;
  border: 1px solid rgba(23, 21, 27, 0.12);
  color: var(--ink);
}
.quiz-form .choice.on,
.survey-form .choice.on {
  background: #78699d;
  color: #fff;
  border-color: #78699d;
}
.quiz-form,
.survey-form { max-width: 760px; }
.quiz-q,
.survey-q { margin: 0 0 28px; }
.quiz-n {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78699d;
}
.quiz-q h4,
.survey-q > span,
.survey-q span:first-child {
  display: block;
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.quiz-why {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #efeaf8;
  border-radius: 10px;
  color: #3d344f;
  line-height: 1.5;
}
.quiz-score {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 22px;
}
.choice.is-right { box-shadow: inset 0 0 0 1.5px #5b7a4f; }
.choice.is-wrong { box-shadow: inset 0 0 0 1.5px #9a4d4d; }
.choice[disabled] { cursor: default; }

.survey-block {
  margin: 0 0 28px;
  padding: 22px 22px 8px;
  border: 0;
  border-radius: 14px;
  background: #f7f4ee;
}
.survey-block legend {
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78699d;
}
.survey-q textarea,
.survey-other {
  width: 100%;
  min-height: 120px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 21, 27, 0.1);
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.survey-other { min-height: 48px; margin-top: 8px; }
.scale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}
.scale-n {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ebe6df;
  color: #3d344f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.scale-n.on { background: #78699d; color: #fff; }
.scale-item p {
  margin: 14px 0 6px;
  font-size: 15px;
  line-height: 1.45;
}
.form-err { color: #8a3a3a; font-size: 14px; }
.review { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(23, 21, 27, 0.08); }
.review .tag {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78699d;
}

.reply-slot { min-height: 0; }
.hw textarea:disabled { opacity: 0.78; }
.reply-pending,
.review.reply-ai,
.final-verdict,
.quiz-score {
  scroll-margin-top: calc(108px + env(safe-area-inset-top));
  scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom));
}
.reply-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px 16px 16px 6px;
  color: #6b6573;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(23, 21, 27, 0.06);
  animation: replyIn 0.28s ease;
}
.reply-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.reply-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78699d;
  animation: replyDot 1.1s infinite ease-in-out;
}
.reply-dots i:nth-child(2) { animation-delay: 0.15s; }
.reply-dots i:nth-child(3) { animation-delay: 0.3s; }
.review.reply-ai {
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-top: 0;
  background: #fff;
  border-radius: 16px 16px 16px 6px;
  box-shadow: 0 0 0 1px rgba(23, 21, 27, 0.06);
  animation: replyIn 0.4s ease;
}
.msg { animation: replyIn 0.32s ease; }
.msg.is-think .bubble {
  display: flex;
  align-items: center;
  min-height: 22px;
}
@keyframes replyIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes replyDot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 720px) {
  .module-card.is-free {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 0;
    padding: 22px 18px;
  }

  .free-mod {
    min-height: min(92svh, 860px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 28px 18px 32px;
    background: #120e12;
    color: #fff;
  }
  .free-mod-bg { object-position: center 38%; }
  .free-mod-shade {
    display: block;
    background:
      linear-gradient(180deg, rgba(10, 7, 9, 0.1) 0%, rgba(10, 7, 9, 0.42) 38%, rgba(10, 7, 9, 0.9) 100%),
      linear-gradient(90deg, rgba(10, 7, 9, 0.45) 0%, transparent 72%);
  }
  .free-mod-copy {
    max-width: none;
    padding: 0;
  }
  .free-mod .kicker { color: rgba(255, 245, 238, 0.72); }
  .free-mod h2 {
    max-width: 12ch;
    font-size: clamp(30px, 8.4vw, 40px);
    color: #fff;
  }
  .free-mod-lead,
  .free-mod-list li { color: rgba(255, 255, 255, 0.86); }
  .free-mod-list li { border-top-color: rgba(255, 255, 255, 0.16); }
  .free-mod-list li::before { background: #e8d6ba; }
  .free-mod .btn { width: 100%; }
  .free-mod .btn.light {
    background: #fff;
    color: #17151b;
  }

  .step-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    padding: 8px 14px 12px;
    background: #f7f4ee;
    border-bottom: 1px solid rgba(23, 21, 27, 0.08);
    scrollbar-width: none;
    max-height: 72px;
    transform: translateY(0);
    opacity: 1;
    transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.22s ease, border-width 0.22s ease;
  }
  body.rail-slim .step-rail {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-width: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .step-rail::-webkit-scrollbar { display: none; }
  .step-rail a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    min-height: 40px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: #ebe6df;
    color: #3d344f;
  }
  .step-rail a em {
    flex: 0 0 22px;
    font-family: var(--display);
    font-style: normal;
    font-size: 12px;
    text-align: center;
  }
  .step-rail a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .step-rail a.on { background: #e7e0f7; font-weight: 600; }
  .step-rail a.is-done { box-shadow: inset 0 0 0 1.5px #78699d; }
  .step-rail a.is-lock { opacity: 0.42; }

  .scale-row {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 4px;
  }
  .scale-n {
    width: auto;
    height: 34px;
    min-width: 0;
    padding: 0;
    font-size: 11px;
  }
  .survey-q textarea { min-height: 96px; font-size: 16px; }
  .survey-block { padding: 16px 14px 6px; }
  .quiz-q h4,
  .survey-q > span { font-size: 16px; }
  .goals { padding: 14px; }
  .goals li { font-size: 14px; }
  .lock-card { padding: 20px 16px; }
  .author-shot { min-height: 380px; }
  .legal-foot-inner { width: calc(100% - 32px); padding-inline: 0; }
  .strip .inner { width: calc(100% - 32px); }
}

@media (max-width: 390px) {
  .site .hero-east h1,
  .free-mod h2,
  .lesson-head h2 { font-size: 26px; }
  .scale-n { height: 30px; font-size: 10px; }
  .app-dock a { font-size: 10px; }
}

.free-mod picture { display: contents; }

.pwa-band {
  background: #17151b;
  color: #fff;
  padding: 72px 0;
}
.pwa-band .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 48px;
  align-items: end;
}
.pwa-band .kicker { color: rgba(255, 255, 255, 0.62); }
.pwa-band h2 {
  max-width: 14ch;
  margin: 8px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  color: #fff;
}
.pwa-band p { margin: 0; max-width: 38em; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.pwa-band-action .btn { min-height: 52px; background: #e4dafd; color: var(--violet); }
.pwa-band-action p { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

.pwa-side {
  margin: 0 0 18px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #ede9e2;
}
.pwa-side b { display: block; margin-bottom: 6px; font-size: 13px; }
.pwa-side span { display: block; margin-bottom: 12px; font-size: 12px; line-height: 1.4; color: #625d68; }
.pwa-side .btn { width: 100%; min-height: 42px; }
.pwa-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7e0f7;
  color: #3d344f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pwa-badge.light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pwa-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 6, 12, 0.55);
}
.pwa-layer[hidden] { display: none !important; }
.pwa-sheet {
  width: min(920px, 100%);
  max-height: min(92dvh, 860px);
  overflow: auto;
  padding: 22px 22px 28px;
  border-radius: 18px 18px 12px 12px;
  background: #f7f4ee;
  color: var(--ink);
}
.pwa-x {
  float: right;
  border: 0;
  background: transparent;
  color: #625d68;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pwa-sheet .kicker { color: #78699d; }
.pwa-sheet h2 {
  max-width: 16ch;
  margin: 6px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.pwa-lead { margin: 0 0 18px; max-width: 40em; line-height: 1.55; color: #4a4550; }
.pwa-on-note { margin: 0 0 16px; color: #3d344f; }
.pwa-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.pwa-card {
  padding: 16px 16px 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(23, 21, 27, 0.08);
}
.pwa-card.is-now { box-shadow: inset 0 0 0 1.5px #78699d; }
.pwa-os {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78699d;
}
.pwa-card ol {
  margin: 0;
  padding: 0 0 0 18px;
}
.pwa-card li {
  margin: 0 0 10px;
  line-height: 1.45;
  font-size: 14px;
}
body.pwa-open { overflow: hidden; }

@media (min-width: 721px) {
  .pwa-layer { align-items: center; padding: 32px; }
  .pwa-sheet { border-radius: 16px; padding: 32px; }
}

@media (max-width: 720px) {
  .pwa-band { padding: 48px 0; }
  .pwa-band .inner {
    grid-template-columns: 1fr;
    gap: 22px;
    width: calc(100% - 32px);
  }
  .pwa-band h2 { max-width: none; }
  .pwa-band-action .btn { width: 100%; }
  .pwa-cols { grid-template-columns: 1fr; }
  .pwa-sheet { padding: 18px 16px 24px; }
  .pwa-side { display: none; }
}

/* Guide «Как всё устроено», library, final verdict */
.guide-feat {
  display: grid;
  gap: 20px;
  margin: 28px 0 48px;
  align-items: start;
}
.guide-feat .guide-shot { margin: 0; }
.guide-feat h3 { margin: 6px 0 10px; }
.guide-feat .lede { margin: 0 0 12px; }
.guide-feat .guide-facts { margin: 8px 0 16px; grid-template-columns: 1fr; }
.guide-feat .row { margin-top: 4px; }
.guide-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 21, 27, 0.1);
  color: var(--mute);
  font-size: 14px;
}
#introSurveyBox { scroll-margin-top: calc(108px + env(safe-area-inset-top)); }
#introSurveyBox .survey-form { max-width: none; }
#introSurveyBox .survey-block { background: #fff; }
.guide-facts { display: grid; gap: 12px; margin: 18px 0 26px; }
.guide-facts > div { padding: 18px 20px; background: #f7f4ee; border-radius: 14px; }
.guide-facts b { display: block; margin-bottom: 6px; color: var(--ink); }
.guide-facts p { margin: 0; color: var(--mute); font-size: 15px; }
.guide-list { margin: 14px 0 0; padding-left: 20px; color: var(--ink); }
.guide-list li { margin-bottom: 8px; }
.guide-list a { color: var(--violet-dark); }
.guide-team { display: grid; gap: 12px; margin: 18px 0 22px; }
.guide-team > div { padding: 16px 18px; background: #f7f4ee; border-radius: 14px; }
.guide-team b { display: block; color: var(--ink); }
.guide-team span { color: var(--mute); font-size: 14px; }
.cert-box { margin-top: 8px; scroll-margin-top: calc(108px + env(safe-area-inset-top)); }
.cert-box.is-need {
  animation: certNeed 1s ease;
  box-shadow: 0 0 0 2px #78699d;
}
@keyframes certNeed {
  0%, 100% { box-shadow: 0 0 0 2px #78699d; }
  40% { box-shadow: 0 0 0 6px rgba(120, 105, 157, 0.28); }
}
.cert-box h4 { margin: 0 0 8px; color: var(--ink); }
.cert-lead { margin: 0 0 16px; color: var(--mute); font-size: 15px; }
.cert-checks { display: grid; gap: 10px; margin: 0 0 4px; }
.cert-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.cert-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: 0 0 22px;
  accent-color: #78699d;
}
.cert-check span { display: grid; gap: 2px; color: var(--ink); line-height: 1.35; }
.cert-check strong { display: block; }
.cert-form { display: grid; gap: 12px; margin-top: 18px; }
.cert-form label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.cert-form input {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.cert-form input:focus { outline: 2px solid var(--aura); outline-offset: 1px; }
.cert-saved { align-self: center; font-size: 13px; color: #5b7a4f; }
.lib-list { display: grid; gap: 12px; }
.lib-item { padding: 16px 18px; background: #f7f4ee; border-radius: 14px; }
.lib-item p { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.lib-item .text-link { font-size: 13px; }
.final-verdict { margin: 20px 0; padding: 22px; border-radius: 14px; background: #f7f4ee; }
.final-verdict h4 { margin: 0 0 10px; color: var(--ink); font-size: 19px; }
.final-verdict p { margin: 0 0 10px; color: var(--mute); }
.final-verdict p:last-child { margin-bottom: 0; }
.final-verdict.is-pass { box-shadow: inset 0 0 0 1.5px #5b7a4f; }
@media (min-width: 721px) {
  .guide-facts { grid-template-columns: 1fr 1fr; }
  .guide-team { grid-template-columns: 1fr 1fr; }
  .guide-feat {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
  }
  .guide-feat.is-rev .guide-shot { order: 2; }
  .guide-feat.is-rev > div { order: 1; }
  .guide-feat .guide-facts { grid-template-columns: 1fr; }
}
