/* ============================================================
   GTM Outreach Crash Course — guided, one-step-at-a-time UI
   Depends on tokens from /assets/anjela.css
   ============================================================ */

:root {
  --card-radius: 6px;
  --term: #0A0A0A;
}

/* ───────────── slim top bar (44px, replaces the site nav here) ───────────── */
.cbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 max(20px, calc((100% - 860px) / 2));
  background: rgba(251,251,249,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.cbrand {
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
  text-decoration: none; color: var(--ink-0); flex: none;
}
.cbrand .dot { color: var(--magenta); }
.cchap {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cnum {
  flex: none; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .06em; color: var(--ink-0);
}
.cmap {
  flex: none; width: 30px; height: 30px; padding: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; border-radius: 6px; transition: background .15s;
}
.cmap:hover { background: rgba(10,10,10,0.06); }
.cmap i { display: block; width: 15px; height: 1.5px; background: var(--ink-1); border-radius: 2px; }
.cprog {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--magenta);
  transition: width .45s cubic-bezier(.2,.7,.3,1);
}

/* ───────────── stage ───────────── */
.stage { max-width: 780px; margin: 0 auto; padding: 40px 24px 120px; }

.step {
  display: none;
  animation: rise .38s cubic-bezier(.2,.7,.3,1) both;
}
.step.is-active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* when JS is off, show everything as a plain document */
.no-js .step { display: block; margin-bottom: 64px; }
.no-js .course-bar, .no-js .navrow, .no-js .gate { display: none; }

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--magenta);
}
.kicker .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; padding: 0 7px;
  border: 1px solid var(--magenta); border-radius: 999px;
  font-size: 10px; letter-spacing: .06em;
}
.kicker .ch { color: var(--ink-2); }

.step h2 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.05;
  margin: 18px 0 0; text-wrap: balance;
}
.step .lede {
  font-size: 20px; line-height: 1.5; color: var(--ink-1);
  margin: 18px 0 0; max-width: 42em; text-wrap: pretty;
}
.step p { max-width: 42em; }
.step h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  margin: 38px 0 0;
}
.step ul, .step ol { max-width: 42em; padding-left: 22px; }
.step li { margin: 9px 0; line-height: 1.55; }
.step li::marker { color: var(--ink-3); }
.step a[href] { color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }

/* outcome badge */
.outcome {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 30px 0 0; padding: 18px 20px;
  background: rgba(74,114,100,0.07);
  border-left: 2px solid var(--jade);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
.outcome .lb {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--jade); white-space: nowrap; padding-top: 4px;
}
.outcome p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-1); }

/* callouts */
.note {
  margin: 26px 0 0; padding: 16px 20px; border-radius: var(--card-radius);
  background: var(--paper-2); border: 1px solid var(--line-2);
  font-size: 16px; line-height: 1.55; color: var(--ink-1);
}
.note b { color: var(--ink-0); }
.note.warn { background: rgba(220,48,143,0.06); border-color: rgba(220,48,143,0.22); }
.note.tip  { background: rgba(231,254,85,0.30); border-color: rgba(10,10,10,0.10); color: var(--ink-0); }
.note .tag {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink-2);
}
.note.warn .tag { color: var(--magenta); }

/* ───────────── prompt / terminal blocks ───────────── */
.pbox { margin: 22px 0 0; border-radius: var(--card-radius); overflow: hidden; background: var(--term); }
.pbox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.pbox-head .lbl {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(251,251,249,0.55);
  min-width: 0; overflow-wrap: anywhere;
}
.pcopy {
  flex: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer;
  background: rgba(255,255,255,0.08); color: var(--paper);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px;
  padding: 6px 12px; transition: all .15s; white-space: nowrap;
}
.pcopy:hover { background: rgba(255,255,255,0.16); }
.pcopy.ok { background: var(--neon); color: var(--term); border-color: var(--neon); }
.pbox pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
  color: #EDEDE8; white-space: pre-wrap; word-break: break-word;
}
.pbox pre .v { color: var(--neon); }
.pbox.shell pre { color: #C9F3D8; }

/* ───────────── figures / diagrams ───────────── */
.fig { margin: 30px 0 0; padding: 0; }
.fig .scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-2); border-radius: var(--card-radius); background: #fff;
}
.fig svg { display: block; width: 100%; height: auto; padding: 10px; }
.fig figcaption {
  margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  max-width: 42em;
}

