/* VividBind — AI Customer Story Intelligence · Warm story-card aesthetic */

:root {
  --bg: #FFF8F1;
  --ink: #1E1B18;
  --primary: #F97316;
  --primary-hover: #EA580C;
  --secondary: #7C3AED;
  --success: #10B981;
  --quote: #2563EB;
  --line: #F1E7D8;
  --surface: #FFFFFF;
  --muted: #6B5E54;
  --bg-soft: #FFF3E8;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 28px);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 2px 8px rgba(30, 27, 24, 0.04), 0 12px 32px rgba(30, 27, 24, 0.05);
  --shadow-lg: 0 8px 28px rgba(30, 27, 24, 0.08), 0 24px 48px rgba(30, 27, 24, 0.06);
  --shadow-card: 0 1px 3px rgba(30, 27, 24, 0.04), 0 8px 24px rgba(249, 115, 22, 0.06);
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --primary-soft: rgba(249, 115, 22, 0.1);
  --secondary-soft: rgba(124, 58, 237, 0.1);
  --quote-soft: rgba(37, 99, 235, 0.08);
  --success-soft: rgba(16, 185, 129, 0.1);
  --announce-gradient: linear-gradient(135deg, #9A3412 0%, #C2410C 38%, #EA580C 72%, #F97316 100%);
  --header-gradient: linear-gradient(135deg, #C2410C 0%, #EA580C 22%, #F97316 48%, #FB923C 78%, #FDBA74 100%);
  --announce-h: 40px;
  --header-h: 68px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
  --card-pad: clamp(18px, 2.5vw, 24px);
  --card-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.auth-page {
  background: var(--bg-soft);
  min-height: 100vh;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-top-h);
}

.site-shell main { flex: 1; }

h1, h2, h3, h4, .hero-title, .page-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.muted { color: var(--muted); }
.text-accent { color: var(--primary); }

.text-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.text-link:hover { color: var(--ink); }

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ── Announce bar + header (warm orange gradient) ── */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  min-height: var(--announce-h);
  padding: 8px var(--gutter);
  background: var(--announce-gradient);
  border-bottom: 1px solid rgba(154, 52, 18, 0.45);
  color: rgba(255, 248, 241, 0.95);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
}

.announce-bar span { font-weight: 500; }

.announce-bar a {
  color: #FFF8F1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.announce-bar a:hover { color: #FDE68A; }

.site-header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-gradient);
  border-bottom: 1px solid rgba(194, 65, 12, 0.35);
  box-shadow: 0 4px 20px rgba(194, 65, 12, 0.18);
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #FFF8F1;
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: #FFF8F1; opacity: 0.92; text-decoration: none; }

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-storyroom-brand .logo-mark {
  background: transparent;
  border: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFF8F1;
}

.brand-text span {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 248, 241, 0.72);
  white-space: nowrap;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: center;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-main::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 248, 241, 0.88);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: #FFF8F1;
  background: rgba(255, 248, 241, 0.14);
  border-color: rgba(255, 248, 241, 0.2);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-actions .nav-link {
  font-size: 0.78rem;
  padding: 6px 8px;
}

.header-actions .btn-sm {
  font-size: 0.74rem;
  padding: 6px 10px;
}

.site-header .btn-secondary {
  background: rgba(255, 248, 241, 0.92);
  color: var(--ink);
  border-color: rgba(255, 248, 241, 0.5);
}

.site-header .btn-secondary:hover {
  background: #FFF8F1;
  border-color: #FFF8F1;
  color: var(--ink);
}

.site-header .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF8F1;
}

.site-header .btn-primary:hover {
  background: #3D3530;
  border-color: #3D3530;
  color: #FFF8F1;
}

@media (max-width: 1400px) {
  .brand-text span { display: none; }
}

@media (max-width: 1180px) {
  .nav-link { font-size: 0.74rem; padding: 6px 7px; }
}

