/* ============================================================
   Yaya — yayadata.com
   Warm cream + cocoa palette (see :root tokens).
   Typography: Plus Jakarta Sans + Source Serif 4 + JetBrains Mono
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces — warm cream, never pure white as a canvas */
  --bg: #f7f4ef;
  --paper: #ffffff;
  --raised: #f1ece5;
  --cocoa-deep: #2f2018;

  /* Hairlines — one weight, 1px, never shadows to separate */
  --line: #e8e3da;
  --line-soft: #f0ebe3;
  --line-strong: #d5cec1;
  --line-raised: #e3ddd3;
  --line-raised-strong: #d8d0c4;
  --line-cocoa: rgba(244, 221, 208, 0.22);

  /* Warm ink — black does not exist in Yaya */
  --ink: #2a1f1b;
  --ink-2: #6a574f;
  --ink-3: #9b877d;
  --ink-4: #c5b5aa;
  --ink-mid: #8a6f5f;
  --ink-faint: #c0a996;
  --cream-2: #e2d5c9;

  /* Primary chrome + cocoa accent */
  --primary: #f4ddd0;
  --primary-hover: #eecfbb;
  --primary-fg: #3d2a1f;
  --accent: #3d2a1f;
  --accent-2: #2a1a11;
  --accent-soft: rgba(61, 42, 31, 0.06);
  --accent-line: rgba(61, 42, 31, 0.22);

  /* Semantic — calm, aligned to the warm palette */
  --good: #5c8a4d;
  --good-soft: rgba(92, 138, 77, 0.10);
  --good-line: rgba(92, 138, 77, 0.30);
  --warn: #b07a12;
  --alert: #b5524a;
  --alert-soft: rgba(181, 82, 74, 0.12);

  /* Type */
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Source Serif 4', 'New York', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Shadows — tinted cocoa, never neutral grey */
  --shadow-card: 0 1px 0 rgba(60, 40, 32, .04), 0 8px 28px -14px rgba(60, 40, 32, .10);
  --shadow-pop: 0 12px 40px -12px rgba(60, 40, 32, .18);

  /* Motion and shape */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius-ui: 8px;
  --radius-panel: 12px;
  --radius-card: 14px;
  --radius-pill: 99px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; }