/* inline code */
.step code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 1px 5px;
}

/* ───────────── forms (ICP capture) ───────────── */
.fields { margin: 26px 0 0; display: grid; gap: 16px; }
.fields.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .fields.two { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-display); font-size: 16px; color: var(--ink-0);
  background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(220,48,143,0.10);
}
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }

/* live preview under the ICP forms — shows where the typing goes */
.livewrap { margin: 30px 0 0; }
.livewrap .lvl {
  margin: 0 0 -4px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--jade);
}
.livewrap .pbox pre { font-size: 13px; }
.pbox pre .v {
  color: var(--neon);
  animation: var-in .35s ease-out;
}
@keyframes var-in { from { background: rgba(231,254,85,.25); } to { background: transparent; } }

/* ───────────── branch chooser ───────────── */
.choices { display: grid; gap: 14px; margin: 28px 0 0; grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .choices.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .choices { grid-template-columns: 1fr; } }
.choice {
  text-align: left; cursor: pointer; background: #fff;
  border: 1px solid var(--line); border-radius: var(--card-radius);
  padding: 22px; transition: all .18s; font: inherit; color: inherit;
}
.choice:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.choice[aria-pressed="true"] {
  border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(220,48,143,0.10);
}
.choice .ct {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--magenta);
}
.choice h4 { margin: 10px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.choice p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-1); }
.choice .pick {
  display: inline-block; margin-top: 14px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.choice[aria-pressed="true"] .pick { color: var(--magenta); }
.choice[aria-pressed="true"] .pick::before { content: "✓ "; }

/* ───────────── gate + nav ───────────── */
.gate {
  margin: 40px 0 0; padding: 18px 20px;
  border: 1px dashed var(--line); border-radius: var(--card-radius);
  background: var(--paper-2);
}
.gate label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.gate input[type=checkbox] {
  appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--ink-3); border-radius: 5px; background: #fff;
  cursor: pointer; transition: all .15s; position: relative;
}
.gate input[type=checkbox]:checked { background: var(--jade); border-color: var(--jade); }
.gate input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.gate .gt { font-size: 16.5px; line-height: 1.45; color: var(--ink-0); }
.gate .gs { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* nav dock — in flow, Next centred so the next action is unmistakable */
.navdock {
  position: relative; display: flex; justify-content: center; align-items: center;
  margin: 52px 0 0; padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.ndot, .npill {
  font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; border-radius: 999px; border: 1px solid transparent;
  transition: background .18s, color .18s, opacity .18s, transform .18s;
}
.ndot {
  position: absolute; left: 0; top: 50%; margin-top: 14px; transform: translateY(-50%);
  width: 44px; height: 44px; font-size: 15px; line-height: 1;
  background: none; border-color: var(--line); color: var(--ink-2);
}
.ndot:hover:not(:disabled) { color: var(--ink-0); border-color: var(--ink-3); }
.ndot:disabled { opacity: 0; pointer-events: none; }
.npill {
  height: 52px; padding: 0 40px; font-size: 12.5px;
  background: var(--ink-0); color: var(--paper);
  box-shadow: 0 10px 26px -12px rgba(10,10,10,.5);
}
.npill:hover { background: var(--magenta); }
.npill.is-off {
  background: rgba(10,10,10,0.16); color: rgba(10,10,10,0.42);
  box-shadow: none;
}
.npill.is-off:hover { background: rgba(10,10,10,0.22); }

/* small standing credit, directly under the Next button */
.pagefoot {
  margin: 18px auto 0; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.7;
  letter-spacing: .04em; color: var(--ink-3); max-width: 40em;
}
.pagefoot a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.pagefoot a:hover { color: var(--magenta); border-bottom-color: var(--magenta); }

/* pulse the thing that is blocking Next */
@keyframes pulse-gate {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,48,143,0); }
  30%      { box-shadow: 0 0 0 5px rgba(220,48,143,0.20); }
}
.pulse {
  animation: pulse-gate .9s ease-out 2;
  border-color: var(--magenta) !important;
  border-style: solid !important;
}

