/* ==========================================================================
   Quill — AI meeting-notes assistant
   1. Tokens  2. Reset  3. Base type  4. Layout  5. Components  6. Sections
   7. Motion  8. Responsive
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  --bg: #08090C;
  --surface: #101319;
  --surface-2: #0C0F14;
  --text: #F0F2F6;
  --muted: #8A93A3;
  --border: #1F242E;
  --accent: #4ADE9B;
  --on-accent: #04120B;
  --danger: #E8836B;

  --hair: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --accent-dim: rgba(74, 222, 155, 0.12);
  --accent-glow: rgba(74, 222, 155, 0.07);
  --inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --font-display: 'Space Grotesk', 'Segoe UI Variable Display', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI Variable Text', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --r-panel: 12px;
  --r-ctrl: 8px;
  --r-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

/* ----------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
body { min-height: 100dvh; overflow-x: hidden; }
[id] { scroll-margin-top: 96px; }

/* ------------------------------------------------------------- 3. BASE TYPE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.05rem, 4vw, 3.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lede { font-size: 1.0625rem; line-height: 1.65; }

a:not(.btn):not(.logo) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-ctrl); font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ----------------------------------------------------------------- 4. LAYOUT */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--sp-6); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.band { background: var(--surface-2); border-block: 1px solid var(--border); }

.sec-head { max-width: 660px; margin-bottom: var(--sp-12); }
.sec-head .mono { display: block; margin-bottom: var(--sp-4); color: var(--accent); }
.sec-head h2 + p { margin-top: var(--sp-4); }
.sec-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--sp-4); }
.divider { height: 1px; background: var(--border); border: 0; }

/* ------------------------------------------------------------- 5. COMPONENTS */
.glass {
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--inset-top);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  box-shadow: var(--inset-top);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 46px; padding: 0 var(--sp-6);
  border: 1px solid transparent; border-radius: var(--r-ctrl);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform 250ms var(--ease), background 250ms var(--ease),
              border-color 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(74, 222, 155, 0);
  animation: ctaPulse 3.6s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-dim); }
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-ghost {
  background: var(--glass); color: var(--text);
  border-color: var(--hair);
}
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(74, 222, 155, 0.4); }
.btn-ghost:active { transform: scale(0.985); }
.btn-sm { min-height: 36px; padding: 0 var(--sp-4); font-size: 0.8125rem; }
.btn-icon { width: 16px; height: 16px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--hair); background: var(--glass);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.chip-accent { color: var(--accent); border-color: rgba(74, 222, 155, 0.32); background: var(--accent-dim); }

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  flex: none; box-shadow: 0 0 0 3px var(--accent-dim);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 6. NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), background 250ms var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; gap: var(--sp-8);
  min-height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.logo-mark { width: 22px; height: 22px; flex: none; }
