/* =========================================================
   WYT AI Coach — Design Tokens + Component Styles
   Masters in Clarity · Signature Talk Composer
   ========================================================= */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ---------- ROOT TOKENS ---------- */
:root {
  /* ===== Primary palette ===== */
  --obsidian:          #1A1614;
  --clarity-gold:      #C9A84C;
  --ivory:             #FAF7F2;

  /* ===== Secondary ===== */
  --gold-dark:         #8B6E2A;
  --strategy-green:    #3D6B4F;
  --warm-gray:         #8B8279;

  /* ===== Extended neutrals ===== */
  --obsidian-900:      #1A1614;
  --obsidian-800:      #2A2421;
  --obsidian-700:      #3A322E;
  --ink-600:           #4F453F;
  --ink-500:           #6B5F57;
  --warm-gray-400:     #8B8279;
  --warm-gray-300:     #ADA49A;
  --warm-gray-200:     #D4CCC1;
  --warm-gray-100:     #E8E1D6;
  --ivory-50:          #FAF7F2;
  --ivory-25:          #FDFBF7;
  --pure-white:        #FFFFFF;

  /* ===== Gold scale ===== */
  --gold-900:          #5E4A1C;
  --gold-800:          #8B6E2A;
  --gold-700:          #A88936;
  --gold-600:          #C9A84C;
  --gold-500:          #D6BA68;
  --gold-400:          #E3CC89;
  --gold-300:          #ECDCAC;
  --gold-200:          #F3E8C9;
  --gold-100:          #F8F1DF;

  /* ===== Ember (product accent) ===== */
  --ember:             #E36A2C;
  --ember-dark:        #B5571A;
  --ember-soft:        rgba(227,106,44,0.10);

  /* ===== Semantic ===== */
  --bg:                var(--ivory);
  --surface:           var(--pure-white);
  --fg-1:              var(--obsidian);
  --fg-2:              var(--ink-500);
  --fg-3:              var(--warm-gray-400);
  --fg-inverse:        var(--ivory);
  --border-subtle:     rgba(26,22,20,0.08);
  --border-medium:     rgba(26,22,20,0.16);

  /* ===== Typography ===== */
  --font-display:      'Cormorant Garamond', Georgia, serif;
  --font-body:         'DM Sans', system-ui, sans-serif;

  /* ===== Type scale ===== */
  --fs-display-1:      clamp(48px, 6vw, 80px);
  --fs-display-2:      clamp(36px, 4.5vw, 60px);
  --fs-h1:             clamp(28px, 3.5vw, 40px);
  --fs-h2:             clamp(24px, 3vw, 36px);
  --fs-h3:             24px;
  --fs-h4:             20px;
  --fs-h5:             17px;
  --fs-body-lg:        18px;
  --fs-body:           16px;
  --fs-body-sm:        14px;
  --fs-caption:        13px;
  --fs-eyebrow:        11px;
  --fs-micro:          10px;

  /* ===== Tracking ===== */
  --tracking-eyebrow:  0.18em;
  --tracking-label:    0.10em;
  --tracking-micro:    0.12em;

  /* ===== Spacing (4px base) ===== */
  --sp-0:   0px;
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-7:   28px;
  --sp-8:   32px;
  --sp-9:   36px;
  --sp-10:  40px;
  --sp-11:  48px;
  --sp-12:  96px;

  /* ===== Radii ===== */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* ===== Shadows ===== */
  --shadow-xs:  0 1px 3px rgba(26,22,20,0.06);
  --shadow-sm:  0 2px 8px rgba(26,22,20,0.08);
  --shadow-md:  0 4px 16px rgba(26,22,20,0.10);
  --shadow-lg:  0 8px 32px rgba(26,22,20,0.12);

  /* ===== Motion ===== */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:   120ms;
  --dur-base:   220ms;
  --dur-slow:   380ms;
}