::selection { background: var(--primary); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: var(--primary-fg);
  padding: 10px 16px; border-radius: 0 0 var(--radius-ui) 0;
  font-size: 13px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- KEYFRAMES ---- */
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes bounceDot { 0%, 80%, 100% { transform: translateY(0); opacity: .3; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseInBig { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- SHARED PRIMITIVES ---- */
.container { max-width: 1400px; margin: 0 auto; }

.section { padding: 104px 40px; border-bottom: 1px solid var(--line); }
.section--paper { background: var(--paper); padding-top: 100px; padding-bottom: 100px; }
.section--raised { background: var(--raised); border-bottom-color: var(--line-raised); }
.section--bg { background: var(--bg); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}

.mono { font-family: var(--mono); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.sec-head--raised { padding-bottom: 26px; border-bottom-color: var(--line-raised-strong); }
.sec-head__mark { display: block; margin-top: 20px; animation: float 6.2s ease-in-out infinite .3s; }
.sec-head__mark--b { animation-duration: 6.8s; animation-delay: .1s; }
.sec-head__mark--c { animation-duration: 5.9s; animation-delay: .5s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600;
  border-radius: var(--radius-ui); border: 1px solid transparent;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-fg); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.btn--ghost { background: var(--paper); color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.btn--sm { font-size: 13px; padding: 10px 18px; }
.btn--sm:hover { transform: translateY(-1px); box-shadow: none; }
.btn--md { font-size: 15px; padding: 15px 30px; }
.btn--lg { font-size: 16px; padding: 17px 32px; }

/* Scroll reveals — visible by default, JS only adds the pre-state */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 10px 40px;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.nav-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo__text {
  font-family: var(--serif); font-size: 23px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav-links {
  display: flex; list-style: none; gap: 22px;
  margin: 0 auto 0 22px; flex-wrap: wrap;
}
.nav-links a {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em;
}
.lang-switch__link { color: var(--ink-3); padding: 2px; }
.lang-switch__link:hover { color: var(--ink); }
.lang-switch__link.is-active { color: var(--ink); }
.lang-switch__sep { color: var(--ink-3); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 128px 40px 0; border-bottom: 1px solid var(--line); }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.hero-eyebrow__dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; display: block; animation: pulseDot 2s infinite;
}
.hero-eyebrow__text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }

.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 56px; align-items: start; padding-top: 32px;
}
.hero-copy { padding-bottom: 8px; }
.hero-titlerow { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-title {
  flex: 1 1 320px;
  font-size: clamp(38px, 5.6vw, 86px);
  line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
.hero-mark {
  flex: 0 0 168px; display: flex; align-items: center; justify-content: center;
  animation: float 5.5s ease-in-out infinite;
}
.hero-sub {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 62ch; padding-left: 18px; border-left: 2px solid var(--primary);
  margin-bottom: 30px; text-wrap: pretty;
}
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-micro { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.hero-micro em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.14em; color: var(--ink); letter-spacing: -0.02em;
}

/* ---- HERO CHAT DEMO ---- */
.demo { position: relative; }
.demo-shell {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius-panel); overflow: hidden; box-shadow: var(--shadow-card);
}
.demo-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--raised);
}
.demo-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
.demo-bar__name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.demo-bar__badge { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.demo-thread { height: min(66vh, 580px); min-height: 440px; overflow-y: auto; padding: 24px 22px; }
.demo-q { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.demo-q p {
  max-width: 88%; background: var(--primary); color: var(--primary-fg);
  font-size: 13.5px; line-height: 1.5; font-weight: 500;
  border-radius: 12px 12px 4px 12px; padding: 12px 15px;
}
.demo-typing { display: flex; align-items: center; gap: 5px; padding: 2px 0 18px; }
.demo-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: block; animation: bounceDot 1.1s infinite; }
.demo-typing span:nth-child(2) { animation-delay: .15s; }
.demo-typing span:nth-child(3) { animation-delay: .3s; }
.demo-a__who { margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.demo-a__text { font-size: 14.5px; line-height: 1.62; color: var(--ink); margin-bottom: 16px; text-wrap: pretty; }
.demo-caret {
  display: inline-block; width: 7px; height: 15px; background: var(--accent);
  vertical-align: -3px; margin-left: 3px; animation: blink 1s step-end infinite;
}

.demo-chart {
  border: 1px solid var(--line); background: var(--raised);
  border-radius: var(--radius-panel); padding: 15px;
  animation: riseIn .42s var(--ease) both;
}
.demo-chart__title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 13px; }
.demo-chart__rows { display: grid; gap: 9px; }
.demo-chart__row { display: grid; grid-template-columns: 112px 1fr 46px; align-items: center; gap: 10px; }
.demo-chart__label { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-chart__track { height: 6px; background: var(--line); display: block; overflow: hidden; }
.demo-chart__fill { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: growX .9s var(--ease) .1s both; }
.demo-chart__value { font-family: var(--mono); font-size: 11px; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }

.demo-kpis {
  margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  animation: riseIn .42s var(--ease) both;
}
.demo-kpi { background: var(--paper); padding: 14px 16px; }
.demo-kpi__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.demo-kpi__row { display: flex; align-items: baseline; gap: 4px; }
.demo-kpi__value { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-kpi__unit { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.demo-prov {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  animation: riseIn .42s var(--ease) both;
}
.demo-prov__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--good); background: var(--good-soft); border: 1px solid var(--good-line);
  border-radius: var(--radius-ui); padding: 5px 9px; cursor: help;
}
.demo-prov__text { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-3); }

.demo-chips {
  padding: 11px 14px 0; border-top: 1px solid var(--line);
  background: var(--raised); display: flex; gap: 7px; flex-wrap: wrap;
}
.demo-chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-pill); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.demo-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.demo-chip.is-active { border-color: var(--accent); background: var(--accent); color: var(--bg); }

.demo-input { padding: 11px 14px 12px; background: var(--raised); }
.demo-input__well {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); padding: 10px 12px;
  background: var(--paper); border-radius: var(--radius-ui);
}
.demo-input__placeholder { flex: 1; font-size: 13px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-replay {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: none; border-radius: var(--radius-ui);
  background: var(--primary); color: var(--primary-fg); font-size: 14px;
  cursor: pointer; transition: background .2s;
}
.demo-replay:hover { background: var(--primary-hover); }

/* ============================================================
   01 — THE PROBLEM
   ============================================================ */
.problem-h2 {
  font-size: clamp(27px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); max-width: 26ch; margin-bottom: 26px; text-wrap: balance;
}
.problem-lede { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 62ch; text-wrap: pretty; }

.sources { margin-bottom: 52px; }
.sources__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.sources__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border-bottom: 1px solid var(--line);
}
.source { background: var(--bg); padding: 22px 20px 24px; }
.source__name { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.source__figure { display: flex; align-items: baseline; gap: 3px; }
.source__value {
  font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1;
  letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.source__unit { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.source__note { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }

.sources__question {
  margin-top: 22px; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-2);
}
.problem-closing {
  margin-top: 8px; text-align: center; font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 38px); line-height: 1.1;
  letter-spacing: -0.025em; color: var(--ink);
}

/* ============================================================
   02 — THE MOLD
   ============================================================ */
.mold-h2 {
  font-size: clamp(34px, 4.6vw, 68px); line-height: 1.06;
  letter-spacing: -0.03em; color: var(--ink); text-wrap: balance;
}
.mold-h2 span { color: var(--ink-mid); }
.mold-lede { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

.mold-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; align-items: stretch;
}
.mold-step {
  background: var(--paper); border: 1px solid var(--line-raised);
  border-radius: var(--radius-card); padding: 30px 28px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.mold-step__n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint); }
.mold-step__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.mold-step__body { font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

.mold-closing {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-raised-strong);
  font-family: var(--serif); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.12;
  letter-spacing: -0.025em; color: var(--ink); max-width: 34ch; text-wrap: balance;
}

/* ============================================================
   03 — EXAMPLES
   ============================================================ */
.examples .sec-head { margin-bottom: 34px; }
.examples-h2 {
  font-size: clamp(27px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 14px; text-wrap: balance;
}
.examples-sub { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

.tabs-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 22px;
}
.tabs-head__copy { max-width: 62ch; }
.tabs-head__tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.tabs-head__title {
  font-family: var(--serif); font-size: clamp(23px, 2.4vw, 32px); line-height: 1.14;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 10px; text-wrap: balance;
}
.tabs-head__sub { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tabs-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  cursor: pointer; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  padding: 10px 17px; border: 1px solid var(--line); border-radius: var(--radius-ui);
  background: var(--paper); color: var(--ink-2); transition: border-color .25s, color .25s;
}
.tab-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.tab-btn[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--bg); }

.mock {
  border: 1px solid var(--line-strong); border-radius: var(--radius-panel);
  background: var(--bg); overflow-x: auto; box-shadow: var(--shadow-card);
}
.mock__inner { display: flex; min-height: 560px; min-width: 720px; }
.mock__pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.mock-view { display: none; }
.mock-view.is-active { display: flex; flex: 1; min-height: 0; animation: fadeSwap .55s var(--ease) both; }

/* Tab 1 — Questions */
.ask { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ask__body { flex: 1; padding: 28px 32px 4px; overflow: hidden; }
.ask__wrap { max-width: 640px; margin: 0 auto; }
.ask__q { display: flex; justify-content: flex-end; margin-bottom: 22px; }
.ask__q div {
  max-width: 480px; background: var(--accent-soft); padding: 11px 16px;
  border-radius: var(--radius-panel); font-size: 14px; line-height: 1.5; color: var(--ink);
}
.ask__a { display: flex; gap: 13px; }
.ask__a-col { flex: 1; min-width: 0; }
.ask__answer { font-size: 15px; line-height: 1.6; color: var(--ink); }
.ask__answer strong { font-weight: 600; }
.ask__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 9px; }
.ask__meta-table { color: var(--ink-2); font-weight: 500; }
.ask__meta-level { color: var(--warn); font-weight: 600; }
.ask__toggle { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 13px; color: var(--ink-2); }
.ask__toggle svg { color: var(--accent); }
.ask__recipe { margin-top: 15px; padding-left: 22px; }
.ask__recipe-lead { font-size: 13.5px; color: var(--ink-2); margin-bottom: 11px; }
.ask__checks { display: grid; gap: 9px; list-style: none; }
.ask__check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.ask__check svg { color: var(--good); flex: none; }
.ask__formula-label { font-size: 12.5px; color: var(--ink-3); margin: 20px 0 5px; }
.ask__formula-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.ask__formula-row code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.ask__formula-row .mono { font-size: 11px; color: var(--ink-3); }
.ask__btns { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.ask__btn { font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--primary); border-radius: var(--radius-ui); padding: 8px 14px; }
.ask__btn--ghost { background: var(--paper); border: 1px solid var(--line); }
.ask__foot { padding: 14px 32px 22px; }
.ask__well {
  max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 13px 16px; box-shadow: var(--shadow-card);
}
.ask__well span:first-child { flex: 1; font-size: 14.5px; color: var(--ink-3); }
.ask__well-send {
  width: 30px; height: 30px; flex: none; border-radius: var(--radius-ui);
  background: var(--primary); color: var(--accent); display: grid; place-items: center;
}

/* Tab 2 — Dashboards */
.dash { flex: 1; overflow: hidden; padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.prompt-card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--paper); padding: 18px 20px; box-shadow: var(--shadow-card);
}
.prompt-card__row { display: flex; align-items: flex-start; gap: 12px; }
.prompt-card__text { flex: 1; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.prompt-card__meta { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.arrow-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.dash__badge { margin-left: auto; }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dash-kpi {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--paper); padding: 18px 20px;
}
.is-active .dash-kpi { animation: riseIn .5s var(--ease) .12s both; }
.dash-kpi__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); line-height: 1.5; margin-bottom: 12px; }
.dash-kpi__value { font-family: var(--serif); font-size: 42px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-kpi__foot { display: flex; align-items: center; gap: 9px; margin-top: 13px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pill--bad { background: var(--alert-soft); color: var(--alert); }
.pill--flat { background: var(--raised); color: var(--ink-3); }

.dash-chart {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--paper); padding: 18px 20px;
}
.is-active .dash-chart { animation: riseIn .55s var(--ease) .3s both; }
.dash-chart__title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.dash-chart__plot { position: relative; height: 132px; }
.dash-chart__grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); display: block; }
.dash-chart__grid--top { top: 0; }
.dash-chart__grid--mid { top: 50%; }
.dash-chart__bars { position: relative; display: flex; align-items: flex-end; gap: 16px; height: 100%; }
.dash-chart__bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; display: block; transform-origin: bottom; }
.is-active .dash-chart__bar { animation: growY .7s var(--ease) .25s both; }
.dash-chart__labels { display: flex; gap: 16px; margin-top: 11px; }
.dash-chart__labels span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* Tab 3 — Workflows */
.flow { flex: 1; padding: 26px 30px 30px; overflow: hidden; }
.flow__wrap { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.run-card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--paper); padding: 16px 18px 18px;
}
.run-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.run-card__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); display: block; animation: pulseDot 1.6s infinite; }
.run-card__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.run-card__cadence { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.run-steps { display: grid; gap: 0; list-style: none; }
.run-step {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px;
  align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft);
}
.run-step__ring {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; transition: border-color .3s, background .3s;
}
.run-step__ring svg path { stroke: transparent; transition: stroke .3s; }
.run-step__text { font-size: 13.5px; line-height: 1.45; color: var(--ink-4); transition: color .3s; }
.run-step.is-active .run-step__ring { border-color: var(--accent); }
.run-step.is-active .run-step__text { color: var(--ink); font-weight: 600; }
.run-step.is-done .run-step__ring { border-color: var(--good); background: var(--good); }
.run-step.is-done .run-step__ring svg path { stroke: #ffffff; }
.run-step.is-done .run-step__text { color: var(--ink); font-weight: 400; }

.sent-card {
  border: 1px solid rgba(92, 138, 77, 0.32); background: rgba(92, 138, 77, 0.08);
  border-radius: var(--radius-card); padding: 15px 17px;
  animation: riseIn .45s var(--ease) both;
}
.sent-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; flex-wrap: wrap; }
.sent-card__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--good); }
.sent-card__to { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.sent-card__title { font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--ink); margin-bottom: 7px; }
.sent-card__body { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.acted {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px;
  align-items: start; animation: riseIn .45s var(--ease) both;
}
.acted__badge {
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary);
  display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; color: var(--accent);
}
.acted__label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.acted__text { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* Late-arriving flow pieces: present for no-JS, sequenced when JS runs */
.js .sent-card, .js .acted { display: none; }
.js .sent-card.is-shown { display: block; }
.js .acted.is-shown { display: grid; }

.is-hidden { display: none !important; }

.examples-closing {
  margin-top: 36px; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink);
}