/* ───────────── map (all steps) ───────────── */
.map-wrap { position: fixed; inset: 0; z-index: 90; display: none; }
.map-wrap.open { display: block; }
.map-wrap .scrim { position: absolute; inset: 0; background: rgba(10,10,10,0.42); backdrop-filter: blur(3px); }
.map {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw);
  background: var(--paper); border-left: 1px solid var(--line);
  overflow-y: auto; padding: 26px 26px 60px;
  animation: slidein .3s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.map h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.map .sub { font-size: 14px; color: var(--ink-2); margin: 6px 0 20px; line-height: 1.45; }
.map .chp {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); margin: 22px 0 8px;
  padding-top: 14px; border-top: 1px solid var(--line-2);
}
.map button.jump {
  display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; font: inherit;
  padding: 8px 10px; border-radius: 5px; color: var(--ink-1); font-size: 15.5px; line-height: 1.35;
}
.map button.jump:hover { background: var(--paper-2); color: var(--ink-0); }
.map button.jump .st { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); flex: none; width: 16px; }
.map button.jump.done .st { color: var(--jade); }
.map button.jump.now { background: rgba(220,48,143,0.08); color: var(--ink-0); font-weight: 600; }
.map button.jump.locked { color: var(--ink-3); cursor: not-allowed; }
.map .closex {
  position: absolute; top: 18px; right: 20px; background: none; border: none;
  font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer;
}
/* take-your-progress-with-you block in the map */
.map-save {
  margin: 28px 0 0; padding: 18px; border-radius: var(--card-radius);
  background: var(--paper-2); border: 1px solid var(--line-2);
}
.map-save .ms-t {
  margin: 0; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.map-save .ms-d { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-1); }
.ms-btn {
  margin: 14px 0 0; padding: 10px 16px; cursor: pointer;
  background: var(--ink-0); color: var(--paper);
  border: 1px solid var(--ink-0); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; transition: background .18s;
}
.ms-btn:hover { background: var(--magenta); border-color: var(--magenta); }
.ms-btn.ok { background: var(--neon); color: var(--ink-0); border-color: var(--neon); }

/* optional cloud sync card — only rendered when sync is configured */
.sync {
  margin: 34px 0 0; padding: 24px 26px;
  border: 1px solid var(--line); border-left: 2px solid var(--jade);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  background: #fff; max-width: 42em;
}
.sync .sy-t {
  margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-0);
}
.sync .sy-d { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-1); }
.sync .sy-row { display: flex; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; }
.sync input {
  flex: 1; min-width: 200px; font-family: var(--font-display); font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--card-radius);
  background: #fff; color: var(--ink-0);
}
.sync input:focus {
  outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(74,114,100,.12);
}
.sy-btn {
  flex: none; padding: 12px 22px; cursor: pointer;
  background: var(--ink-0); color: var(--paper);
  border: 1px solid var(--ink-0); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; transition: background .18s;
}
.sy-btn:hover { background: var(--jade); border-color: var(--jade); }
.sync .sy-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sync .sy-err { margin: 12px 0 0; font-size: 14px; color: var(--magenta); }

/* storage-unavailable warning */
.nostore {
  margin: 0 0 26px; padding: 16px 18px; border-radius: var(--card-radius);
  background: rgba(220,48,143,0.07); border: 1px solid rgba(220,48,143,0.28);
  font-size: 15px; line-height: 1.55; color: var(--ink-1);
}
.nostore b { color: var(--ink-0); }

.map-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.map-foot a { color: var(--ink-2); text-decoration: none; }
.map-foot a:hover { color: var(--ink-0); }
.map-foot button {
  background: none; border: none; cursor: pointer; padding: 0;
  font: inherit; color: var(--ink-3);
}
.map-foot button:hover { color: var(--magenta); }

/* ───────────── finish screen ───────────── */
.trophy {
  margin: 30px 0 0; padding: 34px; border-radius: var(--card-radius);
  background: var(--term); color: var(--paper);
}
.trophy h3 { margin: 0; color: var(--paper); font-size: 26px; letter-spacing: -0.03em; }
.trophy p { color: rgba(251,251,249,0.72); margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.trophy .stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 26px 0 0; }
.trophy .stat .n { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--neon); }
.trophy .stat .l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(251,251,249,0.55); margin-top: 4px;
}

