/* ==========================================================================
   CommentTube — marketing site styles
   Palette: warm cream + ink + coral/ember, with amber, sage and sky accents.
   Fonts: Inter Tight (UI/headings), Instrument Serif (italic accents),
          JetBrains Mono (labels/data).
   ========================================================================== */

:root {
  --cream: #FBF5EC;
  --cream-2: #F5ECDF;
  --cream-3: #EDE1D0;
  --paper: #FFFCF7;
  --ink: #1A1410;
  --ink-2: #3B302A;
  --muted: #6B5D53;
  --line: rgba(26, 20, 16, .10);
  --line-2: rgba(26, 20, 16, .16);

  --coral: #FF5A36;
  --coral-2: #FF7A45;
  --ember: #D33A17;          /* AA on white text */
  --ember-deep: #A82A0E;
  --coral-soft: #FFE3D6;
  --amber: #FFB547;
  --amber-soft: #FFF0D4;
  --sage: #237A55;
  --sage-2: #3FAE7C;
  --sage-soft: #DDF2E6;
  --sky: #3E6FE0;
  --sky-soft: #E1EAFD;
  --plum: #8A3FA8;
  --plum-soft: #F1E2F7;

  --night: #17110D;
  --night-2: #221A15;
  --night-3: #2E241E;
  --night-line: rgba(255, 240, 225, .10);
  --night-text: #F6EDE3;
  --night-muted: #B9A99B;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(40, 20, 10, .06), 0 1px 1px rgba(40, 20, 10, .04);
  --shadow: 0 2px 4px rgba(40, 20, 10, .04), 0 12px 32px -8px rgba(60, 25, 10, .14);
  --shadow-lg: 0 4px 8px rgba(40, 20, 10, .05), 0 40px 80px -24px rgba(90, 30, 10, .28);

  --font-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--coral); color: #fff; }

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .32;
  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='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.2  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

:focus-visible { outline: 2.5px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible { outline-color: var(--amber); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

/* ---------- Type helpers ---------- */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ember);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(211, 58, 23, .14); }
.section--dark .eyebrow { color: var(--amber); }
.section--dark .eyebrow::before { box-shadow: 0 0 0 4px rgba(255, 181, 71, .16); }

