/* ==========================================================
   AI Start Here - Lainey editorial reskin
   ========================================================== */

/* Local Ladinta (for occasional display fallback; Instrument Serif is primary) */
@font-face {
  font-family: 'Ladinta';
  src: url('Fonts/Ladinta-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Ladinta';
  src: url('Fonts/Ladinta-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Ladinta';
  src: url('Fonts/Ladinta-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Ladinta';
  src: url('Fonts/Ladinta-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Tri-color (from Lainey design-tokens.ts) */
  --burgundy: #7C133A;
  --burgundy-deep: #4F0A25;
  --burgundy-ink: #2C0512;
  --periwinkle: #C4D6FD;
  --periwinkle-deep: #8FA3D6;
  --periwinkle-ink: #1A2A54;
  --cream: #FFFFFF;
  --cream-deep: #F6F3EE;
  --cream-soft: #FBFAF7;
  --page: #F0EEE9;
  --ink: #1A0B0F;
  --ink-soft: #4A2D36;
  --muted: #8A7168;
  --muted-soft: #B8A499;
  --line: #E6E1DA;

  /* Type stacks */
  --display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --hand: 'Caveat', 'Homemade Apple', cursive;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; }

/* App root */
#root {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
}

/* ========== Rotating submark animation ========== */
@keyframes submark-spin {
  to { transform: rotate(360deg); }
}

.submark-img {
  animation: submark-spin 60s linear infinite;
  display: block;
}

/* ========== Masthead ========== */
.masthead {
  height: 56px;
  border-bottom: 1px solid var(--ink);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--burgundy);
  line-height: 1;
  font-weight: 400;
}
.save-exit {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.save-exit:hover { color: var(--burgundy); }

/* ========== Progress (Lainey-style minimal pill) ========== */
.progress-shell {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  padding: 18px 40px;
  flex-shrink: 0;
}
.progress-track {
  width: 100%;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--periwinkle);
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.2, 0, 0, 1);
}

/* Mobile collapse */
@media (max-width: 900px) {
  .progress-shell { padding: 14px 20px; }
  .progress-track { height: 18px; }
  .timeline-label .ts-eyebrow { font-size: 8px; letter-spacing: 0.22em; }
  .timeline-dot { width: 22px; height: 22px; font-size: 11px; }
  .timeline-step::before { top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); }
}

/* ========== Primary button ========== */
.btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--burgundy-deep); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn .arrow {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--cream-deep); color: var(--ink); }

/* ========== Eyebrow / hand note ========== */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.hand {
  font-family: var(--hand);
  color: var(--burgundy);
  line-height: 1.1;
  display: inline-block;
}

/* ========== Display type ========== */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: block;
}
.display.burgundy { color: var(--burgundy); }

