/* Screen Recorder Pro - design system v2 (Loom-class premium) */
:root {
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-panel: #f6f7f9;
  --ink: #0b1020;
  --ink-2: #1f2333;
  --muted: #5b6273;
  --muted-2: #8d94a4;
  --hair: #e7e9ee;
  --hair-2: #eef0f4;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eef0ff;
  --record: #dc2626;
  --record-soft: #fee2e2;
  --ok: #047857;
  --warn: #b45309;
  --shadow-1: 0 1px 2px rgba(11,16,32,0.04), 0 1px 1px rgba(11,16,32,0.02);
  --shadow-2: 0 12px 28px -8px rgba(11,16,32,0.10), 0 4px 12px -4px rgba(11,16,32,0.06);
  --shadow-3: 0 24px 60px -12px rgba(11,16,32,0.18), 0 8px 16px -6px rgba(11,16,32,0.08);
  --shadow-rec: 0 0 0 8px rgba(220, 38, 38, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1180px;
  --container-narrow: 880px;
  --ease: cubic-bezier(.21,.61,.35,1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
hr { border: none; border-top: 1px solid var(--hair); margin: 0; }
::selection { background: rgba(79, 70, 229, 0.18); color: var(--ink); }

/* Layout primitives */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.lede-center { margin-left: auto; margin-right: auto; text-align: center; }
.text-muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.32);
  color: white;
}
.brand-mark::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  border-radius: 8px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--bg-panel); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--hair); padding: 8px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #5b54ec, #4f46e5);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -6px rgba(79, 70, 229, 0.55), 0 1px 1px rgba(11,16,32,0.06);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 22px -8px rgba(79, 70, 229, 0.62), 0 1px 2px rgba(11,16,32,0.08); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair);
}
.btn-ghost:hover { background: var(--bg-panel); border-color: #d6d9e0; }
.btn-link {
  padding: 8px 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}
.btn-link:hover { color: var(--accent-2); }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--hair-2); }
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.card h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 64px 0 40px;
  background: var(--bg-soft);
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-tag { color: var(--muted); font-size: 14px; margin: 12px 0 24px; max-width: 280px; line-height: 1.5; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted-2);
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% 30% -10%;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(79, 70, 229, 0.08), transparent 70%),
    radial-gradient(50% 40% at 80% 20%, rgba(124, 58, 237, 0.07), transparent 70%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 22px; margin-top: 24px; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--ok); }

