/* ============================================================
   OBSERVANT — Design System
   Editorial · warm · calm · literary (the Ólafur hush)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens (warm, low-chroma) */
  --canvas:        oklch(0.985 0.006 78);
  --canvas-deep:   oklch(0.968 0.010 74);
  --surface:       oklch(0.972 0.013 72);
  --surface-2:     oklch(0.955 0.016 70);
  --ink:           oklch(0.255 0.013 56);
  --ink-2:         oklch(0.255 0.013 56);
  --text-primary:  oklch(0.265 0.013 56);
  --text-secondary:oklch(0.445 0.012 56);
  --text-muted:    oklch(0.595 0.010 60);
  --border:        oklch(0.895 0.011 72);
  --border-strong: oklch(0.835 0.013 70);
  --accent:        oklch(0.575 0.118 41);
  --accent-hover:  oklch(0.515 0.118 41);
  --accent-soft:   oklch(0.93 0.030 50);
  --accent-tint:   oklch(0.955 0.018 52);
  --success:       oklch(0.560 0.072 152);

  /* Dark band (used sparingly for contrast) */
  --night:         oklch(0.255 0.018 58);
  --night-2:       oklch(0.225 0.016 58);

  /* Type */
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.band-tint { background: var(--surface); }
.band-deep { background: var(--canvas-deep); }
.band-night { background: var(--night); color: oklch(0.93 0.008 70); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow.muted { color: var(--text-muted); }
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--text-primary); text-wrap: balance; }
.display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}
.h2 { font-size: clamp(2rem, 3.8vw, 3.05rem); line-height: 1.07; letter-spacing: -0.018em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.18; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--text-secondary); font-weight: 400; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.serif-em { font-family: var(--font-display); font-weight: 400; font-style: italic; color: var(--accent); }
em { font-style: italic; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.82em 1.4em;
  border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: oklch(0.985 0.01 70);
  box-shadow: 0 1px 2px oklch(0.4 0.05 40 / .25), 0 8px 24px -12px oklch(0.4 0.05 40 / .5);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1.5px); }
.btn-ghost { color: var(--text-primary); border: 1px solid var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text-secondary); transform: translateY(-1.5px); }
.btn-arrow svg { transition: transform .25s; }
.btn:hover .btn-arrow svg, .btn.btn-arrow:hover svg { transform: translateX(3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; color: var(--accent);
  font-size: 0.98rem;
}
.link-arrow svg { transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: oklch(0.985 0.006 78 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); background: oklch(0.985 0.006 78 / 0.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.nav-signin { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-signin:hover { color: var(--text-primary); }
@media (max-width: 560px) { .nav-signin { display: none; } }

/* wordmark */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.12em; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary); }
.wordmark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); align-self: center; margin-left: 1px; }
.wordmark.lg { font-size: 2.1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(3rem, 7vw, 5.25rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-glow { position: absolute; top: -8%; left: 50%; transform: translateX(-50%); width: min(880px, 92vw); height: 480px; background: radial-gradient(56% 56% at 50% 38%, oklch(0.93 0.030 50 / 0.32), transparent 72%); z-index: 0; pointer-events: none; }

/* centered copy block */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { text-align: left; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.55em; white-space: nowrap; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.hero-kicker .kdot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero h1 { margin-top: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.07; }
.hero h1 .ital { font-style: italic; }
.hero .lead { margin: 1.4rem 0 0; max-width: 34rem; font-size: clamp(1.08rem, 1.3vw, 1.2rem); }
.hero-actions { margin-top: 2.1rem; display: flex; align-items: center; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; }
.hero-join { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; font-size: 1rem; color: var(--text-primary); font-weight: 500; }
.hero-join strong { font-weight: 700; }
.hero-join svg { transition: transform .2s; }
.hero-join:hover svg { transform: translateX(3px); }

/* showcase row — screenshot (left) + metrics (right) */
.hero-showcase { margin-top: 0; }

/* polished product screenshot window */
.shot { position: relative; }
.shot-frame { background: oklch(0.99 0.004 80); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px oklch(0.3 0.02 60 / .05), 0 44px 74px -36px oklch(0.35 0.04 50 / .44), 0 16px 32px -22px oklch(0.35 0.04 50 / .24); }
.shot-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--border); background: oklch(0.974 0.006 76); }
.shot-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.shot-pill { display: inline-flex; align-items: center; gap: 0.4em; margin: 0 auto; padding: 0.32rem 0.9rem; background: var(--canvas); border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.shot-pill .shot-sep { color: var(--text-muted); margin: 0 0.1em; }
.shot-status { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--success); white-space: nowrap; flex-shrink: 0; }
.shot-status .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2.4s infinite; }
.wordmark.sm { font-size: 0.92rem; }
.wordmark.sm .dot { width: 4px; height: 4px; }
.panel.flush { border: none; border-radius: 0; box-shadow: none; padding: 1.1rem 1.15rem 1.25rem; background: transparent; }

