/* ============================================================
   ONBOARDING — landing + setup + step screens
   Tokens follow Content OS Brand Kit v1.
   Source: LinkedIn_content OS,_brandingKIT/BRAND-KIT.md
   ============================================================ */

/* ----- Thmanyah Arabic typeface (self-hosted) ----- */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('/static/fonts/thmanyah/thmanyahsans-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('/static/fonts/thmanyah/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('/static/fonts/thmanyah/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('/static/fonts/thmanyah/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('/static/fonts/thmanyah/thmanyahsans-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('/static/fonts/thmanyah/thmanyahserifdisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('/static/fonts/thmanyah/thmanyahserifdisplay-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('/static/fonts/thmanyah/thmanyahserifdisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('/static/fonts/thmanyah/thmanyahserifdisplay-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* ----- Foundation (neutrals) ----- */
  --ink-900: #1a1a1a;
  --ink-700: #4a4a4a;
  --ink-500: #888;
  --ink-300: #d6d3cc;
  --ink-100: #ece9e2;
  --ink-50:  #f6f5f1;
  --paper:   #ffffff;

  /* ----- Brand violet ----- */
  --brand-700: #4733e0;
  --brand-600: #5b46f6;
  --brand-500: #7b67ff;
  --brand-100: #efebff;

  /* ----- Functional ----- */
  --good-600: #1e8e3e;
  --good-100: #e6f4ea;
  --warn-600: #c0392b;
  --warn-100: #fdecec;
  --amber-600: #c47900;
  --amber-100: #fff4d6;

  /* ----- Channel ----- */
  --linkedin: #0a66c2;
  --linkedin-100: #e7f0fa;
  --telegram: #229ed9;
  --telegram-100: #e3f3fb;

  /* ----- Type stacks ----- */
  --font-display: 'Fraunces', 'Thmanyah Serif Display', Georgia, serif;
  --font-body: 'Inter', 'Thmanyah Sans', 'Alexandria', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-arabic: 'Thmanyah Sans', 'Alexandria', system-ui, sans-serif;
  --font-arabic-display: 'Thmanyah Serif Display', 'Alexandria', Georgia, serif;

  /* ----- Spacing (8-pt grid) ----- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* ----- Radii ----- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 99px;

  /* ----- Shadows ----- */
  --shadow-sm: 0 2px 0 var(--ink-300);
  --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 40px -20px rgba(0, 0, 0, 0.4);

  /* ----- Backwards-compat aliases (old code refs) ----- */
  --bg: var(--ink-50);
  --ink: var(--ink-900);
  --ink-2: var(--ink-700);
  --ink-3: var(--ink-500);
  --rule: var(--ink-300);
  --accent: var(--brand-600);
  --accent-soft: var(--brand-100);
  --good: var(--good-600);
  --good-soft: var(--good-100);
  --tg: var(--telegram);
  --tg-soft: var(--telegram-100);
  --li: var(--linkedin);
  --li-soft: var(--linkedin-100);
  --warn: var(--warn-600);
  --warn-soft: var(--warn-100);
  --mono: var(--font-mono);
  --sans: var(--font-body);
  --serif: var(--font-display);
}

/* ----- RTL mode for Arabic toggle ----- */
[dir="rtl"] body, body[dir="rtl"] {
  font-family: var(--font-arabic);
}
[dir="rtl"] .step-h1,
[dir="rtl"] .hero-left h1,
[dir="rtl"] .story-meta h2 {
  font-family: var(--font-arabic-display);
}
[dir="rtl"] .arabic-line {
  /* In RTL mode, the Arabic line is no longer an "accent" — it's primary copy */
  opacity: 1;
  font-size: inherit;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.onb-page {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ===== Shared atoms ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s, background 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-linkedin { background: var(--li); color: #fff; border-color: var(--li); }
.btn-telegram { background: var(--tg); color: #fff; border-color: var(--tg); }
.btn-lg { padding: 14px 22px; font-size: 14px; }

.link-skip {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  text-decoration: none;
}
.link-skip:hover { color: var(--ink-2); }
.link-muted {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  margin-right: 16px;
}
.link-muted:hover { color: var(--ink); }

.arabic-line {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', 'Noto Sans Arabic', system-ui;
  opacity: 0.55;
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.6;
}
.arabic-line.center { text-align: center; }

/* ===== Landing nav ===== */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  max-width: 1320px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand-glyph {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.nav-cta { display: flex; align-items: center; }

/* ===== Hero ===== */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 48px 72px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero-left h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 8px 0 16px;
}
.hero-left h1 em { font-style: italic; color: var(--accent); }
.hero-left .sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 540px;
}
.cta-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cta-meta { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

.week-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.week-old, .week-new { padding: 24px; }
.week-old { background: #fafaf6; }
.week-new { background: var(--accent-soft); border-left: 1px solid var(--rule); }
.week-hdr {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--ink-3);
}
.week-new .week-hdr { color: var(--accent); }
.week-old h4, .week-new h4 { margin: 0 0 10px; font-size: 17px; }
.week-old p, .week-new p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.nots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.not-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: #fafaf6;
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
  font-family: var(--mono);
}
.not-chip .x { color: var(--warn); font-weight: 700; }

.hero-right {
  padding: 32px;
  background: #161616;
  color: #f0f0f0;
  border-radius: 18px;
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.moment-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 18px;
}
.moment-card {
  background: #1f1f1f;
  border-radius: 14px;
  padding: 22px;
  transform: rotate(-0.5deg);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid #2a2a2a;
}
.day-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #c4b8ff;
  margin-bottom: 10px;
}
.quote {
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 18px;
  color: #fff;
}
.voice-wave {
  display: inline-flex;
  gap: 2px;
  align-items: end;
  vertical-align: middle;
  margin-right: 8px;
}
.voice-wave span {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.voice-wave span:nth-child(1) { height: 6px; }
.voice-wave span:nth-child(2) { height: 12px; }
.voice-wave span:nth-child(3) { height: 18px; }
.voice-wave span:nth-child(4) { height: 10px; }
.voice-wave span:nth-child(5) { height: 16px; }
.voice-wave span:nth-child(6) { height: 8px; }
.result {
  border-top: 1px solid #333;
  padding-top: 12px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}
.result strong { color: #fff; }
.moment-coda {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
  max-width: 380px;
}

/* ===== Story band ===== */
.story-band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.story-section {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.story-section:last-child { border-bottom: 1px solid var(--rule); }
.story-meta .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story-meta h2 {
  margin: 8px 0 0;
  font-size: 32px;
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.story-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.moment-inline {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.moment-inline strong { color: var(--ink); }

.tagline-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}
.tagline {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-2);
}

.page-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 48px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px dashed var(--rule);
}
.page-footer .mono { font-family: var(--mono); }

/* ===== Step screens (welcome, linkedin, telegram, first-idea) ===== */
.step-canvas {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.step-canvas.two-col {
  max-width: 800px;
  text-align: left;
}
.progress-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
}
.dot.active { background: var(--ink); }
.dot.done { background: var(--good); }
.progress-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 8px;
}

.step-h1 {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  margin: 14px 0 16px;
}
.step-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 32px;
}
.step-canvas.two-col .step-sub { margin-left: 0; }

.li-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--li-soft);
  color: var(--li);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 28px;
  font-weight: 700;
}
.scopes-line {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
}
.scopes-line code {
  background: #f0eee5;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  margin: 0 2px;
  font-size: 11px;
}
.step-list {
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  padding-left: 18px;
  margin: 0 0 24px;
}
.pair-info {
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--tg-soft);
  border-left: 3px solid var(--tg);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}
.first-idea-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.first-idea-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.tg-fallback {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.tg-fallback strong { color: var(--tg); }

/* ============================================================
   SETUP — chat agent screen
   ============================================================ */
body.setup {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fafaf6;
}
.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
  flex-wrap: wrap;
  gap: 12px;
}
.setup-header .progress-row { margin-bottom: 0; }
.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}
.form-fallback-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-decoration: none;
}
.form-fallback-link:hover { color: var(--ink-2); text-decoration: underline; }

.chat-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 12px;
  overflow: hidden;
}
.chat-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.msg.user { justify-content: flex-end; }
.msg .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.msg.user .avatar { background: var(--ink); }
.msg .bubble {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 540px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.user .bubble {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.msg.user .bubble.voice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.msg.user .bubble.voice .wave {
  display: inline-flex;
  gap: 2px;
  align-items: end;
}
.msg.user .bubble.voice .wave span {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.msg.user .bubble.voice .wave span:nth-child(1) { height: 8px; }
.msg.user .bubble.voice .wave span:nth-child(2) { height: 14px; }
.msg.user .bubble.voice .wave span:nth-child(3) { height: 20px; }
.msg.user .bubble.voice .wave span:nth-child(4) { height: 12px; }
.msg.user .bubble.voice .wave span:nth-child(5) { height: 18px; }
.msg.user .bubble.voice .wave span:nth-child(6) { height: 8px; }

/* Inline pillar cards (rendered after the assistant message that generated them) */
.pillar-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0 42px;
  max-width: 540px;
}
.pillar-card {
  background: #fafaf6;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
}
.pillar-card .pn {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.pillar-card .pt {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  font-size: 13px;
}
.pillar-card .ps {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}
.pillar-card.parked {
  grid-column: 1 / -1;
  opacity: 0.6;
}

/* Voice options */
.voice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0 42px;
  max-width: 540px;
}
.voice-option {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.06s;
  font-family: inherit;
  text-align: left;
  font-size: inherit;
  color: inherit;
}
.voice-option:hover { border-color: var(--accent); }
.voice-option:active { transform: translateY(1px); }
.voice-option .v-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.voice-option .v-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
}
.voice-option .v-sub {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}
.voice-option.recommended {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.voice-option.recommended .v-tag {
  color: var(--accent);
  font-weight: 600;
}
.voice-option.linkedin-url-form {
  grid-column: 1 / -1;
  border-color: var(--accent);
  background: #fff;
  cursor: default;
}
.voice-option.linkedin-url-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  margin-top: 6px;
}
.voice-option.linkedin-url-form .url-submit-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Scrape job pill */
.scrape-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0 42px;
  padding: 6px 12px;
  background: var(--li-soft);
  color: var(--li);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid #b3d4f4;
}
.scrape-pill.done { background: var(--good-soft); color: var(--good); border-color: #b8d8c2; }
.scrape-pill.failed { background: var(--warn-soft); color: var(--warn); border-color: #f5c3c3; }
.scrape-pill .spin {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.status-bar {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  text-align: center;
  margin-top: 8px;
}

/* Composer */
.composer {
  position: sticky;
  bottom: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px 20px;
  background: #fafaf6;
  border-top: 1px solid var(--rule);
}
.composer-row {
  display: flex;
  align-items: end;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
}
.composer-row:focus-within { border-color: var(--ink); }
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  padding: 8px 0;
  max-height: 160px;
  line-height: 1.45;
}
.mic-btn, .send-btn {
  border: none;
  border-radius: 8px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mic-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  position: relative;
  transition: transform 0.08s;
}
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.recording {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(192,57,43,0.18);
}
.mic-btn.recording::after {
  content: "";
  position: absolute; inset: -6px;
  border: 2px solid var(--warn);
  border-radius: 50%;
  animation: rec-pulse 1.2s infinite;
}
@keyframes rec-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.send-btn {
  background: var(--ink);
  color: #fff;
}
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.composer-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  font-family: var(--mono);
}
.composer-hint kbd {
  background: #f0eee5;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
}
.composer-next {
  margin-top: 12px;
  text-align: center;
}

/* ===== Mobile ===== */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 24px; gap: 36px; }
  .hero-left h1 { font-size: 42px; }
  .hero-right { min-height: auto; padding: 24px; }
  .week-compare { grid-template-columns: 1fr; }
  .week-new { border-left: none; border-top: 1px solid var(--rule); }
  .story-band { padding: 32px 24px; }
  .story-section { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .story-meta h2 { font-size: 26px; }
  .tagline-footer { padding: 24px; flex-direction: column; align-items: flex-start; }
  .landing-nav { padding: 18px 24px; }
  .nav-cta { gap: 8px; }
  .pillar-cards, .voice-options { grid-template-columns: 1fr; margin-left: 0; }
  .composer { padding: 12px 16px; }
}