/* ---------- GLOBAL BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- PRODUCT ROOT ---------- */
.product-root {
  /* Ember is the chosen accent — baked in as default */
  --p-accent:      #E36A2C;
  --p-accent-dark: #B5571A;
  --p-accent-soft: rgba(227,106,44,0.10);
  --p-density:     1;
  --p-radius:      var(--radius-md);
  --p-card-radius: var(--radius-lg);
  --p-row-py:      calc(14px * var(--p-density));
  --p-row-px:      calc(18px * var(--p-density));
  --p-section-gap: calc(20px * var(--p-density));
  --p-step-icon:   32px;
  background: var(--ivory);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--obsidian);
}

.product-root :focus-visible,
.landing-root  :focus-visible {
  outline: 2px solid var(--p-accent, var(--ember));
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- SHARED LAYOUT ---------- */
.product-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- SHARED BUTTONS ---------- */
.wy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}
.wy-btn.primary {
  background: var(--p-accent, var(--ember));
  color: var(--ivory);
  border-color: var(--p-accent, var(--ember));
}
.wy-btn.primary:hover {
  background: var(--p-accent-dark, var(--ember-dark));
  border-color: var(--p-accent-dark, var(--ember-dark));
}
.wy-btn.primary:active { transform: translateY(1px); }
.wy-btn.outline {
  background: transparent;
  color: var(--obsidian);
  border-color: var(--border-medium);
}
.wy-btn.outline:hover { border-color: var(--obsidian); }
.wy-btn.outline:disabled { opacity: 0.4; cursor: not-allowed; }
.wy-btn.ghost {
  background: transparent;
  color: var(--ink-500);
  border-color: transparent;
  padding: 10px 14px;
  letter-spacing: 0.08em;
}
.wy-btn.ghost:hover {
  color: var(--obsidian);
  background: rgba(26,22,20,0.05);
}
.wy-btn.inverse {
  background: var(--ivory);
  color: var(--obsidian);
  border-color: var(--ivory);
}
.wy-btn.inverse:hover {
  background: var(--clarity-gold);
  border-color: var(--clarity-gold);
}
.wy-btn.sm { padding: 9px 14px; font-size: 11px; gap: 6px; border-radius: var(--radius-sm); }
.wy-btn.xs { padding: 6px 10px; font-size: 10px; gap: 5px; border-radius: var(--radius-sm); }
.wy-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---------- TOP NAV ---------- */
.product-topnav {
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}
.product-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.product-brand img {
  height: 32px;
  width: auto;
  display: block;
}
.product-brand-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-brand-fallback .brand-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--obsidian);
  text-transform: uppercase;
  line-height: 1.2;
}
.product-brand-fallback .brand-sub {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.product-topnav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Save indicator */
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(26,22,20,0.04);
}
.save-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3D8B5B;
  flex-shrink: 0;
}
.save-indicator[data-state="saving"] .dot  { background: #C9A84C; }
.save-indicator[data-state="error"]  .dot  { background: var(--ember); }
.save-indicator[data-state="saved"]  .dot  { background: #3D8B5B; }

/* User pill */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--obsidian);
  background: var(--surface);
  max-width: 220px;
  position: relative;
  cursor: default;
}
.user-pill .email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.user-pill .overflow-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-500);
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1;
}
.user-pill .overflow-btn:hover { color: var(--obsidian); }
.overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 20;
  overflow: hidden;
}
.overflow-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-500);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.overflow-menu button:hover { background: rgba(26,22,20,0.04); color: var(--obsidian); }
.overflow-menu button.danger { color: var(--ember); }
.overflow-menu button.danger:hover { background: var(--ember-soft); }

/* ---------- TABS ---------- */
.product-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 0;
  margin: 0;
  list-style: none;
}
.product-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-500);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.product-tab[aria-pressed="true"] {
  color: var(--obsidian);
  font-weight: 600;
  border-bottom-color: var(--p-accent);
}
.product-tab:hover:not([aria-pressed="true"]) { color: var(--obsidian); }

/* ---------- PROGRESS BAND ---------- */
.progress-band {
  background: var(--ivory);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}
.progress-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.progress-band .pitch {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--obsidian);
}
.progress-band .pitch em { color: var(--ink-600); }
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.progress-bar {
  width: 120px;
  height: 3px;
  background: var(--warm-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar div {
  height: 100%;
  background: var(--p-accent);
  border-radius: var(--radius-full);
  transition: width var(--dur-slow) var(--ease-out);
}

/* ---------- PRODUCT MAIN ---------- */
.product-main { padding: 28px 0 48px; }

/* ---------- COMPOSE ---------- */
.compose {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

/* Step list */
.step-list { display: flex; flex-direction: column; gap: 6px; }
.step-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.step-list-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--obsidian);
}
.step-list-head span {
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* Step card */
.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.step-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-xs);
}
.step-card[aria-current="true"] {
  background: var(--p-accent-soft);
  border-color: var(--p-accent);
  transform: translateX(3px);
  box-shadow: 0 2px 12px rgba(227,106,44,0.12);
}
.step-card[data-done="true"] {
  border-color: var(--border-subtle);
}

/* Icon slot */
.icon-slot {
  width: var(--p-step-icon);
  height: var(--p-step-icon);
  border-radius: 50%;
  border: 1.5px solid var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--obsidian);
  flex-shrink: 0;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.step-card[data-done="true"] .icon-slot {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--ivory);
}
.step-card[aria-current="true"] .icon-slot {
  border-color: var(--p-accent);
  color: var(--p-accent);
}
.step-card[data-done="true"][aria-current="true"] .icon-slot {
  background: var(--p-accent);
  border-color: var(--p-accent);
  color: var(--ivory);
}

/* Step body */
.step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.step-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-500);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--obsidian);
  line-height: 1.2;
}
.step-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.3;
}

/* Step trail */
.step-trail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  flex-shrink: 0;
  white-space: nowrap;
}
.step-card[data-done="true"] .step-trail { color: var(--p-accent-dark, var(--ember-dark)); }
.step-card[aria-current="true"] .step-trail { color: var(--p-accent); }

/* ---------- CANVAS ---------- */
.canvas {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--p-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
}
.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px 14px;
  background: var(--ivory-25);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}
.canvas-header .crumb {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 5px;
}
.canvas-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--obsidian);
  line-height: 1.2;
}
.canvas-header h1 em { font-style: italic; color: var(--ink-600); font-size: 0.75em; }
.canvas-header .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Canvas empty state */
.canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 56px 40px;
  text-align: center;
}
.canvas-empty .glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--p-accent-soft);
  color: var(--p-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.canvas-empty h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--obsidian);
}
.canvas-empty p {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 280px;
}

/* Manuscript view */
.manuscript {
  flex: 1;
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
}
.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.manuscript p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.55;
  color: var(--obsidian-800);
  margin: 0 0 1.2em;
}
.ms-actions {
  display: flex;
  gap: 10px;
  padding: 20px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

/* Chat stream */
.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
}
.bubble {
  max-width: 83%;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  font-family: var(--font-body);
  border-radius: 14px;
}
.bubble.assistant {
  align-self: flex-start;
  background: var(--ivory-25);
  color: var(--obsidian);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 3px;
}
.bubble.user {
  align-self: flex-end;
  background: var(--obsidian);
  color: var(--ivory);
  border-bottom-right-radius: 3px;
}
.chat-thinking {
  align-self: flex-start;
  background: var(--ivory-25);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  border-bottom-left-radius: 3px;
  padding: 12px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.chat-thinking span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-500);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.chat-thinking span:nth-child(2) { animation-delay: 0.2s; }
.chat-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Composer row */
.composer-row {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--ivory-25);
  align-items: flex-end;
}
.composer-row input,
.composer-row textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--obsidian);
  background: var(--surface);
  outline: none;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.composer-row input:focus,
.composer-row textarea:focus { border-color: var(--obsidian); }
.kbd-hint {
  display: block;
  padding: 6px 22px 12px;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  background: var(--ivory-25);
}
.kbd-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--obsidian);
}