/* ========== Step shell layouts ========== */
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
.shell-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Two-col step (left info, right content) */
.step-aside {
  flex: 0 0 460px;
  width: 460px;
  border-right: 1px solid var(--line);
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
}
.step-aside .section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.step-aside .step-title {
  font-size: 42px;
  margin: 0 0 24px;
}
.step-aside .para {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.step-aside .cta-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.step-aside .submark-corner {
  position: absolute;
  bottom: 24px;
  right: 24px;
  opacity: 0.4;
}

.step-main {
  flex: 1;
  background: var(--cream-deep);
  position: relative;
  overflow-y: auto;
  padding: 56px 64px;
}

/* ========== Login page ========== */
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}
.login-left {
  flex: 1.1;
  background: var(--burgundy);
  color: var(--cream);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-left .login-mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login-left .login-mast .wordmark { color: var(--cream); }
.login-left .hero-type {
  margin: auto 0;
  position: relative;
  z-index: 2;
}
.login-left .hero-type .line1 {
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: block;
}
.login-left .hero-type .line1 em {
  font-style: italic;
  font-weight: 400;
}
.login-left .hero-type .line1 .dot { color: var(--periwinkle); }
.login-left .hero-type .sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--periwinkle);
  margin-top: 28px;
  display: block;
  max-width: 520px;
  line-height: 1.35;
}
.login-left .hero-eyebrow {
  position: absolute;
  top: 48px;
  left: 56px;
  right: 56px;
  display: flex;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.login-left .submark-bg {
  position: absolute;
  right: -140px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  opacity: 0.14;
  pointer-events: none;
}
.login-left .hero-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 2;
}
.login-right {
  flex: 1;
  background: var(--cream);
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
}
.login-right .login-mast {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.login-card {
  max-width: 420px;
  width: 100%;
  margin: auto;
}
.login-card .eyebrow { margin-bottom: 14px; display: block; }
.login-card h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.login-card h1 .accent { color: var(--burgundy); }
.login-card .lede {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 32px;
}
.form-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(124,19,58,0.12);
}
.form-row { margin-bottom: 18px; }
.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-meta a {
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.form-meta a:hover { border-bottom-color: var(--burgundy); }
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box-mini {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.check-row input:checked + .check-box-mini {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.check-box-mini svg {
  width: 12px; height: 12px;
  stroke: var(--cream);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.check-row input:checked + .check-box-mini svg { opacity: 1; }
.btn-full {
  width: 100%;
  justify-content: center;
}
.divider-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.oauth-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.oauth-btn:hover { border-color: var(--ink); background: var(--cream-soft); }
.signup-line {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.signup-line a {
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--burgundy);
}

/* ========== Welcome page (editorial spread) ========== */
.welcome-body {
  display: flex;
  min-height: 0;
  flex: 1;
}
.welcome-left {
  flex: 1.25;
  padding: 48px 64px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
}
.welcome-hero {
  position: relative;
}
.welcome-hero .l {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-size: clamp(48px, 6.4vw, 86px);
  display: block;
}
.welcome-hero .l1 { color: var(--ink); }
.welcome-hero .l2 { color: var(--burgundy); margin-top: 4px; }
.welcome-hero .l3 { color: var(--burgundy); position: relative; display: inline-block; }
.welcome-hero .l3-underline {
  position: absolute;
  left: 18%;
  bottom: -6px;
  width: 72%;
  height: 16px;
  pointer-events: none;
}
.welcome-hero .supporting {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.welcome-hero .supporting p {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 520px;
}
.welcome-hero .supporting p em {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink);
  font-size: 18px;
}
.welcome-hero .margin-note {
  width: 120px;
  padding-top: 4px;
  text-align: center;
  flex-shrink: 0;
}
.welcome-hero .margin-note .rule {
  margin-top: 10px;
  height: 1px;
  background: var(--burgundy);
  opacity: 0.4;
  width: 54px;
  margin-left: auto;
  margin-right: auto;
}
.welcome-cta-bar {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
}
.welcome-cta-bar .meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.welcome-right {
  flex: 1;
  min-width: 380px;
  background: var(--cream-deep);
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.welcome-right .eyebrow { margin-bottom: 24px; display: block; }
.laptop-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* Laptop illustration */
.laptop {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 540;
  color: var(--burgundy);
  margin-left: auto;
  margin-right: auto;
}
.laptop-wrap .laptop { max-width: 480px; }
.lesson-video-stage .laptop { max-width: 880px; }

/* Fullscreen toggle button on the laptop screen */
.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 6, 8, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
}
.laptop-screen:hover .fullscreen-btn,
.fullscreen-btn:focus-visible {
  opacity: 1;
}
.fullscreen-btn:hover {
  background: rgba(10, 6, 8, 0.85);
}

/* Phone illustration (vertical / Reel) */
.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 400 / 820;
  color: var(--burgundy);
  margin: 0 auto;
}
.phone-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.phone-screen {
  position: absolute;
  top: calc(14 / 820 * 100%);
  left: calc(14 / 400 * 100%);
  right: calc(14 / 400 * 100%);
  bottom: calc(14 / 820 * 100%);
  background: #0a0608;
  overflow: hidden;
  border-radius: 32px;
  z-index: 1;
}
.phone-screen video,
.phone-screen .video-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #2a0814 0%, #1a0b0f 100%);
  object-fit: cover;
}

/* ========== Lesson navigation row (Back / Mark complete / Next) ========== */
.lesson-nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.lesson-nav-row > div:nth-child(1) { justify-self: start; }
.lesson-nav-row > div:nth-child(2) { justify-self: center; }
.lesson-nav-row > div:nth-child(3) { justify-self: end; }
.lesson-nav-row .btn {
  white-space: nowrap;
}

/* Tablet + mobile: stack vertically, full-width buttons */
@media (max-width: 720px) {
  .lesson-nav-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lesson-nav-row > div { justify-self: stretch !important; }
  .lesson-nav-row > div:nth-child(2) { order: -1; }       /* Mark-complete on top */
  .lesson-nav-row > div:nth-child(1) { order: 1; }        /* Back below */
  .lesson-nav-row > div:nth-child(3) { order: 2; }        /* Next at the bottom */
  .lesson-nav-row .btn,
  .lesson-nav-row .complete-check {
    width: 100%;
    justify-content: center;
  }
  .lesson-nav-row .complete-check { padding: 10px 14px; }
}

/* ========== Lesson checkpoint page (after the last screen) ========== */
.lesson-checkpoint-main {
  background: var(--cream);
  padding: 64px 40px 80px !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.lesson-checkpoint-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.checkpoint-heading {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 36px;
}
.checkpoint-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 36px;
  display: grid;
  gap: 14px;
  max-width: 480px;
  text-align: left;
}
.checkpoint-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  animation: cp-row 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0s) forwards;
}
@keyframes cp-row {
  to { opacity: 1; transform: translateY(0); }
}
.checkpoint-list .tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: scale(0);
  animation: cp-tick 0.5s cubic-bezier(0.34, 1.7, 0.64, 1) calc(var(--delay, 0s) + 0.18s) forwards;
}
@keyframes cp-tick {
  to { transform: scale(1); }
}
.checkpoint-list .tick svg { width: 14px; height: 14px; }
.checkpoint-outro {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--burgundy);
  margin: 0 auto;
  max-width: 540px;
}