/* Demo browser */
.demo-stage {
  margin-top: 56px;
  perspective: 1400px;
}
.demo-window {
  margin: 0 auto;
  max-width: 1080px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform-origin: 50% 100%;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fafbfc, #f4f5f8);
  border-bottom: 1px solid var(--hair);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: #e4e6ec; }
.demo-dot.r { background: #ff5f57; }
.demo-dot.y { background: #ffbd2e; }
.demo-dot.g { background: #28c840; }
.demo-url {
  flex: 1;
  margin-left: 16px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--hair);
  display: flex; align-items: center;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.demo-url svg { width: 12px; height: 12px; margin-right: 8px; color: var(--ok); }
.demo-ext {
  margin-left: 12px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.demo-ext::before { content: ''; width: 10px; height: 10px; background: white; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,0.25);}
.demo-ext.is-recording::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 11px;
  border: 2px solid var(--record);
  animation: ext-pulse 1.4s infinite;
}
@keyframes ext-pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(1.08);} }

.demo-body {
  position: relative;
  aspect-ratio: 16/9;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(79, 70, 229, 0.08), transparent 60%),
    radial-gradient(60% 60% at 70% 70%, rgba(124, 58, 237, 0.06), transparent 60%),
    linear-gradient(180deg, #fbfbfd, #f3f4f7);
  overflow: hidden;
}
.demo-page {
  position: absolute;
  inset: 0;
  padding: 34px 42px;
  background: #fff;
  color: var(--ink);
}
.demo-page-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 14px;
}
.demo-page-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--ink-2);
  font-weight: 600;
}
.demo-doc {
  width: min(58%, 460px);
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfbfd);
  box-shadow: var(--shadow-1);
}
.demo-doc h3 {
  font-family: var(--font-sans);
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.demo-doc-line {
  height: 9px;
  border-radius: 99px;
  background: var(--hair-2);
  margin: 10px 0;
}
.demo-doc-line:nth-child(3) { width: 82%; }
.demo-doc-line:nth-child(4) { width: 64%; }
.demo-doc-callout {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
.demo-task-panel {
  position: absolute;
  left: 64%;
  top: 27%;
  width: 210px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.demo-task-panel strong {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.demo-task-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.demo-task-row::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.srp-popup {
  width: 320px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink-2);
}
.srp-popup--float {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  transform: scale(.72);
  transform-origin: top right;
}
.srp-popup-header {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  font-size: 13px;
  font-weight: 700;
}
.srp-popup-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.srp-popup-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #111827;
  position: relative;
}
.srp-popup-icon::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--record);
}
.srp-popup-body { padding: 12px; }
.srp-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.srp-source-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg-panel);
  border-radius: 8px;
}
.srp-source-tabs span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 33px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.srp-source-tabs .is-active {
  color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow-1);
  font-weight: 700;
}
.srp-source-tabs svg,
.srp-audio-row svg { width: 14px; height: 14px; flex: 0 0 auto; }
.srp-section { margin-top: 12px; }
.srp-audio-row,
.srp-options-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--bg-panel);
  color: var(--ink-2);
  font-size: 12px;
  margin-top: 6px;
}
.srp-checkbox {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid #9ca3af;
  background: #fff;
  position: relative;
}
.srp-checkbox.is-on {
  background: #4b5563;
  border-color: #4b5563;
}
.srp-checkbox.is-on::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.srp-options-row {
  justify-content: space-between;
}
.srp-options-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.srp-actions {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  margin-top: 12px;
}
.srp-record {
  min-height: 42px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.srp-record::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.srp-shot {
  min-height: 42px;
  border-radius: 8px;
  background: #3b82f6;
  display: grid;
  place-items: center;
  color: #fff;
}
.srp-upgrade {
  margin-top: 9px;
  padding: 7px 8px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
}
.srp-upgrade strong {
  background: #eab308;
  color: #fff;
  padding: 3px 7px;
  border-radius: 5px;
}
.real-shot {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-2);
  background: #fff;
}
.real-shot--popup {
  max-width: 320px;
  margin: 0 auto;
}
.demo-frame {
  position: absolute;
  inset: 18% 14% 18% 14%;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.04);
  opacity: 0;
  animation: frame-in 8s var(--ease) infinite;
}
@keyframes frame-in {
  0%, 12% { opacity: 0; transform: scale(0.96); }
  16%, 70% { opacity: 1; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(0.98); }
}
.demo-cursor {
  position: absolute;
  top: 25%; left: 28%;
  width: 18px; height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 5;
  animation: cursor-path 8s var(--ease) infinite;
}
@keyframes cursor-path {
  0% { top: 25%; left: 28%; }
  20% { top: 60%; left: 70%; }
  45% { top: 60%; left: 70%; }
  55% { top: 35%; left: 50%; }
  100% { top: 25%; left: 28%; }
}

