/* ============================================================
   bDataWorks — editorial enterprise design system
   Monochrome (warm paper + warm ink) + one saturated accent.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Accent (overridden by Tweaks) */
  --accent: #2d4bdb;
  --accent-ink: #ffffff; /* text on accent */

  /* Light theme (default) */
  --paper: #f5f3ed;
  --paper-2: #efece4;
  --card: #fbfaf6;
  --ink: #16140f;
  --ink-soft: #56524a;
  --ink-faint: #8b867c;
  --line: rgba(20, 18, 13, 0.14);
  --line-strong: rgba(20, 18, 13, 0.28);
  --shadow: 0 1px 2px rgba(20,18,13,.05), 0 18px 40px -24px rgba(20,18,13,.28);

  /* Type */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 72px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

[data-theme="dark"] {
  --paper: #0e0d0b;
  --paper-2: #141310;
  --card: #17150f;
  --ink: #f4f1ea;
  --ink-soft: #b4afa4;
  --ink-faint: #7c776d;
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.3);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 50px -28px rgba(0,0,0,.8);
}

/* ---- Type pairings (set via data-type on <html>) ---- */
[data-type="serif"] {
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
}
[data-type="archivo"] {
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Utilities ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.divider { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
[data-type="serif"] h1, [data-type="serif"] h2, [data-type="serif"] h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.h-display { font-size: clamp(44px, 7.2vw, 104px); line-height: 0.96; }
.h-section { font-size: clamp(34px, 4.6vw, 60px); }
.h-card    { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.08; }

.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-soft); line-height: 1.55; max-width: 56ch; }
.muted { color: var(--ink-soft); }
.accent { color: var(--accent); }

.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.section-head .h-section { margin-top: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---- Pill / tag ---- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand b { color: var(--accent); font-weight: 700; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 62%);
  opacity: .55;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-top: 24px; max-width: 14ch; }
.hero-lead { margin-top: 26px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--ink-faint); display: flex; align-items: center; gap: 10px; }
.hero-note svg { color: var(--accent); flex: none; }
@media (max-width: 940px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy h1 { max-width: 18ch; }
}

/* ---- Hero product mock ---- */
.hero-demo { position: relative; }
.demo-card {
  position: relative; z-index: 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.demo-ws { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); letter-spacing: .02em; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.demo-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; }