.logo-mark path, .logo-mark circle, .logo-mark rect { vector-effect: non-scaling-stroke; }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); margin-left: auto; }
.nav-links a {
  font-size: 0.875rem; color: var(--muted); transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  background: var(--glass); border: 1px solid var(--hair); border-radius: var(--r-ctrl);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-mobile {
  display: none; padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile a { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 1rem; }
.nav-mobile .btn { margin-top: var(--sp-4); width: 100%; }

/* ---------------------------------------------------------------- 7. HERO */
.hero { position: relative; padding-block: clamp(40px, 4.6vw, 68px) clamp(48px, 6vw, 84px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; right: 4%; width: 780px; height: 780px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-split {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-16);
  align-items: center;
}
.hero-copy .mono { display: block; margin-bottom: var(--sp-6); color: var(--accent); }
.hero-copy h1 { max-width: 18ch; }
.hero-copy .lede { margin-top: var(--sp-6); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero-note { margin-top: var(--sp-4); font-size: 0.8125rem; color: var(--muted); }

/* hero artifact card */
.artifact { position: relative; transform: rotate(-0.6deg); }
.artifact::before {
  content: ''; position: absolute; inset: -18% -8% -12% -8%;
  background: radial-gradient(ellipse at 60% 40%, var(--accent-glow), transparent 68%);
  z-index: -1; pointer-events: none;
}
.win-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px var(--sp-4); border-bottom: 1px solid var(--border);
}
.win-bar .mono { letter-spacing: 0.06em; }
.win-bar .growth { margin-left: auto; }
.win-dots { display: flex; gap: 5px; }
.win-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.artifact-body { padding: var(--sp-6); display: grid; gap: var(--sp-4); }
.art-block { display: grid; gap: var(--sp-2); }
.art-label { display: flex; align-items: center; gap: var(--sp-2); }
.art-label .mono { color: var(--muted); }
.art-label .rule { flex: 1; height: 1px; background: var(--border); }
.art-line { font-size: 0.875rem; color: var(--text); line-height: 1.5; }
.art-list { display: grid; gap: 10px; }
.art-item {
  display: grid; grid-template-columns: 15px 1fr; gap: 10px;
  font-size: 0.875rem; color: var(--text); align-items: start;
}
.art-item svg { width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.art-item .due { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.04em; }
.artifact-foot {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border);
}

/* spec strip */
.spectrum { border-block: 1px solid var(--border); background: var(--surface-2); }
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-cell { padding: var(--sp-6) var(--sp-6); border-left: 1px solid var(--border); }
.spec-cell:first-child { border-left: 0; padding-left: 0; }
.spec-cell .k { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.spec-cell .k small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0; }
.spec-cell .v { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--muted); }

/* ---------------------------------------------------------------- 8. DEMO */
.demo-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.demo-tab {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 42px; padding: 0 var(--sp-4);
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 0.875rem; color: var(--muted); cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.demo-tab:hover { color: var(--text); border-color: #2C3340; }
.demo-tab[aria-selected="true"] { color: var(--accent); border-color: rgba(74, 222, 155, 0.45); background: var(--accent-dim); }
.demo-tab .dur { font-family: var(--font-mono); font-size: 0.6875rem; opacity: 0.75; }

.demo-shell { overflow: hidden; }
.demo-bar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.demo-bar .status { color: var(--text); letter-spacing: 0.08em; }
.demo-bar .spacer { flex: 1; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transition: background 300ms var(--ease), box-shadow 300ms var(--ease); }
.live-dot.is-live { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); animation: blink 1.4s ease-in-out infinite; }
.live-dot.is-done { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; }
.demo-col { min-width: 0; display: flex; flex-direction: column; }
.demo-col + .demo-col { border-left: 1px solid var(--border); }
.col-head {
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.col-head .mono { letter-spacing: 0.1em; }
.transcript, .minutes { padding: var(--sp-4); height: 392px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.transcript::-webkit-scrollbar, .minutes::-webkit-scrollbar { width: 8px; }
.transcript::-webkit-scrollbar-thumb, .minutes::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.t-line { display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-3); padding: 7px 0; opacity: 0; transform: translateY(6px); }
.t-line.is-in { animation: lineIn 420ms var(--ease) forwards; }
.t-line .t { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); padding-top: 3px; letter-spacing: 0.02em; }
.t-line .who { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2px; }
.t-line .txt { font-size: 0.875rem; color: var(--text); line-height: 1.55; }
.t-line.ambiguous .txt { border-left: 2px solid var(--danger); padding-left: 10px; margin-left: -12px; }

.m-block { padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(8px); }
.m-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.m-block.is-in { animation: lineIn 480ms var(--ease) forwards; }
.m-block > .mono { display: block; margin-bottom: var(--sp-3); }
.m-block.summary p { font-size: 0.9375rem; color: var(--text); line-height: 1.6; }
.m-list { display: grid; gap: 10px; }
.m-list li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; font-size: 0.875rem; color: var(--text); align-items: start; }
.m-list li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); flex: none; }
.owner { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.owner .av {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--glass-2); border: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 0.5625rem; color: var(--text);
  display: grid; place-items: center; letter-spacing: 0;
}
.owner .mono { font-size: 0.625rem; text-transform: none; letter-spacing: 0.03em; }
.owner .due2 { color: var(--muted); }
.flag {
  display: grid; grid-template-columns: 16px 1fr; gap: 9px;
  font-size: 0.8125rem; color: var(--muted); align-items: start;
  padding: 9px 11px; border: 1px dashed rgba(232, 131, 107, 0.4);
  background: rgba(232, 131, 107, 0.06); border-radius: var(--r-ctrl);
}
.flag svg { width: 16px; height: 16px; color: var(--danger); margin-top: 2px; }
.flag + .flag { margin-top: 10px; }
.demo-foot {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.demo-foot span { color: var(--muted); }
.demo-foot b { color: var(--text); font-weight: 500; }
.m-placeholder { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- 9. BENTO */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
.bento-cell {
  position: relative; overflow: hidden;
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.bento-cell::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(74, 222, 155, 0.09) 50%, transparent 62%);
  transform: translateX(-115%); transition: transform 780ms var(--ease);
}
.bento-cell:hover { border-color: rgba(74, 222, 155, 0.3); transform: translateY(-2px); }
.bento-cell:hover::after { transform: translateX(115%); }
.bento-cell > .mono { color: var(--accent); }
.bento-cell p { font-size: 0.875rem; }
.b-a { grid-column: span 4; }
.b-b { grid-column: span 2; }
.b-c { grid-column: span 2; }
.b-d { grid-column: span 4; }
.b-e { grid-column: span 6; }
.bento-cell code {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px;
}
.trace {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.9; color: var(--muted);
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  border-radius: var(--r-ctrl); padding: var(--sp-3) var(--sp-4); overflow-x: auto;
}
.trace .t { color: var(--muted); }
.trace .w { color: var(--text); }
.trace .ok { color: var(--accent); }
.trace .bad { color: var(--danger); }
.bento-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: auto; }