/* ---------- hero demo: sequential 1:1 surfaces ---------- */
.demo-body { padding: 1rem 1.05rem 1.15rem; }
.demo-meta { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4; }
.demo-meta strong { color: var(--text-primary); font-weight: 600; }
.demo-rail { list-style: none; padding: 0; margin: 0.85rem 0 0; display: flex; gap: 0.5rem; }
.rail-step { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.55rem; border: 1px solid var(--border); border-radius: 10px; background: var(--canvas); opacity: 0.46; transition: opacity .45s, border-color .45s, background .45s; }
.rail-step.is-done { opacity: 0.74; }
.rail-step.is-active { opacity: 1; border-color: var(--accent-soft); background: var(--accent-tint); }
.rs-ava { width: 22px; height: 22px; border-radius: 50%; color: oklch(0.99 0 0); display: grid; place-items: center; font-size: 0.62rem; font-weight: 600; flex-shrink: 0; }
.rs-meta { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.rs-meta b { font-size: 0.76rem; color: var(--text-primary); }
.rs-meta i { font-family: var(--font-mono); font-size: 0.55rem; font-style: normal; color: var(--text-muted); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo-stage { position: relative; height: 320px; margin-top: 0.85rem; }
.scene { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.surf { height: 100%; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; position: relative; }

/* surface: in your product (in-app messenger) */
.surf-app { background: linear-gradient(160deg, oklch(0.975 0.012 72), oklch(0.955 0.016 70)); }
.surf-cap { position: absolute; top: 0.65rem; left: 0.75rem; font-family: var(--font-mono); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.iw { position: absolute; right: 0.8rem; bottom: 0.8rem; width: min(82%, 290px); background: oklch(0.99 0.004 80); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 38px -18px oklch(0.4 0.04 50 / .42); overflow: hidden; }
.iw-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
.iw-ava { width: 26px; height: 26px; border-radius: 50%; color: oklch(0.99 0 0); display: grid; place-items: center; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; }
.iw-ava.sm { width: 22px; height: 22px; font-size: 0.6rem; }
.iw-id { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.iw-id b { font-size: 0.79rem; color: var(--text-primary); }
.iw-id i { font-family: var(--font-mono); font-size: 0.57rem; font-style: normal; color: var(--text-muted); }
.iw-body { padding: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bub { font-size: 0.81rem; line-height: 1.4; padding: 0.55rem 0.7rem; border-radius: 12px; }
.bub.them { background: var(--surface); color: var(--text-primary); border-bottom-left-radius: 4px; }
.bub-type { display: inline-flex; gap: 4px; padding: 0.55rem 0.65rem; background: var(--surface); border-radius: 12px; width: fit-content; }
.bub-type i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typedot 1.4s infinite; }
.bub-type i:nth-child(2) { animation-delay: .2s; }
.bub-type i:nth-child(3) { animation-delay: .4s; }

/* surface: browser companion (Chrome extension popup) */
.surf-br { background: var(--surface); }
.br-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; background: var(--canvas-deep); border-bottom: 1px solid var(--border); }
.br-traffic { display: inline-flex; gap: 5px; flex-shrink: 0; }
.br-traffic i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.br-omni { flex: 1; display: flex; align-items: center; justify-content: space-between; background: var(--canvas); border: 1px solid var(--border); border-radius: 100px; padding: 0.28rem 0.8rem; font-size: 0.71rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; }
.br-puzzle { color: var(--accent); font-size: 0.9rem; margin-left: 0.5rem; }
.br-page { padding: 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.br-skel { height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--canvas)); }
.br-skel.w1 { width: 72%; } .br-skel.w2 { width: 92%; } .br-skel.w3 { width: 54%; }
.ext { position: absolute; top: 2.7rem; right: 0.7rem; width: min(84%, 284px); background: var(--canvas); border: 1px solid var(--border-strong); border-radius: 13px; box-shadow: 0 22px 44px -16px oklch(0.35 0.04 50 / .5); padding: 0.7rem 0.8rem; }
.ext::before { content: ""; position: absolute; top: -6px; right: 26px; width: 11px; height: 11px; background: var(--canvas); border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); transform: rotate(45deg); }
.ext-head { display: flex; align-items: center; gap: 0.5rem; }
.ext-msg { margin-top: 0.55rem; font-size: 0.81rem; line-height: 1.42; color: var(--text-primary); }
.ext-act { margin-top: 0.7rem; display: flex; align-items: center; gap: 0.55rem; }
.ext-btn { background: var(--accent); color: oklch(0.99 0 0); font-size: 0.72rem; font-weight: 600; padding: 0.36rem 0.85rem; border-radius: 100px; }
.ext-skip { color: var(--text-muted); font-size: 0.72rem; }
.scene[data-i="1"].is-active .ext { animation: extIn .5s .15s both; }

/* surface: over email (history → scheduler) */
.surf-em { background: var(--canvas); display: flex; flex-direction: column; }
.em-top { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.em-back { color: var(--text-muted); font-size: 1.05rem; line-height: 1; }
.em-subj { font-size: 0.79rem; font-weight: 600; color: var(--text-primary); }
.em-thr { padding: 0.65rem 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; min-height: 0; }
.erow { display: flex; gap: 0.45rem; align-items: flex-end; }
.erow.me { flex-direction: row-reverse; }
.ebub { font-size: 0.77rem; line-height: 1.36; padding: 0.45rem 0.65rem; border-radius: 12px; background: var(--surface); color: var(--text-primary); max-width: 82%; }
.ebub.me { background: var(--accent-tint); }
.ebub i { display: block; margin-top: 0.18rem; font-family: var(--font-mono); font-size: 0.53rem; font-style: normal; color: var(--text-muted); }
.sched { flex-shrink: 0; border-top: 1px solid var(--border); padding: 0.55rem 0.8rem 0.65rem; background: var(--surface); }
.scene[data-i="2"].is-active .sched { animation: schedUp .55s .35s both; }
.sched-h { font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.sched-days, .sched-slots { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.sched-days span, .sched-slots span { flex: 1; text-align: center; font-size: 0.71rem; padding: 0.32rem 0; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); }
.sched-days .on, .sched-slots .on { background: var(--canvas); border-color: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.sched-go { margin-top: 0.5rem; text-align: center; background: var(--accent); color: oklch(0.99 0 0); font-size: 0.74rem; font-weight: 600; padding: 0.42rem; border-radius: 9px; }
@keyframes extIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes schedUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@media (max-width: 480px) {
  .demo-stage { height: 320px; }
  .rs-meta i { display: none; }
}

/* metrics column */
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: clamp(2.75rem, 5vw, 4.25rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--border); text-align: left; }
@media (max-width: 880px) {
  /* single column that can shrink below the screenshot's min-content (prevents page-wide overflow) */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 7vw, 2.75rem); }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-showcase, .shot, .shot-frame { min-width: 0; width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; gap: 0; }
  .hero-metrics .metric { padding: 1.15rem 0 1.15rem 1.3rem; border-top: 1px solid var(--border); }
  .hero-metrics .metric:first-child { border-top: none; }
}
.nav-burger { display: none; }
@media (max-width: 480px) {
  /* keep the screenshot header tidy on small screens */
  .shot-status { display: none; }
  .panel.flush { padding: 0.95rem 0.95rem 1.1rem; }
  .hero { padding-top: clamp(2rem, 6vw, 3rem); }
}
.metric { padding-left: 1.3rem; border-left: 2px solid var(--accent-soft); }
.metric .num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.1vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; color: var(--text-primary); display: flex; align-items: baseline; gap: 0.14em; }
.metric .num .unit { font-size: 0.4em; letter-spacing: 0; color: var(--text-muted); font-weight: 500; }
.metric .num .accent { color: var(--accent); }
.metric .lbl { margin-top: 0.55rem; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.45; }

/* ============================================================
   PILL CHAT MOCKUP
   ============================================================ */
.chat {
  background: oklch(0.99 0.004 80);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 1px 2px oklch(0.3 0.02 60 / .04), 0 30px 60px -28px oklch(0.35 0.04 50 / .35), 0 12px 24px -18px oklch(0.35 0.04 50 / .25);
  overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--border); background: oklch(0.982 0.006 78); }
