/* ───────── relatIQ landing page ───────── */

:root {
  /* Palette: BONE (default) */
  --bg:        #f4ede2;
  --bg-soft:   #ece4d6;
  --paper:    #fbf7ee;
  --ink:      #1a1612;
  --ink-2:    #3a312a;
  --ink-3:    #6a5e51;
  --ink-4:    #9a8d7d;
  --rule:     rgba(26, 22, 18, 0.10);
  --rule-2:   rgba(26, 22, 18, 0.16);
  --accent:   #b65f3a;          /* dusty clay */
  --accent-soft: rgba(182, 95, 58, 0.10);

  /* Typography scale */
  --display:  "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --sans:     "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono:     "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --gutter:   clamp(20px, 4vw, 56px);
  --max:      1200px;
  --radius:   14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(26,22,18,0.04), 0 12px 32px -16px rgba(26,22,18,0.18);
  --shadow-pop:  0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 14px -4px rgba(26,22,18,0.12), 0 24px 60px -24px rgba(26,22,18,0.28);
}

/* Theme variants applied via [data-theme] */
[data-theme="sage"] {
  --bg: #ecefe5; --bg-soft: #e2e7d8; --paper: #f4f6ee;
  --ink: #16201a; --ink-2: #2e3b30; --ink-3: #5b6a5b; --ink-4: #8a988a;
  --rule: rgba(22,32,26,0.10); --rule-2: rgba(22,32,26,0.16);
  --accent: #5a7a4f; --accent-soft: rgba(90,122,79,0.10);
}
[data-theme="mist"] {
  --bg: #e8ecf0; --bg-soft: #dde3ea; --paper: #f1f4f8;
  --ink: #141a23; --ink-2: #2c3543; --ink-3: #58647a; --ink-4: #8a96aa;
  --rule: rgba(20,26,35,0.10); --rule-2: rgba(20,26,35,0.16);
  --accent: #4d6c8a; --accent-soft: rgba(77,108,138,0.10);
}
[data-theme="plum"] {
  --bg: #efe9e6; --bg-soft: #e6dddb; --paper: #f7f1ee;
  --ink: #1f1719; --ink-2: #3b2d31; --ink-3: #6a5a5e; --ink-4: #9c8d90;
  --rule: rgba(31,23,25,0.10); --rule-2: rgba(31,23,25,0.16);
  --accent: #8a4f63; --accent-soft: rgba(138,79,99,0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle paper grain */
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, var(--accent-soft), transparent 60%);
  background-attachment: fixed;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}

/* Layout */
.shell { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--rule); }

/* Type — sans-led modern, with serif italic as an accent only */
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.italic, .alt, .display-i { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-2); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }

/* Top nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--ink) 120%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.brand-name { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; gap: 1px; }
.brand-name em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ink-3); }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* Invite badge */
.badge-invite {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 11.5px; color: var(--ink-2);
  font-weight: 500; letter-spacing: 0.01em;
  font-family: var(--sans);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  align-self: flex-start;
}
.badge-invite .mono { font-family: var(--mono); color: var(--ink-3); font-size: 11px; }
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

/* Buttons */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-family: var(--sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 1px 2px rgba(26,22,18,0.16), 0 8px 18px -8px rgba(26,22,18,0.4);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--rule); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 120px);
  position: relative;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.hero h1 .alt { color: var(--accent); }

/* Ambient drifting orb behind hero — soft, never aggressive */
.hero-aura {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.hero-aura::before, .hero-aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
}
.hero-aura::before {
  width: 480px; height: 480px;
  right: -120px; top: -80px;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  animation: drift1 18s ease-in-out infinite;
}
.hero-aura::after {
  width: 360px; height: 360px;
  left: -80px; bottom: -100px;
  background: radial-gradient(circle, var(--bg-soft), transparent 60%);
  animation: drift2 22s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.1); }
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-3); font-size: 13px;
}
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Hero stage (rotating product visuals) */
.stage {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  perspective: 1400px;
}
.stage-card {
  position: absolute; inset: 0;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transition: transform 700ms cubic-bezier(.22,.61,.36,1), opacity 600ms ease;
  transform-origin: center center;
  display: flex; flex-direction: column;
}
.stage-card[data-pos="0"] { transform: translateY(0)   rotate(0deg)   scale(1);    opacity: 1;   z-index: 3; }
.stage-card[data-pos="1"] { transform: translate(18px, 22px) rotate(2.4deg)  scale(0.96); opacity: 0.9; z-index: 2; }
.stage-card[data-pos="2"] { transform: translate(36px, 44px) rotate(4.6deg)  scale(0.92); opacity: 0.7; z-index: 1; }

.stage-tabs {
  position: absolute;
  left: -8px; bottom: -36px;
  display: flex; gap: 6px;
  z-index: 4;
}
.stage-tab {
  appearance: none; border: 1px solid var(--rule-2);
  background: var(--paper); color: var(--ink-3);
  padding: 7px 12px; border-radius: 999px;
  font: 500 12px var(--sans); cursor: pointer;
  transition: all 160ms ease;
}
.stage-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stage-tab:not(.active):hover { color: var(--ink); }

