/* Marketing site — shared chrome (tokens, fonts, body, typography,
   container, buttons, nav, footer). Linked from marketing_landing.html
   and about.html. Page-specific styles stay inline in their templates. */

/* === Self-hosted fonts === */
/* Self-hosted font set — Lunaria · v1 pairing
   Display: Inter Tight (variable) | Body: DM Sans (variable)
   Mono: Space Mono | Accent: Shadows Into Light */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/public/font/InterTight[wght].ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/public/font/InterTight-Italic[wght].ttf') format('truetype-variations');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/public/font/DMSans-VariableFont_opsz,wght.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/public/font/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/font/SpaceMono-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/public/font/SpaceMono-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/public/font/SpaceMono-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Shadows Into Light';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/font/ShadowsIntoLight-Regular.ttf') format('truetype');
}

/* === Tokens === */
:root {
  /* Palette — warm cream / deep forest / ember */
  --cream: #F8F6FD;
  --cream-2: #EEEAF8;
  --cream-3: #DCD5F0;
  --ink: #1C162A;
  --ink-2: #28223A;
  --ink-muted: #5A526E;
  --rule: #C5BDD9;
  --rule-soft: #E0D9EE;
  --ember: #7C5CFF;
  --ember-soft: #9B7AFF;
  --sage: #6B8FA3;
  --moon: #FCFAFF;
  --night: #0F0A1A;

  --container: 1240px;
  --gutter: 32px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(28,22,42,0.06);
  --shadow-md: 0 8px 24px rgba(28,22,42,0.08), 0 1px 2px rgba(28,22,42,0.04);
  --shadow-lg: 0 24px 64px rgba(28,22,42,0.12), 0 2px 8px rgba(28,22,42,0.06);

  --fs-display: clamp(48px, 7.5vw, 108px);
  --fs-h1: clamp(40px, 5.2vw, 72px);
  --fs-h2: clamp(32px, 3.6vw, 52px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-eyebrow: 12px;
  --fs-body: 17px;
  --fs-small: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Icon sprite must never take layout space (custom element hides on upgrade;
   until then an unregistered <svg-icon-set> would push the sticky nav down). */
svg-icon-set {
  display: none !important;
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.235;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSIyIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjI0MCIgaGVpZ2h0PSIyNDAiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg==");
}
img, svg, video { display: block; max-width: 100%; }
.display, h1.display, h2.display {
  font-family: 'Inter Tight', 'Shadows Into Light', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 0.96;
  color: var(--ink);
  text-wrap: balance;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  text-align: center;
  width: 100%;
  display: block;
}
.serif-accent {
  font-family: 'Shadows Into Light', 'Inter Tight', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }

/* Shared mobile chrome (Issue #505) */
@media (max-width: 749px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding: 72px 0;
  }
  .section-sm {
    padding: 48px 0;
  }
  .container {
    padding: 0 16px;
  }
  /* Prevent rare horizontal scroll from wide stages */
  body {
    overflow-x: hidden;
  }
  .footer {
    padding: 40px 0 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand p {
    max-width: none;
  }
  .nav-inner {
    height: 64px;
  }
  /* Sticky strip sits under shorter mobile nav */
  .home-sections {
    top: 64px;
  }
  html {
    scroll-padding-top: calc(64px + 16px);
  }
  body:has(.home-sections) {
    scroll-padding-top: calc(64px + 44px + 12px);
  }
  #features,
  #demos,
  #assistant,
  #plans,
  #about,
  #signup,
  #analytics,
  #missing {
    scroll-margin-top: calc(64px + 44px + 12px);
  }
  #try-voice,
  #ask-lunaria {
    scroll-margin-top: calc(64px + 12px);
  }
}
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.rule-soft { border-top: 1px solid var(--rule-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #F8F6FD !important;
}
.nav-cta .btn-primary, .nav-cta a.btn { color: #F8F6FD !important; }
.btn-primary:hover { background: var(--ink-2); }
.btn-ember {
  background: var(--ember);
  color: var(--cream);
}
.btn-ember:hover { background: #5E3FE0; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(252,250,255,0.3);
}
.btn-dark-ghost:hover { border-color: var(--cream); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color .2s ease, gap .2s ease;
}
.link-arrow:hover { border-color: var(--ink); gap: 12px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248,246,253,0.85);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.82;
  transition: opacity .15s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-cta .sep { color: var(--rule); }
.nav-cta a { color: var(--ink); text-decoration: none; }

/* Anchor jumps clear sticky chrome (.nav 72px; + home strip when present).
   Without this, /#demos etc. land under the sticky bars (Issue #505). */
html {
  scroll-padding-top: calc(72px + 16px);
  scroll-behavior: smooth;
}
/* Home page: global nav + "On this page" strip (~44px) */
body:has(.home-sections) {
  scroll-padding-top: calc(72px + 48px + 16px);
}
/* Extra safety on common home anchors (older browsers without :has) */
#features,
#demos,
#assistant,
#plans,
#about,
#signup,
#analytics,
#missing {
  scroll-margin-top: calc(72px + 48px + 16px);
}
/* Demo page sections — only the main nav is sticky */
#try-voice,
#ask-lunaria {
  scroll-margin-top: calc(72px + 16px);
}

