/* ── Chad Analytics design tokens (plan §3 — light, warm, DataFast-clean) ── */
:root {
  --bg: #FDFBF7;
  --bg-alt: #F7F2E9;
  --card: #FFFFFF;
  --border: #EAE3D6;
  --text: #1F1D1A;
  --muted: #6F6A60;
  --accent: #E76F51;
  --accent-hover: #D95B3C;
  --accent-soft: #FBE9E3;
  --highlight: #FFE8A3;
  --green: #2F9E6E;
  --slack: #611f69;
  --teams: #4B53BC;
  --radius-card: 18px;
  --radius-btn: 14px;
  --shadow-card: 0 1px 3px rgba(31, 29, 26, 0.04);
  --shadow-btn: 0 2px 8px rgba(231, 111, 81, 0.25);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h2 { font-size: clamp(28px, 4vw, 40px); }
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 17.5px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled {
  background: #E9C9BE;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sub {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.cta-center { text-align: center; margin-top: 44px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  font-size: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15.5px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-inner { position: relative; }
.nav .btn-login { padding: 9px 18px; font-size: 15px; border-radius: 10px; }

/* ── Hero ── */
.hero { padding: 104px 0 88px; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  max-width: 1000px;
  margin: 0 auto;
}
.hero-heading-static { display: block; }
.hero-ai-line {
  display: flex;
  min-height: 1.18em;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
#hero-ai-name {
  display: inline-block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#hero-ai-name.is-changing {
  opacity: 0;
  transform: translateY(0.22em);
}
.hero-sub {
  color: var(--muted);
  font-size: 18.5px;
  max-width: 720px;
  margin: 22px auto 34px;
}
@media (prefers-reduced-motion: reduce) {
  #hero-ai-name { transition: none; }
}
/* Hero 2-step: enter website → unlock Add-to-Slack/Teams (official app buttons) */
.nav-right { display: flex; align-items: center; gap: 10px; }
.hero-steps { max-width: 640px; margin: 0 auto; text-align: center; }
.hero-step-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 24px;
}
.step-tab {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  transition: all 0.15s;
}
.step-tab.active {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(120, 96, 60, 0.16);
}
.step-tab:not(.active):hover { color: var(--accent-hover); }

.field-wrap { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.input-arrow {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: var(--muted);
  animation: arrow-nudge 1.8s ease-in-out infinite;
  pointer-events: none;
}
.input-arrow svg { width: 20px; height: 28px; transform: rotate(90deg); }
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(4px); }
}
/* Both step panels reserve the same height (Step 1 = input + Continue is the
   taller one) and center their content, so the trust row below never jumps. */
.hero-step-panel {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-step-panel .url-field { max-width: 440px; width: 100%; margin: 0 auto; }
.step-continue { display: block; width: 100%; max-width: 440px; margin: 12px auto 0; }
.hero-step-panel .url-field input { font-size: 18px; padding: 17px 18px; }
.hero-step-panel .url-globe { width: 54px; font-size: 19px; }
.hero-step-panel .btn-app { font-size: 15px; padding: 14px 16px; white-space: nowrap; }
.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.btn-app {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 700;
  gap: 10px;
  padding: 12px 20px;
  font-size: 15.5px;
}
.btn-app:hover { border-color: #C9C0AE; transform: translateY(-1px); }
.btn-app.disabled {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: default;
}
.btn-app.disabled:hover { border-color: var(--border); transform: none; }
.app-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.app-logo svg, .app-logo img { width: 100%; height: 100%; object-fit: contain; }
.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.trust-row span::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero .chat-toggle { margin: 30px 0 22px; }

/* Hero URL form (DataFast pattern: input above button, stacked + centered) */
.hero-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.url-field {
  display: flex;
  align-items: center;
  width: min(340px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.url-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.15);
}
.url-globe {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  align-self: stretch;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  font-size: 17px;
}
.platform-indicator img { width: 25px; height: 25px; object-fit: contain; }
.platform-indicator.detected { background: #fff; }
.platform-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d8d0c3;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: platform-spin .75s linear infinite;
}
@keyframes platform-spin { to { transform: rotate(360deg); } }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.url-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--text);
  padding: 14px 16px;
}
.url-field input::placeholder { color: #B9B2A4; }
.hero-form .btn-sub { margin-top: 0; }

/* ── Chat demo ── */
/* Icon-only Slack/Teams switcher: tinted pill track, white active pill */
.chat-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 30px;
}
.toggle-pill {
  width: 68px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}
.toggle-pill img { width: 20px; height: 20px; }
.toggle-pill.active { background: var(--card); box-shadow: 0 2px 8px rgba(120, 96, 60, 0.16); }

/* Browser-chrome frame around the demo (DataFast "Interactive demo" pattern) */
.browser-frame {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgba(31, 29, 26, 0.06);
  overflow: visible;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: #FCFAF6;
}
.frame-dots { display: flex; gap: 7px; flex: 1; }
.fd { width: 11px; height: 11px; border-radius: 50%; }
.fd-r { background: #FF5F57; }
.fd-y { background: #FEBC2E; }
.fd-g { background: #28C840; }
.frame-url {
  flex: 2;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-expand { flex: 1; text-align: right; color: var(--muted); font-size: 15px; }

/* Workspace mockup: sidebar + chat pane inside the browser frame (Viktor hero) */
.workspace { max-width: none; }
.ws-body {
  display: flex;
  height: 630px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
  text-align: left;
}
.ws-main { display: flex; flex-direction: column; }
.ws-main .chat-body { flex: 1; min-height: 0; overflow-y: auto; }
.ws-sidebar {
  flex: none;
  width: 192px;
  background: var(--slack);
  color: rgba(255, 255, 255, 0.78);
  padding: 14px 10px 20px;
  transition: background 0.3s;
}
.ws-team {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  padding: 4px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 0 10px 6px;
}
.ws-chan {
  display: block;
  padding: 4.5px 10px;
  border-radius: 7px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-chan.active { background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; }
.ws-main { flex: 1; min-width: 0; background: var(--card); }
.chat-header.ws-chan-header {
  background: var(--card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  transition: background 0.3s;
}
.chat-header .dots { display: flex; gap: 6px; margin-right: 6px; }
.chat-header .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.chat-body { padding: 22px 20px 26px; min-height: 560px; }

.msg {
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  margin: 2px -10px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.35s ease forwards;
}
@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }
.msg:hover { background: #FAF7F0; }
.msg-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.msg-avatar.chad { background: var(--accent); }
.msg-avatar.human { font-size: 13.5px; }
.msg-main { min-width: 0; flex: 1; }
.msg-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.msg-name { font-weight: 800; font-size: 15px; }
.app-badge {
  background: #E8E4DC;
  color: #6F6A60;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1.5px 5px;
  border-radius: 4px;
}
.msg-time { font-size: 12px; color: var(--muted); }
.msg-text { font-size: 15.5px; line-height: 1.55; }
.msg-text .mention {
  background: rgba(231, 111, 81, 0.14);
  color: var(--accent-hover);
  font-weight: 600;
  padding: 0 3px;
  border-radius: 4px;
}

/* Block Kit style: plain message flow, bold headers, no bar, no box */
.report-card {
  margin-top: 8px;
  max-width: 440px;
}
.report-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  padding: 2.5px 0;
}
.report-row .r-label { color: var(--muted); }
.report-row .r-value { font-weight: 700; text-align: right; }
.delta { color: var(--green); font-weight: 700; font-size: 13px; margin-left: 6px; }
.report-footer { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.mini-chart { margin-top: 10px; }
.mini-chart .report-title { margin: 0 0 4px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 2.5px 0; }
.bar-label { flex: none; width: 76px; color: var(--muted); }
.bar-track { display: block; flex: 1; height: 8px; background: #F0EBE1; border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; width: 0; transition: width 0.7s ease; }
.bar-pct { flex: none; width: 36px; font-weight: 700; font-size: 12.5px; text-align: right; }

.reactions { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F3EFE6;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2.5px 9px;
  font-size: 13px;
}
.reaction b { font-size: 12px; color: var(--muted); font-weight: 700; }

.typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 13.5px;
}
.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C9C2B4;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* ── How it works ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 14px;
}
.step-card h3 { font-size: 21px; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 15.5px; }
.step-chip {
  display: inline-block;
  margin-top: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.8px;
  color: var(--text);
}
.step-chip.chip-ok { color: var(--green); font-weight: 600; }

/* ── Interactive demo chips ── */
.demo-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.demo-chips-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.demo-chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--card);
  border: 1px solid #F2D4C8;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.demo-chip:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.demo-chip:disabled { opacity: 0.45; cursor: default; }

/* ── Chad for AI agents (dark section) ── */
.agents {
  background: #211E19;
  color: #F3EEE3;
  padding: 120px 0;
}
.agents .eyebrow { color: #F0A58F; }
.agents .agents-head { margin-bottom: 48px; }
.agents h2 {
  max-width: 920px;
  margin: 0 auto;
  color: #FBF8F1;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.agents h2 span { color: #F0A58F; }
.agents .agents-sub {
  max-width: 720px;
  margin-top: 26px;
  color: #B8B0A0;
  font-size: 20px;
  line-height: 1.55;
}
.agents-setup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.agents-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  background: #2C2822;
  border: 1px solid #3D382F;
  border-radius: 18px;
  padding: 28px;
  text-align: left;
}
.agents-step-number {
  color: #F0A58F;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 0.9;
}
.agents-step-label {
  display: block;
  margin-bottom: 4px;
  color: #B8B0A0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agents-step strong {
  display: block;
  color: #FBF8F1;
  font-family: var(--font-display);
  font-size: 21px;
}
.agents-step code {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  background: #17150F;
  border: 1px solid #3D382F;
  border-radius: 10px;
  color: #F3EEE3;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
}
.agents-copy {
  width: 100%;
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
}
.agents-copy:hover { background: var(--accent-hover); }
.agents-example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 22px auto 0;
  background: #17150F;
  border: 1px solid #3D382F;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.agents-example > div { padding: 38px; }
.agents-example-question {
  border-right: 1px solid #3D382F;
  text-align: left;
}
.agents-example-answer {
  background: #F0A58F;
  color: #211E19;
  text-align: left;
}
.agents-example-label {
  display: block;
  margin-bottom: 12px;
  color: #8F8776;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.example-label{margin:28px auto 10px;text-align:center;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.agents-sample-label{display:block;grid-column:1/-1;padding:18px 38px 0;color:rgba(255,255,255,.48);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.agents-example-answer .agents-example-label { color: rgba(33, 30, 25, 0.62); }
.agents-example p {
  color: #FBF8F1;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.agents-example-answer p { color: #211E19; }
.agents-example-answer p strong { font-size: 1.18em; }
.agents-example-detail {
  display: block;
  margin-top: 16px;
  color: rgba(33, 30, 25, 0.72);
  font-size: 14px;
  font-weight: 700;
}

/* ── Install with coding agents or website builders ── */
.install-options { background: var(--bg); }
.install-options-head h2 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.install-options-head .section-sub {
  max-width: 620px;
  font-size: 18px;
}
.install-group {
  max-width: 1040px;
  margin: 0 auto;
}
.install-group + .install-group { margin-top: 28px; }
.install-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  text-align: left;
}
.install-group-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.install-group-head h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.install-group-head p {
  max-width: 330px;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}
.agent-install-group {
  padding: 34px;
  background: #211E19;
  border-radius: 28px;
  color: #FBF8F1;
  box-shadow: 0 22px 60px rgba(31, 29, 26, 0.14);
}
.agent-install-group .install-group-head p { color: #B8B0A0; }
.agent-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.agent-install-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  background: #FBF8F1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agent-install-card:nth-child(2) { background: #FFF1E7; }
.agent-install-card:nth-child(3) { background: #F0EFEC; }
.agent-install-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}
.agent-install-card img {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  object-fit: contain;
}
.agent-install-card small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agent-install-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.agent-install-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: rgba(31, 29, 26, 0.07);
  border-radius: 50%;
  font-size: 19px;
}
.builder-install-group {
  padding: 34px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 28px;
}
.builder-logo-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.builder-logo-card {
  display: flex;
  min-width: 0;
  min-height: 122px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.builder-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 111, 81, 0.45);
}
.builder-logo-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.install-options .cta-center { margin-top: 38px; }

/* ── Versus (GA4 vs Chad) ── */
.versus-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.versus-head, .versus-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 16px;
  padding: 15px 24px;
  align-items: center;
}
.versus-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.versus-head .chad { color: var(--accent-hover); }
.versus-row { border-bottom: 1px solid var(--border); font-size: 14.5px; }
.versus-row:last-child { border-bottom: none; }
.versus-row .versus-col-label { font-weight: 700; font-size: 14px; }
.versus-row .ga { color: var(--muted); }
.versus-row .chad { font-weight: 600; }
.versus-row .chad::first-letter, .versus-row .ga::first-letter { font-weight: 800; }
.versus-row .ga::first-letter { color: #C0392B; }
.versus-row .chad::first-letter { color: var(--green); }

/* ── Statement (rotating line) ── */
.statement { text-align: center; }
.statement h2 { font-size: clamp(32px, 4.8vw, 52px); }
.rotate-box { color: var(--accent); }
#rotate-text {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#rotate-text.rotate-out { opacity: 0; transform: translateY(10px); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px;
  justify-content: center;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 4px 16px rgba(231, 111, 81, 0.1); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.price-tagline { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.price-amount { margin: 20px 0 4px; }
.price-amount .amt { font-family: var(--font-display); font-weight: 800; font-size: 46px; }
.price-amount .per { color: var(--muted); font-size: 15px; }
.price-features { list-style: none; margin: 20px 0 26px; flex: 1; }
.price-features li {
  padding: 6.5px 0 6.5px 28px;
  position: relative;
  font-size: 15px;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}
.pricing-note { text-align: center; color: var(--muted); margin-top: 30px; font-size: 15px; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 19px 22px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}
.faq-q .faq-icon { color: var(--accent); font-size: 20px; font-weight: 400; transition: transform 0.25s; flex: none; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ── Founder letter ── */
.founder-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 42px 44px;
}
.founder-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.founder-avatar {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}
.founder-card p { margin-bottom: 16px; font-size: 16.5px; }
.founder-card .sig { font-weight: 700; margin-bottom: 0; }

/* ── Final CTA (boxed card, DataFast pattern) ── */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 700px; margin: 0 auto; }
.cta-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 64px 40px;
}
.cta-card .cta-center { margin-top: 32px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 52px 0 40px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-tagline { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.footer-made { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }

/* ── Get Started screen (hero step widget on its own page) ── */
.hidden { display: none !important; }
#getstarted { min-height: 100vh; background: var(--bg); }
.gs-screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 24px 100px;
  text-align: center;
  animation: fade-up 0.4s ease;
}
.gs-screen h1 { font-size: clamp(30px, 4.2vw, 46px); }
.gs-sub { color: var(--muted); font-size: 17px; margin: 14px auto 40px; max-width: 480px; }
.gs-screen .hero-steps { margin-bottom: 20px; }
.gs-screen .trust-row { margin-top: 24px; }

/* ── Funnel (app view) ── */
#app { min-height: 100vh; background: var(--bg); }
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  border-bottom: 1px solid var(--border);
}
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper-item { display: flex; align-items: center; gap: 8px; }
.stepper-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #E3DCCD;
  transition: all 0.25s;
}
.stepper-item.active .stepper-dot { background: var(--accent); transform: scale(1.25); }
.stepper-item.done .stepper-dot { background: var(--green); }
.stepper-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stepper-item.active .stepper-label { color: var(--text); }
.stepper-sep { width: 22px; height: 1.5px; background: var(--border); }
.app-exit { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.app-exit:hover { color: var(--text); }

.funnel-step {
  max-width: 660px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  animation: fade-up 0.4s ease;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.funnel-step h2 { font-size: clamp(28px, 4vw, 38px); text-align: center; }
.funnel-sub { color: var(--muted); text-align: center; margin: 12px auto 40px; max-width: 540px; }

.provider-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}
.btn-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 13px 22px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-provider:hover:not(:disabled) { border-color: var(--accent); }
.btn-provider:disabled { opacity: 0.55; cursor: default; }
.dest-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.funnel-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.connect-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 34px;
  text-align: center;
}
.connect-status { min-height: 30px; margin-top: 18px; font-weight: 600; }
.connect-status.authorizing { color: var(--muted); }
.connect-status.ok { color: var(--green); }
.connect-flavor { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid #E3DCCD;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.connect-settings { margin-top: 30px; text-align: left; animation: fade-up 0.35s ease; }
.field { margin-bottom: 22px; }
.field-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.cadence-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cadence-check { position: relative; }
.cadence-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cadence-check span {
  display: inline-block;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
}
.cadence-check input:checked + span {
  background: var(--bg-alt);
  border-color: #C9C0AE;
  color: var(--text);
}

.install-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 26px;
}
.install-intro strong { color: var(--text); }
.install-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.install-tab {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.install-tab.active { background: var(--text); color: #fff; border-color: var(--text); }
.install-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 24px;
  animation: fade-up 0.3s ease;
}
.install-pitch { font-weight: 600; margin-bottom: 14px; }
.install-steps { margin: 0 0 18px 20px; color: var(--muted); font-size: 15px; }
.install-steps li { margin-bottom: 6px; }
.code-box {
  position: relative;
  background: #211E19;
  color: #F3EEE3;
  border-radius: 12px;
  padding: 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.8px;
  line-height: 1.6;
  overflow: auto;
  max-height: 320px;
}
.code-box pre { white-space: pre-wrap; word-break: break-word; margin: 0; padding-right: 90px; font-family: inherit; }
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--accent-hover); }
.copy-btn.copied { background: var(--green); }

/* ── Step 4 / Done ── */
.done-wrap { text-align: center; }
.done-moai { font-size: 64px; line-height: 1; margin-bottom: 18px; }
.verify-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 8px;
}
.verify-pill .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.3s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(231, 111, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0); }
}
.verify-pill.detected { border-color: var(--green); color: var(--green); }
.verify-pill.detected .pulse { background: var(--green); animation: none; }
.done-sub { color: var(--muted); max-width: 480px; margin: 10px auto 0; }
.preview-wrap {
  max-width: 560px;
  margin: 34px auto 0;
  text-align: left;
  animation: fade-up 0.4s ease;
}
.preview-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(120, 96, 60, 0.12);
  overflow: hidden;
}
.preview-body { padding: 18px 18px 20px; }