/* ========== Lesson intro page (burgundy title screen, split layout) ========== */
.lesson-intro-main {
  position: relative;
  background: var(--burgundy);
  color: var(--cream);
  overflow: hidden;
  padding: 64px 48px 80px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-intro-split {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* Decorative rotating submark, lower-left of the page (under "Setup Properly") */
.lesson-intro-submark {
  position: absolute;
  left: 4%;
  bottom: 4%;
  width: 320px;
  height: 320px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  transform-origin: 50% 50%;
  animation: submark-spin 60s linear infinite;
}

.lesson-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lesson-intro-h1 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}
.lesson-intro-h1 .accent { color: var(--periwinkle); display: block; }

/* RIGHT: H2, body, CTAs */
.lesson-intro-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 520px;
}
.lesson-intro-h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
  color: var(--periwinkle);
  margin: 0 0 28px;
}
.lesson-intro-body {
  margin: 0 0 32px;
}
.lesson-intro-body p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
}

/* Buttons on the burgundy intro page */
.lesson-intro-cta .btn {
  background: var(--cream);
  color: var(--burgundy);
}
.lesson-intro-cta .btn:hover { background: var(--periwinkle); color: var(--burgundy); }
.lesson-intro-cta .btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.lesson-intro-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cream);
  color: var(--cream);
}
.lesson-intro-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .lesson-intro-main { padding: 48px 24px 64px !important; }
  .lesson-intro-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lesson-intro-submark { width: 220px; height: 220px; left: 4%; bottom: 4%; opacity: 0.22; }
  .lesson-intro-right { max-width: none; }
}

/* ========== Voice memo transcript toggle ========== */
.transcript-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--periwinkle-deep);
  background: transparent;
  color: var(--periwinkle-ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}
.transcript-toggle:hover {
  background: rgba(255,255,255,0.6);
  border-color: var(--periwinkle-ink);
}
.transcript-toggle.open {
  background: var(--periwinkle-ink);
  color: var(--cream);
  border-color: var(--periwinkle-ink);
}
.transcript-toggle svg { display: block; }
.transcript-panel {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--periwinkle-ink);
  max-height: 260px;
  overflow-y: auto;
}
.transcript-panel p { margin: 0; white-space: pre-wrap; }
.transcript-panel .transcript-loading { opacity: 0.6; font-style: italic; }

/* ========== Lesson screen split layout (laptop left, text+memo right) ========== */
.screen-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: 32px;
}
.screen-split-left { min-width: 0; }
.screen-split-left .lesson-video-stage .laptop {
  max-width: 100%;
  /* Override portrait laptop aspect ratio for a cleaner video frame */
  aspect-ratio: 16 / 9;
}
/* Hide the laptop SVG illustration on lesson pages, keep just the video in a burgundy box */
.screen-split-left .laptop-shell { display: none; }
.screen-split-left .laptop-screen {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--burgundy);
  border-radius: 16px;
  background: var(--burgundy-deep);
  box-shadow: 0 18px 40px rgba(44,5,18,0.12);
}
.screen-split-left .laptop-screen video,
.screen-split-left .laptop-screen .video-placeholder {
  border-radius: 13px;
}
.screen-split-left .fullscreen-btn { top: 14px; right: 14px; }