@media (max-width: 1100px) {
  .nav-link { font-size: 0.72rem; padding: 6px 5px; }
  .header-actions .nav-link { font-size: 0.7rem; padding: 5px 6px; }
  .header-actions .btn-sm { font-size: 0.68rem; padding: 5px 8px; }
}

@media (max-width: 960px) {
  .announce-bar { font-size: 0.78rem; }

  .header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    min-height: auto;
  }

  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
    justify-self: auto;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
  }

  .site-shell { padding-top: calc(var(--announce-h) + 120px); }
}

/* ── Buttons ── */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #E8D9C8;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding: 8px 14px;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-sm { font-size: 0.8125rem; padding: 8px 14px; }
.btn-lg { font-size: 0.9375rem; padding: 14px 26px; }
.btn-full { width: 100%; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Homepage: Customer Story Wall ── */
.home-story-wall {
  padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 80px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 55%);
}

.wall-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.wall-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 54ch;
  margin-inline: auto;
}

.wall-intro .btn-row { justify-content: center; }

.wall-trust {
  text-align: center;
  margin-bottom: 28px;
}

.wall-trust-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.wall-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wall-logos li {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(30, 27, 24, 0.42);
  letter-spacing: -0.01em;
}

.story-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(88px, auto);
  gap: var(--card-gap);
  grid-auto-flow: dense;
}

.wall-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.wall-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.25);
}

.wall-card-lg,
.wall-card-spotlight {
  grid-column: span 5;
  grid-row: span 2;
  padding: clamp(24px, 3vw, 32px);
}

.wall-card-spotlight {
  background: linear-gradient(155deg, rgba(249, 115, 22, 0.12) 0%, var(--surface) 52%, rgba(124, 58, 237, 0.06) 100%);
  border-color: rgba(249, 115, 22, 0.28);
  justify-content: space-between;
}

.wall-kicker-chip {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
}

.wall-card-spotlight blockquote {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
  color: var(--ink);
  margin: 8px 0 0;
}

.wall-spotlight-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.wall-spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 4px;
}

.wall-spotlight-stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.wall-spotlight-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 2px;
}

.wall-read-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.wall-card-quote {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-color: rgba(37, 99, 235, 0.18);
  justify-content: center;
}

.wall-card-preview {
  grid-column: span 4;
  grid-row: span 2;
  background: var(--surface);
}

.wall-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wall-preview-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.wall-preview-head p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.wall-preview-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.wall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wall-metric-inline {
  font-weight: 700;
  color: var(--primary);
}

.wall-card-pattern {
  grid-column: span 3;
  background: linear-gradient(180deg, var(--secondary-soft) 0%, var(--surface) 100%);
  border-color: rgba(124, 58, 237, 0.18);
}

.wall-pattern-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

.wall-card-accent {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.1) 0%, var(--surface) 60%);
  border-color: rgba(249, 115, 22, 0.22);
}

.wall-card:not(.wall-card-lg):not(.wall-card-quote):not(.wall-card-preview):not(.wall-card-spotlight):not(.wall-card-pattern) {
  grid-column: span 3;
}

.wall-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.wall-body { display: flex; flex-direction: column; gap: 4px; }

.wall-metric {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.wall-body strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.wall-body p,
.wall-card-quote p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.wall-card-quote blockquote {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
  color: var(--quote);
  margin: 0;
}

/* ── Homepage sections ── */
.section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.section.is-warm {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--card-gap);
}

.pain-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pain-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.ai-engine {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--card-gap);
  align-items: center;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.ai-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chips span {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.ai-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #FB923C 100%);
  border-radius: var(--radius-lg);
  color: #FFF8F1;
  text-align: center;
  min-width: 180px;
}

.ai-core .ai-label { color: rgba(255, 248, 241, 0.75); }

.ai-core strong {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF8F1;
}

.ai-chips-out span {
  background: var(--primary-soft);
  border-color: rgba(249, 115, 22, 0.2);
  color: var(--primary-hover);
}

.pattern-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--card-gap);
}