/* ---------- FLASHCARDS ---------- */
.cards-wrap { max-width: 720px; margin: 0 auto; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
.section-header h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--obsidian);
}
.section-header .subtitle {
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.03em;
}

.flashcard {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--p-accent);
  border-radius: var(--radius-lg);
  padding: 36px 40px 28px;
  min-height: 280px;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.flashcard:hover { box-shadow: var(--shadow-md); }
.flashcard[data-flipped="true"] {
  background: var(--obsidian);
  border-color: var(--obsidian);
  border-top-color: var(--p-accent);
}
.fc-eyebrow {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--p-accent);
}
.fc-counter {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-500);
}
.flashcard[data-flipped="true"] .fc-counter { color: rgba(250,247,242,0.45); }
.fc-text {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  color: var(--obsidian);
  flex: 1;
  display: flex;
  align-items: center;
}
.flashcard[data-flipped="true"] .fc-text { color: var(--ivory); }
.fc-foot {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
}
.flashcard[data-flipped="true"] .fc-foot { color: rgba(250,247,242,0.35); }

.cards-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
}
.cards-meta { font-size: 11px; color: var(--ink-500); letter-spacing: 0.10em; }

.cards-empty {
  background: var(--ivory-25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cards-empty .glyph {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--p-accent-soft);
  color: var(--p-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.cards-empty h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--obsidian);
}
.cards-empty p {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ---------- REHEARSE SPLIT LAYOUT ---------- */
.rehearse-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.rehearse-outline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.ro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.ro-count { color: var(--ember); }

.ro-step {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.ro-step:last-child { border-bottom: none; }
.ro-step.active { background: var(--ember-tint); }
.ro-step.dim { opacity: 0.45; }
.ro-step:not(.dim):hover { background: var(--surface-hover, rgba(0,0,0,0.03)); }

.ro-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ro-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  min-width: 20px;
}

.ro-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--obsidian);
  flex: 1;
}

.ro-saved-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
}

.ro-preview {
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.5;
  padding-left: 28px;
  font-style: italic;
}

.rehearse-card-col { min-width: 0; }

.fc-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
}
.fc-bullets li {
  font-size: 13px;
  color: var(--ink-500);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}
.fc-bullets li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--ember);
}

@media (max-width: 768px) {
  .rehearse-split { grid-template-columns: 1fr; }
  .rehearse-outline { position: static; }
}

/* ---------- SLIDES ---------- */
.slides-wrap { max-width: 860px; margin: 0 auto; }

.slide {
  border-radius: var(--radius-xl);
  padding: 48px 52px 40px;
  min-height: 280px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  position: relative;
}
.slide[data-tone="obsidian"] { background: var(--obsidian); }
.slide[data-tone="ivory"]    { background: var(--ivory-25); border: 1px solid var(--border-subtle); }

/* ── Unified stage: white editorial card ── */
.slide-stage {
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--p-accent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--pure-white);
}

.slide-redesign {
  background: var(--pure-white) !important;
  min-height: 340px;
  padding: 52px 64px 52px;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* Slide counter — bottom-right, editorial page-number style */
.slide-counter {
  position: absolute;
  bottom: 24px;
  right: 36px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: rgba(26,22,20,0.18);
  font-family: var(--font-body);
  text-transform: uppercase;
}

/* Emoji design element — top-right accent */
.slide-emoji {
  position: absolute;
  top: 36px;
  right: 52px;
  font-size: 52px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

/* Legacy elements — no longer rendered */
.slide-emoji-bg  { display: none; }
.slide-step-icon { display: none; }

/* Large keyword headline in display serif */
.slide-keyword {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--obsidian);
  max-width: 82%;
}
.slide-redesign .slide-rule {
  height: 1.5px;
  width: 28px;
  background: var(--p-accent);
  margin: 22px 0 20px;
  border-radius: var(--radius-full);
}
.slide-redesign .slide-title {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--obsidian);
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 78%;
  font-weight: 400;
}
.slide-redesign .slide-body {
  font-family: var(--font-body);
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.85;
  max-width: 78%;
}