.screen-split-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}
.screen-split-h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.screen-split-h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.35;
  color: var(--burgundy);
  margin: 6px 0 0;
}
.screen-split-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screen-split-body .screen-detail-body {
  text-align: left;
  margin: 0;
  max-width: none;
  font-size: 14.5px;
  line-height: 1.65;
}
.screen-split-body .screen-detail-list li { font-size: 14px; }
.screen-split-body .screen-detail-list {
  text-align: left;
  margin: 6px 0 8px;
  max-width: none;
}

/* Voice memo when it lives in the right column: compact box */
.screen-split-right .voice-memo {
  padding: 14px 16px;
  border-radius: 14px;
}
.screen-split-right .voice-memo h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.screen-split-right .voice-memo .card-eyebrow { margin-bottom: 8px; }
.screen-split-right .voice-memo .voice-player { padding: 8px 10px; }
.screen-split-right .voice-memo .voice-icon { width: 36px; height: 36px; }
.screen-split-right .voice-memo .voice-wave { height: 22px; }

/* The prompt typebox sits full-width below the split, split into 2 columns
   so the long prompts on 2.1 + 2.2 don't run as tall */
.screen-prompt-below {
  margin: 8px auto 0;
  max-width: 100%;
}
.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.prompt-head .label { margin-bottom: 0 !important; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  transition: all 0.18s ease;
}
.copy-btn:hover {
  background: var(--burgundy);
  color: var(--cream);
}
.copy-btn.copied {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.copy-btn svg { display: block; }
.screen-prompt-below .typebox {
  font-size: 12.5px;
  line-height: 1.65;
}

@media (max-width: 940px) {
  .screen-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .screen-split-right { padding-top: 0; }
}

/* ========== Lesson screen layout (laptop, slim memo below, centered detail) ========== */
.memo-slim-wrap {
  margin: 22px auto 0;
  max-width: 720px;
}
.memo-slim-wrap .voice-memo {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 24px;
  padding: 12px 20px;
  border-radius: 16px;
}
.memo-slim-wrap .voice-memo > .card-eyebrow {
  grid-column: 1; grid-row: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.memo-slim-wrap .voice-memo > .card-eyebrow .eyebrow {
  font-size: 9px;
  letter-spacing: 0.24em;
}
.memo-slim-wrap .voice-memo > .card-eyebrow .tag { display: none; }
.memo-slim-wrap .voice-memo > h3 {
  grid-column: 1; grid-row: 2;
  font-size: 16px;
  margin: 2px 0 0;
  font-style: italic;
  white-space: nowrap;
}
.memo-slim-wrap .voice-memo > .voice-player {
  grid-column: 2; grid-row: 1 / span 2;
  background: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 999px;
  gap: 10px;
}
.memo-slim-wrap .voice-memo .voice-icon { width: 32px; height: 32px; }
.memo-slim-wrap .voice-memo .voice-wave { height: 20px; }
.memo-slim-wrap .voice-memo .voice-time { font-size: 11px; }

.screen-detail {
  margin: 44px auto 0;
  max-width: 760px;
  text-align: center;
}
.screen-detail-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  text-align: center;
}
.screen-detail-h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--burgundy);
  margin: 0 auto 24px;
  max-width: 640px;
  text-align: center;
}
.screen-detail-body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto 14px;
  text-align: center;
  max-width: 640px;
}
.screen-detail-body + .screen-detail-body { margin-top: 4px; }
.screen-detail-list {
  list-style: none;
  padding: 0;
  margin: 6px auto 18px;
  max-width: 360px;
  text-align: left;
}
.screen-detail-list li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.screen-detail-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
}
.screen-detail-typebox {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.screen-detail-typebox .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.screen-detail-typebox .typebox {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  background: var(--cream-soft);
  padding: 14px 16px;
  border-left: 3px solid var(--burgundy);
  border-radius: 4px;
  margin: 0;
}

@media (max-width: 820px) {
  .memo-slim-wrap { max-width: 480px; }
  .memo-slim-wrap .voice-memo h3 { white-space: normal; }
}

/* ========== Legal footer (every page) ========== */
.legal-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 32px 40px 36px;
  font-family: var(--sans);
}
.legal-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.legal-footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.legal-footer-copy {
  max-width: 720px;
}
.legal-line {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.legal-line + .legal-line { margin-top: 4px; }
.legal-copyright {
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px !important;
}
.legal-jurisdiction {
  margin-top: 8px !important;
  font-style: italic;
  color: var(--muted-soft);
}
@media (max-width: 720px) {
  .legal-footer { padding: 24px 20px 28px; }
  .legal-line { font-size: 10.5px; }
}

/* Welcome page H1 - larger */
h1.welcome-h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 8px auto 0;
}
.welcome-body-sub {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 440px;
}

