/* ============================================================
   marketing.css — landing page (pages#home) only.
   Loaded conditionally via content_for :head in home.html.erb.
   Port of Wicara Landing.html <style> block (design handoff).
   Loaded only on the marketing page — class names are generic
   (.shell, .nav, .hero, .ft-*) and would collide if loaded site-wide.
   ============================================================ */

  /* ── tokens ─────────────────────────────────────────────────────────── */
  :root {
    --primary: oklch(0.72 0.17 145);
    --primary-soft: oklch(0.94 0.06 145);
    --on-primary: #fafaf6;
    --ink: oklch(0.20 0.02 145);
    --ink-2: oklch(0.36 0.02 145);
    --surface: oklch(0.985 0.005 95);
    --surface-alt: oklch(0.965 0.008 95);
    --line: oklch(0.88 0.01 95);
    --serif: 'Instrument Serif', Georgia, serif;
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Geist', system-ui, sans-serif;
    --mono: 'Geist Mono', ui-monospace, monospace;
    --gap: 24px;
    --radius: 14px;
  }
  [data-dark="1"] {
    --on-primary: #0a0d0a;
    --ink: oklch(0.97 0.005 95);
    --ink-2: oklch(0.78 0.01 95);
    --surface: oklch(0.16 0.015 145);
    --surface-alt: oklch(0.21 0.018 145);
    --line: oklch(0.30 0.02 145);
  }
  [data-density="compact"] { --gap: 16px; }
  [data-density="comfy"]   { --gap: 36px; }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--surface);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* ── shell ──────────────────────────────────────────────────────────── */
  .shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 800px) { .shell { padding: 0 20px; } }

  /* ── nav ────────────────────────────────────────────────────────────── */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0;
  }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-links a {
    color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
    cursor: pointer;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    display: flex; gap: 10px; align-items: center;
  }
  .nav-cta .btn-ghost {
    background: transparent; border: 0; color: var(--ink-2);
    font: inherit; font-weight: 500; font-size: 14.5px; cursor: pointer; padding: 8px 12px;
  }
  .nav-cta .btn-solid {
    background: var(--ink); color: var(--surface); border: 0;
    font: inherit; font-weight: 500; font-size: 14.5px; cursor: pointer;
    padding: 9px 16px; border-radius: 999px;
  }
  @media (max-width: 800px) { .nav-links { display: none; } }

  /* ── hero ───────────────────────────────────────────────────────────── */
  .hero { padding: 36px 0 64px; }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  }
  @media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  }
  .hero-centered .hero-grid { grid-template-columns: 1fr; }
  .hero-centered .hero-copy { text-align: center; align-items: center; max-width: 720px; margin: 0 auto; }
  .hero-centered .hero-cta, .hero-centered .hero-proof, .hero-centered .hero-eyebrow { justify-content: center; }
  .hero-asymmetric .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .hero-asymmetric .hero-h1 { font-size: clamp(48px, 6.4vw, 92px); }

  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.02em;
    text-transform: lowercase;
  }
  .hero-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

  .hero-h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 18px 0 22px;
    text-wrap: balance;
  }
  .hero-h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .hero-sub {
    font-size: 18px; color: var(--ink-2); max-width: 540px;
    line-height: 1.5; margin: 0 0 28px;
    text-wrap: pretty;
  }

  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
  .hero-btn {
    border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 15px;
    padding: 14px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
    transition: transform .12s, box-shadow .12s;
  }
  .hero-btn:hover { transform: translateY(-1px); }
  .hero-btn.primary { box-shadow: 0 8px 22px -8px color-mix(in oklch, var(--primary) 65%, transparent); }
  .hero-btn.ghost { background: transparent; color: var(--ink); }
  .hero-play {
    width: 22px; height: 22px; border-radius: 999px; background: var(--surface-alt);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .hero-play i {
    width: 0; height: 0;
    border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    border-left: 6px solid var(--primary); margin-left: 1px;
  }

  .hero-proof { display: flex; align-items: center; gap: 14px; }
  .hero-proof-faces { display: flex; }
  .hero-proof-faces span {
    width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--surface);
    margin-left: -8px;
  }
  .hero-proof-faces span:first-child { margin-left: 0; }
  .hero-proof-text { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
  .hero-proof-text b { color: var(--ink); font-weight: 600; }

  /* ── chat demo ──────────────────────────────────────────────────────── */
  .cd-wrap {
    position: relative; display: grid; grid-template-columns: 1fr; gap: 14px;
    perspective: 1400px;
  }
  .cd-phone {
    background: #fafaf6;
    border-radius: 22px;
    box-shadow:
      0 1px 0 rgba(255,255,255,.5) inset,
      0 30px 60px -24px rgba(20,40,30,.18),
      0 8px 18px -10px rgba(20,40,30,.12);
    overflow: hidden;
    border: 1px solid var(--line);
    transform: rotate(-1.2deg);
  }
  [data-dark="1"] .cd-phone { background: oklch(0.22 0.02 145); }
  .cd-phone-bar {
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
  }
  .cd-phone-back { font-size: 22px; opacity: .9; line-height: 1; }
  .cd-phone-id { display: flex; gap: 10px; align-items: center; flex: 1; }
  .cd-phone-avatar {
    width: 34px; height: 34px; border-radius: 999px;
    background: rgba(255,255,255,.18); display: grid; place-items: center;
    font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
  }
  .cd-phone-name { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
  .cd-phone-status {
    font: 11px/1.3 var(--mono); opacity: .85;
    display: flex; align-items: center; gap: 5px;
  }
  .cd-phone-status i { width: 6px; height: 6px; border-radius: 999px; background: #a4f5b6; }
  .cd-phone-icons { display: flex; gap: 12px; opacity: .85; font-size: 14px; }

  .cd-thread {
    background: oklch(0.95 0.01 95);
    background-image: radial-gradient(oklch(0.88 0.02 145) 1px, transparent 1px);
    background-size: 18px 18px;
    padding: 14px;
    height: 360px;
    overflow-y: hidden;
    display: flex; flex-direction: column; gap: 6px;
  }
  [data-dark="1"] .cd-thread {
    background: oklch(0.18 0.02 145);
    background-image: radial-gradient(oklch(0.26 0.02 145) 1px, transparent 1px);
  }
  .cd-day {
    align-self: center; font: 10px/1 var(--mono);
    background: rgba(0,0,0,.06); padding: 4px 8px; border-radius: 999px;
    color: var(--ink-2); margin-bottom: 6px; letter-spacing: 0.06em;
  }
  .cd-row { display: flex; }
  .cd-row.l { justify-content: flex-start; }
  .cd-row.r { justify-content: flex-end; }
  .cd-bubble {
    max-width: 78%; padding: 9px 12px 7px; border-radius: 14px;
    background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.35;
    box-shadow: 0 1px 1px rgba(20,40,30,.08);
    position: relative;
    animation: bubbleIn .3s ease-out;
  }
  [data-dark="1"] .cd-bubble { background: oklch(0.28 0.02 145); color: oklch(0.96 0.005 95); }
  @keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
  .cd-row.l .cd-bubble { border-bottom-left-radius: 4px; }
  .cd-row.r .cd-bubble { border-bottom-right-radius: 4px; }
  .cd-meta {
    font: 9.5px/1 var(--mono);
    margin-left: 8px; opacity: .55;
    display: inline-block; vertical-align: baseline;
  }
  .cd-typing { padding: 11px 14px; display: inline-flex; gap: 4px; }
  .cd-typing i {
    width: 6px; height: 6px; border-radius: 999px; background: var(--ink-2); opacity: .35;
    animation: typeBob 1s infinite ease-in-out;
  }
  .cd-typing i:nth-child(2) { animation-delay: .15s; }
  .cd-typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes typeBob {
    0%, 100% { transform: translateY(0); opacity: .35; }
    50% { transform: translateY(-3px); opacity: .9; }
  }

  .cd-qris { background: var(--ink); color: var(--on-primary); padding: 10px 12px; }
  .cd-qris-grid {
    display: grid; grid-template-columns: repeat(7, 14px); gap: 2px;
    margin-bottom: 8px; padding: 6px; background: rgba(255,255,255,.06); border-radius: 8px;
    width: 124px;
  }
  .cd-qris-grid i {
    width: 14px; height: 14px; background: var(--primary); border-radius: 2px;
  }
  .cd-qris-label { font: 11px/1.2 var(--mono); opacity: .85; }

  .cd-phone-bar + .cd-thread { /* spacing handled */ }
  .cd-input {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: oklch(0.97 0.005 95);
    color: var(--ink-2); font-size: 13px;
    border-top: 1px solid var(--line);
  }
  [data-dark="1"] .cd-input { background: oklch(0.20 0.018 145); }

  /* flow sidecar — now a KB retrieve panel */
  .cd-flow {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    transform: rotate(0.6deg);
    box-shadow: 0 8px 24px -16px rgba(20,40,30,.18);
  }
  .cd-kb-body { gap: 6px !important; padding: 12px 0 8px; display: flex; flex-direction: column; }
  .cd-kb-query {
    display: flex; align-items: baseline; gap: 8px;
    padding: 8px 10px; background: var(--surface-alt); border-radius: 8px;
    font-size: 11.5px; margin-bottom: 4px;
  }
  .cd-kb-q-label {
    font-size: 9.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em;
  }
  .cd-kb-q-text { font-style: italic; color: var(--ink); }
  .cd-kb-hit {
    border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 7px;
    background: var(--surface); transition: border-color .25s;
  }
  .cd-kb-hit-hd {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
  }
  .cd-kb-src { font-size: 10px; color: var(--ink-2); }
  .cd-kb-score { font-size: 10.5px; font-variant-numeric: tabular-nums; opacity: .7; }
  .cd-kb-line { font-size: 12px; line-height: 1.35; margin-top: 2px; }
  .cd-kb-pick {
    display: block; font-size: 9.5px; opacity: .65; margin-top: 4px;
  }
  .cd-flow-hd {
    display: flex; justify-content: space-between; align-items: center;
    font: 11px/1 var(--mono); color: var(--ink-2); padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
  }
  .cd-flow-pulse { display: inline-flex; align-items: center; gap: 6px; }
  .cd-flow-pulse i { width: 6px; height: 6px; border-radius: 999px; animation: pulse 1.4s ease-in-out infinite; }
  .cd-flow-body { display: flex; flex-direction: column; gap: 0; padding: 12px 0 8px; }
  .cd-node {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt);
    font-size: 12.5px; transition: all .25s;
    position: relative;
  }
  .cd-node.on { background: var(--surface); }
  .cd-node-kind {
    font: 9.5px/1 var(--mono); padding: 3px 6px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: oklch(0.92 0.02 145); color: var(--ink-2);
  }
  .cd-kind-trigger { background: oklch(0.92 0.04 60); }
  .cd-kind-action { background: oklch(0.92 0.04 280); }
  [data-dark="1"] .cd-node-kind { background: oklch(0.32 0.02 145); }
  [data-dark="1"] .cd-kind-trigger { background: oklch(0.32 0.04 60); }
  [data-dark="1"] .cd-kind-action { background: oklch(0.32 0.04 280); }
  .cd-node-label { flex: 1; font-weight: 500; }
  .cd-node-dot {
    width: 8px; height: 8px; border-radius: 999px;
    animation: pulse 1.2s ease-in-out infinite;
  }
  .cd-edge {
    width: 2px; height: 14px; background: var(--line); margin-left: 22px;
  }
  .cd-flow-ft {
    display: flex; justify-content: space-between;
    font-size: 10.5px; color: var(--ink-2); padding-top: 8px;
    border-top: 1px dashed var(--line);
  }
  .cd-mono { font-family: var(--mono); }

  /* ── hero marquee ───────────────────────────────────────────────────── */
  .hero-marquee {
    margin-top: 60px; overflow: hidden;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 14px 0;
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .hero-marquee-track {
    display: flex; gap: 36px; animation: marq 38s linear infinite;
    width: max-content;
  }
  .hero-marquee-item {
    display: inline-flex; align-items: center; gap: 10px;
    font: 13px/1 var(--mono); color: var(--ink-2); white-space: nowrap;
  }
  .hero-marquee-item i { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; }
  @keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ── features ───────────────────────────────────────────────────────── */
  .ft-section { padding: 72px 0 48px; }
  .ft-eyebrow { font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }
  .ft-head { max-width: 720px; margin-bottom: 36px; }
  .ft-h2 {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(32px, 4vw, 56px); line-height: 1.05;
    letter-spacing: -0.02em; margin: 12px 0 0;
    text-wrap: balance;
  }
  .ft-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); }
  .ft-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
  }
  @media (max-width: 1080px) { .ft-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 700px)  { .ft-grid { grid-template-columns: 1fr; } }
  .ft-card {
    border-radius: var(--radius); padding: 28px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 280px;
    border: 1px solid var(--line);
    position: relative; overflow: hidden;
  }
  .ft-tone-hero, .ft-tone-ink { border: 0; }
  .ft-span-2 { grid-column: span 2; }
  @media (max-width: 1080px) { .ft-span-2 { grid-column: span 2; } }
  @media (max-width: 700px) { .ft-span-2 { grid-column: span 1; } }
  .ft-card h3 {
    font-family: var(--display); font-weight: 600; font-size: 22px;
    line-height: 1.15; letter-spacing: -0.015em; margin: 24px 0 8px;
    text-wrap: balance;
  }
  .ft-card p { margin: 0; font-size: 14.5px; line-height: 1.5; opacity: .82; text-wrap: pretty; }

  /* card visuals */
  /* bot types */
  .ft-bots {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-bottom: 4px;
  }
  @media (max-width: 700px) { .ft-bots { grid-template-columns: 1fr; } }
  .ft-bot {
    background: rgba(255,255,255,.1); border-radius: 10px;
    padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px;
    min-height: 116px;
  }
  .ft-bot.mid { background: rgba(255,255,255,.18); }
  .ft-bot-tag {
    font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
    opacity: .7; margin-bottom: 4px;
  }
  .ft-bot b {
    font-family: var(--display); font-weight: 600; font-size: 14.5px;
    line-height: 1.2; letter-spacing: -0.01em;
  }
  .ft-bot small {
    font-style: italic; font-size: 12px; opacity: .7; margin-top: auto;
  }

  /* KB ingest */
  .ft-kb-ingest { display: flex; flex-direction: column; gap: 8px; }
  .ft-kb-row {
    display: grid; grid-template-columns: 18px 1fr 70px auto;
    gap: 8px; align-items: center;
    padding: 8px 10px; background: rgba(255,255,255,.06); border-radius: 8px;
    font-size: 12.5px;
  }
  .ft-kb-row.ghost { opacity: .55; }
  .ft-kb-ico { font-size: 14px; }
  .ft-kb-name { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ft-kb-bar {
    height: 4px; background: rgba(255,255,255,.1); border-radius: 999px;
    overflow: hidden;
  }
  .ft-kb-bar i { display: block; height: 100%; transition: width .4s; }

  /* prompt engineering */
  .ft-prompt { display: flex; flex-direction: column; gap: 8px; }
  .ft-prompt-line {
    display: grid; grid-template-columns: 64px 1fr; gap: 10px;
    padding: 8px 10px; background: var(--surface); border-radius: 8px;
    border: 1px solid var(--line); font-size: 13px; line-height: 1.4;
    align-items: start;
  }
  .ft-prompt-key {
    font-size: 10.5px; color: var(--ink-2); text-transform: uppercase;
    letter-spacing: 0.05em; padding-top: 2px;
  }

  /* landing page builder */
  .ft-lp { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
  @media (max-width: 700px) { .ft-lp { grid-template-columns: 1fr; } }
  .ft-lp-canvas {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden;
  }
  .ft-lp-bar {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 10px; background: var(--surface-alt);
    border-bottom: 1px solid var(--line); font-size: 10px;
  }
  .ft-lp-bar i {
    width: 7px; height: 7px; border-radius: 999px; background: #ddd;
  }
  .ft-lp-bar span { margin-left: 8px; color: var(--ink-2); }
  .ft-lp-content { padding: 8px; }
  .ft-lp-hero {
    padding: 14px 12px; border-radius: 6px; color: #fff;
    display: flex; flex-direction: column; gap: 8px;
  }
  .ft-lp-h { font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.2; }
  .ft-lp-cta { font-size: 10.5px; opacity: .9; align-self: flex-start;
               background: rgba(255,255,255,.2); padding: 4px 8px; border-radius: 999px; }
  .ft-lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
  .ft-lp-cards span {
    height: 30px; background: var(--surface-alt); border-radius: 4px; display: block;
  }
  .ft-lp-side {
    display: flex; flex-direction: column; gap: 6px;
  }
  .ft-lp-pill {
    font: 11px/1 var(--mono); padding: 6px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    align-self: flex-start;
  }

  .ft-channels { display: flex; flex-direction: column; gap: 8px; }
  .ft-chan {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 8px;
    background: rgba(255,255,255,.06); font-size: 13px; font-weight: 500;
    border: 1px solid rgba(255,255,255,.08); gap: 10px;
  }
  .ft-chan > span { flex: 1; min-width: 0; }
  .ft-chan-wa { background: rgba(255,255,255,.12); }
  .ft-chan.ghost { opacity: .55; border-style: dashed; }
  .ft-dot { width: 7px; height: 7px; border-radius: 999px; animation: pulse 1.6s ease-in-out infinite; }

  .ft-stat { display: flex; align-items: center; gap: 16px; }
  .ft-stat-num {
    font-family: var(--display); font-weight: 600;
    font-size: 88px; line-height: .9; letter-spacing: -0.04em;
    color: var(--primary);
  }
  .ft-stat-num em { font-family: var(--serif); font-style: italic; font-size: 56px; vertical-align: 12px; }
  .ft-stat-cap { font: 12px/1.3 var(--mono); opacity: .7; text-transform: uppercase; letter-spacing: 0.05em; }

  .ft-handoff { display: flex; flex-direction: column; gap: 8px; }
  .ft-handoff-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.04);
    font-size: 13px;
  }
  [data-dark="1"] .ft-handoff-row { background: rgba(255,255,255,.06); }
  .ft-handoff-row.warm { background: oklch(0.95 0.04 60); }
  [data-dark="1"] .ft-handoff-row.warm { background: oklch(0.30 0.04 60); }
  .ft-avatar {
    width: 26px; height: 26px; border-radius: 999px; color: #fff;
    display: grid; place-items: center; font: 600 11px/1 var(--body);
    flex-shrink: 0;
  }
  .ft-line { flex: 1; }
  .ft-tiny { font-size: 10.5px; opacity: .6; }

  .ft-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ft-kpis div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); }
  .ft-kpis b { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
  .ft-kpis span { font: 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; opacity: .65; }

  .ft-tools { display: flex; flex-wrap: wrap; gap: 6px; }
  .ft-tool {
    font: 12px/1 var(--mono); padding: 6px 10px; border-radius: 6px;
    background: var(--surface); border: 1px solid var(--line);
  }

  .ft-ai {
    position: relative; padding: 16px 16px 16px 18px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 14px; line-height: 1.4; font-style: italic;
    overflow: hidden;
  }
  .ft-ai-glow {
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    box-shadow: 0 0 16px 2px var(--primary);
  }
  .ft-ai-text { font-family: var(--serif); font-size: 17px; }

  /* ── cta ────────────────────────────────────────────────────────────── */
  .cta-section { padding: 80px 0 48px; }
  .cta-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
  .cta-h2 {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(36px, 4.5vw, 64px); line-height: 1.04;
    letter-spacing: -0.025em; margin: 12px 0 14px;
    text-wrap: balance;
  }
  .cta-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); }
  .cta-sub { font-size: 16px; color: var(--ink-2); margin: 0; }

  .cta-thread {
    max-width: 560px; margin: 0 auto;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .cta-bubble {
    max-width: 85%; padding: 10px 14px; border-radius: 14px;
    background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
  }
  [data-dark="1"] .cta-bubble.bot { background: oklch(0.28 0.02 145); color: oklch(0.96 0.005 95); }
  .cta-bubble.bot { align-self: flex-start; border-bottom-left-radius: 4px; }
  .cta-bubble.user { align-self: flex-end; border-bottom-right-radius: 4px; }
  .cta-cursor { display: inline-block; width: 2px; height: 14px; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  .cta-input-row {
    display: flex; gap: 8px; margin-top: 14px;
    background: var(--surface); border-radius: 999px; padding: 6px;
    border: 1px solid var(--line);
  }
  .cta-input {
    flex: 1; border: 0; background: transparent; padding: 10px 16px;
    font: inherit; color: var(--ink); outline: none;
  }
  .cta-btn {
    border: 0; padding: 10px 18px; border-radius: 999px;
    font: inherit; font-weight: 500; font-size: 14px; cursor: pointer;
  }
  .cta-note {
    text-align: center; font-size: 11px; color: var(--ink-2);
    margin-top: 14px;
  }

  .cta-foot {
    border-top: 1px solid var(--line); margin-top: 80px;
    padding: 28px 0; display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap;
  }
  .cta-foot-links { display: flex; gap: 22px; }
  .cta-foot-links a { color: var(--ink-2); font-size: 13.5px; cursor: pointer; }
  .cta-foot-links a:hover { color: var(--ink); }
  .cta-foot-meta { font-size: 11px; color: var(--ink-2); }

/* ---------- Wordmark (inline-flex wrapper for the brand mark + text) ---------- */

.wcr-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.wcr-wordmark-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: inherit;
}