/* ── Responsive (plan §8: ~820px and ~680px) ── */
@media (max-width: 820px) {
  section { padding: 64px 0; }
  .nav-center { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .agents-setup, .agents-example { grid-template-columns: 1fr; }
  .agents-example-question { border-right: none; border-bottom: 1px solid #3D382F; }
  .builder-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .versus-head, .versus-row { grid-template-columns: 96px 1fr 1fr; gap: 10px; padding: 13px 16px; }
  .pricing-grid { grid-template-columns: minmax(0, 420px); }
  .footer-inner { flex-direction: column; }
  .stepper-label { display: none; }
  .stepper-sep { width: 14px; }
}
@media (max-width: 680px) {
  .hero { padding: 64px 0 48px; }
  .hero-sub { font-size: 17px; }
  .ws-sidebar { display: none; }
  .ws-body { height: 480px; }
  .input-arrow { display: none; }
  .hero-cta-row { grid-template-columns: 1fr; }
  .hero-cta-row .btn-app { width: 100%; justify-content: center; }
  .nav-right .btn-ghost { display: none; }
  .versus-head, .versus-row { grid-template-columns: 1fr; gap: 4px; }
  .versus-head { display: none; }
  .versus-row .versus-col-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  .agents { padding: 80px 0; }
  .agents-step { grid-template-columns: 44px minmax(0, 1fr); padding: 22px; }
  .agents-step-number { font-size: 42px; }
  .agents-example > div { padding: 28px 24px; }
  .agent-install-grid { grid-template-columns: 1fr; }
  .agent-install-group, .builder-install-group { padding: 22px; border-radius: 22px; }
  .install-group-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .install-group-head p { max-width: none; text-align: left; }
  .agent-install-card { min-height: 180px; }
  .builder-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-body { padding: 16px 12px 20px; min-height: 480px; }
  .msg { gap: 9px; }
  .report-card { max-width: 100%; }
  .founder-card { padding: 30px 24px; }
  .connect-box { padding: 28px 20px; }
  .install-panel { padding: 20px 16px; }
  .funnel-step { padding: 44px 20px 72px; }
  .code-box pre { padding-right: 0; padding-top: 30px; }
}