.chat-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: oklch(0.99 0 0); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; flex-shrink: 0; }
.chat-head .who { font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.chat-head .sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.02em; }
.chat-head .status { margin-left: auto; display: flex; align-items: center; gap: 0.4em; font-family: var(--font-mono); font-size: 0.66rem; color: var(--success); text-transform: uppercase; letter-spacing: 0.08em; }
.chat-head .status .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

.chat-body { padding: 1.15rem; display: flex; flex-direction: column; gap: 0.7rem; min-height: 280px; }
.msg { max-width: 82%; opacity: 0; transform: translateY(8px); animation: msgIn .5s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg-bubble { padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; }
.msg.them { align-self: flex-start; }
.msg.them .msg-bubble { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text-primary); }
.msg.me { align-self: flex-end; }
.msg.me .msg-bubble { background: var(--accent); color: oklch(0.99 0.005 70); border-bottom-right-radius: 5px; }
.msg .meta { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); margin: 0.3rem 0.3rem 0; letter-spacing: 0.02em; }
.msg.me .meta { text-align: right; }

/* relay / system note inside chat */
.msg-relay { align-self: center; max-width: 92%; opacity: 0; transform: translateY(8px); animation: msgIn .5s cubic-bezier(.2,.7,.3,1) forwards; }
.relay-card {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  border-radius: 14px; padding: 0.7rem 0.85rem;
}
.relay-card .tag { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 500; }
.relay-card .rtext { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.45; margin-top: 0.15rem; }

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.8rem 0.95rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typedot 1.3s infinite; }
.typing span:nth-child(2){ animation-delay: .18s; }
.typing span:nth-child(3){ animation-delay: .36s; }
@keyframes typedot { 0%,60%,100%{ transform: translateY(0); opacity: .4; } 30%{ transform: translateY(-4px); opacity: 1; } }

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 44ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 1.1rem; }
.section-head .lead { margin-top: 1.3rem; }
/* two-column section header — heading left, intro right (uses full width) */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-head .h2 { margin-top: 1rem; }
.split-head .lead { max-width: 50ch; }
@media (max-width: 820px) { .split-head { grid-template-columns: 1fr; gap: 1.3rem; } }
/* unboxed 2-up list (caps style, no borders/boxes) */
.caps-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
@media (max-width: 720px) { .caps-2up { grid-template-columns: 1fr; gap: 1.4rem; } }
/* free-trial banner (pricing) */
.trial-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--accent-tint); border: 1px solid var(--accent-soft); border-radius: 14px; padding: 1.05rem 1.4rem; max-width: 920px; margin: 0 auto 2rem; }
.trial-banner .tb-l { display: flex; align-items: baseline; gap: 0.7rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.tb-tag { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--canvas); border: 1px solid var(--accent-soft); border-radius: 100px; padding: 0.25rem 0.6rem; flex-shrink: 0; }
.tb-text { color: var(--text-primary); font-size: 0.98rem; line-height: 1.45; }