/* Card chrome */
.cc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 92%, var(--ink) 8%) 100%);
}
.cc-dots { display: flex; gap: 5px; }
.cc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); display: inline-block; }
.cc-title { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.cc-body { padding: 16px; flex: 1; min-height: 0; overflow: hidden; }

/* Chat card */
.chat-msg { display: flex; gap: 10px; margin-bottom: 12px; }
.chat-msg .av {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: var(--bg-soft); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--ink-2);
}
.chat-msg .av.ai {
  background: conic-gradient(from 180deg at 50% 50%, var(--accent), var(--ink), var(--accent));
  color: var(--paper); border: none;
  position: relative; overflow: hidden;
  animation: spinSlow 8s linear infinite;
}
.chat-msg .av.ai::after {
  content: "W"; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  animation: spinSlow 8s linear infinite reverse;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* streaming caret */
.caret {
  display: inline-block; width: 7px; height: 1em;
  vertical-align: -2px; background: var(--accent);
  margin-left: 2px;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.chat-bubble {
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  background: var(--bg-soft);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--rule);
  max-width: 88%;
}
.chat-msg.ai .chat-bubble { background: var(--paper); }
.chat-bubble .ctx {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-family: var(--mono);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.chat-draft {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--rule-2);
  border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.chat-draft .label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 6px; font-weight: 600;
}
.typing-dots { display: inline-flex; gap: 3px; align-items: center; height: 1em; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* Profile card */
.prof-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.prof-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft));
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; color: var(--ink-2);
}
.prof-name { font-size: 15px; font-weight: 500; color: var(--ink); }
.prof-title { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.tag {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--rule);
  font-weight: 500;
}
.tag.warm { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.insight {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
  padding: 9px 11px; border-left: 2px solid var(--accent); background: var(--accent-soft);
  border-radius: 4px;
  margin-bottom: 8px;
}
.insight .lbl {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 2px;
  font-family: var(--sans);
}
.next-step {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule);
}
.next-step-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-bottom: 8px; }
.next-step-action {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--ink-2); padding: 6px 0;
}
.next-step-action .num {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 18px;
}

/* CRM card */
.crm-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}
.crm-row:last-child { border-bottom: 0; }
.crm-name { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.crm-dot { width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--rule);
  font-size: 9px; font-weight: 600; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.crm-meta { font-size: 11px; color: var(--ink-3); }
.status {
  font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.status.active { background: var(--accent-soft); color: var(--accent); }
.status.warm { background: var(--bg-soft); color: var(--ink-2); }
.status.cold { background: transparent; color: var(--ink-4); border: 1px solid var(--rule-2); }
.status.intro { background: color-mix(in srgb, var(--accent) 80%, var(--ink)); color: var(--paper); }
.crm-head-row {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
  padding-bottom: 6px; border-bottom: 1px solid var(--rule-2);
}

/* Differentiator */
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.diff-headline { max-width: 18ch; }
.diff-comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 8px;
}
.compare-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px 18px 22px;
  position: relative;
}
.compare-card.bad { background: transparent; }
.compare-card .compare-lbl {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; margin-bottom: 12px;
}
.compare-card.good .compare-lbl { color: var(--accent); }
.compare-snippet {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  color: var(--ink-3); white-space: pre-wrap;
}
.strike { text-decoration: line-through; text-decoration-color: var(--ink-4); opacity: 0.7; }

@media (max-width: 880px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-comparison { grid-template-columns: 1fr; }
}

/* Use cases */
.usecase-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.usecase {
  background: var(--paper);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.usecase-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: 0.06em;
}
.usecase h3 { font-size: clamp(22px, 2vw, 28px); }
.usecase p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.usecase-goal {
  margin-top: auto;
  padding-top: 14px; border-top: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2);
  display: flex; align-items: baseline; gap: 8px;
}
.usecase-goal .arrow { color: var(--accent); }
@media (max-width: 720px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* Founder note */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.founder-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.founder-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(135deg, var(--bg-soft) 0 8px, var(--paper) 8px 16px);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-4);
}
.founder-meta {
  display: flex; flex-direction: column; gap: 2px;
}
.founder-meta .who { font-weight: 500; color: var(--ink); font-size: 14px; }
.founder-meta .role { font-size: 12.5px; color: var(--ink-3); }
.founder-body { display: flex; flex-direction: column; gap: 22px; max-width: 60ch; }
.founder-body p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.founder-body p::first-letter { font-family: var(--display); font-size: 1.4em; line-height: 1; padding-right: 2px; color: var(--ink); }
.founder-quote {
  font-family: var(--sans); font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2; color: var(--ink); font-weight: 500;
  letter-spacing: -0.025em;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.founder-quote em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); }
.signature { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 28px; color: var(--ink); }

@media (max-width: 880px) {
  .founder { grid-template-columns: 1fr; }
}