/* Welcome split layout (phone left, CTA right) */
.welcome-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}
.welcome-split .welcome-cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-left: 12px;
}
.welcome-split .welcome-cta-side .hand {
  font-size: 26px;
  line-height: 1.3;
  color: var(--burgundy);
  max-width: 320px;
}
.welcome-split .welcome-cta-side .meta-line {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 820px) {
  .welcome-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 20px 32px;
  }
  .welcome-split .welcome-cta-side { align-items: center; text-align: center; padding-left: 0; }
  .phone { max-width: 220px; }
}
.laptop-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.laptop-screen {
  position: absolute;
  top: calc(22 / 540 * 100%);
  left: calc(38 / 800 * 100%);
  right: calc(38 / 800 * 100%);
  bottom: calc(66 / 540 * 100%);
  background: #0a0608;
  overflow: hidden;
  border-radius: 4px;
  z-index: 1;
}
.laptop-screen video,
.laptop-screen .video-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #2a0814 0%, #1a0b0f 100%);
  object-fit: cover;
}
.video-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 20px;
}
.video-placeholder .play {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--cream);
  transition: all 0.2s ease;
}
.video-placeholder:hover .play {
  background: rgba(255,255,255,0.14);
  border-color: var(--cream);
}
.video-placeholder .tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.video-placeholder .title {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--cream);
  max-width: 360px;
  line-height: 1.3;
}

.promise-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.promise-list li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.promise-list li:last-child { border-bottom: 1px solid var(--line); }
.promise-list .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--burgundy);
  min-width: 30px;
  line-height: 1;
}
.promise-list .text {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
}

/* ========== Audit (sliders) ========== */
.audit-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: left;
}
.audit-intro .eyebrow { margin-bottom: 14px; display: block; }
.audit-intro h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 22px;
}
.audit-intro h1 .accent { color: var(--burgundy); }
.audit-intro p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 620px;
  margin: 0;
}
.audit-intro .audit-instructions {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}
.audit-intro .audit-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--burgundy);
  background: var(--periwinkle);
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
  max-width: none;
}
.audit-intro .audit-note strong {
  font-weight: 600;
  color: var(--burgundy-deep);
}
.audit-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.audit-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 30px;
}
.audit-q {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 4px;
}
.audit-sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.slider-row {
  display: grid;
  gap: 10px;
}
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.slider-value {
  justify-self: start;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--periwinkle);
  color: var(--periwinkle-ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
input[type="range"].brand-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--burgundy) var(--pct, 0%), var(--periwinkle) var(--pct, 0%));
  outline: none;
  cursor: pointer;
}
input[type="range"].brand-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--burgundy);
  box-shadow: 0 4px 14px rgba(124,19,58,0.25);
  cursor: grab;
  transition: transform 0.15s ease;
}
input[type="range"].brand-slider::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
input[type="range"].brand-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--burgundy);
  box-shadow: 0 4px 14px rgba(124,19,58,0.25);
  cursor: grab;
}

