/* ========== TOKENS ========== */
:root, :root[data-theme="dark"] {
  --bg: #0c0f10;
  --bg-2: #121617;
  --panel: #171c1d;
  --panel-2: #1b2122;
  --line: #252c2d;
  --line-2: #323a3b;
  --ink: #f1f3ee;
  --ink-2: #c2c7c0;
  --ink-3: #8a918a;
  --ink-4: #5c635d;
  --accent: oklch(0.79 0.13 147);
  --accent-ink: #0d1611;
  --accent-dim: oklch(0.79 0.13 147 / 0.16);
  --accent-line: oklch(0.79 0.13 147 / 0.4);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.72);
  --radius: 14px;
  --sans: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --ease-smooth: cubic-bezier(0.22, 0.65, 0.26, 0.98);
}

:root[data-theme="light"] {
  --bg: #f5f4ef;
  --bg-2: #fcfbf6;
  --panel: #ffffff;
  --panel-2: #f7f5ee;
  --line: #e6e2d6;
  --line-2: #d7d1c2;
  --ink: #1a231f;
  --ink-2: #4f5851;
  --ink-3: #7b8279;
  --ink-4: #9aa097;
  --accent-ink: #0b140e;
  --accent-dim: oklch(0.79 0.13 147 / 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(20, 30, 24, 0.22);
}

/* ========== RESET / BASE ========== */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
html, body {
  margin: 0; padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

/* FOUT guard: hide body and defer hero animations until web fonts are ready,
   so Inter/Instrument Serif don't swap in mid-animation and re-shape text. */
html.fonts-pending body { opacity: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
  background-clip: padding-box;
}

@media (max-width: 640px) {
  html { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  --dot-gap: clamp(18px, 2.6vw, 30px);
  background-image: radial-gradient(circle, color-mix(in oklab, var(--ink) 14%, transparent) 1px, transparent 1.6px);
  background-size: var(--dot-gap) var(--dot-gap);
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 22%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 70% at 50% 22%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

main, nav, footer, .mobile-menu { position: relative; z-index: 1; }

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}
section { padding: 64px 0; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-fade-up,
.animate-scale-in { opacity: 0; }
html.fonts-loaded .animate-fade-up { animation: fadeUp 0.7s var(--ease-smooth) both; }
html.fonts-loaded .animate-scale-in { animation: scaleIn 0.7s var(--ease-smooth) both; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.show { opacity: 1; transform: none; }

/* ========== NAV ========== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.1rem;
  gap: 12px;
  width: min(1100px, calc(100% - 2rem));
  position: fixed;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, top 0.35s ease, width 0.35s ease, backdrop-filter 0.35s ease;
}
.site-nav.nav-scrolled {
  background: color-mix(in oklab, var(--bg) 62%, transparent);
  border-color: color-mix(in oklab, var(--line) 75%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  width: min(980px, calc(100% - 2rem));
  top: 1.1rem;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 1.75rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  transition: transform 0.3s ease;
}
.brand:hover { transform: scale(1.04); }
.brand-mark {
  width: 48px; height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); background: var(--panel-2);
}

.actions-group { display: flex; align-items: center; gap: 0.55rem; }

.nav-cta {
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 13px;
  border: 1px solid var(--accent);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s, filter 0.2s;
}
.nav-cta:hover { transform: scale(1.04); filter: brightness(1.06); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

.icon-btn {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.25s ease;
}
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.theme-toggle:hover { transform: rotate(15deg); }
.hamburger-btn { display: none; }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem;
}
.mobile-menu-links {
  display: flex; flex-direction: column; gap: 0.25rem;
  flex: 1;
}
.mobile-menu-links a {
  color: var(--ink); text-decoration: none;
  font-size: 1.15rem; font-weight: 500;
  padding: 0.9rem 0.75rem; border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu-links a:hover { background: var(--panel-2); }
.mobile-menu-cta {
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; gap: 0.75rem;
}

/* ========== TYPOGRAPHY ========== */
.eyebrow {
  margin: 0 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.02em; font-weight: 500;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.section-title em { font-style: italic; color: var(--ink-2); }

.section-sub {
  margin: 0 auto;
  color: var(--ink-2);
  font-size: clamp(14px, 1.6vw, 16px);
  max-width: 58ch;
  line-height: 1.6;
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { margin-bottom: 14px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-smooth), filter 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.25s var(--ease-smooth); }
.btn-primary:hover .arrow { transform: translateX(3px); }

/* ========== HERO ========== */
.hero {
  padding-top: clamp(96px, 11vw, 140px);
  padding-bottom: clamp(78px, 10vw, 102px);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy { padding-left: clamp(8px, 2vw, 24px); }

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.hero-copy h1 em { font-style: italic; color: var(--ink-2); }

.lede {
  margin: clamp(16px, 2vw, 22px) 0 0;
  color: var(--ink-2);
  max-width: 54ch;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
}

.hero-actions {
  margin-top: clamp(22px, 3vw, 32px);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-actions .btn { font-size: 14px; padding: 12px 18px; }

.hero-trust {
  margin: clamp(22px, 2.8vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--accent); flex-shrink: 0; }

/* Stage: chat mock + floating context cards + accent glow */
.hero-stage {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 440px;
  padding: 18px 0 24px;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: -10% -8%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-stage .chat-mock {
  margin-left: 0;
  max-width: none;
  position: relative;
  z-index: 2;
}

.hero-context-card {
  position: absolute;
  top: -10px;
  right: -14px;
  z-index: 4;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 156px;
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease-smooth);
}
.hero-stage:hover .hero-context-card {
  transform: rotate(2deg) translateY(-3px);
}
.hero-context-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  font-size: 10.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin-bottom: 1px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-context-title svg { color: var(--accent); }
.hero-context-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-3);
}
.hero-context-row strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-embed-badge {
  position: absolute;
  bottom: -4px;
  left: -10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease-smooth);
}
.hero-stage:hover .hero-embed-badge {
  transform: rotate(-1deg) translateY(2px);
}
.hero-embed-badge svg { color: var(--accent); }

/* ========== HERO CHAT MOCKUP (mirrors widget/src/wrendesk.tsx) ========== */
.chat-mock {
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  /* `.hero` cascades text-align: center on mobile — pin the chat mock back to
     left-aligned so bubbles, time stamps, and the composer don't drift. */
  text-align: left;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s;
}
.chat-mock:hover { transform: translateY(-4px); }

/* Header: just helper name + a couple of icon buttons. */
.chat-mock-head {
  display: flex; align-items: center;
  padding: 14px 16px;
  background: var(--panel);
}
.chat-mock-name {
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.012em;
}
.chat-mock-actions {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink-3);
}
.chat-mock-action {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  background: transparent;
}

.chat-mock-body {
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel);
}
.chat-mock-row { display: flex; }
.chat-mock-row.bot { align-self: stretch; }
.chat-mock-row.user { align-self: flex-end; max-width: 90%; }

.chat-mock-bubble {
  font-size: 14px; line-height: 1.55;
  letter-spacing: -0.003em;
  word-break: break-word;
}
.chat-mock-bubble-bot {
  color: var(--ink);
  padding: 2px 0;
}
.chat-mock-bubble-user {
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--ink);
  border-radius: 16px;
  border-bottom-right-radius: 6px;
  padding: 9px 13px;
}

/* Sources toggle pill matches `.citations-toggle` in the widget. */
.chat-mock-sources {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: -0.005em;
}
.chat-mock-sources-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 10.5px; font-weight: 600;
}

/* Composer: single-row panel-2 box with input and send button inline. */
.chat-mock-composer { padding: 8px 16px 10px; background: var(--panel); }
.chat-mock-composer-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.15) inset;
}
.chat-mock-field {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 6px 6px 14px;
  font-size: 14px; line-height: 1.45;
  color: var(--ink-3);
}
.chat-mock-field-text { flex: 1 1 auto; padding: 6px 0; }
.chat-mock-send {
  align-self: flex-end;
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Footer: powered-by row with small logo. */
.chat-mock-foot {
  padding: 4px 12px 5px;
  text-align: center;
  font-size: 10.5px; font-weight: 500;
  color: var(--ink-3);
  background: var(--panel);
  border-top: 1px solid var(--line);
  letter-spacing: -0.005em;
  line-height: 1;
}
.chat-mock-foot-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: inherit; text-decoration: none;
  transform: translateX(-4px);
}
.chat-mock-foot-logo {
  width: 14px; height: 14px;
  object-fit: contain; flex-shrink: 0;
}
.chat-mock-foot-brand { font-weight: 600; color: var(--ink-2); }