/* ---------------------------------------------------------------- 10. LIMITS */
.limits-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--sp-16); align-items: start; }
.limits-copy h2 { max-width: 18ch; }
.limits-copy .lede { margin-top: var(--sp-4); max-width: 40ch; }
.limits-stamp {
  margin-top: var(--sp-8); padding: var(--sp-4);
  border: 1px solid rgba(232, 131, 107, 0.32); border-radius: var(--r-panel);
  background: rgba(232, 131, 107, 0.05);
}
.limits-stamp p { font-size: 0.8125rem; margin-top: 6px; }
.limits-stamp .mono { color: var(--danger); }
.limit-list { display: grid; gap: 0; }
.limit-row { display: grid; grid-template-columns: 42px 1fr; gap: var(--sp-4); padding: var(--sp-6) 0; border-top: 1px solid var(--border); }
.limit-row:last-child { border-bottom: 1px solid var(--border); }
.limit-row .idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 5px; letter-spacing: 0.06em; }
.limit-row h3 { font-size: 1.0625rem; }
.limit-row p { margin-top: 6px; font-size: 0.875rem; }
.limit-row mark { background: transparent; color: var(--text); border-bottom: 1px solid var(--danger); padding-bottom: 1px; }

/* ---------------------------------------------------------------- 11. MODEL */
.model-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-12); align-items: start; }
.chart { padding: var(--sp-6); }
.chart-rows { display: grid; gap: var(--sp-5); margin-top: var(--sp-4); }
.chart-row { display: grid; gap: 7px; }
.chart-meta { display: flex; align-items: baseline; gap: var(--sp-3); }
.chart-meta .lbl { font-size: 0.8125rem; color: var(--text); }
.chart-meta .val { margin-left: auto; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); }
.chart-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.chart-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(74, 222, 155, 0.55), var(--accent)); width: 0; transition: width 900ms var(--ease); }
.chart-fill.warn { background: linear-gradient(90deg, rgba(232, 131, 107, 0.5), var(--danger)); }
.footnote { margin-top: var(--sp-6); font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.footnote b { color: var(--muted); font-weight: 600; }
.spec-list { display: grid; gap: 0; }
.spec-list div { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-4); padding: 13px 0; border-top: 1px solid var(--border); align-items: baseline; }
.spec-list div:last-child { border-bottom: 1px solid var(--border); }
.spec-list dt { font-size: 0.875rem; color: var(--muted); }
.spec-list dd { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text); text-align: right; }

/* ------------------------------------------------------------ 12. RETENTION */
.retention { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
caption { text-align: left; padding-bottom: var(--sp-4); font-size: 0.8125rem; color: var(--muted); }
th, td { text-align: left; padding: 14px var(--sp-4); border-bottom: 1px solid var(--border); font-size: 0.875rem; }
th { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
td { color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
td.mono-cell { font-family: var(--font-mono); font-size: 0.8125rem; }
td .never { color: var(--accent); }
.retention-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-8); }
.note { padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface-2); }
.note .mono { color: var(--accent); display: block; margin-bottom: 6px; }
.note p { font-size: 0.8125rem; }

/* ------------------------------------------------------------ 13. INTEGRATIONS */
.connectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.connector {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-panel);
  background: var(--glass); transition: border-color 250ms var(--ease), background 250ms var(--ease);
}
.connector:hover { border-color: rgba(74, 222, 155, 0.3); background: var(--glass-2); }
.connector svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.connector .nm { font-size: 0.875rem; color: var(--text); }
.connector .mt { display: block; font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.code-wrap { margin-top: var(--sp-12); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; background: #060709; }
.code-bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.code-tab {
  min-height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.code-tab:hover { color: var(--text); }
.code-tab[aria-selected="true"] { color: var(--accent); background: var(--accent-dim); border-color: rgba(74, 222, 155, 0.3); }
.code-copy { margin-left: auto; }
pre { margin: 0; padding: var(--sp-6); overflow-x: auto; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.75; color: #C9D1DE; }
pre[hidden] { display: none; }
.k { color: #C792EA; }
.s { color: var(--accent); }
.c { color: #55606F; }
.f { color: #7DB2FF; }
code { font-family: var(--font-mono); }

/* ---------------------------------------------------------------- 14. PRICING */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
.price-card { padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-4); height: 100%; }
.price-card.featured { border-color: rgba(74, 222, 155, 0.4); background: linear-gradient(180deg, var(--accent-dim), var(--glass) 42%); }
.price-card .tag { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.price-amount { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.price-amount span { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); display: block; margin-top: 8px; text-transform: uppercase; }
.price-list { display: grid; gap: 10px; margin-top: var(--sp-2); }
.price-list li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; font-size: 0.875rem; color: var(--muted); align-items: start; }
.price-list li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; flex: none; }
.price-card .btn { margin-top: auto; width: 100%; }

.calc { margin-top: var(--sp-8); padding: var(--sp-8); display: grid; grid-template-columns: 6fr 6fr; gap: var(--sp-12); }
.calc-form { display: grid; gap: var(--sp-6); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--border); outline-offset: 8px; }
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg); cursor: pointer; box-shadow: 0 0 0 1px var(--accent);
}
.field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); cursor: pointer; }
.field output { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text); }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
.calc-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.calc-seg button {
  min-height: 38px; padding: 0 var(--sp-4); border-radius: var(--r-ctrl);
  background: var(--glass); border: 1px solid var(--hair); color: var(--muted);
  font-size: 0.8125rem; cursor: pointer; transition: all 200ms var(--ease);
}
.calc-seg button[aria-pressed="true"] { background: var(--accent-dim); border-color: rgba(74, 222, 155, 0.45); color: var(--accent); }