/* Homepage-only section strip (Issue #473) — under sticky global nav */
.home-sections {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(248, 246, 253, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.home-sections-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-sections-inner::-webkit-scrollbar { display: none; }
.home-sections-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.home-sections-links {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}
.home-sections-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.home-sections-links a:hover {
  opacity: 1;
  color: var(--ember);
}
@media (max-width: 749px) {
  .home-sections-label { display: none; }
  .home-sections-inner { min-height: 40px; gap: 12px; }
  .home-sections-links { gap: 16px; }
  .home-sections-links a { font-size: 13px; }
}

.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 40px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand h5 {
  font-family: 'Inter Tight', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-brand p { color: var(--ink-muted); font-size: 14px; max-width: 320px; }
.footer-col h6 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; opacity: 0.75; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-bottom {
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-meta {
  opacity: 0.9;
}
.footer-meta time {
  font-style: normal;
}
@media (max-width: 749px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 749px) {
  .nav .nav-links { display: none !important; }
  .nav .nav-cta { display: none !important; }
  .nav-inner { padding: 0 16px !important; }
}
/* ==========================================================================
   Issue #491 — Try the voice demo + Ask Lunaria (match .ai-section language)
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Try the voice: dark inset stage (same chrome as .ai-section) --- */
.try-voice.section {
  padding: 0 0 40px;
}
.try-voice-stage {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  margin: 0 var(--gutter);
  padding: 96px 64px;
  text-align: center;
}
.try-voice-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(155,122,255,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(107,143,163,0.12) 0%, transparent 45%);
}
.try-voice-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.try-voice-eyebrow {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252,250,255,0.55);
  margin-bottom: 16px;
  font-weight: 500;
}
.try-voice-title {
  font-family: 'Inter Tight', serif;
  font-weight: 300;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--cream);
}
.try-voice-title em {
  font-style: italic;
  color: var(--ember-soft);
  font-family: 'Shadows Into Light', serif;
  font-weight: 400;
}
.try-voice-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(252,250,255,0.7);
  margin: 0 auto 32px;
  max-width: 36em;
}
.try-voice-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(155,122,255,0.18);
  border: 1px solid rgba(155,122,255,0.55);
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .2s, border-color .2s, transform .2s;
}
.try-voice-phone:hover,
.try-voice-phone:focus-visible {
  background: rgba(155,122,255,0.28);
  border-color: rgba(155,122,255,0.85);
  transform: translateY(-2px);
  outline: none;
}
.try-voice-phone--pending {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.try-voice-phone-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(252,250,255,0.08);
  color: var(--ember-soft);
  flex-shrink: 0;
}
.try-voice-hint {
  margin: 16px 0 0;
  font-size: var(--fs-small);
  color: rgba(252,250,255,0.5);
}
.try-voice-prompts {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.try-voice-prompts li {
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(252,250,255,0.04);
  border: 1px solid rgba(252,250,255,0.12);
  color: rgba(252,250,255,0.75);
}
@media (max-width: 749px) {
  .try-voice-stage { padding: 56px 24px; margin: 0 16px; }
}

/* --- Ask Lunaria: cream section + panel (page cream + soft card) --- */
.ask-lunaria.section {
  padding: 80px 0 100px;
}
.ask-lunaria-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .ask-lunaria-inner { grid-template-columns: 1fr; gap: 28px; }
}
.ask-lunaria-eyebrow {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.ask-lunaria-title {
  font-family: 'Inter Tight', serif;
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.ask-lunaria-title em {
  font-style: italic;
  color: var(--ember);
  font-family: 'Shadows Into Light', serif;
  font-weight: 400;
}
.ask-lunaria-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 20px;
  max-width: 34em;
}
.ask-lunaria-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ask-lunaria-chips button {
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule-soft);
  background: var(--moon);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.ask-lunaria-chips button:hover,
.ask-lunaria-chips button:focus-visible {
  border-color: rgba(124,92,255,0.45);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}
.ask-lunaria-panel {
  background: var(--moon);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
}
.ask-lunaria-messages {
  flex: 1;
  padding: 20px 18px;
  overflow-y: auto;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream-2);
}
.ask-msg {
  max-width: 92%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.ask-msg-ai {
  align-self: flex-start;
  background: var(--moon);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.ask-msg-user {
  align-self: flex-end;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.35);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}
.ask-msg-pending {
  opacity: 0.7;
  font-style: italic;
}
.ask-lunaria-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--rule-soft);
  background: var(--moon);
}
@media (max-width: 540px) {
  .ask-lunaria-form {
    flex-direction: column;
  }
  .ask-lunaria-send {
    width: 100%;
    min-height: 44px;
  }
  .ask-lunaria-chips {
    gap: 8px;
  }
  .ask-lunaria-chips button {
    font-size: 12px;
    padding: 8px 12px;
  }
}
.ask-lunaria-input {
  flex: 1;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule-soft);
  background: var(--cream);
  color: var(--ink);
}
.ask-lunaria-input:focus {
  outline: none;
  border-color: rgba(124,92,255,0.5);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.12);
}
.ask-lunaria-send {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--ember);
  color: #fff;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.ask-lunaria-send:hover:not(:disabled) {
  filter: brightness(1.06);
}
.ask-lunaria-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ask-lunaria-footnote {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
  background: var(--moon);
}
.ask-lunaria-footnote a {
  color: var(--ember);
}
.ask-lunaria-error {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 13px;
  color: #b42318;
  background: var(--moon);
}