/* Base slide styles (non-redesign) */
.slide-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 20px;
}
.slide-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 500;
}
.slide[data-tone="obsidian"] .slide-title { color: var(--ivory); }
.slide[data-tone="ivory"]    .slide-title { color: var(--obsidian); }
.slide-body {
  font-size: 17px;
  line-height: 1.7;
  font-family: var(--font-body);
}
.slide[data-tone="obsidian"] .slide-body { color: rgba(250,247,242,0.70); }
.slide[data-tone="ivory"]    .slide-body { color: var(--ink-500); }
.slide-rule {
  height: 2px;
  width: 60px;
  background: var(--p-accent);
  margin-top: 28px;
  border-radius: var(--radius-full);
}

/* ── Nav row inside stage ── */
.slides-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.slides-nav-counter { font-size: 11px; color: var(--ink-500); letter-spacing: 0.10em; }
.slide-stage .slides-nav {
  padding: 12px 20px;
  margin-bottom: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--ivory-25);
}

/* ── Thumbnail strip ── */
.slides-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--ivory-25);
}
.slide-thumb {
  padding: 12px 14px 14px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur-fast);
}
.slide-thumb:last-child { border-right: none; }
.slide-thumb:hover { background: rgba(26,22,20,0.025); }
.slide-thumb[aria-current="true"] {
  background: var(--p-accent-soft);
  border-bottom: 2px solid var(--p-accent);
}
.st-num {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
  opacity: 0.55;
}
.slide-thumb[aria-current="true"] .st-num { color: var(--p-accent); opacity: 1; }
.st-emoji {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 5px;
  display: block;
}
.st-keyword {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--obsidian-700);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-thumb[aria-current="true"] .st-keyword { color: var(--obsidian); }
.st-title { display: none; }

.slides-empty {
  background: var(--ivory-25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.slides-empty .glyph {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--p-accent-soft);
  color: var(--p-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.slides-empty h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--obsidian);
}
.slides-empty p {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ---------- REHEARSE ---------- */
.rehearse {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.rehearse-main {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--p-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rehearse-sidebar {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.rehearse-sidebar h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--obsidian);
}
.rehearse-sidebar p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
}
.saved-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--p-accent-soft);
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--obsidian);
  transition: opacity var(--dur-fast);
}
.saved-pill .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p-accent);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.saved-pill.dim {
  background: transparent;
  border: 1px solid var(--border-subtle);
  opacity: 0.6;
}
.saved-pill.dim .num {
  background: var(--warm-gray-200);
  color: var(--ink-500);
}

/* ---------- CTA FOOTER ---------- */
.cta-footer {
  background: var(--obsidian);
  padding: 56px 0 48px;
  text-align: center;
  margin-top: 40px;
}
.cta-footer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 32px;
  color: var(--ivory);
  margin: 0 0 12px;
}
.cta-footer p {
  color: rgba(250,247,242,0.58);
  font-size: 15px;
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ---------- CONFIRM MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,20,0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--surface);
  border-top: 3px solid var(--p-accent);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--obsidian);
}
.modal p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
  margin: 0 0 28px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---------- LOADING SCREEN ---------- */
.loading-screen {
  min-height: 100vh;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-screen span {
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

/* ---------- MAGIC LINK SCREEN ---------- */
.magic-wrap {
  min-height: 100vh;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.magic-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-top: 3px solid var(--p-accent);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.magic-card h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--obsidian);
}
.magic-card p {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0 0 22px;
  line-height: 1.7;
}
.magic-card .err {
  font-size: 12px;
  color: var(--ember);
  margin-bottom: 12px;
}
.magic-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--obsidian);
  background: var(--surface);
  outline: none;
  margin-bottom: 12px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.magic-card input:focus { border-color: var(--obsidian); }

/* ========================================================
   LANDING PAGE — Direction A · Editorial Classic
   ======================================================== */