.pattern-pill {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pattern-pill strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.pattern-pill span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.industry-chip {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.industry-chip:hover {
  background: var(--primary-soft);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--primary-hover);
  text-decoration: none;
}

.repurpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.repurpose-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.repurpose-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.repurpose-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.home-cta {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.home-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.home-cta p { margin-bottom: 8px; }
.home-cta .btn-row { justify-content: center; }

/* ── Page layouts ── */
.page-hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.page-hero.about-hero { padding-bottom: 0; }

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 52ch;
}

.page-showcase {
  padding: 40px 0 56px;
  background: var(--bg);
}

.page-showcase.is-warm {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-inline-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
}

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

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb span:not(:last-child) { color: var(--line); }

.feature-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}

.feature-frame > * + * {
  margin-top: var(--card-gap);
}

.sub-cta {
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sub-cta h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.sub-cta p {
  max-width: 48ch;
  margin-inline: auto;
}

.sub-cta .btn-row { justify-content: center; }

.page-hero--centered { text-align: center; }
.page-hero--centered .breadcrumb { justify-content: center; }
.page-hero--centered .page-title { margin-inline: auto; max-width: 24ch; }
.page-hero--centered .lead { margin-inline: auto; }
.page-hero--centered .btn-row { justify-content: center; }

.pricing-showcase {
  padding-top: 32px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

/* ── UI alerts ── */
.ui-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--line);
}

.ui-alert strong { color: var(--ink); }
.ui-alert-ok { background: var(--success-soft); border-color: rgba(16, 185, 129, 0.28); }
.ui-alert-warn { background: rgba(249, 115, 22, 0.08); border-color: rgba(249, 115, 22, 0.25); }
.ui-alert-info { background: var(--quote-soft); border-color: rgba(37, 99, 235, 0.2); }

.is-running .feature-frame {
  opacity: 0.65;
  pointer-events: none;
}

/* ── Story card + library ── */
.story-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.tag-neutral { color: var(--muted); background: var(--bg-soft); }
.tag-industry { color: var(--secondary); background: var(--secondary-soft); }
.tag-success { color: var(--success); background: var(--success-soft); }

.story-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--card-gap);
}

.story-card {
  display: flex;
  gap: 14px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.22);
}

.story-card-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 50%;
  flex-shrink: 0;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.story-card-body strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.story-card-body span {
  font-size: 0.78rem;
  color: var(--muted);
}

.story-card-body p {
  font-size: 0.875rem;
  color: var(--ink);
  margin: 4px 0 8px;
  line-height: 1.5;
}

.story-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Library filters ── */
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: #E8D9C8;
}