/* reference tables */
.ref { margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; }
.ref .row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 16px; align-items: baseline;
}
.ref .row:last-child { border-bottom: none; }
.ref .row:nth-child(odd) { background: rgba(10,10,10,0.015); }
.ref .row .lb { min-width: 0; }          /* one grid child, so the value stays on its line */
.ref .row b { font-weight: 600; }
.ref .row code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: rgba(10,10,10,0.05); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 1px 5px;
}
.ref .row .val {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-1);
  text-align: right; white-space: nowrap;
}
@media (max-width: 560px) {
  .ref .row { grid-template-columns: 1fr; gap: 4px; }
  .ref .row .val { text-align: left; }
}
.ref .row .val.good { color: var(--jade); }
.ref .row .val.bad { color: var(--magenta); }

/* quiet author line — mentioned in passing, never competing with the lesson */
.byline-inline {
  margin: 36px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 42em;
}
.byline-inline a { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; }
.byline-inline a:hover { color: var(--magenta); }

/* thank-you block — only on the final screen, where it is earned */
.thanks {
  margin: 44px 0 0; padding: 30px 30px 32px;
  border: 1px solid var(--line); border-radius: var(--card-radius);
  background: #fff; max-width: 42em;
}
.thanks .tl {
  margin: 0; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.thanks h3 { margin: 10px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.thanks p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-1); }
.thanks a { color: var(--magenta); }
.thanks-cta {
  display: inline-block; margin: 22px 0 0; padding: 14px 22px;
  background: var(--ink-0); color: var(--paper) !important;
  border-radius: 999px; text-decoration: none !important;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; transition: background .18s;
}
.thanks-cta:hover { background: var(--magenta); }
@media (max-width: 640px) {
  .thanks { padding: 22px 20px 24px; }
  .thanks-cta { font-size: 10.5px; padding: 13px 16px; letter-spacing: .06em; }
}

@media (max-width: 640px) {
  .cbar { height: 44px; gap: 10px; padding: 0 16px; }
  .cchap { display: none; }              /* chapter name lives in the map on small screens */
  .cbrand { font-size: 15px; }
  .stage { padding: 26px 18px 96px; }
  .step h2 { font-size: clamp(26px, 8vw, 34px); }
  .step .lede { font-size: 18px; }
  .step p, .step li { font-size: 17px; }
  .pbox pre { font-size: 12.5px; padding: 14px; }
  .pbox-head { padding: 9px 12px; }
  .pbox-head .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pcopy { padding: 6px 10px; letter-spacing: .06em; }
  .navdock { margin-top: 42px; padding-top: 24px; }
  .ndot { width: 40px; height: 40px; margin-top: 12px; }
  .npill { height: 50px; padding: 0 32px; font-size: 12px; }
  .pagefoot { font-size: 10px; }
  .note, .outcome { padding: 14px 16px; }
  .gate { padding: 16px; margin-top: 30px; }
  /* keep diagram labels legible — swipe instead of shrinking to 7px type */
  .fig svg { min-width: 560px; }
  .fig.narrow svg { min-width: 0; }      /* this one is built to fit a phone */
  .fig.narrow .scroll::after { display: none; }
  .fig .scroll { position: relative; }
  .fig .scroll::after {
    content: ""; position: sticky; right: 0; top: 0; float: right;
    width: 26px; height: 100%; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff);
  }
}

/* ───────────── screencast slots (замени .ph на <video>, когда запись готова) ───────────── */
.cast { margin: 30px 0 0; padding: 0; }
.cast .frame {
  position: relative; border-radius: var(--card-radius); overflow: hidden;
  background: var(--term); border: 1px solid var(--line);
}
.cast video { display: block; width: 100%; height: auto; }
.cast .ph {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 12px;
}
.cast .ph .pt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--neon);
}
.cast .ph p {
  margin: 0; padding: 0 24px; font-size: 15px; line-height: 1.5;
  text-align: center; max-width: 34em; color: rgba(251,251,249,0.65);
}
.cast figcaption {
  margin: 12px 0 0; font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2); max-width: 42em;
}
/* quote wall on the social-proof step */
.quotes { margin: 30px 0 0; display: grid; gap: 14px; }
.quote {
  padding: 20px 22px; background: #fff; border: 1px solid var(--line);
  border-left: 2px solid var(--magenta); border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
.quote p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-0); }
.quote .who {
  display: block; margin-top: 10px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; color: var(--ink-2);
}