.h-display { font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 650; }
.h-section { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.h-display .serif, .h-section .serif { font-size: 1.06em; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.section--dark .lead { color: var(--night-muted); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--primary {
  --btn-bg: var(--ember); --btn-fg: #fff;
  background-image: linear-gradient(180deg, #E8481F 0%, var(--ember) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(120, 30, 5, .3), 0 10px 24px -8px rgba(211, 58, 23, .55);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(120, 30, 5, .3), 0 16px 32px -10px rgba(211, 58, 23, .65); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--cream); box-shadow: 0 8px 20px -10px rgba(26, 20, 16, .6); }
.btn--ghost { --btn-bg: rgba(255, 252, 247, .7); --btn-fg: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--night-text); border-color: rgba(255, 240, 225, .25); }
.btn--outline-light:hover { border-color: var(--night-text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 245, 236, .78);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; flex: none; }
.brand img, .brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--ember); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: rgba(26, 20, 16, .06); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(26, 20, 16, .06); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .link-signin { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 12px; color: var(--ink-2); }
.nav-cta .link-signin:hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--paper);
  align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--cream);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 18px; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .link-signin, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--dark { background: var(--night); color: var(--night-text); }
.section--cream2 { background: var(--cream-2); }
.section--dark .h-section, .section--dark h3 { color: var(--night-text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(60px, 8vw, 100px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -120px 0 auto 0; height: 900px;
  background:
    radial-gradient(600px 380px at 78% 18%, rgba(255, 122, 69, .30), transparent 70%),
    radial-gradient(520px 340px at 12% 8%, rgba(255, 181, 71, .26), transparent 70%),
    radial-gradient(700px 420px at 50% 85%, rgba(255, 90, 54, .12), transparent 70%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(26, 20, 16, .045) 1px, transparent 1px), linear-gradient(to bottom, rgba(26, 20, 16, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 26px; max-width: 980px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 252, 247, .8); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  backdrop-filter: blur(6px);
}
.pill b { background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: 0; }
.pill svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 560px) { .pill { font-size: 13px; } .pill .pill-long { display: none; } }
.hero h1 .serif { color: var(--ember); }
.hero .lead { max-width: 640px; margin: 0 auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--sage); }

/* ---------- App mock (hero) ---------- */
.mock-wrap { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.mock-wrap::before {
  content: ""; position: absolute; inset: 8% 6% -4% 6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 90, 54, .35), transparent);
  filter: blur(40px);
}
.app {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px; line-height: 1.45;
  text-align: left;
}
.app-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFDF9, #FAF4EA);
}
.dots { display: flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #E9DED0; display: block; }
.dots i:nth-child(1) { background: #FF6B57; }
.dots i:nth-child(2) { background: #FFBE4A; }
.dots i:nth-child(3) { background: #43C379; }
.urlbar {
  flex: 1; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  height: 28px; border-radius: 8px; background: rgba(26, 20, 16, .05);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  overflow: hidden; white-space: nowrap; padding: 0 10px;
}
.urlbar svg { width: 12px; height: 12px; flex: none; }
.chrome-actions { display: flex; gap: 6px; flex: none; }
.chrome-actions i { width: 22px; height: 22px; border-radius: 6px; background: rgba(26, 20, 16, .05); display: block; }

.app-body { display: grid; grid-template-columns: 200px 1fr 300px; min-height: 560px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #FDF9F3; display: flex; flex-direction: column; gap: 4px; }
.app-side .ws { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font-weight: 650; font-size: 13.5px; }
.app-side .ws i { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--amber), var(--coral)); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.side-item svg { width: 15px; height: 15px; opacity: .7; flex: none; }
.side-item.is-active { background: var(--paper); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); color: var(--ink); }
.side-item .count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.side-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 9px 6px; }
.side-item .chan { width: 16px; height: 16px; border-radius: 50%; flex: none; }

.app-main { padding: 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.app-rail { border-left: 1px solid var(--line); padding: 20px 16px; display: grid; gap: 16px; align-content: start; background: #FDF9F3; min-width: 0; }

.video-card { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; }
.thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 75% 35%, rgba(255, 213, 120, .9), transparent 35%),
    radial-gradient(circle at 25% 80%, rgba(255, 90, 54, .9), transparent 45%),
    linear-gradient(135deg, #3A1F14, #7A2E15 55%, #E2602F);
}
.thumb::before { /* stylised figure */
  content: ""; position: absolute; left: 14%; bottom: 0; width: 34%; height: 70%;
  background: radial-gradient(circle at 50% 26%, #2A1610 0 17%, transparent 18%), radial-gradient(ellipse at 50% 100%, #2A1610 0 48%, transparent 49%);
  opacity: .85;
}
.thumb::after { content: "14:32"; position: absolute; right: 6px; bottom: 6px; font-family: var(--font-mono); font-size: 9.5px; color: #fff; background: rgba(0, 0, 0, .7); padding: 1px 5px; border-radius: 4px; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 34px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.thumb .play::before { content: ""; border-left: 9px solid var(--ember); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 2px; }
.video-meta h4 { font-size: 15px; letter-spacing: -0.015em; line-height: 1.3; font-weight: 650; }
.video-meta .sub { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 550; background: rgba(26, 20, 16, .05); color: var(--ink-2); white-space: nowrap; }
.tag--coral { background: var(--coral-soft); color: var(--ember-deep); }
.tag--sage { background: var(--sage-soft); color: #1C5E42; }
.tag--sky { background: var(--sky-soft); color: #2A4FA8; }
.tag--amber { background: var(--amber-soft); color: #8A5A00; }
.tag--plum { background: var(--plum-soft); color: #6D2C88; }

.scan {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(90deg, rgba(255, 122, 69, .08), rgba(255, 181, 71, .06));
  display: grid; gap: 8px;
}
.scan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 12.5px; }
.scan-top .live { display: inline-flex; align-items: center; gap: 7px; }
.scan-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 90, 54, .6); animation: pulse 1.6s infinite; }
.scan-top .mono { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.progress { height: 6px; border-radius: 999px; background: rgba(26, 20, 16, .07); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 74%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--coral), var(--ember)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; transition: width .4s linear; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }

.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.panel-head h5 { margin: 0; font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em; }
.panel-head .mono { font-size: 10.5px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.topics { display: grid; gap: 9px; list-style: none; }
.topic { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 12.5px; }
.topic .name { display: flex; align-items: center; gap: 7px; font-weight: 550; min-width: 0; }
.topic .name i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.topic .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.topic .bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: rgba(26, 20, 16, .06); overflow: hidden; }
.topic .bar b { display: block; height: 100%; border-radius: inherit; transform-origin: left; }

.sentiment-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sentiment-big strong { font-size: 30px; letter-spacing: -0.04em; font-weight: 650; }
.sentiment-big .delta { font-size: 11.5px; font-weight: 600; color: var(--sage); background: var(--sage-soft); padding: 2px 7px; border-radius: 999px; }
.stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 10px; }
.stack i { display: block; height: 100%; }
.legend { display: grid; gap: 6px; list-style: none; font-size: 12px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend li i { width: 8px; height: 8px; border-radius: 50%; }
.legend li .mono { margin-left: auto; font-size: 11px; color: var(--muted); }
.spark { margin-top: 12px; height: 46px; width: 100%; }

.comments { display: grid; gap: 2px; list-style: none; }
.comment { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 6px; border-radius: 10px; }
.comment + .comment { border-top: 1px solid var(--line); border-radius: 0; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; flex: none; letter-spacing: 0;
}
.comment .who { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.comment .who b { font-weight: 650; }
.comment .who .t { color: var(--muted); font-size: 11px; }
.comment p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.comment .meta { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; align-items: center; }
.comment .likes { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.comment .likes svg { width: 11px; height: 11px; }

.q-list { list-style: none; display: grid; gap: 8px; }
.q-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; font-size: 12px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.q-list li .q { width: 18px; height: 18px; border-radius: 6px; background: var(--sky-soft); color: var(--sky); font-weight: 700; font-size: 11px; display: grid; place-items: center; }
.q-list li .mono { font-size: 10.5px; color: var(--muted); }
.rail-card { display: grid; gap: 10px; }
.rail-card h5 { margin: 0; font-size: 12px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.rail-card h5 .mono { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.ai-summary { padding: 12px; border-radius: 12px; background: linear-gradient(160deg, #2A1D16, #17110D); color: var(--night-text); font-size: 12.5px; line-height: 1.5; position: relative; overflow: hidden; }
.ai-summary::after { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -60px; background: radial-gradient(closest-side, rgba(255, 122, 69, .6), transparent); }
.ai-summary .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; position: relative; z-index: 1; }
.ai-summary p { position: relative; z-index: 1; color: #EADBCB; }
.ai-summary mark { background: rgba(255, 122, 69, .25); color: #fff; padding: 0 3px; border-radius: 3px; }

/* floating chips on hero mock */
.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; font-weight: 550;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-chip .ic svg { width: 16px; height: 16px; }
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.float-chip--a { left: -28px; top: 34%; }
.float-chip--b { right: -24px; bottom: 16%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1180px) {
  .app-body { grid-template-columns: 180px 1fr; }
  .app-rail { display: none; }
  .float-chip--a { left: -8px; }
  .float-chip--b { right: -8px; }
}
@media (max-width: 820px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .chrome-actions { display: none; }
}
@media (max-width: 520px) {
  .app-main { padding: 14px; gap: 12px; }
  .video-card { grid-template-columns: 1fr; }
  .thumb { max-width: 100%; }
  .urlbar { font-size: 10.5px; justify-content: flex-start; }
  .comments .comment:nth-child(n+4) { display: none; }
}

/* ---------- Logo strip ---------- */
.logos { padding: 8px 0 clamp(48px, 7vw, 80px); }
.logos-label { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
.brandmark { display: inline-flex; align-items: center; gap: 9px; color: #5A4C42; font-weight: 650; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; opacity: .85; }
.brandmark svg { width: 24px; height: 24px; }
.brandmark.serifb { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 24px; letter-spacing: -0.01em; }
.brandmark.monob { font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; }
.brandmark.wide { letter-spacing: .14em; text-transform: uppercase; font-size: 15px; font-weight: 700; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-sm);
}
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--ember); font-weight: 600; letter-spacing: .06em; }
.step h3 { font-size: 24px; letter-spacing: -0.03em; }
.step p { color: var(--muted); font-size: 16px; }
.step-visual { height: 150px; border-radius: 14px; background: var(--cream-2); border: 1px solid var(--line); margin-bottom: 8px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.paste-box { width: 100%; max-width: 280px; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 8px 8px 12px; box-shadow: var(--shadow-sm); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.paste-box span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.paste-box .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--ember); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.paste-box b { font-family: var(--font-sans); background: var(--ember); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
@keyframes blink { 50% { opacity: 0; } }
.scan-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; width: 100%; max-width: 260px; }
.scan-dots i { aspect-ratio: 1; border-radius: 4px; background: rgba(26, 20, 16, .08); animation: dotfill 3s infinite; }
@keyframes dotfill { 0%, 100% { background: rgba(26, 20, 16, .08); } 40%, 60% { background: var(--coral); } }
.mini-insight { width: 100%; max-width: 270px; display: grid; gap: 7px; }
.mini-insight div { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 550; }
.mini-insight div i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.mini-insight div .mono { margin-left: auto; font-size: 10.5px; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; letter-spacing: -0.03em; }
.card p { color: var(--muted); font-size: 15.5px; max-width: 460px; }
.card .viz { margin-top: auto; padding-top: 22px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: 1 / -1; }
.card--ink { background: var(--night); border-color: transparent; color: var(--night-text); }
.card--ink p { color: var(--night-muted); }
.card--coral { background: linear-gradient(160deg, #FF7A45, #E2401F 70%); color: #fff; border-color: transparent; }
.card--coral p { color: rgba(255, 255, 255, .9); }
.card-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); font-weight: 600; }
.card--ink .card-kicker { color: var(--amber); }
.card--coral .card-kicker { color: #FFE6C2; }

.topic-map { position: relative; height: 240px; }
.bubble {
  position: absolute; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; font-weight: 600; line-height: 1.15; padding: 8px;
  transition: transform .5s var(--ease);
}
.bubble small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; opacity: .75; margin-top: 2px; }
.card:hover .bubble:nth-child(odd) { transform: translateY(-4px) scale(1.03); }
.card:hover .bubble:nth-child(even) { transform: translateY(3px); }

.q-finder { display: grid; gap: 8px; }
.q-finder .search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--muted); background: var(--cream); }
.q-finder .search svg { width: 15px; height: 15px; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--cream); font-size: 13.5px; font-weight: 500; }
.q-row .mono { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.q-row i { font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); font-weight: 700; font-size: 12px; flex: none; }

.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid line { stroke: rgba(26, 20, 16, .08); }
.card--ink .chart-svg .grid line { stroke: rgba(255, 240, 225, .08); }
.chart-svg text { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); }
.card--ink .chart-svg text { fill: var(--night-muted); }
.draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.2s var(--ease); }
.is-visible .draw, .no-js .draw { stroke-dashoffset: 0; }

.req-list { display: grid; gap: 8px; list-style: none; }
.req-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13.5px; font-weight: 550; }
.req-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.req-list .bar b { display: block; height: 100%; background: #fff; border-radius: inherit; }
.req-list .mono { font-size: 11.5px; opacity: .9; }

.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.export-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: center; transition: transform .3s var(--ease), border-color .3s; }
.export-tile svg { width: 26px; height: 26px; }
.card:hover .export-tile:nth-child(2n) { transform: translateY(-3px); }

.vs { display: grid; gap: 12px; }
.vs-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.vs-row .lbl { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-row .lbl i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.vs-row .track { height: 10px; border-radius: 999px; background: rgba(255, 240, 225, .08); overflow: hidden; display: flex; }
.vs-row .track b { display: block; height: 100%; }
.vs-row .mono { font-size: 11.5px; color: var(--night-muted); text-align: right; }

.lang-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-cloud span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-weight: 550; }
.lang-cloud span.hot { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.alert-mock { display: grid; gap: 8px; }
.slack-msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.slack-msg .avatar { width: 32px; height: 32px; border-radius: 9px; }
.slack-msg b { font-weight: 650; }
.slack-msg .t { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.slack-msg p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.slack-msg .quote { margin-top: 6px; border-left: 3px solid var(--coral); padding-left: 9px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: auto; }
  .card { padding: 22px; }
  .vs-row { grid-template-columns: 92px 1fr 40px; }
}

/* ---------- Deep dive (dark) ---------- */
.deep { overflow: hidden; isolation: isolate; }
.deep::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: -200px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 90, 54, .28), transparent 70%);
}
.deep-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.deep-points { list-style: none; display: grid; gap: 4px; margin-top: 34px; }
.deep-points li { padding: 18px 0; border-top: 1px solid var(--night-line); display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.deep-points li:last-child { border-bottom: 1px solid var(--night-line); }
.deep-points .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--night-3); display: grid; place-items: center; color: var(--amber); }
.deep-points .ic svg { width: 18px; height: 18px; }
.deep-points h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 3px; }
.deep-points p { color: var(--night-muted); font-size: 15px; }

.report {
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden; font-size: 13px; color: var(--night-text); min-width: 0;
}
.report-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); flex-wrap: wrap; }
.report-top h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.report-top h4 .chan { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #4C7DF0, #8A3FA8); }
.tabs { display: flex; gap: 4px; background: rgba(255, 240, 225, .05); padding: 3px; border-radius: 10px; }
.tabs button { border: 0; background: transparent; color: var(--night-muted); font-size: 12px; font-weight: 550; padding: 6px 10px; border-radius: 8px; }
.tabs button.is-active, .tabs button[aria-selected="true"] { background: var(--night-3); color: var(--night-text); box-shadow: inset 0 0 0 1px var(--night-line); }
.report-body { padding: 18px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: rgba(255, 240, 225, .04); border: 1px solid var(--night-line); border-radius: 12px; padding: 12px; min-width: 0; }
.kpi span { display: block; color: var(--night-muted); font-size: 11px; }
.kpi strong { display: block; font-size: 22px; letter-spacing: -0.03em; font-weight: 650; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--sage-2); }
.kpi em.down { color: #FF8A6B; }
.theme-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.theme-table th { text-align: left; font-weight: 500; color: var(--night-muted); font-size: 11px; padding: 0 8px 8px; border-bottom: 1px solid var(--night-line); font-family: var(--font-mono); letter-spacing: .02em; }
.theme-table td { padding: 10px 8px; border-bottom: 1px solid var(--night-line); vertical-align: middle; }
.theme-table tr:last-child td { border-bottom: 0; }
.theme-table .tname { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.theme-table .tname i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.minibar { display: flex; height: 6px; width: 90px; border-radius: 999px; overflow: hidden; gap: 1px; }
.minibar b { display: block; height: 100%; }
.trend-up { color: var(--sage-2); font-family: var(--font-mono); font-size: 11.5px; }
.trend-down { color: #FF8A6B; font-family: var(--font-mono); font-size: 11.5px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-card { background: rgba(255, 240, 225, .04); border: 1px solid var(--night-line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.quote-card p { font-family: var(--font-serif); font-size: 17px; line-height: 1.3; color: #F3E6D8; }
.quote-card .by { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--night-muted); }
.quote-card .avatar { width: 22px; height: 22px; font-size: 9.5px; }
@media (max-width: 1024px) { .deep-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .theme-table .hide-sm { display: none; }
  .report-body { padding: 14px; }
  .tabs button { padding: 6px 8px; }
}

/* integrations row */
.integrations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.integration { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(255, 240, 225, .05); border: 1px solid var(--night-line); font-size: 14px; font-weight: 550; color: var(--night-text); }
.integration svg { width: 20px; height: 20px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat { padding: 36px 28px; display: grid; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat strong { font-size: clamp(42px, 5vw, 64px); letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.stat strong .u { color: var(--ember); }
.stat strong span { font: inherit; color: inherit; }
.stat > span { color: var(--muted); font-size: 15px; max-width: 220px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 480px) { .stat { padding: 26px 16px; } .stat strong { font-size: 38px; } }

/* ---------- Testimonials ---------- */
.reviews { columns: 3; column-gap: 18px; }
.review {
  break-inside: avoid; margin: 0 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: grid; gap: 16px; box-shadow: var(--shadow-sm);
}
.review.feature { background: var(--night); color: var(--night-text); border-color: transparent; }
.review.feature blockquote { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.stars { display: flex; gap: 2px; color: #F29A1F; }
.stars svg { width: 16px; height: 16px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.review.feature blockquote { color: #F3E6D8; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption .avatar { width: 42px; height: 42px; font-size: 14px; }
.review figcaption b { display: block; font-weight: 650; font-size: 15px; }
.review figcaption span { display: block; color: var(--muted); font-size: 13.5px; }
.review.feature figcaption span { color: var(--night-muted); }
.rating-summary { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.rating-summary strong { color: var(--ink); font-size: 15px; }
@media (max-width: 1024px) { .reviews { columns: 2; } }
@media (max-width: 680px) { .reviews { columns: 1; } .review.feature blockquote { font-size: 22px; } }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.billing-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s, color .25s; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.billing-toggle .save { font-size: 11.5px; background: var(--sage-soft); color: #1C5E42; padding: 2px 7px; border-radius: 999px; }
.billing-toggle button[aria-pressed="true"] .save { background: rgba(63, 174, 124, .3); color: #C9F2DD; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 20px; letter-spacing: -0.02em; }
.plan .desc { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 48px; letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.price-note { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: -10px; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 18px; height: 18px; color: var(--sage); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan--popular { background: var(--night); color: var(--night-text); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--popular .desc, .plan--popular .price span, .plan--popular .price-note { color: var(--night-muted); }
.plan--popular li svg { color: var(--amber); }
.plan-badge { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--coral)); color: var(--ink); }
.plans-foot { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 28px; }
.plans-foot a { color: var(--ink); font-weight: 600; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } .plan .desc { min-height: 0; } }

/* ---------- Demo / lead form ---------- */
.lead-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.lead-box::before { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(255, 122, 69, .28), transparent); }
.lead-box h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; }
.lead-box p.lead { margin-top: 14px; }
.lead-form { display: grid; gap: 12px; }
.inline-field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.inline-field:focus-within { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(211, 58, 23, .12); }
.inline-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 16px; outline: none; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form small { color: var(--muted); font-size: 13px; }
.lead-form small a { color: var(--ink-2); }
@media (max-width: 900px) { .lead-box { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .inline-field { flex-direction: column; border-radius: 18px; }
  .inline-field input { padding: 12px 12px; }
  .lead-form .row2 { grid-template-columns: 1fr; }
}

/* ---------- Forms (shared) ---------- */
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .opt { color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 15px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper);
  font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.select { padding-right: 42px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B5D53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.input::placeholder, .textarea::placeholder { color: #9C8E83; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(211, 58, 23, .12); }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: #C2361A; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ember); }
.check a { color: var(--ink); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 500; align-items: flex-start; gap: 10px; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-status.is-success { display: flex; background: var(--sage-soft); color: #154B33; }
.form-status.is-error { display: flex; background: #FDE2DA; color: #8A2310; }
form.is-loading button[type="submit"] { opacity: .7; pointer-events: none; }
form.is-loading button[type="submit"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--cream-2); transition: background-color .25s, transform .35s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .plus { background: var(--ember); transform: rotate(180deg); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); font-size: 16px; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: var(--radius-xl); padding: clamp(56px, 9vw, 110px) var(--gutter);
  background: var(--night); color: var(--night-text);
}
.cta-final::before {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -60% -10%; height: 140%;
  background: radial-gradient(ellipse 50% 50% at 50% 70%, rgba(255, 90, 54, .65), rgba(255, 181, 71, .2) 45%, transparent 70%);
}
.cta-final::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(to right, rgba(255, 240, 225, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 240, 225, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.cta-final h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.045em; line-height: 1; max-width: 900px; margin: 0 auto; }
.cta-final h2 .serif { color: var(--amber); }
.cta-final p { color: #D9C8B8; margin: 22px auto 34px; max-width: 560px; font-size: 18px; }
.cta-final .hero-ctas { justify-content: center; }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters span { position: absolute; padding: 8px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 500; background: rgba(255, 240, 225, .06); border: 1px solid var(--night-line); color: #D9C8B8; white-space: nowrap; animation: bob 7s ease-in-out infinite; }
@media (max-width: 900px) { .floaters { display: none; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 36px; border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 120px); background: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 16px 0 22px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ember); text-decoration: underline; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-2); box-shadow: 0 0 0 3px rgba(63, 174, 124, .2); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-wordmark { font-size: clamp(48px, 13.5vw, 172px); font-weight: 700; letter-spacing: -0.06em; line-height: .8; margin-top: 56px; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(26, 20, 16, .10), rgba(26, 20, 16, 0)); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; overflow: hidden; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { gap: 28px 16px; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: -120px 0 auto 0; height: 560px; background: radial-gradient(520px 300px at 80% 20%, rgba(255, 122, 69, .22), transparent 70%), radial-gradient(420px 260px at 10% 0%, rgba(255, 181, 71, .2), transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; line-height: 1; margin-top: 18px; }
.page-hero h1 .serif { color: var(--ember); }
.page-hero .lead { margin-top: 18px; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 18px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-side { display: grid; gap: 16px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 8px; }
.info-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-soft); color: var(--ember); margin-bottom: 6px; }
.info-card .ic svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 18px; letter-spacing: -0.02em; }
.info-card p { color: var(--muted); font-size: 15px; }
.info-card a { color: var(--ink); font-weight: 600; }
.info-card--dark { background: var(--night); color: var(--night-text); border-color: transparent; }
.info-card--dark p { color: var(--night-muted); }
.info-card--dark .ic { background: var(--night-3); color: var(--amber); }
.info-card--dark a { color: var(--amber); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form .row2 { grid-template-columns: 1fr; } }

/* legal */
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc h2 { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--cream-2); color: var(--ink); }
.prose { max-width: 760px; font-size: 16.5px; color: var(--ink-2); min-width: 0; }
.prose section { padding-top: 8px; margin-bottom: 44px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .num { font-family: var(--font-mono); font-size: 14px; color: var(--ember); font-weight: 500; letter-spacing: 0; }
.prose h3 { font-size: 18px; letter-spacing: -0.015em; color: var(--ink); margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--ember); font-weight: 550; }
.prose strong { color: var(--ink); }
.prose .callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 14px; padding: 18px 20px; margin: 0 0 20px; }
.prose .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
@media (max-width: 960px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

/* 404 */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-size: clamp(120px, 26vw, 280px); font-weight: 700; letter-spacing: -0.07em; line-height: .85; background: linear-gradient(180deg, var(--coral-2), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .bubble-404 { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; margin: 18px 0 26px; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-bar b { transform: scaleX(0); transition: transform 1.4s var(--ease); transition-delay: var(--d, .2s); transform-origin: left; }
.js .is-visible .reveal-bar b, .js .reveal-bar.is-visible b { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-bar b { transform: none; }
  .draw { stroke-dashoffset: 0; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Small-screen refinements ---------- */
.trend-up, .trend-down { white-space: nowrap; }
@media (max-width: 680px) {
  .topic-map { height: auto; display: flex; flex-wrap: wrap; gap: 8px; }
  .topic-map .bubble { position: static !important; width: auto !important; height: auto !important; border-radius: 999px; padding: 8px 14px; flex-direction: row; gap: 8px; font-size: 13px !important; }
  .topic-map .bubble small { margin: 0; }
}