.landing-root {
  background: var(--ivory);
  font-family: var(--font-body);
  color: var(--obsidian);
  -webkit-font-smoothing: antialiased;
}
.landing-root * { box-sizing: border-box; }

/* Nav */
.la-nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--ivory);
}
.la-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.la-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.la-nav img { height: 30px; }
.la-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.la-nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--obsidian);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.la-nav-links a:hover { color: var(--gold-dark); }

/* Hero */
.la-hero {
  padding: 96px 0 80px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.la-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-dark);
}
.la-eyebrow::before,
.la-eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--clarity-gold);
}
.la-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display-1);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 18px 0 22px;
  color: var(--obsidian);
}
.la-h1 em { font-style: italic; color: var(--ink-600); }
.la-h1 .gold { color: var(--gold-dark); font-style: normal; }
.la-lede {
  font-size: 19px;
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 36px;
}
.la-capture {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.la-capture input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(26,22,20,0.18);
  border-radius: var(--radius-md);
  background: var(--pure-white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--obsidian);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.la-capture input:focus { border-color: var(--clarity-gold); }
.la-success {
  padding: 14px 22px;
  background: rgba(61,107,79,0.08);
  border: 1px solid rgba(61,107,79,0.25);
  border-radius: var(--radius-md);
  max-width: 480px;
  margin: 0 auto;
  color: var(--strategy-green);
  font-size: 14px;
  text-align: center;
}
.la-meta {
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  margin-top: 12px;
  text-align: center;
}
.la-trust {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 28px 0 0;
}
.la-trust span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-500);
}
.la-trust span strong {
  font-style: normal;
  font-weight: 500;
  color: var(--obsidian);
}

/* Divider */
.la-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 0 50px;
}
.la-divider .rule {
  width: 80px;
  height: 1px;
  background: var(--clarity-gold);
}
.la-divider span {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

/* What you get */
.la-what { padding: 16px 0 80px; }
.la-section-head {
  text-align: center;
  margin: 0 auto 52px;
  max-width: 720px;
}
.la-section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 14px 0;
  color: var(--obsidian);
}
.la-section-head h2 em { font-style: italic; color: var(--ink-600); }
.la-section-head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0;
}
.la-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.la-card {
  padding: 32px 26px;
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.la-card:hover {
  border-color: rgba(26,22,20,0.20);
  box-shadow: 0 8px 24px rgba(26,22,20,0.05);
}
.la-card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.12);
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.la-card .ord {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.la-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--obsidian);
}
.la-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* Method / process */
.la-process {
  background: var(--ivory-25);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 0;
}
.la-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.la-step { text-align: center; padding: 18px 8px; }
.la-step .n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--clarity-gold);
  line-height: 1;
}
.la-step .t {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--obsidian);
  margin-top: 8px;
}
.la-step .d {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 4px;
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.4;
}

/* Quote */
.la-quote { padding: 96px 0; text-align: center; }
.la-quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 28px;
  color: var(--obsidian);
  letter-spacing: -0.005em;
}
.la-quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--clarity-gold);
  line-height: 0.6;
  margin-bottom: 18px;
}
.la-who {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--obsidian);
  font-weight: 600;
}
.la-who span {
  color: var(--ink-500);
  font-weight: 400;
  margin-left: 8px;
}

/* Closer */
.la-closer {
  background: var(--obsidian);
  color: var(--ivory);
  padding: 80px 0 0;
  text-align: center;
}
.la-closer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  margin: 0 0 14px;
  line-height: 1.1;
  color: var(--ivory);
}
.la-closer h2 em { font-style: italic; color: var(--clarity-gold); }
.la-closer p {
  color: rgba(250,247,242,0.65);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.la-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(250,247,242,0.10);
  font-size: 12px;
  color: rgba(250,247,242,0.45);
}

/* ---------- YOUR TALK ---------- */
.yourtalk-wrap { max-width: 760px; margin: 0 auto; }

.yourtalk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.yourtalk-doc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  box-shadow: var(--shadow-sm);
}

.yt-section { margin-bottom: 8px; }