/* ───────────── «сейчас → куда растёт» на шаге про потолок ───────────── */
.gap {
  margin: 30px 0 0; border: 1px solid var(--line);
  border-radius: var(--card-radius); overflow: hidden; background: #fff;
}
.gap-head, .gap-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.gap-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.gap-head span {
  padding: 11px 20px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.gap-head .gh-b { color: var(--jade); border-left: 1px solid var(--line); }
.gap-row { border-bottom: 1px solid var(--line-2); }
.gap-row:last-child { border-bottom: none; }
.gap-row .ga, .gap-row .gb {
  padding: 16px 20px; font-size: 16px; line-height: 1.5;
}
.gap-row .ga { color: var(--ink-2); }
.gap-row .gb {
  color: var(--ink-0); border-left: 1px solid var(--line);
  background: rgba(74,114,100,0.045);
}
.gap-row .gb::before {
  content: "→"; color: var(--jade); margin-right: 9px;
  font-family: var(--font-mono);
}
@media (max-width: 620px) {
  .gap-head { display: none; }
  .gap-row { grid-template-columns: 1fr; border-bottom-width: 1px; border-bottom-color: var(--line); }
  .gap-row .ga { padding: 16px 18px 10px; }
  .gap-row .gb { border-left: none; padding: 0 18px 16px; background: none; }
  .gap-row .gb::before { margin-right: 7px; }
}

/* ───────────── микро-отзыв «голос из чата» внутри шага ───────────── */
.voice {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 26px 0 0; padding: 15px 18px;
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: var(--card-radius);
}
.voice .vq {
  flex: none; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--magenta);
  padding-top: 3px;
}
.voice p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-1); max-width: 40em; }
.voice p b { color: var(--ink-0); font-weight: 600; }
.voice .vw {
  display: block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3);
}
@media (max-width: 560px) {
  .voice { flex-direction: column; gap: 8px; }
}

/* ───────────── что внутри фокус-группы (финальный экран) ───────────── */
.inside { margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .inside { grid-template-columns: 1fr; } }
.inside .it {
  padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.inside .it .n {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--magenta);
}
.inside .it p { margin: 7px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-1); }
.inside .it b { color: var(--ink-0); }