/* --- Homepage demo teaser (Issue #505 option C) — full demos live on /demo --- */
.demo-teaser.section {
  padding: 0 0 40px;
}
.demo-teaser-stage {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  margin: 0 var(--gutter);
  padding: 72px 48px;
  text-align: center;
}
.demo-teaser-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(155,122,255,0.26) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(107,143,163,0.14) 0%, transparent 45%);
}
.demo-teaser-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.demo-teaser-eyebrow {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252,250,255,0.55);
  margin-bottom: 14px;
  font-weight: 500;
}
.demo-teaser-title {
  font-family: 'Inter Tight', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--cream);
}
.demo-teaser-title em {
  font-style: italic;
  color: var(--ember-soft);
  font-family: 'Shadows Into Light', serif;
  font-weight: 400;
}
.demo-teaser-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(252,250,255,0.7);
  margin: 0 auto 28px;
  max-width: 38em;
}
.demo-teaser-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 28px;
  text-align: left;
}
.demo-teaser-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(252,250,255,0.05);
  border: 1px solid rgba(252,250,255,0.14);
  color: var(--cream);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.demo-teaser-card:hover,
.demo-teaser-card:focus-visible {
  background: rgba(252,250,255,0.09);
  border-color: rgba(155,122,255,0.55);
  transform: translateY(-2px);
  outline: none;
}
.demo-teaser-card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(155,122,255,0.16);
  color: var(--ember-soft);
  flex-shrink: 0;
}
.demo-teaser-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.demo-teaser-card-label {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252,250,255,0.5);
}
.demo-teaser-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
}
.demo-teaser-card-meta {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(252,250,255,0.58);
}
.demo-teaser-card-arrow {
  flex-shrink: 0;
  color: rgba(252,250,255,0.45);
  font-size: 18px;
}
.demo-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 749px) {
  .demo-teaser-stage {
    padding: 48px 20px;
    margin: 0 16px;
  }
  .demo-teaser-cards {
    grid-template-columns: 1fr;
  }
}

/* Markdown inside AI chat bubbles */
.ask-msg-md {
  white-space: normal;
}
.ask-msg-md p {
  margin: 0 0 0.65em;
}
.ask-msg-md p:last-child {
  margin-bottom: 0;
}
.ask-msg-md ul,
.ask-msg-md ol {
  margin: 0.35em 0 0.65em;
  padding-left: 1.25em;
}
.ask-msg-md li {
  margin: 0.2em 0;
}
.ask-msg-md strong {
  font-weight: 650;
  color: var(--ink);
}
.ask-msg-md em {
  font-style: italic;
}
.ask-msg-md code {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(28, 22, 42, 0.06);
}
.ask-msg-md a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 2px;
}