.filter-chip.is-active {
  color: var(--primary-hover);
  background: var(--primary-soft);
  border-color: rgba(249, 115, 22, 0.35);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Platform lifecycle ── */
.story-lifecycle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.lifecycle-node {
  flex: 1;
  min-width: 160px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lifecycle-node span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.lifecycle-node strong,
.lifecycle-node p {
  font-size: 0.875rem;
}

.lifecycle-node p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.lifecycle-ai {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-color: rgba(249, 115, 22, 0.22);
}

.lifecycle-arrow {
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Platform stages ── */
.platform-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.stage-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stage-card span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.stage-card h3 {
  margin: 8px 0;
  font-size: 1rem;
  font-family: var(--display);
}

.stage-card p {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Case study workbench ── */
.case-study-workbench {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.workbench-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wb-label,
.builder-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.transcript-block,
.insight-list,
.case-preview,
.draft-preview {
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
}

.transcript-block p {
  margin: 0 0 12px;
  color: var(--ink);
  font-style: italic;
}

.transcript-block p:last-child { margin-bottom: 0; }

.workbench-col.wb-ai .insight-list {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.06), rgba(249, 115, 22, 0.06));
  border-color: rgba(124, 58, 237, 0.15);
}

.insight-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.insight-item:last-child { border-bottom: none; padding-bottom: 0; }

.insight-item strong {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.insight-item span {
  font-size: 0.875rem;
  color: var(--ink);
}

.case-preview h4,
.draft-preview h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}

.case-preview h4:first-child,
.draft-preview h4:first-child { margin-top: 0; }

.case-preview p,
.draft-preview p {
  font-size: 0.875rem;
  color: var(--ink);
  margin: 0;
}

.workbench-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.results-metrics div {
  padding: 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.results-metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.results-metrics span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Success patterns ── */
.pattern-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.pattern-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pattern-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pattern-head strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.pattern-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.pattern-meta span {
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* ── Quote finder ── */
.quote-finder { display: flex; flex-direction: column; gap: 20px; }

.quote-search input {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.9375rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
}

.quote-search input::placeholder { color: var(--muted); }

.quote-search input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.quote-results { display: flex; flex-direction: column; gap: 12px; }

.quote-row {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--quote);
  box-shadow: var(--shadow-card);
}

.quote-row blockquote {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.45;
  color: var(--quote);
  margin: 0 0 10px;
}

.quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-meta span:first-child { font-weight: 600; color: var(--ink); }

/* ── Story timeline ── */
.story-timeline { padding: 8px 0; }

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.timeline-node {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}

.timeline-node span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-node strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.timeline-node p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.timeline-final {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.08), var(--surface));
  border-color: rgba(249, 115, 22, 0.25);
}

/* ── Industry grid ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.industry-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.industry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.25);
}

.industry-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.industry-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.industry-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* ── Builder workbench ── */
.builder-workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

.builder-upload,
.builder-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-zone {
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  background: var(--bg-soft);
  border: 2px dashed rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-zone strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 0.8125rem;
  margin: 0;
}

/* ── Asset grid ── */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.asset-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.asset-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.asset-card p {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Use case ── */
.use-case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.use-case header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.use-case header strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.use-case header span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.use-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}

.use-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.use-step:last-child { border-bottom: none; }

.use-step > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.use-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.use-step p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* ── Integration flow + hub ── */
.integration-flow {
  display: flex;
  align-items: center;
  gap: var(--card-gap);
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.flow-sources,
.flow-target {
  flex: 1;
  min-width: 0;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-sources span,
.flow-target span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-chips span {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.flow-target p {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
}

.flow-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
  flex-shrink: 0;
}

.flow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: flowMove 1.2s ease-in-out infinite;
}

.flow-pulse:nth-child(2) { animation-delay: 0.2s; }
.flow-pulse:nth-child(3) { animation-delay: 0.4s; }

@keyframes flowMove {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

.integration-hub { padding: 4px 0; }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.integration-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.integration-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.int-success {
  border-left: 3px solid var(--success);
}

.int-neutral {
  border-left: 3px solid var(--line);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow-lg);
}

.price-featured {
  border: 2px solid rgba(249, 115, 22, 0.45);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.12), var(--shadow);
  position: relative;
}

.price-featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFF8F1;
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-tier {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.price-amount {
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.price-amount span {
  display: block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}

.price-summary {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink);
}

.price-features li:last-child { border-bottom: none; }

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-card .btn { margin-top: auto; }

/* ── About spread ── */
.about-spread {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-spread-head {
  max-width: 720px;
}

.about-spread-head span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.about-spread-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.about-col {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

.about-col h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.about-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

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

.about-stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 248, 241, 0.65);
  padding: 56px 0 32px;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 480px;
}

.footer-top .brand { color: #FFF8F1; }
.footer-top .brand-text strong { color: #FFF8F1; }
.footer-top .brand-text span { color: rgba(255, 248, 241, 0.55); }

.footer-tagline {
  font-family: var(--display);
  font-size: 1.125rem;
  color: rgba(255, 248, 241, 0.88);
  line-height: 1.5;
}

.footer-cta { margin-top: 8px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 248, 241, 0.88);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 248, 241, 0.55);
  padding: 4px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #FFF8F1;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 241, 0.1);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(255, 248, 241, 0.4);
}

/* ── Modals ── */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter);
}

.site-modal:not([hidden]) { display: flex; }

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 24, 0.55);
  backdrop-filter: blur(4px);
}

.site-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.site-modal-wide { width: min(720px, 100%); }

.site-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.site-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.site-modal-panel h2 {
  margin: 0 32px 8px 0;
  font-size: 1.45rem;
  color: var(--ink);
}

.site-modal-lead {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.site-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-success {
  margin: 0;
  padding: 12px 14px;
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  font-size: 0.86rem;
  color: #047857;
  text-align: center;
}

.demo-workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.wf-step {
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.wf-step span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.wf-step strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.wf-step p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.preview-quote blockquote {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.45;
  color: var(--quote);
  margin: 0;
  padding: 16px;
  background: var(--quote-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--quote);
}

.modal-quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-quotes blockquote {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.45;
  color: var(--quote);
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--quote);
}

.narrative-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Auth: storyroom split layout ── */
.auth-storyroom {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-storyroom-visual {
  padding: clamp(32px, 5vw, 48px);
  background: linear-gradient(155deg, #9A3412 0%, #EA580C 28%, #F97316 55%, #7C3AED 100%);
  color: #FFF8F1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.auth-storyroom-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255, 248, 241, 0.12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.15), transparent 40%);
  pointer-events: none;
}

.auth-storyroom-visual > * { position: relative; z-index: 1; }

.auth-storyroom-brand {
  color: #FFF8F1;
  text-decoration: none;
}

.auth-storyroom-brand:hover {
  color: #FFF8F1;
  opacity: 0.92;
  text-decoration: none;
}

.auth-storyroom-brand .brand-text strong { color: #FFF8F1; }
.auth-storyroom-brand .brand-text span { color: rgba(255, 248, 241, 0.6); }

.auth-storyroom-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.12;
  color: #FFF8F1;
}

.auth-storyroom-copy .lead {
  margin: 0;
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 248, 241, 0.82);
}

.auth-story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.auth-mini-card {
  padding: 16px;
  background: rgba(255, 248, 241, 0.1);
  border: 1px solid rgba(255, 248, 241, 0.18);
  border-radius: var(--radius-lg);
  text-align: center;
}

.auth-mini-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF8F1;
  line-height: 1;
  margin-bottom: 4px;
}

.auth-mini-card span {
  font-size: 0.74rem;
  color: rgba(255, 248, 241, 0.72);
}

.auth-mini-card.auth-quote {
  grid-column: span 1;
  text-align: left;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  color: rgba(255, 248, 241, 0.92);
}

.auth-storyroom-foot {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(255, 248, 241, 0.42);
}

.auth-storyroom-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 48px) var(--gutter);
  background: var(--bg);
}

.auth-storyroom-wrap {
  width: min(100%, 400px);
}

.auth-storyroom-wrap h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  color: var(--ink);
}

.auth-storyroom-wrap .lead {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-storyroom-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form { display: flex; flex-direction: column; gap: 16px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
}

.form-divider::before,
.form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.auth-footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── Responsive: 960px ── */
@media (max-width: 960px) {
  .story-wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .wall-card-lg,
  .wall-card-spotlight,
  .wall-card-quote,
  .wall-card-preview,
  .wall-card-pattern,
  .wall-card:not(.wall-card-lg):not(.wall-card-quote):not(.wall-card-preview):not(.wall-card-spotlight):not(.wall-card-pattern) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .wall-card-quote,
  .wall-card-preview,
  .wall-card-spotlight { grid-column: span 2; }

  .ai-engine {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-core { min-width: auto; }

  .repurpose-grid,
  .asset-grid,
  .industry-grid,
  .platform-stages,
  .timeline-track,
  .pricing-grid,
  .about-columns,
  .about-stats,
  .integration-grid,
  .case-study-workbench,
  .builder-workbench,
  .results-metrics,
  .demo-workflow {
    grid-template-columns: 1fr 1fr;
  }

  .case-study-workbench { grid-template-columns: 1fr; }

  .integration-flow {
    flex-direction: column;
    text-align: center;
  }

  .flow-stream {
    flex-direction: row;
    padding: 8px 0;
  }

  .flow-pulse { animation: flowMoveHorizontal 1.2s ease-in-out infinite; }

  @keyframes flowMoveHorizontal {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
  }

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

  .footer-top {
    align-items: center;
    text-align: center;
    max-width: none;
  }

  .auth-storyroom { grid-template-columns: 1fr; }

  .auth-storyroom-visual { min-height: auto; }

  .auth-story-cards { grid-template-columns: 1fr 1fr; }

  .auth-mini-card.auth-quote { grid-column: span 2; }

  .story-lifecycle { flex-direction: column; }

  .lifecycle-arrow { transform: rotate(90deg); }
}

/* ── Responsive: 640px ── */
@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }

  .story-wall { grid-template-columns: 1fr; }

  .wall-card-quote,
  .wall-card-preview,
  .wall-card-spotlight { grid-column: span 1; }

  .repurpose-grid,
  .asset-grid,
  .industry-grid,
  .platform-stages,
  .timeline-track,
  .pricing-grid,
  .about-columns,
  .about-stats,
  .integration-grid,
  .results-metrics,
  .demo-workflow,
  .auth-story-cards {
    grid-template-columns: 1fr;
  }

  .auth-mini-card.auth-quote { grid-column: span 1; }

  .pain-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .sub-cta { padding: 28px 20px; }

  .page-hero { padding: 36px 0 32px; }

  .btn-row { gap: 8px; }

  .btn-lg { padding: 12px 20px; font-size: 0.875rem; }

  .site-modal-panel { padding: 24px 20px; }
}

/* Spec audit additions */
.ai-output-final {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.ai-output-final strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.ai-output-final span { font-size: 0.8125rem; color: var(--muted); }

.netflix-library { display: grid; gap: calc(var(--card-gap) + 8px); }

.netflix-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.netflix-row-head h3 { font-size: 1.05rem; margin: 0; }
.netflix-row-head a { font-size: 0.8125rem; color: var(--primary); font-weight: 600; }

.netflix-row-track {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.netflix-tile {
  flex: 0 0 200px;
  scroll-snap-align: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.netflix-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.netflix-tile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.netflix-tile strong { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.netflix-tile span { display: block; font-size: 0.8125rem; color: var(--ink); }
.netflix-tile em { display: block; font-size: 0.75rem; color: var(--muted); font-style: normal; margin-top: 6px; }

.netflix-row.is-highlighted .netflix-row-track { outline: 2px solid rgba(249, 115, 22, 0.2); outline-offset: 4px; border-radius: var(--radius); }

.library-filters-wrap { display: grid; gap: 16px; margin-bottom: 20px; }

.filter-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.filter-control select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 0.8125rem;
}

.pattern-top-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pattern-top-head span {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  display: block;
}

.pattern-top-head strong { display: block; margin-top: 6px; font-size: 1.1rem; }

.pattern-card { position: relative; padding-left: 48px; cursor: pointer; }
.pattern-card:hover { border-color: var(--primary); }

.pattern-rank {
  position: absolute;
  left: 16px;
  top: 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.pattern-meta span { display: block; margin-top: 4px; }

.about-flow {
  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-flow-col {
  flex: 1;
  min-width: 180px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-flow-col ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.875rem; }

.about-flow-ai { background: rgba(249, 115, 22, 0.08); border: 1px solid rgba(249, 115, 22, 0.15); }

.about-flow-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.about-flow-arrow {
  align-self: center;
  font-size: 1.5rem;
  color: var(--muted);
}

.demo-case-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  margin-top: 16px;
}

.demo-case-sections article {
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.demo-case-sections h4 { margin: 0 0 8px; font-size: 0.875rem; }
.demo-case-sections p { margin: 0; font-size: 0.8125rem; line-height: 1.55; }

.pattern-detail-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .filter-controls { grid-template-columns: 1fr 1fr; }
  .demo-case-sections { grid-template-columns: 1fr; }
  .about-flow { flex-direction: column; }
  .about-flow-arrow { display: none; }
}