/* ========== MARQUEE ========== */
.marquee-section {
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.1rem 0;
  margin-right: 2.2rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.marquee-item svg { color: var(--accent); opacity: 0.85; flex-shrink: 0; }

/* ========== PILLAR CARDS ========== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pillar-card {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s, box-shadow 0.35s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lg);
}
.pillar-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-dim) 0%, transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}
.pillar-card > * { position: relative; }
.pillar-glyph {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.pillar-kicker {
  font-size: 11.5px; font-weight: 500;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pillar-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pillar-body {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.pillar-demo {
  margin-top: auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.pillar-demo .d-in { opacity: 0.6; display: block; margin-bottom: 4px; }
.pillar-demo .d-out { color: var(--accent); display: block; font-weight: 500; }

/* ========== STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px 18px;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s, box-shadow 0.35s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lg);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  font-family: var(--mono);
  font-weight: 600; font-size: 12.5px;
  margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.step-card p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; }

/* ========== FEATURES BENTO ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s, box-shadow 0.35s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lg);
}
.bento-wide { grid-column: span 8; }
.bento-narrow { grid-column: span 4; }
.bento-half { grid-column: span 6; }

.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
}
.feature-card h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.feature-card code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 0.9em;
}

.brand-preview {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.brand-chip {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.brand-chip strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px; font-weight: 600;
  margin-top: 4px;
}
.swatch-row { display: flex; gap: 4px; margin-top: 4px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }

.embed-mock {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 10px 12px;
  line-height: 1.6;
  overflow: hidden;
}
.embed-mock .tag { color: var(--accent); }
.embed-mock .attr { color: var(--ink-3); }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s, box-shadow 0.35s;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent-dim) 50%, var(--panel)) 0%, var(--panel) 60%);
  box-shadow: 0 18px 48px -24px color-mix(in oklab, var(--accent) 45%, transparent);
}
.price-card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 56px -22px color-mix(in oklab, var(--accent) 55%, transparent);
}
.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-head { display: flex; flex-direction: column; gap: 6px; }
.price-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.price-blurb {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  min-height: 2.6em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-amount .price-period {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.price-features {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.price-features svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.price-cta {
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  transition: transform 0.2s var(--ease-smooth), filter 0.2s, background 0.2s, border-color 0.2s;
}
.price-cta:hover {
  background: var(--panel);
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.price-cta.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.price-cta.primary:hover { filter: brightness(1.06); border-color: var(--accent); }

.price-foot {
  margin: 22px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.price-foot a { color: var(--accent); text-decoration: none; font-weight: 500; }
.price-foot a:hover { text-decoration: underline; }

/* ========== FAQ ========== */
.faq-wrap {
  max-width: 880px; margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item.open { background: var(--panel-2); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem;
  border: 0; background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.3;
  padding: 20px 28px;
  cursor: pointer;
}
.faq-q:hover { background: var(--panel-2); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-smooth);
  color: var(--ink-3);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s var(--ease-smooth);
}
.faq-item.open .faq-a { max-height: 420px; }
.faq-a-inner {
  padding: 4px 28px 22px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 68ch;
}
.faq-a-inner code,
.faq-a-inner strong {
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink);
}