/* ============================================================
   04 — WHO WE ARE
   ============================================================ */
.team .sec-head { margin-bottom: 0; }
.team-h2 {
  font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -0.028em;
  color: var(--ink); max-width: 26ch;
}
.team-h2 em { font-style: italic; color: var(--ink-2); }

.team-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0; border-bottom: 1px solid var(--line);
}
.team-beliefs {
  padding: 44px 44px 48px 0; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.team-beliefs p:first-child { font-size: 19px; line-height: 1.6; color: var(--ink); }
.team-beliefs p { font-size: 17px; line-height: 1.62; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.team-kicker {
  margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.team-kicker p {
  font-family: var(--serif); font-size: 22px; line-height: 1.3; font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; text-wrap: pretty;
}

.team-crew { padding: 44px 0 48px 44px; display: flex; flex-direction: column; gap: 24px; }
.team-crew__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.team-crew__title {
  font-family: var(--serif); font-size: clamp(23px, 2.3vw, 31px); line-height: 1.2;
  letter-spacing: -0.022em; color: var(--ink); margin-bottom: 14px; text-wrap: pretty;
}
.team-crew__body { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }

.founder {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px;
  align-items: start; padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.founder__photo {
  display: block; width: 112px; height: 136px; object-fit: cover;
  object-position: top; border-radius: 10px; background: var(--raised);
}
.founder__name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.founder__role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 12px; }
.founder__bio { font-size: 15.5px; line-height: 1.58; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.founder__creds { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.founder__creds p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); }

.work-head {
  margin-top: 56px; padding-top: 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.work-head h3 {
  font-size: clamp(25px, 2.7vw, 38px); line-height: 1.12; letter-spacing: -0.025em;
  color: var(--ink); max-width: 26ch; text-wrap: balance;
}
.work-grid {
  padding-top: 30px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px;
}
.work-col__title {
  font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px;
}
.work-list { list-style: none; display: grid; gap: 0; }
.work-list li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px;
  align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--ink);
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.work-list li span { color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.work-steps { display: grid; gap: 0; }
.work-step {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px;
  align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.work-step__num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.work-step h4 { font-family: var(--serif); font-size: 19px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 5px; }
.work-step p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 112px 40px; background: var(--accent); border-bottom: none;
}
.cta__inner {
  max-width: 1400px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: end;
}
.cta__h2 {
  font-size: clamp(32px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -0.03em;
  color: var(--bg); margin-bottom: 24px; text-wrap: balance;
}
.cta__h2 span { color: var(--primary); }
.cta__sub { font-size: 18px; line-height: 1.55; color: var(--cream-2); max-width: 56ch; text-wrap: pretty; }
.cta__pricing {
  margin-top: 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.cta__actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta__alt { font-size: 14px; color: var(--ink-4); }
.cta__alt a { color: var(--primary); border-bottom: 1px solid rgba(244, 221, 208, 0.45); padding-bottom: 2px; }
.cta__alt a:hover { color: var(--primary); }
.cta__note {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px;
  align-items: start; max-width: 26rem; padding-top: 18px;
  border-top: 1px solid var(--line-cocoa);
}
.cta__note img {
  display: block; width: 56px; height: 68px; object-fit: cover;
  object-position: top; border-radius: var(--radius-ui); background: var(--cocoa-deep);
}
.cta__note p:first-of-type { font-size: 13px; line-height: 1.5; color: var(--cream-2); margin-bottom: 7px; text-wrap: pretty; }
.cta__note-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 30px 40px; background: var(--accent); border-top: 1px solid rgba(247, 244, 239, 0.14); }
.footer__inner {
  max-width: 1400px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer__lockup { display: block; width: 86px; height: auto; }
.footer__social { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid rgba(244, 221, 208, 0.28); border-radius: var(--radius-ui);
  color: var(--primary); transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: rgba(244, 221, 208, 0.12); border-color: rgba(244, 221, 208, 0.55); color: var(--primary); }
.footer__legal { display: flex; align-items: center; gap: 20px; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; }
.footer__legal a { color: var(--primary); }

/* ============================================================
   RESPONSIVE — single breakpoint
   ============================================================ */
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }

  .section, .section--paper { padding: 64px 20px; }
  .cta { padding: 64px 20px; }
  .hero { padding: 76px 20px 0; }
  .footer { padding: 30px 20px; }
  /* One row, ~56px. The section links are dropped here on purpose: three
     stacked rows ate 138px of a fixed header, and squeezing them onto one
     row left them unreadable. The page is a single top-to-bottom read and
     the booking CTA — the only real destination — stays pinned. */
  .nav-inner { padding: 8px 20px; min-height: 56px; flex-wrap: nowrap; gap: 12px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; gap: 12px; }
  .lang-switch__link { padding: 8px 4px; }

  .sec-head, .work-head { grid-template-columns: 1fr; gap: 20px; }

  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  /* yaya-mark writes its own inline width/height, so the override needs !important.
     Its viewBox leaves ~30% transparent padding around the face, which read as a
     dead band between the headline and the sub — the negative margin claws it back. */
  .hero-mark { flex: 0 0 auto; margin: -20px 0; }
  .hero-mark yaya-mark { width: 84px !important; height: 84px !important; }
  .hero-titlerow { gap: 8px; margin-bottom: 20px; }
  .sec-head__mark { margin-top: 4px; }
  .sec-head__mark yaya-mark { width: 56px !important; height: 56px !important; }
  .hero-sub { margin-bottom: 24px; }
  .hero-buttons { margin-bottom: 24px; }
  .hero-buttons .btn { flex: 1 1 auto; min-height: 48px; }

  .mock__inner { min-width: 0; min-height: 0; }
  .mock { overflow-x: hidden; }
  .ask__body { padding: 20px 18px 4px; }
  .ask__foot { padding: 12px 18px 18px; }
  .dash, .flow { padding: 20px 18px 24px; }
  .tab-btn { min-height: 44px; }
  /* Give the prompt its full width: the trailing mono meta was squeezing
     the sentence into a six-line column. Meta and badge drop to their own row. */
  .prompt-card__row { flex-wrap: wrap; }
  .prompt-card__meta { flex: 0 0 100%; margin-top: 8px; padding-left: 32px; }
  .arrow-row { flex-wrap: wrap; }
  .dash__badge { flex: 0 0 100%; margin-left: 0; padding-left: 22px; }

  /* Tap targets ≥44px. The hit area is expanded with an overlay pseudo-element
     rather than by padding the box, so the fixed nav doesn't grow ~25px taller. */
  .nav-logo, .nav-links a, .lang-switch__link, .demo-chip, .demo-replay,
  .cta__alt a, .footer__legal a { position: relative; }
  .nav-logo::after, .nav-links a::after, .lang-switch__link::after,
  .demo-chip::after, .demo-replay::after,
  .cta__alt a::after, .footer__legal a::after {
    content: ''; position: absolute; left: 0; right: 0;
    top: 50%; transform: translateY(-50%); height: 44px;
  }
  /* Widen the narrow ones too, without swallowing the gap to their neighbour. */
  .nav-links a::after { left: -6px; right: -6px; }
  .demo-chip::after { left: -2px; right: -2px; }
  .demo-replay::after { left: -7px; right: -7px; }
  .lang-switch__link::after { left: -4px; right: -4px; }
  .btn--sm { padding: 11px 18px; }
  .skip-link { padding: 13px 16px; }

  .team-split { grid-template-columns: 1fr; }
  .team-beliefs { padding: 32px 0 28px; border-right: none; border-bottom: 1px solid var(--line); }
  .team-crew { padding: 32px 0 36px; }
  .founder { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .founder__photo { width: 88px; height: 108px; }

  .work-grid { gap: 36px; }
  .cta__inner { gap: 40px; }
  /* No nested scroller on a phone: the thread auto-scrolled itself and kept
     cutting the answer mid-sentence. It now grows in the page flow, with
     enough reserved height that the stages fill it instead of shifting the
     page below while the user reads. */
  /* 660px = the tallest of the six conversations measured at 390px, so every
     stage lands inside the reserved box and nothing below it ever moves. */
  .demo-thread { height: auto; min-height: 660px; overflow: visible; padding: 20px 16px; }
  .demo-q p { max-width: 100%; }
  .demo-prov__text { word-break: break-word; }
  .demo-chart__row { grid-template-columns: 84px 1fr 44px; }
  .footer__inner { gap: 14px; }
  .footer__social a { width: 44px; height: 44px; }
}