/* ───────────── выделенный мост к фокус-группе ───────────── */
.fg-note {
  margin: 34px 0 0; padding: 24px 28px;
  border-left: 3px solid var(--magenta);
  background: rgba(220,48,143,0.05);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
.fg-note p {
  margin: 0; font-size: 21px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.35; color: var(--ink-0);
  max-width: 30em;
}
.fg-note .sub {
  display: block; margin: 10px 0 0; font-size: 16px; font-weight: 400;
  letter-spacing: 0; color: var(--ink-1);
}

/* ───────────── proof gallery: slots that become <img>/<video> once the real files land ───────────── */
.proof { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 12px; }
.proof figure { margin: 0; }
.proof .sl {
  aspect-ratio: 9 / 16; border-radius: var(--card-radius); overflow: hidden;
  border: 1.5px dashed var(--line); background: var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center;
}
.proof .sl .pt {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--magenta);
}
.proof .sl span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.proof img, .proof video { display: block; width: 100%; height: 100%; object-fit: cover; }
.proof figcaption { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.proof.wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.proof.wide .sl { aspect-ratio: 16 / 10; }
.proof .vd {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--card-radius); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); cursor: pointer;
}
.proof.wide .vd { aspect-ratio: 16 / 10; }
.proof .vd video { display: block; width: 100%; height: 100%; object-fit: cover; }
.proof .vd .snd {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(10,10,10,.55); backdrop-filter: blur(6px); pointer-events: none;
  transition: opacity .2s;
}
.proof .vd.on .snd { background: var(--magenta); }
.proof.reels { grid-template-columns: repeat(3, 1fr); }
.proof.reels.two { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
.proof figcaption { display: block; }
.proof figcaption b { display: block; color: var(--ink-0); margin-bottom: 2px; }
@media (max-width: 640px) { .proof.reels { grid-template-columns: repeat(2, 1fr); } }
.proof-note {
  margin: 14px 0 0; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
/* a merged screen carries several ideas — give the later headings room to breathe */
.step h3.merged { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line-2); font-size: 23px; letter-spacing: -0.03em; }

/* ───────────── folded prompts: copy first, read only if curious ───────────── */
.pbox.fold pre { max-height: 168px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.pbox.fold.open pre { max-height: none; -webkit-mask-image: none; mask-image: none; }
.pmore {
  display: block; width: 100%; margin: 0; padding: 11px 14px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}
.pmore:hover { color: var(--ink-0); }
.pbox.fold { border-radius: var(--card-radius) var(--card-radius) 0 0; }

/* ───────────── process strip ───────────── */
.flow { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow figure { margin: 0; }
.flow img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.flow figcaption { display: block; margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.flow figcaption .n { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--magenta); margin-bottom: 4px; }
.flow figcaption b { display: block; font-size: 15px; line-height: 1.3; color: var(--ink-0); font-weight: 600; margin-bottom: 4px; }
.flow figcaption i { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

/* ───────────── rule + «так плохо / так хорошо» pair ───────────── */
.rule { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line-2); }
.lede + .rule { border-top: none; padding-top: 0; margin-top: 32px; }
.rule-t { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-1); }
.rule-t b { color: var(--ink-0); font-weight: 600; }
.rule-t .n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 11px; color: #fff; background: var(--ink-0); vertical-align: 2px;
}
.vs { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 480px; }
.vs figure { margin: 0; position: relative; }
.vs figcaption { display: block; margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.vs figcaption::before {
  display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.vs .bad figcaption::before { content: "✕ так плохо"; color: var(--magenta); }
.vs .good figcaption::before { content: "✓ так хорошо"; color: var(--jade); }
.vs .bad .ph { outline: 2px solid var(--magenta); outline-offset: -2px; }
.vs .good .ph { outline: 2px solid var(--jade); outline-offset: -2px; }

.ph {
  position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden;
  background: #16161a center / cover no-repeat; container-type: inline-size;
  font-family: "Inter Tight", Inter, "Helvetica Neue", Arial, sans-serif;
}
.ph > span { position: absolute; left: 8cqw; right: 8cqw; }
.ph .hk {
  font-weight: 800; font-size: 8cqw; line-height: 1.04; white-space: nowrap; letter-spacing: -.02em; text-transform: uppercase;
  color: #fff; text-shadow: 0 .4cqw 3cqw rgba(0,0,0,.55);
}
.ph .hk.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: #ff7a3d; text-transform: none; font-size: 9.6cqw; }
.ph .sb {
  bottom: 14%; text-align: center; font-weight: 500; font-size: 6.4cqw; line-height: 1.25;
  color: #fff; text-shadow: 0 .3cqw 2.4cqw rgba(0,0,0,.75), 0 0 .6cqw rgba(0,0,0,.6);
}
.ph .sb b { font-weight: 800; }
.ph .sb i { font-style: normal; }
.ph .sb .ac { color: #8fb0ff; font-weight: 800; }
.ph .sb.comic { font-family: "Comic Sans MS", "Marker Felt", cursive; color: #ffe44d; font-size: 6.8cqw; }
.ph .sb.dark { color: #15151a; text-shadow: none; }
.ph .sb.boxed { left: 6cqw; right: 6cqw; padding: 2.4cqw 2cqw; border: .8cqw solid #fff; border-radius: 1.6cqw; background: rgba(0,0,0,.35); box-shadow: 0 -2.2cqw 0 -1.6cqw #ffe44d, 0 2.2cqw 0 -1.6cqw #ffe44d; }
.ph .sb.boxed u { text-decoration-thickness: .7cqw; text-underline-offset: 1cqw; text-decoration-color: #ffe44d; }
.ph .pill {
  right: auto; padding: 1.6cqw 3.4cqw; border-radius: 99cqw; font-size: 4.6cqw; font-weight: 600;
  color: #15151a; background: rgba(255,255,255,.92);
}
.ph .pill.wide { background: #ffe44d; }
.ph .card {
  padding: 3.4cqw 4cqw; border-radius: 3cqw; background: rgba(250,250,255,.94); box-shadow: 0 2cqw 6cqw rgba(0,0,0,.28);
  font-family: var(--font-mono); font-size: 5.2cqw; color: #15151a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph .card em { display: block; margin-bottom: 1.4cqw; font-style: normal; font-size: 2.9cqw; letter-spacing: .12em; text-transform: uppercase; color: #2f5bff; }
.ph.deco { background: radial-gradient(60% 40% at 30% 30%, #ff9ad5 0, transparent 70%), radial-gradient(55% 45% at 72% 62%, #8fb0ff 0, transparent 70%), radial-gradient(50% 40% at 40% 85%, #ffe44d 0, transparent 70%), #f1eff7; }
.ph .fake {
  top: 30%; padding: 4cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.3); color: #15151a; text-align: left;
}
.ph .fake em { display: block; font-style: normal; font-size: 3.4cqw; letter-spacing: .1em; text-transform: uppercase; color: #8a8a93; }
.ph .fake strong { display: block; margin-top: 1cqw; font-size: 10cqw; letter-spacing: -.03em; line-height: 1; }
.ph .fake small { display: block; margin-top: 1.4cqw; font-size: 3.8cqw; color: #55555e; }
.ph .fake .stamp {
  position: absolute; right: -3cqw; top: -4cqw; padding: 1.4cqw 3cqw; transform: rotate(8deg);
  font-family: var(--font-mono); font-size: 3.6cqw; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--magenta); border-radius: 1cqw;
}
.say {
  margin: 16px 0 0; max-width: 480px; padding: 12px 14px; border-radius: var(--card-radius);
  background: var(--paper-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-0);
}
.say span { display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ───────────── «сказала — показали» ───────────── */
.saidgrid { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.said { margin: 0; display: flex; flex-direction: column; }
.said .q { margin: 0 0 10px; flex: 1; font-size: 13.5px; line-height: 1.4; color: var(--ink-0); }
.said .q span { display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.said img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.said figcaption { display: block; margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.said figcaption b { display: block; color: var(--ink-0); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 640px) { .saidgrid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }

.says { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.says li { padding: 11px 14px; border-radius: var(--card-radius); background: var(--paper-2); border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-0); }
.says li::before { content: none; }

/* ───────────── perks ───────────── */
.perks { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pk { padding: 18px 16px 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--paper-2); }
.pk .big { display: block; font-size: 44px; line-height: 1; letter-spacing: -.05em; font-weight: 700; color: var(--magenta); }
.pk p { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-1); }
.pk p b { display: block; color: var(--ink-0); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 640px) { .perks { grid-template-columns: repeat(2, 1fr); } }

.perks.four { grid-template-columns: repeat(4, 1fr); }
.perks.four .pk .big { font-size: 34px; }
@media (max-width: 860px) { .perks.four { grid-template-columns: repeat(2, 1fr); } }
.chips { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-1); }

/* process cards without screenshots: who does what */
.flow .fl { padding: 18px 16px 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--paper-2); display: flex; flex-direction: column; }
.flow .fl .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--magenta); }
.flow .fl b { display: block; margin: 6px 0 10px; font-size: 15.5px; line-height: 1.3; color: var(--ink-0); font-weight: 600; }
.flow .fl p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-1); }
.flow .fl p i { font-style: normal; font-weight: 600; color: var(--ink-0); }
.flow .fl em { display: block; margin-top: auto; padding-top: 8px; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* winks: short chat-style asides */
.wink {
  position: relative; margin: 18px 0 0; max-width: 520px; padding: 11px 16px 11px 20px;
  border-radius: 18px 18px 18px 4px; background: rgba(220,48,143,.07); border: 1px solid rgba(220,48,143,.18);
  font-size: 15.5px; line-height: 1.45; color: var(--ink-0);
}
.wink::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--magenta); }
.wink.in { margin: 4px 0 8px; max-width: none; padding: 8px 12px 8px 16px; font-size: 13px; }
.wink.in::before { top: 9px; bottom: 9px; left: 6px; }