.calc-out { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--r-panel); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.calc-total { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.calc-total small { font-size: 0.875rem; font-family: var(--font-body); color: var(--muted); letter-spacing: 0; font-weight: 400; }
.calc-rows { display: grid; gap: 0; margin-top: auto; }
.calc-rows div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 11px 0; border-top: 1px solid var(--border); font-size: 0.8125rem; }
.calc-rows dt { color: var(--muted); }
.calc-rows dd { font-family: var(--font-mono); color: var(--text); }
.calc-note { font-size: 0.75rem; color: var(--muted); }

/* ------------------------------------------------------------------- 15. FAQ */
.faq { display: grid; gap: 0; max-width: 860px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px;
  gap: var(--sp-4); align-items: center; padding: var(--sp-6) 0;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em;
  transition: color 200ms var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary .pm { position: relative; width: 16px; height: 16px; justify-self: end; }
.qa summary .pm::before, .qa summary .pm::after {
  content: ''; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.qa summary .pm::before { inset: 7px 0 7px 0; height: 2px; }
.qa summary .pm::after { inset: 0 7px 0 7px; width: 2px; }
.qa[open] summary .pm::after { transform: scaleY(0); opacity: 0; }
.qa-body { padding-bottom: var(--sp-6); max-width: 68ch; }
.qa-body p { font-size: 0.9375rem; }
.qa-body p + p { margin-top: var(--sp-3); }

/* ----------------------------------------------------------------- 16. CTA */
.final { position: relative; overflow: hidden; }
.final::before {
  content: ''; position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 66%); pointer-events: none;
}
.final-inner { position: relative; display: grid; gap: var(--sp-6); justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; }
.final h2 { max-width: 20ch; }
.final .hero-actions { justify-content: center; }

.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding-block: var(--sp-12) var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-12); }
.footer-brand p { margin-top: var(--sp-4); font-size: 0.875rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.footer-cols .mono { display: block; margin-bottom: var(--sp-4); }
.footer-cols a { display: block; padding: 5px 0; font-size: 0.875rem; color: var(--muted); transition: color 200ms var(--ease); }
.footer-cols a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  align-items: center; margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--border);
}
.footer-base p, .footer-base .mono { font-size: 0.75rem; }

/* ---------------------------------------------------------------- 17. MOTION */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, 0); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 155, 0.13); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 18. RESPONSIVE */
@media (max-width: 1080px) {
  .hero-split { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-copy h1 { max-width: 20ch; }
  .limits-grid, .model-grid, .calc, .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .b-a, .b-d { grid-column: span 4; }
  .b-b, .b-c { grid-column: span 2; }
  .b-e { grid-column: span 4; }
  .connectors { grid-template-columns: repeat(2, 1fr); }
  .retention-notes { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--border); }
  .transcript, .minutes { height: 320px; }
  .price-grid { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { padding: var(--sp-6) 0; border-left: 0; }
  .spec-cell:nth-child(even) { padding-left: var(--sp-6); border-left: 1px solid var(--border); }
  .spec-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 680px) {
  .wrap { padding-inline: var(--sp-4); }
  .bento { grid-template-columns: 1fr; }
  .b-a, .b-b, .b-c, .b-d, .b-e { grid-column: span 1; }
  .connectors { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .limit-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .limit-row .idx { padding-top: 0; }
  .artifact { transform: none; }
  .demo-tab { width: 100%; justify-content: space-between; }
  .btn { min-height: 48px; }
  .nav-mobile .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .t-line, .m-block { opacity: 1; transform: none; }
}