/* Waitlist */
.waitlist {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.waitlist::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.wait-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; position: relative; z-index: 1; }
.wait-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
}
.field input, .field textarea {
  font: inherit; font-family: var(--sans);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--paper);
}
.field textarea { min-height: 80px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; cursor: pointer; font: inherit; font-family: var(--sans);
  background: var(--bg); border: 1px solid var(--rule-2);
  color: var(--ink-2); font-size: 13px;
  padding: 8px 12px; border-radius: 999px;
  transition: all 140ms ease;
}
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-add {
  border-style: dashed; color: var(--ink-3);
}
.wait-side { display: flex; flex-direction: column; gap: 22px; }
.wait-side h3 { font-size: clamp(28px, 3vw, 40px); font-family: var(--display); line-height: 1.1; }
.wait-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.wait-bullet { display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); }
.wait-bullet .bn {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  flex: 0 0 24px;
}
.wait-bullet b { font-weight: 500; color: var(--ink); display: block; margin-bottom: 1px; font-size: 14.5px; }
.wait-fineprint {
  font-size: 12px; color: var(--ink-4); margin-top: 4px;
}

@media (max-width: 880px) {
  .wait-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Submitted state */
.wait-success {
  text-align: center;
  padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.wait-success .ok-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

/* Section header pattern */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.section-head .eyebrow .num {
  font-family: var(--mono); color: var(--accent);
}

/* Triage section ------------------------------ */
.triage {
  margin-top: 56px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.triage-head {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 92%, var(--ink) 8%));
}
.triage-col-h {
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 4px;
}
.triage-col-h:last-child { border-right: 0; }
.triage-col-h .gh-lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--accent); text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.triage-col-h .gh-lbl::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.triage-col-h .gh-title { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--ink); }
.triage-col-h .gh-meta { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.triage-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.triage-col {
  padding: 14px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px; min-height: 240px;
}
.triage-col:last-child { border-right: 0; }
.triage-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 12.5px; color: var(--ink-2);
  position: relative;
  animation: cardIn 600ms ease both;
}
.triage-card .who { font-weight: 500; color: var(--ink); }
.triage-card .role { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.triage-card .auto-tag {
  position: absolute; right: 8px; top: 8px;
  font-family: var(--mono); font-size: 9.5px;
  color: var(--accent); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 3px;
}
.triage-card .auto-tag::before { content: "⊹"; }
.triage-card .av-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--ink-3); flex: 0 0 26px;
}
@keyframes cardIn {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.triage-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--paper) 80%, var(--ink) 20% / 0%);
}
.triage-foot .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@media (max-width: 880px) {
  .triage-head, .triage-body { grid-template-columns: 1fr; }
  .triage-col-h, .triage-col { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* Slider (use cases) ---------------------------------- */
.slider-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 40px;
}
.slider-ctrl {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.slider-counter {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.slider-counter .sc-i { color: var(--ink); font-weight: 500; }
.slider-counter .sc-sep { opacity: 0.4; }
.slider-btns { display: flex; gap: 6px; }
.slider-btn {
  appearance: none; cursor: pointer; font: inherit;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  color: var(--ink-2); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 140ms ease;
}
.slider-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
.slider-track-wrap { overflow: hidden; border-radius: var(--radius); }
.slider-track {
  display: flex; gap: 16px;
  transition: transform 600ms cubic-bezier(.22,.61,.36,1);
}
.slide {
  flex: 0 0 100%;
  min-height: 300px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 44px 48px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-card);
}
.slide h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; max-width: 22ch; }
.slide p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.slide .usecase-num { font-size: 12px; }
.slide-more {
  background: linear-gradient(180deg, var(--paper), var(--bg-soft));
  position: relative; overflow: hidden;
}
.slide-more::after {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.slide-more h3 em { font-family: var(--display); font-style: italic; color: var(--accent); }
.more-cta {
  margin-top: auto;
  font-family: var(--mono); font-size: 13px;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 10px 14px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: all 160ms ease;
}
.more-cta:hover { background: var(--accent); color: var(--paper); }
.slider-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 28px;
}
.slider-dot {
  appearance: none; border: 0; cursor: pointer;
  width: 24px; height: 4px; border-radius: 2px;
  background: var(--rule-2);
  transition: all 200ms ease;
}
.slider-dot.on { background: var(--ink); width: 36px; }
@media (max-width: 720px) {
  .slider-head { flex-direction: column; align-items: flex-start; }
  .slide { padding: 32px 28px; }
}

/* Cohort callout (legacy, unused) */
.cohort-callout {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  margin: 64px 0 0;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.cohort-callout .cc-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.cohort-callout .cc-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.cohort-callout .cc-text b { color: var(--ink); font-weight: 600; }
.cohort-callout .cc-link {
  font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cohort-callout { grid-template-columns: 1fr; }
}

/* Ambient floating goal cycle */
.goal-rotator {
  font-family: var(--display); font-style: italic; color: var(--accent);
  display: inline-block;
  position: relative;
  min-width: 4ch;
}
.goal-rotator span {
  display: inline-block;
  animation: goalSwap 9s ease-in-out infinite;
}

/* small utility */
.u-mono { font-family: var(--mono); }
.u-muted { color: var(--ink-3); }