/* Final summary */
.audit-summary {
  margin: 32px auto 0;
  max-width: 720px;
  padding: 36px 32px;
  border-radius: 14px;
  background: var(--burgundy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.audit-summary .eyebrow { color: var(--periwinkle); margin-bottom: 12px; display: block; }
.audit-summary h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.audit-summary h2 .accent { color: var(--periwinkle); }
.audit-summary p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 560px;
}
.audit-summary .submark-bg {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  opacity: 0.1;
  pointer-events: none;
}

/* ========== Lesson sequence (laptop DOMINANT + voice memo + text box) ========== */
.lesson-main {
  padding: 40px 48px 56px;
  overflow-y: auto;
}
.lesson-head {
  max-width: 1400px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.lesson-head-main { flex: 1; min-width: 280px; }
.lesson-head .screen-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.screen-chip {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.15s ease;
}
.screen-chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.screen-chip.active {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.lesson-head .eyebrow { display: block; margin-bottom: 10px; }
.lesson-head h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}
.lesson-head h1 .accent { color: var(--burgundy); }
.lesson-head .sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

.lesson-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 0.85fr);
  align-items: start;
}
.lesson-video-stage {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}
.lesson-video-stage .stage-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.lesson-video-stage .stage-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 4px;
}
.lesson-video-stage .stage-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 640px;
}
.whats-next {
  margin-top: 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.whats-next .label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  min-width: 110px;
}
.whats-next .typebox {
  flex: 1;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  background: var(--cream-soft);
  padding: 14px 16px;
  border-left: 3px solid var(--burgundy);
  border-radius: 4px;
  min-width: 240px;
}
.lesson-laptop-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lesson-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 20px;
}
.setup-checklist {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}
.setup-checklist h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
}
.setup-checklist ul { list-style: none; padding: 0; margin: 0; }
.setup-checklist li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
}
.setup-checklist li:first-child { border-top: 0; padding-top: 0; }
.setup-checklist .tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--periwinkle);
  color: var(--burgundy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.module-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}
.module-card .card-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.module-card .card-eyebrow .eyebrow { color: var(--burgundy); }
.module-card .card-eyebrow .tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.module-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
.module-card p, .module-card li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Voice memo block */
.voice-memo {
  background: var(--periwinkle);
  border: 1px solid var(--periwinkle-deep);
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--periwinkle-ink);
}
.voice-memo .card-eyebrow { margin-bottom: 12px; }
.voice-memo .card-eyebrow .eyebrow { color: var(--burgundy); }
.voice-memo h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--periwinkle-ink);
  margin: 0 0 14px;
}
.voice-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
}
.voice-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.voice-icon:hover { background: var(--burgundy-deep); }
.voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
.voice-wave span {
  flex: 1;
  background: var(--burgundy);
  border-radius: 1px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.voice-wave.playing span {
  animation: wave 1.2s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.voice-time {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--periwinkle-ink);
  min-width: 42px;
  text-align: right;
}

/* Reflection text box */
.reflection-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}
.reflection-card .card-eyebrow { margin-bottom: 12px; }
.reflection-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}
.reflection-card .prompt {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.55;
}
.reflection-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.reflection-textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(124,19,58,0.08);
}
.reflection-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.reflection-meta .saved { color: var(--burgundy); }

/* ========== Footer nav ========== */
.step-footer {
  padding: 20px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.complete-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  cursor: pointer;
  user-select: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.complete-check:hover { background: var(--cream-deep); }
.complete-check input { position: absolute; opacity: 0; pointer-events: none; }
.complete-check .box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.complete-check .box svg {
  width: 13px; height: 13px;
  stroke: var(--cream);
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.3s ease 0.05s;
}
.complete-check input:checked + .box {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.complete-check input:checked + .box svg { stroke-dashoffset: 0; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .login-wrap { flex-direction: column; }
  .login-left { min-height: 360px; padding: 40px; }
  .login-right { padding: 40px; }
  .shell-body { flex-direction: column; }
  .step-aside { flex: unset; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 32px; }
  .step-aside .submark-corner { display: none; }
  .step-main { padding: 36px 28px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .welcome-body { flex-direction: column; }
  .welcome-left { padding: 40px 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .welcome-right { padding: 36px 32px; min-width: 0; }
  .masthead { padding: 0 20px; }
  .progress-shell { padding: 14px 20px; }
  .step-footer { padding: 16px 20px; grid-template-columns: 1fr 1fr; }
  .complete-check { grid-column: 1 / -1; grid-row: 1; justify-content: center; border: 1px dashed var(--line); }
  .step-footer > button:nth-of-type(1) { grid-row: 2; grid-column: 1; }
  .step-footer > button:nth-of-type(2) { grid-row: 2; grid-column: 2; justify-self: end; }
  .welcome-hero .supporting { flex-direction: column; gap: 16px; }
  .welcome-hero .margin-note { width: auto; text-align: left; }
  .welcome-hero .margin-note .rule { margin-left: 0; }
}