.demo-ask { align-self: flex-end; max-width: 88%; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 13px 16px; }
.demo-ask-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.demo-ask p { margin-top: 5px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.demo-ans { align-self: flex-start; max-width: 96%; }
.demo-ans-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.spark { width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.demo-ans > p { margin-top: 9px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.demo-ans > p b { font-weight: 700; }
.demo-sources { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-sources .src { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.demo-sources .src svg { color: var(--accent); flex: none; }
.demo-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--paper-2); }
.demo-field { flex: 1; font-size: 14px; color: var(--ink-faint); }
.demo-send { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.demo-tag { position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 13px; box-shadow: var(--shadow); white-space: nowrap; }
.demo-tag-a { top: -16px; left: -18px; }
.demo-tag-b { bottom: -16px; right: -14px; }
.demo-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
@media (max-width: 940px) { .hero-demo { max-width: 480px; } .demo-tag-a { left: 0; } .demo-tag-b { right: 0; } }
@media (max-width: 420px) { .demo-tag { display: none; } }

.hero-stats {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.stat .n span { color: var(--accent); }
.stat .l { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   LOGО ROW / TRUST
   ============================================================ */
.trust { padding-block: 40px; }
.trust-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); }
.logo-row .logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink-faint); opacity: .8; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line-strong); }
.step { padding: 36px 28px 40px; border-right: 1px solid var(--line); text-align: center; }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { margin-top: 18px; font-size: 26px; }
.step p { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }
.step .pin { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
[data-howlayout="stacked"] .steps { grid-template-columns: 1fr; }
[data-howlayout="stacked"] .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0; display: grid; grid-template-columns: 80px 1fr; gap: 30px; text-align: left; }
[data-howlayout="stacked"] .step .pin { justify-content: flex-start; }
[data-howlayout="stacked"] .step:last-child { border-bottom: 0; }
[data-howlayout="stacked"] .step .num { padding-top: 6px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; text-align: left; }
  .step .pin { justify-content: flex-start; }
  .step:last-child { border-bottom: 0; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature {
  background: var(--card);
  padding: 34px 30px 38px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s ease;
}
.feature:hover { background: var(--paper-2); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.feature h3 { font-size: 20px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
[data-featlayout="rows"] .feature-grid { grid-template-columns: 1fr; }
[data-featlayout="rows"] .feature { flex-direction: row; align-items: flex-start; gap: 24px; padding: 28px 30px; }
[data-featlayout="rows"] .feature .ico { flex: none; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } [data-featlayout] .feature { flex-direction: row; gap: 22px; } }

/* ============================================================
   USE CASES
   ============================================================ */
.usecases { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.uc-tabs { display: flex; flex-direction: column; gap: 6px; }
.uc-tab {
  text-align: left; background: transparent; border: 0;
  border-left: 2px solid var(--line);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease, background .2s ease;
}
.uc-tab .t { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.uc-tab .d { font-size: 14.5px; color: var(--ink-faint); display: none; }
.uc-tab[aria-selected="true"] { border-left-color: var(--accent); background: var(--card); }
.uc-tab[aria-selected="true"] .d { display: block; color: var(--ink-soft); }
.uc-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow); min-height: 360px;
}
.uc-panel .pq { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.uc-panel h3 { font-size: 28px; margin-top: 10px; }
.uc-panel p { margin-top: 16px; color: var(--ink-soft); }
.uc-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.uc-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.uc-list li svg { color: var(--accent); flex: none; margin-top: 4px; }
.uc-metric { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 34px; }
.uc-metric .m .n { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
.uc-metric .m .l { font-size: 13px; color: var(--ink-faint); }
@media (max-width: 860px) { .usecases { grid-template-columns: 1fr; } .uc-tabs { flex-direction: row; overflow-x: auto; } .uc-tab .d { display: none !important; } }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.marquee { margin-top: 52px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-weight: 500; font-size: 16px; white-space: nowrap;
}
.chip .dotmark { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.integ-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }

/* ============================================================
   SECURITY
   ============================================================ */
.sec { background: var(--paper-2); }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.sec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.sec-card .ico { color: var(--accent); margin-bottom: 14px; }
.sec-card h4 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.sec-card p { margin-top: 7px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { margin-top: 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.quote { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; background: var(--card); display: flex; flex-direction: column; }
.quote.lead-q { grid-row: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quote .mark { font-family: var(--font-display); font-size: 56px; line-height: .6; color: var(--accent); }
.quote blockquote { margin-top: 18px; font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; }
.quote.lead-q blockquote { font-size: clamp(22px, 2.4vw, 30px); font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.25; }
.quote .by { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 12px; }
.quote .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.quote .by .nm { font-weight: 600; font-size: 14.5px; }
.quote .by .rl { font-size: 12.5px; color: var(--ink-faint); }
.quote.lead-q .by .rl { color: rgba(245,243,237,.6); }
@media (max-width: 940px) { .quotes { grid-template-columns: 1fr 1fr; } .quote.lead-q { grid-column: span 2; grid-row: auto; } }
@media (max-width: 620px) { .quotes { grid-template-columns: 1fr; } .quote.lead-q { grid-column: auto; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; padding: 26px 0; display: flex; gap: 24px; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 23px); letter-spacing: -0.02em; color: var(--ink); }
.faq-ico { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .25s ease, background .2s; position: relative; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; background: currentColor; }
.faq-ico::before { width: 12px; height: 1.6px; }
.faq-ico::after { width: 1.6px; height: 12px; transition: transform .25s ease; }
.faq-item[open] .faq-ico { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-item[open] .faq-ico::after { transform: scaleY(0); }
.faq-a { overflow: hidden; }
.faq-a p { padding-bottom: 28px; max-width: 70ch; color: var(--ink-soft); font-size: 16.5px; }
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta { position: relative; overflow: hidden; }
.cta-card {
  background: var(--ink); color: var(--paper);
  border-radius: clamp(20px, 3vw, 34px);
  padding: clamp(40px, 6vw, 84px);
  position: relative; overflow: hidden;
}
.cta-card .hero-grid { opacity: .25; -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%); }
.cta-card h2 { font-size: clamp(34px, 5vw, 64px); max-width: 18ch; position: relative; }
.cta-card .lead { color: rgba(245,243,237,.72); margin-top: 22px; position: relative; }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; position: relative; }
.cta-card .btn-ghost { color: var(--paper); border-color: rgba(245,243,237,.35); }
.cta-card .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-glove { position: relative; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(245,243,237,.18); display: flex; flex-wrap: wrap; gap: 28px; }
.cta-glove .g { flex: 1 1 200px; }
.cta-glove .g .gt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cta-glove .g .gd { margin-top: 8px; font-size: 14.5px; color: rgba(245,243,237,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: 64px 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer .brand { font-size: 24px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 15px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-blurb { color: var(--ink-soft); font-size: 15px; max-width: 34ch; margin-top: 14px; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--ink-faint); font-size: 13.5px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee-track { animation: none; } }

/* ============================================================
   HERO DEMO — cycling conversation animation
   The chat cycles through several questions (one per workspace).
   Scenes are absolutely stacked in a fixed-height stage — JS locks
   the height to the tallest scene, so swapping questions never
   reflows or resizes the card. JS arms it with .anim-ready and
   drives each step by toggling .show. Static for reduced motion.
   ============================================================ */
.demo-stage { position: relative; display: block; gap: 0; padding: 0; min-height: 280px; overflow: hidden; }
.demo-scene { position: absolute; inset: 0; padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; opacity: 1; transition: opacity .45s ease; }
.demo-scene.leaving { opacity: 0; }
.demo-ans { position: relative; }
.demo-ws { transition: opacity .3s ease; }

/* "thinking" dots */
.demo-typing { display: flex; align-items: center; gap: 6px; position: absolute; left: 1px; top: 30px; opacity: 0; transition: opacity .35s ease; }
.demo-typing.show { opacity: 1; }
.demo-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: demo-dot 1s infinite ease-in-out; }
.demo-typing span:nth-child(2) { animation-delay: .15s; }
.demo-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes demo-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* start states + reveals (only applied once JS arms the animation) */
.hero-demo.anim-ready .demo-ask,
.hero-demo.anim-ready .demo-ans-label,
.hero-demo.anim-ready .demo-ans > p {
  opacity: 0; transform: translateY(9px);
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-demo.anim-ready .demo-sources .src {
  opacity: 0; transform: scale(.85);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,1.5,.4,1);
}
.hero-demo.anim-ready .demo-ask.show,
.hero-demo.anim-ready .demo-ans-label.show,
.hero-demo.anim-ready .demo-ans > p.show,
.hero-demo.anim-ready .demo-sources .src.show { opacity: 1; transform: none; }

.hero-demo.anim-ready .demo-tag {
  opacity: 0; transform: scale(.85);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2,1.5,.4,1);
}
.hero-demo.anim-ready .demo-tag.tag-show { opacity: 1; transform: none; }

/* send button gives a single confident pulse as each answer lands */
.demo-send.pulse { animation: demo-send-pulse 1.4s ease-out; }
@keyframes demo-send-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); } }

/* ============================================================
   BOOK-A-DEMO MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  animation: modal-fade .25s ease;
}
.modal-card {
  position: relative;
  width: min(540px, 94vw);
  margin: clamp(16px, 6vh, 64px) auto;
  max-height: 90vh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: modal-rise .32s cubic-bezier(.2,.7,.2,1);
}
.modal-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-close {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  display: grid; place-items: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-body iframe { width: 100%; min-height: 680px; border: 0; display: block; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-card { animation: none; } }

/* ============================================================
   SUBPAGES (About / Careers / Status)
   ============================================================ */
.page-hero { position: relative; padding-top: clamp(56px, 9vw, 116px); padding-bottom: clamp(36px, 6vw, 72px); overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.page-hero h1 { margin-top: 22px; }
.page-hero .lead { margin-top: 24px; }

/* prose */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.72; margin-top: 22px; }
.prose p:first-child { margin-top: 0; }
.prose p b { color: var(--ink); font-weight: 600; }

/* two-column intro (label left, body right) */
.split-cols { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .split-cols { grid-template-columns: 1fr; gap: 28px; } }

/* careers role card */
.role { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: clamp(26px, 3.5vw, 46px); box-shadow: var(--shadow); margin-top: 40px; }
.role h3 { font-size: clamp(24px, 2.6vw, 32px); }
.role > p { margin-top: 16px; color: var(--ink-soft); max-width: 70ch; }
.role-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.role-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); }
@media (max-width: 760px) { .role-grid { grid-template-columns: 1fr; gap: 28px; } }
.role-grid h4, .col-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.role-list { display: flex; flex-direction: column; gap: 13px; }
.role-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.role-list li svg { color: var(--accent); flex: none; margin-top: 4px; }
.role-foot { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.role-foot .muted { font-size: 14.5px; max-width: 46ch; }

/* status */
.status-banner { display: flex; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.pulse-dot { position: relative; width: 15px; height: 15px; border-radius: 50%; background: #1f9d57; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1f9d57; animation: status-pulse 2.2s ease-out infinite; }
@keyframes status-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
.status-banner h2 { font-size: clamp(23px, 3vw, 34px); }
.status-banner .st-sub { color: var(--ink-faint); font-size: 14px; margin-top: 5px; font-family: var(--font-mono); letter-spacing: .02em; }
.status-list { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--card); }
.status-row:first-child { border-top: 0; }
.status-row .name { font-weight: 600; font-size: 16px; }
.status-row .name span { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: #1f9d57; white-space: nowrap; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d57; flex: none; }
.status-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-faint); font-size: 13.5px; font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } }
