:root {
  /* Working (after) Work — tokens kept in lockstep with the marketing site
     (waw-marketing/src/styles/global.css). Navy text on cream, cool-grey muted,
     soft navy-tinted borders/shadows, bright-yellow action. */
  --navy: #100f4b;       /* deep indigo — primary dark + body text */
  --sage: #c6dda3;
  --olive: #3e4c31;
  --cream: #fdf8ee;
  --lav: #dddef3;
  --peri: #a1bbfb;
  --espresso: #401d13;
  --pink: #f7c4e7;
  --yellow-pale: #f9f9c0;
  --yellow: #fdfe7f;     /* primary accent / button */
  --peach: #fde6bd;

  --ink: #100f4b;        /* navy — primary text (modern, not brown) */
  --muted: #5a5870;      /* cool grey */
  --paper: #fdf8ee;      /* warm cream background */
  --panel: #ffffff;      /* white cards */
  --soft: #f2f3f9;       /* cool light tint — chips, tracks */
  --line: rgba(16, 15, 75, 0.12);
  --shadow-soft: 0 1px 2px rgba(16, 15, 75, 0.03), 0 10px 28px rgba(16, 15, 75, 0.05);
  --radius: 12px;
  --radius-pill: 999px;

  /* Legacy aliases → brand: amber/forest→olive (labels), teal→navy (interactive). */
  --forest: #3e4c31;
  --amber: #3e4c31;
  --teal: #100f4b;
  --plum: #5b4a8f;
  --coral: #b14a2f;

  --font-display: "Akzidenz-Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-black: "Akzidenz Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Aleo", Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* The real brand headline face — used for display moments only; UI labels and
   body stay Helvetica (per the brand's H3/body spec). */
@font-face {
  font-family: "Akzidenz Black";
  src: url("/brand/fonts/Akzidenz-grotesk-black.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings are the grotesque display face with tight tracking — per the brand
   guidelines and the marketing site. The slab serif (Aleo) is an *accent* only:
   the wordmark's "(after)" and the .accent emphasis utility. */
h1,
h2,
h3,
h4,
.brand,
.brand-inline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

.wordmark {
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.wordmark i,
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* Emphasis word with the brand's yellow underline (e.g. "after"). */
.accent {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Keyboard focus is visible everywhere; mouse clicks stay clean. */
a:focus-visible,
button:focus-visible,
[data-choice]:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav button,
  .mobile-nav button,
  .chapter-dots button,
  .choice,
  .text-button,
  input,
  select,
  textarea {
    transition: border-color 0.15s ease, background 0.15s ease,
      box-shadow 0.15s ease, color 0.15s ease, transform 0.12s ease;
  }
}

/* ── Instagram-desktop shell: icon rail · feed · widget rail ───────────────── */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 18px;
  background: var(--navy);
  color: #fff9ef;
}

.canvas {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.canvas.no-rail {
  max-width: 1080px;
  grid-template-columns: minmax(0, 1fr);
}

.feed {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.rail {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.page-head {
  display: grid;
  gap: 4px;
}

/* Home greeting — a light editorial header, no card chrome. */
.home-greet {
  display: grid;
  gap: 3px;
  padding: 8px 2px 0;
}

.home-greet .muted {
  margin: 2px 0 0;
  max-width: 52ch;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
}

.brand {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 156px;
  height: auto;
  margin: 2px 0 12px;
}

.brand-tagline {
  margin: 0 0 30px;
  color: rgba(255, 249, 239, 0.55);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button,
.nav-utility a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  color: rgba(255, 249, 239, 0.82);
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.nav button.active,
.nav button:hover,
.nav-utility a:hover {
  color: #fff9ef;
  background: rgba(255, 249, 239, 0.1);
}

/* Instagram-style active item: bolder label, no border chrome. */
.nav button.active .nav-text {
  font-weight: 700;
}

/* Bare brand glyphs in the rail — no tile, just the icon, generously sized. */
.nav-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  color: rgba(255, 249, 239, 0.9);
}

.nav-ico .icon {
  width: 22px;
  height: 22px;
}

/* Brand-kit icons are espresso fills — filtered to cream on the navy rail. */
.nav-ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(0.96);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.nav button:hover .nav-ico img,
.nav-utility a:hover .nav-ico img {
  opacity: 0.95;
}

.nav button.active .nav-ico img {
  opacity: 1;
}

.btn-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Icons inherit text color and size to their context. */
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.main {
  min-width: 0;
  padding: 36px;
}

/* Consistent vertical rhythm between the sections of a view. */
.view {
  display: grid;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.topbar.utility-only {
  justify-content: flex-end;
}

.utility {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility select {
  width: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(16, 15, 75, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-family: var(--font-black);
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 10px;
  font-family: var(--font-black);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.hero,
.consumer-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.hero {
  min-height: 210px;
  display: grid;
  align-items: end;
  padding: 28px;
  color: #fff9ef;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(253, 254, 127, 0.28), rgba(16, 15, 75, 0) 48%),
    var(--navy);
}

.consumer-hero {
  min-height: 340px;
  display: grid;
  align-items: end;
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  position: relative;
  color: var(--cream);
  /* Spotlight delight moment — the marketing site's beam asset over the indigo stage. */
  background:
    url("/spotlight.png") top center / min(640px, 96%) no-repeat,
    var(--navy);
}

.consumer-hero .eyebrow,
.hero .eyebrow {
  color: var(--sage);
}

.consumer-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(40px, 7vw, 76px);
}

.consumer-hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.consumer-hero .btn.secondary {
  border-color: rgba(255, 249, 239, 0.72);
  background: rgba(255, 249, 239, 0.12);
  color: #fff9ef;
}

.metric {
  display: grid;
  gap: 8px;
}

.metric strong {
  font-size: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.wizard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.survey-shell {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 0 0 48px;
}

/* Step nav across the top (was a left rail) — cleaner, full-width content below. */
.survey-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 14px;
  padding: 16px 0 14px;
  background: var(--paper);
}

.step-strip {
  display: flex;
  align-items: flex-start;
}

.step-dot {
  flex: 1;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  text-align: center;
}

/* Connector line into each circle, filled once you've reached it. */
.step-dot::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step-dot:first-child::before {
  display: none;
}

.step-dot.done::before,
.step-dot.active::before {
  background: var(--navy);
}

.step-num {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 15, 75, 0.25);
  background: var(--panel);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.step-dot.active .step-num,
.step-dot.done .step-num {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cream);
}

.step-label {
  max-width: 12ch;
  font-size: 12px;
  line-height: 1.2;
}

.step-dot.active .step-label {
  color: var(--ink);
  font-weight: 700;
}

.step-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-progress .progress {
  flex: 1;
  height: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.step-progress .progress span {
  background: var(--navy);
}

@media (max-width: 760px) {
  .step-label {
    display: none;
  }
  .survey-top {
    position: static;
  }
}

.survey-rail {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.survey-rail h2 {
  margin-bottom: 0;
}

.progress.tall {
  width: 10px;
  height: 160px;
  display: flex;
  align-items: end;
}

.progress.tall span {
  width: 100%;
  height: auto;
}

.chapter-dots {
  display: grid;
  gap: 8px;
}

.chapter-dots button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.chapter-dots button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.chapter-dots button strong {
  font-size: 13px;
  line-height: 1.15;
}

.chapter-dots button.active {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.chapter-dots button.done span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.survey-stage {
  display: grid;
  gap: 24px;
}

/* Editorial header — calm and light, not a heavy panel. */
.survey-intro {
  display: grid;
  gap: 8px;
  padding: 6px 2px 2px;
}

.survey-intro h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.survey-intro p:not(.eyebrow) {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* One calm column of clean fields, not a 2-up wall of boxes. */
.survey-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.survey-field {
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
}

/* Serif-italic labels — the single biggest "feels expensive" lever. */
.survey-field label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}

.survey-field input,
.survey-field select,
.survey-field textarea {
  padding: 13px 14px;
  font-size: 16px;
}

.survey-field textarea {
  min-height: 116px;
}

.field-hint {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.survey-save {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Role builder (intake Step 1) */
.role-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 12px;
}

.role-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.role-row .role-note {
  grid-column: 1 / -1;
}

.role-row .text-button {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0;
}

/* Personality assessment runner (intake Step 3) */
.assess {
  display: grid;
  gap: 14px;
}

.assess-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assess-section {
  color: rgba(16, 15, 75, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assess-prompt {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 3.5vw, 28px);
  line-height: 1.2;
}

.assess-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.assess-opt {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 86px;
  align-content: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.assess-opt:hover {
  border-color: var(--navy);
  background: var(--soft);
  color: var(--ink);
}

.assess-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
}

.assess-opt small {
  font-size: 11px;
  line-height: 1.2;
}

.assess-done {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 8px 0;
}

@media (max-width: 640px) {
  .role-row {
    grid-template-columns: 1fr;
  }
  .assess-scale {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .assess-opt {
    min-height: 72px;
    padding: 8px 2px;
  }
  .assess-opt small {
    display: none;
  }
}

.chapters {
  display: grid;
  gap: 8px;
  align-content: start;
}

.chapters button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--muted);
  text-align: left;
}

.chapters button.active {
  border-color: var(--ink);
  color: var(--ink);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: var(--panel);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 15, 75, 0.14);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  text-align: left;
}

.choice strong {
  display: block;
  margin-bottom: 7px;
}

.choice span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.choice:hover {
  border-color: var(--teal);
}

.choice.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.feature-choices .choice {
  min-height: 112px;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.contact-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.form.mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.text-button {
  margin-top: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 760;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  border: 1px solid rgba(16, 15, 75, 0.22);
  border-radius: var(--radius-pill);
  padding: 0 20px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 15, 75, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn.secondary {
  border-color: rgba(16, 15, 75, 0.22);
  background: transparent;
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--navy);
  background: rgba(16, 15, 75, 0.04);
  box-shadow: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-cloud span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(221, 222, 243, 0.55);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
}

.word-cloud.compact {
  margin: 16px 0;
}

/* File-folder cards: a labeled tab on the top-left. Quieter execution — white
   paper, hairline navy tab — so the motif reads as detail, not decoration. */
.folder {
  position: relative;
  margin-top: 14px;
}

.folder::before {
  content: attr(data-folder);
  position: absolute;
  top: -22px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  max-width: 70%;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 12px 0 0;
  background: var(--panel);
  color: rgba(16, 15, 75, 0.65);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Pre-work journey states (S0 welcome · S3 wait · S4 reveal · S5 pinned) ── */

/* S0 — the voice-note welcome (player shell; audio lands when recorded). */
.voicenote {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  margin: 6px 0 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
}

.vn-play {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
}

.vn-wave {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 2px;
  font-size: 13px;
  opacity: 0.75;
}

.vn-wave i {
  font-style: normal;
}

.vn-meta {
  flex: none;
  font-size: 11.5px;
  opacity: 0.7;
}

/* The Mindset Reset — an iOS-Notes-ish collapsed card, skippable by design. */
.mindset {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf4;
  padding: 12px 16px;
}

.mindset summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: rgba(16, 15, 75, 0.75);
}

.mindset p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* S3 — the wait: counter hero + face-down reply bubbles. */
.wait-count {
  font-size: 1.6em;
}

.wait-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.wait-bubble {
  width: 44px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.wait-bubble.in {
  border-style: solid;
  background: var(--lav);
  color: var(--navy);
}

.contact-response.sealed {
  background: var(--lav);
  color: var(--navy);
}

/* S4/S5 — the essence sentence, the biggest typographic moment we have. */
.essence-line {
  margin: 6px 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.essence-line.xl {
  margin: 26px auto 8px;
  max-width: 24ch;
  text-align: center;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.18;
}

.essence-pin {
  background: #fffdf4;
}

.reveal-hero {
  padding: 34px 34px 30px;
}

.reveal-cloud {
  justify-content: center;
  margin: 14px 0 6px;
}

.reveal-cloud span {
  font-size: 15px;
  padding: 8px 14px;
}

.reveal-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0 4px;
}

.rq {
  padding: 14px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: var(--soft);
}

.rq p {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.5;
}

.rq span {
  color: var(--muted);
  font-size: 12px;
}

.reveal-close {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto;
}

.essence-cell {
  max-width: 260px;
  font-family: var(--font-serif);
  font-style: italic;
}

/* The outreach preview, rendered as the real email their people receive. */
.email-wrap {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  max-width: 520px;
}

.email-label {
  margin: 0;
  color: rgba(16, 15, 75, 0.5);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.email-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.email-head {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.email-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.email-head span {
  display: inline-block;
  min-width: 52px;
  color: rgba(16, 15, 75, 0.45);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-head .email-subject {
  color: var(--ink);
  font-weight: 700;
}

.email-body {
  padding: 16px 18px 18px;
}

.email-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
}

.email-body p:last-child {
  margin-bottom: 0;
}

.email-cta {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(16, 15, 75, 0.22);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.email-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sage-note {
  background: rgba(198, 221, 163, 0.25);
}

.sage-note p {
  margin: 0;
}

/* ── Stationery details: ruled paper, graph tint, punched holes, washi tape.
   The nostalgia layer — always texture, never costume. ─────────────────────── */

/* Ruled worksheet paper: faint periwinkle rules + a pink margin line. */
.paper-ruled {
  background-color: var(--panel);
  background-image:
    linear-gradient(to right, transparent 38px, rgba(247, 196, 231, 0.8) 38px, rgba(247, 196, 231, 0.8) 39px, transparent 39px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(161, 187, 251, 0.22) 31px 32px);
}

/* Punched binder holes down the left edge. */
.paper-holes {
  background-image: radial-gradient(circle at 22px 34px, var(--paper) 4.5px, rgba(16, 15, 75, 0.14) 5px, transparent 6.5px);
  background-size: 100% 66px;
  background-repeat: repeat-y;
}

.deliver-doc-body.paper-holes,
.deliver-empty.paper-holes {
  padding-left: 52px;
}

/* Graph-paper tint (for the sage bonus card). */
.paper-grid {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(62, 76, 49, 0.08) 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(62, 76, 49, 0.08) 21px 22px);
}

/* A strip of translucent washi tape over the card's top edge. */
.washi {
  position: relative;
}

.washi::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 124px;
  height: 26px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: linear-gradient(180deg, rgba(221, 222, 243, 0.8), rgba(221, 222, 243, 0.55));
  box-shadow: 0 1px 3px rgba(16, 15, 75, 0.1);
  pointer-events: none;
}

/* Small sparkle doodle in a corner (the brand icon, faded). */
.doodle {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 24px;
  height: 24px;
  opacity: 0.4;
  pointer-events: none;
}

.bonus-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Instagram-style story highlights for the peer roster */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0;
}

.highlight {
  width: 60px;
  display: grid;
  gap: 7px;
  justify-items: center;
  border: 0;
  padding: 0;
  background: none;
}

.highlight-ring {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 50%;
  background: var(--line);
}

.highlight.on .highlight-ring {
  background: conic-gradient(from 210deg, var(--yellow), var(--peri), var(--pink), var(--sage), var(--yellow));
}

.highlight-face {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
}

.highlight-label {
  max-width: 60px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight.on .highlight-label {
  color: var(--ink);
}

.highlight.add .highlight-face {
  background: var(--soft);
  color: var(--muted);
  font-size: 26px;
  font-weight: 400;
}

.next-step {
  background: rgba(198, 221, 163, 0.16);
}

/* The journey roadmap: numbered pastel chips over a hairline, serif titles —
   the airy social-template pattern. */
.roadmap-card .eyebrow {
  text-align: center;
  margin-bottom: 22px;
}

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 0 10px;
}

/* Hairline connecting the chips. */
.roadmap::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: var(--line);
}

.roadmap-step {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.chip-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--panel); /* lifts the chip off the hairline */
  color: rgba(16, 15, 75, 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.chip-num.tint-1 { background: #fbfbdb; }
.chip-num.tint-2 { background: #fce4f2; }
.chip-num.tint-3 { background: #e4eed4; }
.chip-num.tint-4 { background: #ebecf8; }
.chip-num.tint-5 { background: #fef2dd; }

.roadmap-step.done .chip-num {
  background: var(--navy);
  color: var(--cream);
}

.roadmap-kicker {
  margin-top: 6px;
  color: rgba(16, 15, 75, 0.5);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.roadmap-step strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0;
}

.roadmap-step p {
  margin: 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.roadmap-step.done p {
  color: var(--olive);
}

/* Inline intake progress on the start-here card */
.mini-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 16px;
}

.mini-progress .progress {
  flex: 1;
  height: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.mini-progress .progress span {
  background: var(--navy);
}

/* The lamp on the profile cover */
.profile-cover {
  position: relative;
}

.cover-lamp {
  position: absolute;
  right: 26px;
  bottom: 14px;
  height: 74px;
  width: auto;
  opacity: 0.9;
}

.deliverable {
  border-left: 3px solid var(--olive);
  padding: 14px;
  border-radius: 0 8px 8px 0;
  background: rgba(253, 230, 189, 0.35);
}

/* ── Brief / deliverables screen ───────────────────────────────────────────── */
.deliver-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deliver-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 148px;
  padding: 24px;
  border: 1px solid rgba(16, 15, 75, 0.4);
  border-radius: var(--radius);
  background: rgba(249, 249, 192, 0.5);
  color: var(--navy);
}

.deliver-card .eyebrow {
  color: var(--navy);
  opacity: 0.55;
}

.deliver-card strong {
  font-family: var(--font-black);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.08;
}

.deliver-card .after {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.deliver-card span:last-child {
  font-size: 13px;
}

/* The green "outside words" bonus card */
.bonus-card {
  background: rgba(198, 221, 163, 0.32);
  border-color: rgba(62, 76, 49, 0.25);
}

.bonus-card .bonus-tag {
  margin: 0 0 10px;
  background: var(--navy);
  color: var(--cream);
}

.bonus-card h2 {
  color: var(--ink);
}

/* Folder-tab shelf over the deliverable panel */
.deliver-shelf {
  display: grid;
}

/* Stacked flat folders: each deliverable is a solid-color folder; the open
   one's tab fuses seamlessly into its panel (same fill, no borders). Inactive
   tabs peek out from behind — folders stacked in a drawer. */
.deliver-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 16px;
  position: relative;
  z-index: 0;
}

.deliver-tab {
  margin-bottom: -14px;
  padding: 11px 22px 24px;
  border: 0;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.15s ease;
}

.deliver-tab.tab-brief { background: var(--navy); color: var(--cream); }
.deliver-tab.tab-plan { background: var(--lav); color: var(--navy); }
.deliver-tab.tab-calendar { background: var(--yellow-pale); color: var(--navy); }

.deliver-tab:not(.active) {
  transform: translateY(4px);
}

.deliver-tab:not(.active):hover {
  transform: translateY(1px);
}

.deliver-tab.active {
  z-index: 2;
  position: relative;
}

.deliver-panel {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
  min-height: 130px;
}

/* The open folder's body takes its tab's color — one seamless object. */
.deliver-panel-brief { background: var(--navy); }
.deliver-panel-plan { background: var(--lav); }
.deliver-panel-calendar { background: var(--yellow-pale); }

.deliver-empty {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: start;
  align-content: center;
  height: 470px; /* same fixed page as the generated doc — no layout jumps */
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

/* Generated brief as a folder card: numbered mini-tabs across the page's top
   edge (01. 02. 03.), the section name in a centered serif header beneath. */
.deliver-doc {
  display: grid;
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-left: 18px;
  position: relative;
  z-index: 0;
}

.doc-tab {
  min-width: 46px;
  margin-bottom: -12px;
  padding: 7px 10px 19px;
  border: 0;
  border-radius: 9px 9px 0 0;
  color: rgba(16, 15, 75, 0.65);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  transition: transform 0.14s ease;
}

.doc-tab.tint-1 { background: #fbfbdb; }
.doc-tab.tint-2 { background: #fce4f2; }
.doc-tab.tint-3 { background: #e4eed4; }
.doc-tab.tint-4 { background: #ebecf8; }
.doc-tab.tint-5 { background: #fef2dd; }

.doc-tab:not(.active) {
  transform: translateY(4px);
}

.doc-tab:not(.active):hover {
  transform: translateY(1px);
}

.doc-tab.active {
  position: relative;
  z-index: 2;
  background: var(--panel);
  color: var(--navy);
}

.deliver-doc-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  height: 470px; /* fixed page — content scrolls inside, layout never jumps */
  padding: 32px 44px 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

/* Centered serif section header over a hairline rule — the airy template look. */
.doc-head {
  display: grid;
  justify-items: center;
  padding: 2px 0 16px;
  border-bottom: 1px solid var(--line);
}

.deliver-doc-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
}

/* The page is fixed; long sections scroll quietly inside it. Airy setting. */
.deliver-doc-text {
  overflow-y: auto;
  min-height: 0;
  padding: 4px 10px 0 0;
  max-width: 58ch;
  margin: 0 auto;
  width: 100%;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(16, 15, 75, 0.88);
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 15, 75, 0.22) transparent;
}

.deliver-doc-text::-webkit-scrollbar {
  width: 5px;
}

.deliver-doc-text::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(16, 15, 75, 0.18);
}

.deliver-doc-text p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.deliver-doc-text ul {
  margin: 0 0 10px;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.deliver-doc-text li {
  line-height: 1.55;
}

/* (Right-edge divider tabs retired in favor of the numbered top tabs.) */

@media (max-width: 760px) {
  .deliver-cards {
    grid-template-columns: 1fr;
  }
  .deliver-doc {
    grid-template-columns: 1fr;
  }
  .deliver-doc-body {
    padding: 26px 22px 24px;
  }
}

/* Staff nav group in the sidebar */
.nav-staff {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 249, 239, 0.14);
}

.nav-label {
  margin: 0 0 8px;
  padding: 0 12px;
  color: rgba(255, 249, 239, 0.45);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Intake consent line (PRD §12) */
.consent {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Wrapping action rows (deliverables) */
.actions.wrap {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.lock-note,
.ready-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.lock-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lock-note .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.ready-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
}

.ready-note.good {
  color: var(--olive);
  background: rgba(198, 221, 163, 0.4);
}

/* Per-contact status pills: sent = in progress (indigo), responded = done (green) */
.pill.status-sent {
  border-color: var(--peri);
  color: var(--navy);
}

.pill.status-responded {
  border-color: var(--forest);
  color: var(--forest);
}

/* Contact response + invite-link blocks */
.contact-response,
.contact-link {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
}

.contact-response p {
  margin: 0 0 4px;
  line-height: 1.45;
}

.contact-response p:last-child {
  margin-bottom: 0;
}

.response-key {
  display: inline-block;
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-link {
  display: grid;
  gap: 6px;
}

.contact-link code {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button.danger {
  color: var(--coral);
}

/* Advice quotes on the brand-brief reveal */
.advice-quotes {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.advice-quotes blockquote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--plum);
  background: #faf7fb;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

/* Public peer-respondent page */
.peer-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(80% 70% at 50% -10%, rgba(253, 254, 127, 0.18), rgba(253, 248, 238, 0) 55%),
    linear-gradient(135deg, rgba(161, 187, 251, 0.18), rgba(198, 221, 163, 0.18)),
    var(--paper);
}

.peer-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.peer-card h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.04;
}

.peer-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.peer-form .btn {
  justify-self: start;
}

/* Checkout / login gate */
.gate {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.gate-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-inline {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.gate-hero {
  max-width: 680px;
  margin-bottom: 32px;
}

.gate-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
}

.gate-hero p {
  font-size: 18px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  gap: 6px;
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.price-top strong {
  font-size: 26px;
}

/* Pin the price/badge to the top, let the name + note + CTA settle at the
   bottom — the airy top-to-bottom rhythm from the reference cards. */
.price-card h2 {
  margin-top: auto;
  margin-bottom: 2px;
}

.price-card .btn {
  margin-top: 16px;
  justify-content: center;
  text-align: center;
}

.gate-login {
  max-width: 520px;
}

.gate-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.gate-login-form input {
  flex: 1 1 240px;
}

.gate-login-form .btn {
  flex: 0 0 auto;
}

.gate-login-msg:empty {
  display: none;
}

.gate-login-msg {
  margin: 12px 0 0;
  font-size: 13px;
}

/* Sidebar quick-links group (anchors styled like nav buttons) */
.nav-utility {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 249, 239, 0.14);
}

.nav-utility a {
  min-height: 40px;
  font-size: 14px;
}

.nav-utility a .nav-ico .icon {
  width: 20px;
  height: 20px;
}

/* Next-session callout + schedule header share a split layout */
.next-session,
.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.next-session h2,
.schedule-head h2 {
  margin-bottom: 4px;
}

.next-session p,
.schedule-head p {
  margin: 0;
}

/* Schedule view */
.schedule-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.schedule-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.schedule-card.past {
  opacity: 0.7;
}

.schedule-when {
  display: grid;
  gap: 4px;
  align-content: start;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.schedule-when strong {
  font-size: 18px;
}

.schedule-kicker {
  color: rgba(16, 15, 75, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.schedule-tba {
  font-size: 13px;
}

/* Replay grid */
.replay-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.replay-card h3 {
  margin: 14px 0 6px;
}

.replay-card.locked {
  display: grid;
  align-content: center;
  min-height: 200px;
  text-align: center;
}

.replay-frame {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff9ef;
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(253, 254, 127, 0.26), rgba(16, 15, 75, 0) 55%),
    var(--navy);
}

.replay-frame.coming {
  color: var(--muted);
  background: var(--soft);
}

.replay-play span {
  font-size: 30px;
}

.replay-play p {
  margin: 4px 0 0;
  font-weight: 760;
}

.replay-soon {
  display: grid;
  gap: 4px;
}

.replay-soon strong {
  font-size: 16px;
}

.replay-soon span {
  font-size: 13px;
}

.replay-note {
  margin-top: 16px;
  font-size: 13px;
}

.mobile-nav {
  display: none;
}

/* Account block pinned to the bottom of the left rail */
.side-foot {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 249, 239, 0.14);
}

.side-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.side-id {
  display: grid;
  min-width: 0;
  flex: 1;
}

.side-id strong {
  overflow: hidden;
  color: #fff9ef;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-id span {
  color: rgba(255, 249, 239, 0.6);
  font-size: 11px;
}

.side-out {
  margin: 0;
  color: rgba(255, 249, 239, 0.72);
}

.side-out .icon {
  width: 19px;
  height: 19px;
}

.side-tier {
  width: 100%;
  border-color: rgba(255, 249, 239, 0.22);
  background: rgba(255, 249, 239, 0.08);
  color: #fff9ef;
  font-size: 13px;
}

/* Right-rail widgets */
.widget {
  padding: 22px;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: rgba(16, 15, 75, 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.widget-ico {
  width: 21px;
  height: 21px;
  flex: none;
}

.widget-head .widget-title {
  margin: 0;
}

.widget-head .text-button {
  margin: 0;
  font-size: 12px;
}

.small {
  font-size: 13px;
}

.btn.block {
  width: 100%;
  margin-top: 14px;
}

.widget-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.widget-progress .progress {
  flex: 1;
}

.widget-progress strong {
  font-family: var(--font-display);
}

.widget-session {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.widget-session strong {
  display: block;
  font-size: 15px;
}

.widget .highlights {
  margin: 6px 0 10px;
  gap: 12px;
}

/* iOS/macOS-style calendar date chip */
.date-chip {
  width: 52px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.date-chip .m {
  display: block;
  padding: 3px 0;
  background: var(--navy);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.date-chip .d {
  display: block;
  padding: 4px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

/* Instagram/LinkedIn profile header */
.profile-card {
  padding: 0;
  overflow: hidden;
}

.profile-cover {
  height: 124px;
  background:
    radial-gradient(60% 150% at 50% -30%, rgba(253, 254, 127, 0.35), rgba(16, 15, 75, 0) 60%),
    url("/spotlight.png") top center / 360px no-repeat,
    var(--navy);
}

.profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 26px;
  margin-top: -46px;
}

/* Chic monogram avatar: cream disc, hairline navy ring, serif-italic initial. */
.profile-avatar {
  width: 92px;
  height: 92px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 1px rgba(16, 15, 75, 0.35), var(--shadow-soft);
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 38px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.profile-id {
  padding: 16px 26px 0;
}

.profile-id h1 {
  margin-bottom: 2px;
  font-size: clamp(24px, 3vw, 30px);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
}

.profile-stats div {
  text-align: center;
}

.profile-stats strong {
  display: block;
  font-family: var(--font-black);
  font-size: 20px;
  letter-spacing: 0;
}

.profile-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .canvas {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .rail {
    grid-auto-flow: row;
  }
}

@media (max-width: 900px) {
  .app {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: var(--navy);
  }

  /* iPhone-style tab bar: glyph stacked over a tiny label. */
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    border: 0;
    color: rgba(255, 249, 239, 0.7);
    background: transparent;
    font-size: 10px;
    letter-spacing: 0.01em;
  }

  .mobile-nav .nav-ico {
    width: auto;
    height: auto;
    color: inherit;
    background: none;
    box-shadow: none;
  }

  .mobile-nav .nav-ico .icon {
    width: 24px;
    height: 24px;
  }

  .mobile-nav button.active {
    color: #fff9ef;
    background: transparent;
  }

  .mobile-nav button.active .nav-text {
    font-weight: 700;
  }

  .canvas {
    padding: 18px;
  }

  .two,
  .three,
  .roadmap,
  .survey-shell,
  .survey-card,
  .wizard,
  .form,
  .choice-grid,
  .schedule-card,
  .replay-list {
    grid-template-columns: 1fr;
  }

  .roadmap::before {
    display: none;
  }

  .schedule-when {
    border-right: 0;
    padding-right: 0;
  }

  .topbar {
    display: grid;
  }

  .survey-rail {
    position: static;
  }

  .progress.tall {
    width: 100%;
    height: 9px;
    display: block;
  }

  .progress.tall span {
    height: 100% !important;
  }

  .chapter-dots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .chapter-dots button {
    min-height: 42px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chapter-dots button strong {
    display: none;
  }
}

/* ── Member claim (Work Lunch) — gate section ─────────────────────────────── */
.member-claim {
  margin-top: 26px;
  background: var(--lav);
  border: 0;
}

.member-claim-head h2 {
  margin: 0 0 6px;
}

.member-claim input {
  width: 100%;
  max-width: 380px;
  margin: 14px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.member-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.member-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-tier:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.member-tier strong {
  font-family: var(--font-black);
  font-size: 22px;
}

.member-tier small {
  color: var(--muted);
  line-height: 1.45;
}

/* ── Pre-launch countdown ─────────────────────────────────────────────────── */
.countdown-page .gate-out {
  margin-left: auto;
}

.countdown-card {
  text-align: center;
  padding: clamp(30px, 5vw, 56px);
}

.countdown-card h1 {
  font-family: var(--font-black);
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.08;
  margin: 8px 0 12px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 86px;
  padding: 16px 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.cd-unit.tint-1 { background: #fbfbdb; }
.cd-unit.tint-2 { background: #fce4f2; }
.cd-unit.tint-3 { background: #e4eed4; }
.cd-unit.tint-4 { background: #ebecf8; }

.cd-unit strong {
  font-family: var(--font-black);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-unit small {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-next {
  margin-top: 22px;
}

/* ── Contact card: text / email the invite yourself ───────────────────────── */
.contact-send {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.send-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.send-btn {
  padding: 8px 14px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ── Worksheets ───────────────────────────────────────────────────────────── */
.deliver-tab.ws-tab-w1 { background: var(--navy); color: var(--cream); }
.deliver-tab.ws-tab-w4 { background: var(--peach); color: var(--navy); }
.deliver-tab.ws-tab-w10 { background: var(--pink); color: var(--navy); }
.ws-panel-w1 { background: var(--navy); }
.ws-panel-w4 { background: var(--peach); }
.ws-panel-w10 { background: var(--pink); }

.ws-sheet {
  background: #fff;
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
}

.ws-head {
  margin-bottom: 18px;
}

.ws-head h2 {
  margin: 4px 0 8px;
}

.ws-note {
  margin-top: 14px;
}

.ws-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.ws-pillar-fields {
  flex: 1;
  display: grid;
  gap: 8px;
}

.ws-pillar-fields input,
.ws-pillar-fields textarea,
.ws-idea input,
.ws-day input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.ws-pillar-fields textarea {
  min-height: 58px;
  resize: vertical;
}

.ws-pillar-fields input:disabled,
.ws-pillar-fields textarea:disabled {
  background: var(--soft);
  color: var(--muted);
}

.ws-locked {
  margin-top: 16px;
}

.ws-week {
  margin-bottom: 18px;
}

.ws-week-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.ws-day {
  display: grid;
  grid-template-columns: 110px 1fr 170px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}

.ws-day.done .ws-day-idea {
  text-decoration: line-through;
  color: var(--muted);
}

.ws-day-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ws-day select,
.ws-idea select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}

.ws-idea {
  display: grid;
  grid-template-columns: auto 1fr 140px 150px auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

@media (max-width: 760px) {
  .ws-day { grid-template-columns: 96px 1fr; }
  .ws-day-format { grid-column: 2; }
  .ws-idea { grid-template-columns: auto 1fr auto; }
  .ws-idea-pillar, .ws-idea-format { display: none; }
}

/* ── Embedded checkout modal — a clean two-pane sheet ─────────────────────────
   Pane 1 is ours (name + email on brand paper); pane 2 is Stripe's form,
   flush to the card edges so there's no frame-within-a-frame. */
.checkout-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 24px;
  background: rgba(16, 15, 75, 0.62);
  backdrop-filter: blur(6px);
  z-index: 60;
  overflow-y: auto;
}

.checkout-modal.open {
  display: flex;
  animation: modal-fade 0.18s ease;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.checkout-box {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(16, 15, 75, 0.4);
  overflow: hidden;
  animation: modal-rise 0.22s ease;
}

@keyframes modal-rise {
  from { transform: translateY(14px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.checkout-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.checkout-brand i {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.checkout-close {
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.checkout-close:hover {
  opacity: 1;
  background: rgba(16, 15, 75, 0.06);
}

#checkoutMount {
  min-height: 460px;
}

#checkoutMount iframe {
  display: block;
}

/* Pane 1 — the lead capture, on our paper. */
#checkoutLead:not(:empty) {
  display: block;
  padding: 26px 26px 22px;
}

#checkoutLead h3 {
  font-family: var(--font-black);
  font-size: 21px;
  line-height: 1.25;
  margin: 6px 0 16px;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form input {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}

.lead-form input:focus {
  outline: 2px solid var(--peri);
  outline-offset: 0;
  border-color: transparent;
}

.lead-form .btn.block {
  width: 100%;
  margin-top: 4px;
}

.lead-note {
  margin: 12px 0 0;
}

/* Member page: name + email side by side. */
.member-id-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 10px;
  max-width: 520px;
  margin: 0 0 16px;
}

.member-id-row input {
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: inherit;
  background: #fff;
  color: var(--ink);
}

@media (max-width: 560px) {
  .member-id-row { grid-template-columns: 1fr; }
}

.member-fallback {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.member-fallback .btn {
  text-decoration: none;
}

/* ── Custom checkout pane (ui_mode: custom) — the fully-branded one ───────── */
.pay-pane {
  padding: 22px 26px 24px;
}

.pay-summary {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.pay-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pay-item {
  font-family: var(--font-black);
  font-size: 19px;
  color: var(--navy);
}

.pay-price {
  font-family: var(--font-black);
  font-size: 24px;
  color: var(--navy);
}

#payment-element {
  margin: 4px 0 16px;
  min-height: 220px;
}

.pay-pane .btn.block {
  width: 100%;
}

.pay-error:empty {
  display: none;
}

.pay-error {
  color: var(--coral);
  margin: 10px 0 0;
}

.pay-fine {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

/* Breathing room between the gate's stacked cards. */
.gate .gate-login {
  margin-top: 28px;
}
.member-claim {
  margin-bottom: 4px;
}

/* ── /members — founding-pricing page (SaaS-style cumulative cards) ────────── */
.member-hero h1 {
  max-width: 720px;
}

.member-verify {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--navy);
}

.member-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .member-plans { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}

.plan-card.featured {
  background: var(--navy);
  color: var(--cream);
  border: 0;
}

.plan-card.featured h2 {
  color: var(--cream);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.plan-price strong {
  font-family: var(--font-black);
  font-size: 34px;
  line-height: 1;
}

.plan-price s {
  font-size: 18px;
  opacity: 0.45;
  text-decoration-thickness: 2px;
}

.plan-card h2 {
  font-size: 19px;
  margin: 2px 0 4px;
}

.plan-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 14px;
}

.plan-lead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 6px 0 4px;
  color: var(--muted);
}

.plan-card.featured .plan-lead,
.plan-card.featured .plan-tagline {
  color: rgba(253, 248, 238, 0.75);
}

.plan-feats {
  list-style: none;
  padding: 0;
  margin: 6px 0 20px;
  flex: 1;
}

.plan-feats li {
  position: relative;
  padding-left: 24px;
  margin: 9px 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.plan-feats li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  font-weight: 700;
  color: var(--olive);
}

.plan-card.featured .plan-feats li::before {
  color: var(--yellow);
}

.plan-card .btn.block {
  width: 100%;
}

.member-notes {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 760px;
}

.member-notes li {
  position: relative;
  padding-left: 24px;
  margin: 7px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.member-notes li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  font-weight: 700;
  color: var(--olive);
}

.member-closing {
  margin: 20px 0 4px;
  text-align: center;
  font-family: var(--font-black);
  font-size: 16px;
  color: var(--navy);
}

/* Quiet re-login footer (replaces the old "Already bought in?" card). */
.gate-relogin {
  text-align: center;
  margin: 34px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.gate-relogin-form {
  max-width: 420px;
  margin: 12px auto 0;
}

.gate-login-msg {
  text-align: center;
}

/* ── Scrolling ticker banner (member page) ────────────────────────────────── */
.ticker {
  overflow: hidden;
  background: var(--yellow);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 9px 0;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 120s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.ticker-track i {
  font-style: normal;
  font-size: 10px;
  color: var(--navy);
  opacity: 0.7;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.gate-relogin-form[hidden] {
  display: none;
}

/* ── Legal pages + gate footer ────────────────────────────────────────────── */
.gate-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
  font-size: 12px;
  color: var(--muted);
}

.gate-foot a {
  color: var(--muted);
  text-decoration: none;
}

.gate-foot a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.legal-doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 4vw, 48px);
}

.legal-doc h1 {
  font-family: var(--font-black);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  margin: 0 0 6px;
}

.legal-doc h1 + p {
  color: var(--muted);
  font-size: 13px;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 30px 0 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.legal-doc p,
.legal-doc li {
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 22px;
}

.legal-doc hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 26px 0;
}