.yt-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.yt-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--p-accent);
  background: var(--p-accent-soft);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.yt-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.yt-text {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.85;
  color: var(--obsidian);
  white-space: pre-wrap;
}

.yt-transition {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--p-accent);
}

.yt-trans-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.yt-trans-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-500);
  text-align: center;
  flex-shrink: 0;
  max-width: 420px;
  line-height: 1.5;
}

.yt-missing {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.yt-missing-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-500);
}

/* ── Speaker One Sheet section ── */
.yt-sheet-section {
  margin-top: 48px;
  border-top: 2px solid var(--border);
  padding-top: 36px;
}

.yt-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.yt-sheet-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 6px;
}

.yt-sheet-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--obsidian);
  margin-bottom: 4px;
}

.yt-sheet-sub {
  font-size: 13px;
  color: var(--ink-500);
}

.yt-sheet-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.yt-sheet-preview {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.yt-sp-block { padding: 36px 44px; }
.yt-sp-coral { background: var(--p-accent); color: #fff; }
.yt-sp-dark  { background: var(--obsidian); color: #fff; }

.yt-sp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.yt-sp-talktitle {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 14px;
}

.yt-sp-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.92;
}

.yt-sp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yt-sp-list li {
  font-size: 14px;
  line-height: 1.6;
  padding: 8px 0 8px 22px;
  position: relative;
  opacity: 0.88;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.yt-sp-list li:last-child { border-bottom: none; }

.yt-sp-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--p-accent);
  font-weight: 700;
}

.yt-sp-note {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 12px;
  color: var(--ink-500);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  line-height: 1.6;
}

/* ---------- ONE SHEET TAB ---------- */
.onesheet-wrap { max-width: 980px; margin: 0 auto; }

.onesheet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.os-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 32px;
}

.os-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 20px;
}

.os-photo-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.os-photo-box {
  width: 100px;
  height: 120px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: border-color var(--dur-fast);
  overflow: hidden;
}
.os-photo-box:hover { border-color: var(--p-accent); }

.os-photo-prompt {
  text-align: center;
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.4;
  padding: 8px;
}

.os-photo-meta {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.6;
}

.os-field-group {
  margin-bottom: 14px;
}
.os-field-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.os-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--obsidian);
  background: var(--surface);
  resize: vertical;
  transition: border-color var(--dur-fast);
}
.os-field:focus {
  outline: none;
  border-color: var(--p-accent);
  background: var(--white);
}

@media (max-width: 820px) {
  .onesheet-layout { grid-template-columns: 1fr; }
}

/* ========================================================
   RESPONSIVE — 720px breakpoint
   ======================================================== */
@media (max-width: 720px) {
  .product-shell { padding: 0 16px; }
  .la-shell { padding: 0 20px; }

  /* Nav */
  .product-topnav-right .save-indicator { display: none; }
  .la-nav-links a:not(:last-child) { display: none; }

  /* Landing */
  .la-hero { padding: 60px 0 52px; }
  .la-capture { flex-direction: column; }
  .la-grid { grid-template-columns: 1fr; }
  .la-steps { grid-template-columns: repeat(2, 1fr); }
  .la-closer h2 { font-size: 34px; }
  .la-foot { flex-direction: column; gap: 10px; text-align: center; }

  /* Product */
  .compose { grid-template-columns: 1fr; }
  .step-list { overflow-x: auto; flex-direction: row; gap: 10px; padding-bottom: 8px; }
  .step-card { min-width: 200px; }
  .rehearse { grid-template-columns: 1fr; }
  .rehearse-sidebar { display: none; }
  .slides-strip { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .product-topnav-right .wy-btn.outline { display: none; }
  .start-new-btn { display: none; }
  .section-header { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .la-trust { gap: 18px; }
  .la-steps { grid-template-columns: 1fr; }
  .cards-wrap { max-width: 100%; }
  .slides-wrap { max-width: 100%; }
  .flashcard { padding: 28px 20px 20px; }
  .fc-text { font-size: 22px; }
}