/* ---------- social proof strip ---------- */
.proof { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.proof-logos { margin-top: 1.6rem; display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.proof-logos .logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--text-secondary); opacity: 0.78; letter-spacing: -0.01em; transition: opacity .2s; }
.proof-logos .logo:hover { opacity: 1; }

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--text-primary); }
.stat .num .accent { color: var(--accent); }
.stat .lbl { margin-top: 0.7rem; font-size: 0.98rem; color: var(--text-secondary); max-width: 24ch; }
.stat { padding-left: 1.4rem; border-left: 2px solid var(--accent-soft); }

/* ---------- cards ---------- */
.card {
  background: oklch(0.99 0.004 80);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px oklch(0.35 0.04 50 / .4); border-color: var(--border-strong); }
.card .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card .h3 { margin-top: 0.9rem; }
.card p { margin-top: 0.7rem; color: var(--text-secondary); font-size: 0.97rem; }
.card-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-tint); border: 1px solid var(--accent-soft); display: grid; place-items: center; color: var(--accent); margin-bottom: 1.1rem; }

/* ---------- two-column block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.flip .split-text { order: 2; }
.split-text { max-width: 46ch; }

/* ---------- who: power users ---------- */
.who-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }

/* ---------- diary / timeline ---------- */
.diary { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.diary-row { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-bottom: 2rem; position: relative; }
.diary-row:last-child { padding-bottom: 0; }
.diary-rail { display: flex; flex-direction: column; align-items: center; }
.diary-num { width: 38px; height: 38px; border-radius: 50%; background: var(--canvas); border: 1.5px solid var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; flex-shrink: 0; z-index: 1; }
.diary-line { width: 1.5px; flex: 1; background: var(--border); margin-top: 4px; }
.diary-row:last-child .diary-line { display: none; }
.diary-content { padding-top: 0.3rem; }
.diary-content .h3 { font-size: 1.25rem; }
.diary-content p { margin-top: 0.45rem; color: var(--text-secondary); font-size: 0.98rem; max-width: 52ch; }

/* ============================================================
   SYNTHESIS SNAPSHOT MOCKUP
   ============================================================ */
.synth {
  background: oklch(0.99 0.004 80);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 1px 2px oklch(0.3 0.02 60 / .04), 0 30px 60px -30px oklch(0.35 0.04 50 / .32);
  overflow: hidden;
}
.synth-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); }
.synth-head .dot3 { display: flex; gap: 5px; }
.synth-head .dot3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.synth-head .title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; margin-left: 0.3rem; }
.synth-head .badge { margin-left: auto; font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-soft); padding: 0.25em 0.65em; border-radius: 100px; }
.synth-body { padding: 1.4rem 1.4rem 1.5rem; }
.synth-q { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.3; color: var(--text-primary); }
.synth-theme { margin-top: 1.3rem; }
.synth-theme .t-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.synth-theme .t-name { font-weight: 600; font-size: 0.98rem; }
.synth-theme .t-pct { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.synth-bar { height: 7px; border-radius: 100px; background: var(--surface-2); margin-top: 0.5rem; overflow: hidden; }
.synth-bar i { display: block; height: 100%; background: var(--accent); border-radius: 100px; width: 0; transition: width 1.1s cubic-bezier(.3,.7,.3,1); }
.synth-theme.dim .synth-bar i { background: var(--border-strong); }
.synth-theme.dim .t-pct { color: var(--text-muted); }
.synth-quote { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--surface); border-radius: 12px; border-left: 2px solid var(--accent); }
.synth-quote p { font-family: var(--font-display); font-style: italic; font-size: 0.98rem; color: var(--text-primary); line-height: 1.45; }
.synth-quote .src { margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* ---------- capabilities list ---------- */
.caps { display: grid; gap: 0; margin-top: 0.5rem; }
.cap { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 1.15rem 0; border-top: 1px solid var(--border); transition: padding-left .25s; }
.cap:hover { padding-left: 0.5rem; }
.cap:last-child { border-bottom: 1px solid var(--border); }
.cap .cap-k { font-family: var(--font-mono); font-size: 1.05rem; line-height: 1; color: var(--accent); width: 1.6ch; text-align: center; }
.cap.cap-open .cap-name { color: var(--text-muted); font-style: italic; }
.cap.cap-open .cap-k { color: var(--text-muted); }
.cap .cap-name { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text-primary); }
.cap .cap-desc { font-size: 0.9rem; color: var(--text-muted); text-align: right; max-width: 30ch; justify-self: end; }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.price-card { background: oklch(0.99 0.004 80); border: 1px solid var(--border); border-radius: 18px; padding: 1.9rem; display: flex; flex-direction: column; }
.price-card.feature { background: var(--night); color: oklch(0.93 0.008 70); border-color: var(--night); }
.price-card .tier { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.price-card.feature .tier { color: oklch(0.78 0.04 60); }
.price-card .amt { font-family: var(--font-display); font-size: 2.3rem; margin-top: 1rem; line-height: 1; letter-spacing: -0.02em; }
.price-card.feature .amt { color: oklch(0.96 0.008 70); }
.price-card .amt small { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.price-card.feature .amt small { color: oklch(0.74 0.03 60); }
.price-card .pdesc { margin-top: 0.9rem; font-size: 0.95rem; color: var(--text-secondary); }
.price-card.feature .pdesc { color: oklch(0.82 0.01 70); }
.price-feats { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.price-feats li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-secondary); }
.price-card.feature .price-feats li { color: oklch(0.85 0.01 70); }
.price-feats li svg { flex-shrink: 0; margin-top: 0.2em; color: var(--accent); }
.price-card.feature .price-feats li svg { color: oklch(0.78 0.08 50); }
.feature-flag { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; max-width: 760px; margin: 2.5rem auto 0; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; text-align: left; font-family: var(--font-display); font-size: 1.18rem; color: var(--text-primary); }
.faq-q .plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--accent); transition: transform .3s; }
.faq-q .plus::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq-q .plus::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.3,.7,.3,1); }
.faq-a-inner { padding-bottom: 1.5rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; max-width: 64ch; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta-final { text-align: center; }
.cta-final .display { max-width: 18ch; margin: 1.4rem auto 0; }
.cta-final .lead { max-width: 46ch; margin: 1.5rem auto 0; }
.cta-final .hero-actions { justify-content: center; margin-top: 2.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 3.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { font-size: 0.92rem; color: var(--text-secondary); transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer .tagline { margin-top: 1rem; font-size: 0.92rem; color: var(--text-muted); max-width: 32ch; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   HERO PANEL (live 1:1s)
   ============================================================ */
.panel {
  background: oklch(0.99 0.004 80);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 1px 2px oklch(0.3 0.02 60 / .04), 0 34px 64px -30px oklch(0.35 0.04 50 / .38), 0 12px 24px -18px oklch(0.35 0.04 50 / .22);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; line-height: 1.1; letter-spacing: -0.01em; }
.panel-sub { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.02em; margin-top: 0.25rem; }
.panel .status { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-mono); font-size: 0.64rem; color: var(--success); text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0; }
.panel .status .live-dot, .chat-head .status .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2.4s infinite; }
.panel-meta { margin-top: 1.1rem; font-size: 0.9rem; color: var(--text-secondary); }
.panel-meta strong { color: var(--text-primary); font-weight: 600; }
.panel-rows { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.panel-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.55rem; border-radius: 12px; transition: background .2s; }
.panel-row:hover { background: var(--surface); }
.panel-row.dim { opacity: 0.72; }
.prow-ava { width: 30px; height: 30px; border-radius: 50%; color: oklch(0.99 0 0); display: grid; place-items: center; font-size: 0.78rem; font-weight: 600; flex-shrink: 0; }
.prow-main { flex: 1; min-width: 0; }
.prow-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.prow-act { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.prow-dot.live { background: var(--success); box-shadow: 0 0 0 3px oklch(0.56 0.072 152 / .16); }
.panel-foot { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.panel-foot svg { color: var(--success); flex-shrink: 0; }
.panel-foot strong { color: var(--text-primary); font-weight: 600; }

/* ---------- social proof founder line ---------- */
.founder-line { margin: 1.8rem auto 0; max-width: 64ch; text-align: center; font-size: 0.98rem; color: var(--text-secondary); line-height: 1.6; }
.founder-line strong { color: var(--text-primary); font-weight: 600; }

/* ---------- cohort composition card ---------- */
.cohort-card { background: oklch(0.99 0.004 80); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; box-shadow: 0 24px 50px -34px oklch(0.35 0.04 50 / .35); }
.cohort-head { margin-bottom: 1.3rem; }
.cohort { padding: 0.9rem 0; border-top: 1px solid var(--border); }
.cohort:first-of-type { border-top: none; padding-top: 0; }
.cohort-top { display: flex; align-items: baseline; justify-content: space-between; }
.cohort-name { font-weight: 600; font-size: 0.98rem; color: var(--text-primary); }
.cohort-n { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-secondary); }
.cohort-bar { height: 7px; border-radius: 100px; background: var(--surface-2); margin-top: 0.55rem; overflow: hidden; }
.cohort-bar i { display: block; height: 100%; border-radius: 100px; background: var(--accent); }
.cohort-tag { margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.01em; }

/* ---------- who list ---------- */
.who-list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 1.3rem; }
.who-list li { display: flex; flex-direction: column; gap: 0.3rem; padding-left: 1.2rem; border-left: 2px solid var(--accent-soft); }
.who-list-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.75rem; margin-top: 2.9rem; }
@media (max-width: 720px) { .who-list-2up { grid-template-columns: 1fr; gap: 1.4rem; } }
#who .section-head { max-width: 64ch; }
#who .section-head .lead { margin-top: 1.6rem; }
.who-k { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.who-d { font-size: 0.95rem; color: var(--text-secondary); }

/* ---------- chat caption ---------- */
.chat-caption { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); line-height: 1.5; max-width: 42ch; }

/* ---------- price note ---------- */
.price-note { text-align: center; margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .msg-relay { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-showcase { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-metrics { flex-direction: row; flex-wrap: wrap; gap: 1.5rem 2rem; }
  .hero-metrics .metric { flex: 1 1 28%; min-width: 150px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.flip .split-text { order: 0; }
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat { padding-block: 0.2rem; }
  .price-grid { grid-template-columns: 1fr; }
  .who-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-metrics { flex-direction: column; gap: 1.25rem; }
  .cap { grid-template-columns: auto 1fr; }
  .cap .cap-desc { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   hero conversation stream — many 1:1s at once (variety demo)
   ============================================================ */
.hero-stream { margin-top: 1.05rem; display: flex; flex-direction: column; gap: 0.7rem; }
.mini { background: var(--canvas); border: 1px solid var(--border); border-radius: 14px; padding: 0.8rem 0.85rem; }
.mini-top { display: flex; align-items: center; gap: 0.55rem; }
.mini-ava { width: 26px; height: 26px; border-radius: 50%; color: oklch(0.99 0 0); display: grid; place-items: center; font-size: 0.72rem; font-weight: 600; flex-shrink: 0; }
.mini-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.mini-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.mini-ctx { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.02em; }
.mini-tag { font-family: var(--font-mono); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); background: var(--accent-tint); padding: 0.22rem 0.5rem; border-radius: 100px; flex-shrink: 0; white-space: nowrap; }
.mini-msg { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; }
.mini-reply { display: inline-block; background: var(--accent-tint); color: var(--text-primary); font-size: 0.8rem; padding: 0.4rem 0.7rem; border-radius: 12px 12px 4px 12px; }
.mini-typing { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); }
.mini-typing .dots { display: inline-flex; gap: 3px; }
.mini-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typedot 1.4s infinite; }
.mini-typing i:nth-child(2) { animation-delay: .2s; }
.mini-typing i:nth-child(3) { animation-delay: .4s; }

/* ============================================================
   "stop chasing feedback" — scattered scramble chips
   ============================================================ */
.scramble { position: relative; height: 272px; margin-top: 1.4rem; }
.pile { position: absolute; top: var(--t); left: var(--l); width: 72%; max-width: 320px; background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 28px -14px oklch(0.35 0.04 50 / .42); padding: 0.62rem 0.78rem; opacity: 1; transform: translateY(0) rotate(var(--r)); transition: opacity .55s ease var(--d), transform .65s cubic-bezier(.2,.7,.3,1) var(--d); }
.reveal:not(.in) .scramble .pile { opacity: 0; transform: translateY(-42px) rotate(0deg) scale(.96); }
.pile-top { display: flex; align-items: center; gap: 0.42rem; font-size: 0.72rem; color: var(--text-secondary); }
.pl-logo { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; color: oklch(0.99 0 0); flex-shrink: 0; }
.pl-logo.x { background: oklch(0.2 0.01 60); }
.pl-logo.ph { background: oklch(0.62 0.19 32); }
.pl-ava { width: 18px; height: 18px; border-radius: 50%; background: oklch(0.6 0.09 220); color: oklch(0.99 0 0); display: grid; place-items: center; font-size: 0.6rem; font-weight: 600; flex-shrink: 0; }
.pl-name { font-weight: 600; color: var(--text-primary); }
.pl-time { color: var(--text-muted); }
.pl-up { color: oklch(0.62 0.19 32); font-weight: 700; margin-left: auto; font-size: 0.66rem; }
.pile-text { margin-top: 0.4rem; font-size: 0.78rem; line-height: 1.35; color: var(--text-primary); }
.pile-text.sm { font-size: 0.74rem; }
.pile-stat { margin-top: 0.5rem; display: flex; gap: 0.9rem; font-size: 0.64rem; color: var(--text-muted); }
.pile-bub { margin-top: 0.4rem; font-size: 0.77rem; background: var(--surface); border-radius: 10px; padding: 0.45rem 0.6rem; color: var(--text-primary); }
.pile-scale { margin-top: 0.45rem; display: flex; gap: 3px; }
.pile-scale i { flex: 1; height: 15px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.pile-note { margin-top: 0.42rem; font-size: 0.62rem; color: var(--text-muted); }

/* ---------- MCP / coding-agent flow (value section) ---------- */
.ide { background: var(--night); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 64px -30px oklch(0.3 0.03 50 / .6); font-family: var(--font-mono); }
.ide-bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; background: var(--night-2); border-bottom: 1px solid oklch(0.34 0.014 58); }
.ide-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.ide-dots i { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.45 0.02 58); }
.ide-title { font-size: 0.72rem; color: oklch(0.78 0.012 75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ide-mcp { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.66rem; color: oklch(0.8 0.07 152); white-space: nowrap; flex-shrink: 0; }
.ide-mcp .live-dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.72 0.13 152); animation: pulse 2.4s infinite; }
.ide-body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.77rem; line-height: 1.5; }
.ln { color: oklch(0.82 0.012 75); }
.ln.user { color: oklch(0.94 0.01 75); }
.ln.tool { color: oklch(0.74 0.10 45); }
.ln.out { color: oklch(0.82 0.05 152); }
.ln.agent { color: oklch(0.68 0.013 70); }
.ln.agent.ok { color: oklch(0.78 0.09 152); }
.ide-prd { margin: 0.25rem 0 0.1rem; border: 1px solid oklch(0.36 0.014 58); border-radius: 9px; padding: 0.6rem 0.7rem; background: oklch(0.295 0.016 58); display: flex; flex-direction: column; gap: 0.25rem; }
.prd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.2rem; }
.prd-k { color: oklch(0.88 0.05 75); font-size: 0.73rem; }
.prd-tag { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.06em; color: oklch(0.72 0.08 152); }
.prd-ln { color: oklch(0.9 0.012 75); font-size: 0.73rem; }
.prd-ln.dim { color: oklch(0.66 0.012 70); }
.mcp-strip { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.mcp-cmd { font-family: var(--font-mono); font-size: 0.82rem; background: var(--night); color: oklch(0.92 0.012 75); padding: 0.55rem 0.85rem; border-radius: 9px; white-space: nowrap; }
.mcp-prompt { color: oklch(0.72 0.12 45); margin-right: 0.6em; }
.mcp-link { font-weight: 600; color: var(--accent); font-size: 0.92rem; white-space: nowrap; }
.mcp-link:hover { color: var(--accent-hover); }

/* ---------- mobile nav (hamburger, CSS-only toggle) ---------- */
@media (max-width: 940px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; cursor: pointer; padding: 0; }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px -18px oklch(0.3 0.02 60 / .35);
    padding: 0.2rem var(--gutter) 0.7rem;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  }
  .nav-links a { padding: 0.9rem 0.1rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle:checked ~ .nav-links { max-height: 340px; opacity: 1; pointer-events: auto; padding: 0.2rem var(--gutter) 0.9rem; }
  .nav-toggle:checked ~ .nav-cta .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-cta .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-cta .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