/* ========== FINAL CTA ========== */
.final-cta {
  max-width: 980px; margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.final-cta::before {
  content: ''; position: absolute; inset: -50% -10% auto -10%;
  height: 200%;
  background: radial-gradient(ellipse at top, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}
.final-cta > * { position: relative; }
.final-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.final-cta p {
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.cta-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.site-footer { padding: 2rem 2rem 2.5rem; }
.footer-wrap {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0 0 0 10px; color: var(--ink-3); font-size: 12.5px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  section { padding: 54px 0; }
  .hero {
    padding-top: 120px;
    padding-bottom: 86px;
    text-align: center;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; padding-left: 0; max-width: 620px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .chat-mock { max-width: 440px; margin: 0 auto; }
  .hero-stage { margin: 0 auto; max-width: 440px; padding: 60px 0 56px; }
  .hero-stage::before { inset: -6% -6%; opacity: 0.4; }
  .pillar-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-narrow, .bento-half { grid-column: span 1; }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; gap: 14px; }
}

@media (max-width: 760px) {
  section { padding: 44px 0; }
  .site-nav,
  .site-nav.nav-scrolled { width: calc(100% - 1rem); }
  .site-nav { padding: 0.5rem 0.75rem; gap: 8px; }
  .nav-left, .nav-right { gap: 0.5rem; }
  .nav-left .nav-links { display: none; }
  .hamburger-btn { display: flex; }

  .hero { padding-top: 100px; padding-bottom: 70px; }
  .hero-grid { gap: 24px; }
  .hero-copy { gap: 0; }
  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 56px);
    max-width: 18ch;
  }
  .lede { font-size: 15.5px; max-width: 42ch; }
  .hero-actions { width: 100%; gap: 8px; margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 calc(50% - 4px); padding: 12px 14px; }
  .hero-trust { gap: 10px 18px; font-size: 12px; margin-top: 20px; }
  .hero-stage { padding: 56px 0 52px; }
  .hero-context-card {
    top: 4px;
    right: 6px;
    left: auto;
    min-width: 138px;
    padding: 10px 12px;
  }
  .hero-context-card .hero-context-row { font-size: 10.5px; }
  .hero-context-card .hero-context-row strong { font-size: 16px; }
  .hero-embed-badge {
    bottom: 8px;
    left: 6px;
    right: auto;
    padding: 7px 12px;
    font-size: 10.5px;
  }

  .chat-mock-body { padding: 12px 14px; gap: 8px; }
  .chat-mock-bubble { font-size: 13px; }
  .chat-mock-bubble-user { padding: 8px 12px; }
  .chat-mock-head { padding: 12px 14px; }
  .chat-mock-name { font-size: 14px; }

  .steps-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .final-cta { padding: 40px 20px; }
  .price-card { padding: 22px 20px 20px; }
  .price-amount { font-size: 42px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 18px; }
  .price-card.featured { order: -1; }
}

@media (max-width: 480px) {
  .hero { padding-top: 94px; padding-bottom: 66px; }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 46px); max-width: 100%; line-height: 1.02; }
  .lede { font-size: 14.5px; line-height: 1.55; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 100%; font-size: 13.5px; }
  .hero-trust { gap: 8px 14px; font-size: 11.5px; margin-top: 18px; }
  .eyebrow { font-size: 11px; padding: 0.25rem 0.7rem; }
  .chat-mock { max-width: 100%; }
  .chat-mock-composer { padding: 6px 12px 8px; }
  .chat-mock-field { font-size: 13.5px; padding: 5px 5px 5px 12px; }
  .chat-mock-send { width: 28px; height: 28px; }
  .chat-mock-foot { font-size: 10px; padding: 4px 10px 5px; }
  .chat-mock-foot-logo { width: 13px; height: 13px; }
  .hero-stage { padding: 50px 0 46px; }
  .hero-stage::before { display: none; }
  .hero-context-card {
    top: 2px;
    right: 4px;
    min-width: 122px;
    padding: 9px 11px;
    gap: 5px;
  }
  .hero-context-card .hero-context-title { font-size: 9.5px; padding-bottom: 6px; }
  .hero-context-card .hero-context-row { font-size: 10px; }
  .hero-context-card .hero-context-row strong { font-size: 14px; }
  .hero-embed-badge { bottom: 6px; left: 4px; padding: 6px 11px; font-size: 10px; }
}

@media (max-width: 420px) {
  .brand { font-size: 0.98rem; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-cta { font-size: 12px; padding: 0.42rem 0.8rem; }
  .icon-btn { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animate-fade-up, .animate-scale-in, .reveal { opacity: 1 !important; transform: none !important; }
}