/* The fake popup inside the demo */
.demo-popup {
  position: absolute;
  top: 14px; right: 14px;
  width: 240px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 14px;
  font-size: 12px;
  z-index: 4;
}
.demo-popup-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg-panel); margin-bottom: 6px; font-weight: 500; color: var(--ink-2);}
.demo-popup-row.is-on { background: var(--accent-soft); color: var(--accent); }
.demo-popup-row svg { width: 12px; height: 12px; }
.demo-popup-cta {
  margin-top: 8px;
  background: var(--record);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.demo-popup-cta .live { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
.demo-popup-cta .timer { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;}

/* Floating recording widget */
.demo-rec-widget {
  position: absolute;
  bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(11,16,32,0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(6px);
  z-index: 6;
}
.demo-rec-widget .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--record); box-shadow: var(--shadow-rec); animation: blink 1.2s infinite; }
.demo-rec-widget .timer { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;}
.demo-rec-widget .stop {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  margin-left: 4px;
}
.demo-rec-widget .stop::before { content: ''; width: 9px; height: 9px; background: #fff; border-radius: 2px; }

/* Logos / social proof */
.logos-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 36px 56px;
  padding: 28px 0;
  opacity: 0.7;
  margin-top: 64px;
}
.logos-row span { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.proof-strip {
  margin-top: 60px;
  padding: 18px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--hair);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.proof-strip .stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.proof-strip .stars svg { width: 14px; height: 14px; }
.proof-strip strong { color: var(--ink); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

/* Two-column feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.feature-row:nth-child(even) .feature-row-text { order: 2; }
.feature-row-text .eyebrow { margin-bottom: 18px; }
.feature-row-text h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.feature-row-text p { color: var(--muted); font-size: 16.5px; max-width: 480px; }
.feature-row-text ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature-row-text ul li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.feature-row-text ul li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.visual-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(79, 70, 229, 0.05), transparent 60%);
  pointer-events: none;
}
.mode-workbench {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.mode-browser {
  min-height: 310px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.mode-browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hair);
  background: #fbfbfd;
}
.mode-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
}
.mode-browser-bar span:nth-child(2) { background: #f59e0b; }
.mode-browser-bar span:nth-child(3) { background: #22c55e; }
.mode-address {
  flex: 1;
  height: 26px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--hair);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  background: #fff;
}
.mode-browser-content {
  position: relative;
  padding: 22px;
}
.mode-doc-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.mode-doc-grid {
  display: grid;
  grid-template-columns: 1fr .65fr;
  gap: 14px;
}
.mode-mini-card {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg-soft);
}
.mode-mini-card strong {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.mode-line {
  height: 8px;
  border-radius: 99px;
  background: #e5e7eb;
  margin-top: 8px;
}
.mode-select-frame {
  position: absolute;
  inset: 112px 32px 44px 32px;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: rgba(79, 70, 229, .04);
}
.mode-side {
  display: grid;
  gap: 12px;
}
.mode-card {
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-1);
}
.mode-card.is-active {
  border-color: rgba(79,70,229,.35);
  background: linear-gradient(180deg, #fff, #f7f7ff);
}
.mode-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.mode-card p {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.voice-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.voice-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--hair), var(--shadow-1);
  background: var(--bg-panel);
}
.voice-card h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.voice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.compare-table th {
  color: var(--ink);
  background: var(--bg-panel);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { color: var(--ink); }
.compare-table td:nth-child(3) {
  background: rgba(79,70,229,.035);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.plan {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.plan.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff, #fbfaff);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.06), var(--shadow-2);
  position: relative;
}
.plan.is-featured .badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan-price strong { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.plan-price .unit { font-size: 14px; color: var(--muted); }
.plan-tag { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.plan ul li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.plan ul li.muted { color: var(--muted-2); }
.plan ul li.muted svg { color: var(--muted-2); }
.plan .btn { width: 100%; }

/* Comparison */
.compare-wrap { margin-top: 48px; border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
.compare-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare-wrap th, .compare-wrap td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--hair); }
.compare-wrap thead th { background: var(--bg-soft); font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.compare-wrap tr:last-child td { border-bottom: none; }
.compare-wrap td.yes { color: var(--ok); font-weight: 600; }
.compare-wrap td.no { color: var(--muted-2); }
.compare-wrap td.cell-feature { font-weight: 500; color: var(--ink); }
.compare-wrap th.col-srp { color: var(--accent); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.faq-item {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.faq-item[open] { border-color: var(--hair-2); box-shadow: var(--shadow-1); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
  margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* CTA strip */
.cta-strip {
  margin: 96px auto;
  padding: 56px;
  background: linear-gradient(135deg, #1a1a2e, #2d2a55 60%, #4f46e5);
  border-radius: var(--radius-xl);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,0.78); max-width: 540px; margin: 14px auto 28px; font-size: 17px; }
.cta-strip .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.cta-strip .btn-primary:hover { background: #f5f6ff; }

/* Docs layout */
.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: flex-start;
  padding: 56px 0 80px;
}
.docs-side {
  position: sticky;
  top: 88px;
  font-size: 14px;
}
.docs-side h4 { font-family: var(--font-sans); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin: 18px 0 8px; font-weight: 700; }
.docs-side a {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 500;
}
.docs-side a:hover { background: var(--bg-panel); color: var(--ink); }
.docs-side a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.docs-main { max-width: 760px; }
.docs-main h1 { font-size: clamp(32px, 3.5vw, 44px); margin-bottom: 16px; }
.docs-main h2 { font-size: 26px; margin: 48px 0 14px; }
.docs-main h3 { font-size: 19px; margin: 28px 0 8px; font-family: var(--font-sans); font-weight: 600; }
.docs-main p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.docs-main p + p { margin-top: 12px; }
.docs-main ul, .docs-main ol { color: var(--ink-2); font-size: 16px; line-height: 1.7; padding-left: 22px; margin: 0 0 16px; }
.docs-main li { margin-bottom: 6px; }
.docs-main code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-2);
}
.docs-main pre {
  font-family: var(--font-mono);
  background: var(--ink);
  color: #e6e8f0;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.docs-main pre code { background: transparent; color: inherit; padding: 0; }
.docs-main blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  border-radius: 4px;
}
.docs-main kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--hair);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink-2);
}
.docs-next {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
}
.docs-next a { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.tm {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tm-quote { font-family: var(--font-display); font-size: 18px; line-height: 1.45; color: var(--ink); margin: 0 0 18px; letter-spacing: -0.01em; }
.tm-meta { display: flex; align-items: center; gap: 12px; }
.tm-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13px;
}
.tm-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tm-role { font-size: 13px; color: var(--muted); }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stat strong { display: block; font-family: var(--font-display); font-size: 40px; letter-spacing: -0.025em; color: var(--ink); }
.stat span { color: var(--muted); font-size: 14px; }

/* Page header (for non-home pages) */
.page-header {
  padding: 80px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.04), transparent 100%);
  border-bottom: 1px solid var(--hair);
}
.page-header h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; }
.page-header p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }

/* Misc utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .feature-row { grid-template-columns: 1fr !important; gap: 32px; margin-bottom: 64px; }
  .feature-row:nth-child(even) .feature-row-text { order: 0; }
  .mode-workbench { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .docs-shell { grid-template-columns: 1fr; gap: 24px; }
  .docs-side { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .nav-links.is-open {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-2);
  }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-sm { padding: 7px 10px; font-size: 11px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    flex: 0 0 36px;
  }
  .demo-popup { width: 180px; font-size: 11px; }
  .srp-popup--float { transform: scale(.56); }
  .demo-page { padding: 18px; }
  .demo-doc { width: 62%; padding: 18px; }
  .demo-task-panel { display: none; }
  .demo-rec-widget { font-size: 11px; padding: 8px 12px; }
  .logos-row { gap: 20px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { padding: 40px 24px; margin: 56px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero { padding: 56px 0 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .proof-strip { border-radius: var(--radius); flex-wrap: wrap; justify-content: center; }
  .voice-card { padding: 20px; }
  .compare-table { min-width: 0; font-size: 12px; }
  .compare-table th,
  .compare-table td { padding: 12px 10px; }
  .mode-browser-content { padding: 16px; }
  .mode-select-frame { inset: 104px 22px 36px 22px; }
}

/* Motion: reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
