/* ============================================
   masher ai landing — tokens + base
   Blue accent matches the app shell. Layout primitives mirror the wrendesk
   lander structure (nav, hero, pillars, flow, features, pricing, faq, cta).
   ============================================ */

:root, :root[data-theme="dark"] {
  --bg: #1c1c20;
  --bg-2: #131316;
  --panel: #17171b;
  --panel-2: #1f1f24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #ededed;
  --ink-2: #b6b7bb;
  --ink-3: #75757a;
  --ink-4: #5b5b5e;
  --accent: #5b8cef;
  --accent-soft: rgba(91, 140, 239, 0.16);
  --accent-line: rgba(91, 140, 239, 0.4);
  --accent-ink: #08111f;
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 16px 42px -30px rgba(0, 0, 0, 0.65);
  --radius: 18px;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 0.65, 0.26, 0.98);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fafaf9;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f5f5f6;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.18);
  --ink: #1a1a1c;
  --ink-2: #4a4c54;
  --ink-3: #76787e;
  --ink-4: #9a9ca0;
  --accent: #3a6dd8;
  --accent-soft: rgba(58, 109, 216, 0.14);
  --accent-line: rgba(58, 109, 216, 0.4);
  --accent-ink: #ffffff;
  --shadow-lg: 0 30px 60px -30px rgba(20, 30, 50, 0.22);
  --shadow-sm: 0 16px 42px -30px rgba(20, 30, 50, 0.18);
  color-scheme: light;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ========== BASE ========== */
* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100vw; overflow-x: clip; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
html.fonts-pending body { opacity: 0; }

/* Faint vertical column rails matching the wrendesk look. */
body::before, body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  border-left: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  border-right: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

main, nav, footer, .mobile-menu, .scroll-meter { position: relative; z-index: 1; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; cursor: pointer; }
button { background: transparent; border: 0; color: inherit; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container.narrow { max-width: 920px; }

/* ========== Scroll meter ========== */
.scroll-meter {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  z-index: 60;
}
.scroll-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 80ms linear;
}

/* ========== Pixel brand logo (mirrors React BrandLogo) ========== */
.brand-pixel {
  --cell: 4px; --gap: 1px;
  display: inline-grid;
  grid-template-columns: repeat(43, var(--cell));
  grid-auto-rows: var(--cell);
  gap: var(--gap);
  color: var(--ink);
  flex-shrink: 0;
}
.brand-pixel.xs { --cell: 3px; }
.brand-pixel.sm { --cell: 4px; }
.brand-pixel.md { --cell: 7px; }
.brand-pixel.lg { --cell: 11px; --gap: 2px; }
.brand-pixel > span { width: var(--cell); height: var(--cell); }
.brand-pixel > span.on { background: currentColor; border-radius: 1px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -0.003em;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 100ms ease, color 180ms var(--ease);
}
.btn .arrow { transition: transform 240ms var(--ease); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 92%, white); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-primary:active { transform: scale(0.985); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--panel-2); }

/* ========== Site nav ========== */
.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, var(--max));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 18px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: 16px;
  z-index: 50;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 14px;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 140ms ease, color 140ms ease;
}
.nav-links a:hover { background: var(--panel-2); color: var(--ink); }
.actions-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.icon-btn:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.theme-toggle svg { transition: opacity 160ms ease, transform 240ms var(--ease); }
[data-theme="dark"]  .theme-sun  { display: block; }
[data-theme="dark"]  .theme-moon { display: none; }
[data-theme="light"] .theme-sun  { display: none; }
[data-theme="light"] .theme-moon { display: block; }
.hamburger-btn { display: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 560;
  transition: background 180ms var(--ease), transform 100ms ease;
}
.nav-cta:hover { background: color-mix(in srgb, var(--accent) 92%, white); }
.nav-cta:active { transform: scale(0.97); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  display: flex;
  flex-direction: column;
  padding: 18px 22px 26px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mobile-menu .close-btn { width: 32px; height: 32px; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-menu-links a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 540;
  color: var(--ink);
  transition: background 140ms ease;
}
.mobile-menu-links a:hover { background: var(--panel-2); }
.mobile-menu-button { width: 100%; margin-top: 18px; }

/* ========== Section primitives ========== */
.section-band {
  padding: clamp(68px, 8vw, 108px) 0;
  position: relative;
}
.section-band + .section-band { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 580px;
  line-height: 1.55;
}
.section-header {
  max-width: 720px;
}
.section-header.centered {
  margin: 0 auto;
  text-align: center;
}
.section-header.centered .section-sub { margin-left: auto; margin-right: auto; }

/* ========== Hero ========== */
.hero { padding-top: clamp(120px, 18vh, 180px); padding-bottom: clamp(56px, 10vh, 100px); overflow: hidden; }
.hero-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(86vw, 720px);
  height: 56vh;
  background: radial-gradient(50% 50% at 50% 30%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}
.hero-title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 920px;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-copy {
  margin: 16px 0 0;
  max-width: 640px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

/* Hero stage with chat mock + floating stat cards. */
.hero-stage {
  position: relative;
  margin-top: 64px;
  width: min(560px, 100%);
  aspect-ratio: 5 / 4;
}
.stage-ring {
  position: absolute;
  inset: -34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(60% 60% at 50% 30%, var(--accent-soft), transparent 70%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 18px;
  animation: ringPulse 4.4s ease-in-out infinite;
  pointer-events: none;
}
.stage-ring span {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.95; }
}
.chat-mock {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.chat-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.chat-mock-name { font-size: 13px; font-weight: 580; color: var(--ink); margin-top: 1px; }
.chat-mock-actions { display: flex; gap: 6px; color: var(--ink-3); }
.chat-mock-action {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  background: var(--panel-2);
}
.chat-mock-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  justify-content: flex-end;
}
.chat-mock-row { display: flex; }
.chat-mock-row.user { justify-content: flex-end; }
.chat-mock-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.chat-mock-bubble-user {
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 6px;
}
.chat-mock-bubble-bot {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.chat-mock-panel {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.chat-mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-2);
}
.chat-mock-panel-dots { display: inline-flex; gap: 4px; }
.chat-mock-panel-dots i { width: 7px; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.chat-mock-panel-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  background: radial-gradient(55% 60% at 50% 50%, var(--accent-soft), transparent 70%);
}
.flow-node {
  padding: 7px 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 540;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.flow-node.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.flow-arrow { width: 18px; height: 1px; background: var(--line-2); position: relative; }
.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px; height: 5px;
  border-right: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
}
.chat-mock-composer {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  background: var(--panel);
}
.chat-mock-composer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chat-mock-field-text { flex: 1; color: var(--ink-3); font-size: 12.5px; }
.chat-mock-send {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
}
.chat-mock-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Floating stat cards. */
.stat-card {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  animation: floatY 5.4s ease-in-out infinite;
  font-family: var(--sans);
}
.stat-card span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-top: 2px;
}
.stat-card-left { left: -56px; top: 28%; animation-delay: -0.6s; transform: rotate(-3deg); }
.stat-card-right { right: -52px; bottom: 14%; animation-delay: -1.8s; transform: rotate(2deg); }

/* Hero trust strip. */
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
}
.hero-trust svg { color: var(--accent); flex-shrink: 0; }

/* ========== Pillars ========== */
.pillars-section .section-header { margin-bottom: 56px; }
.pillar-orbit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.pillar-tag {
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 580;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pillar-card h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.pillar-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.pillar-note {
  margin-top: auto;
  padding-top: 12px;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-3);
}

/* ========== Flow ========== */
.flow-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 64px;
  align-items: flex-start;
}
.flow-intro { position: sticky; top: 100px; }
.flow-rail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin: 0;
  padding: 0;
}
.flow-rail::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 22px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line) 0%, var(--accent-line) 50%, var(--line) 100%);
}
.flow-step {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  z-index: 1;
}
.step-label {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 580;
  font-size: 12px;
  flex-shrink: 0;
}
.flow-step h3 { font-size: 15.5px; font-weight: 580; margin: 0 0 4px; color: var(--ink); }
.flow-step p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

/* ========== Features ========== */
.features-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 64px;
  align-items: flex-start;
}
.features-intro { position: sticky; top: 100px; }
.feature-stack { display: flex; flex-direction: column; gap: 14px; }
.feature-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 22px;
  align-items: flex-start;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease);
}
.feature-panel:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature-label {
  font-size: 10.5px;
  font-weight: 580;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}
.feature-copy h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 580;
  color: var(--ink);
}
.feature-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.feature-mini {
  align-self: center;
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.feature-mini-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  white-space: normal;
  text-align: right;
  align-self: flex-start;
}
.feature-mini-list span { color: var(--ink-2); }
.feature-mini-list b { color: var(--ink-3); margin-right: 6px; font-weight: 500; }

/* ========== Pricing ========== */
.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-sm);
}
.price-top span {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.price-top strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1;
  margin: 8px 0 6px;
}
.price-top strong span { font-size: 16px; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.price-top p { margin: 0; color: var(--ink-2); font-size: 13px; }
.price-features {
  list-style: none;
  margin: 22px 0 22px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.price-features svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 580;
  transition: background 180ms var(--ease), transform 100ms ease;
}
.price-cta:hover { background: color-mix(in srgb, var(--accent) 92%, white); }
.price-cta:active { transform: scale(0.985); }

/* ========== FAQ ========== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: flex-start;
}
.faq-title { position: sticky; top: 100px; }
.faq-wrap { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 560;
  color: var(--ink);
  text-align: left;
}
.faq-toggle {
  width: 16px; height: 16px;
  position: relative;
  flex-shrink: 0;
}
.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-2);
  transition: transform 240ms var(--ease), background 200ms ease;
}
.faq-toggle::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-toggle::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq-item.open .faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  padding: 0 20px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  transition: padding 320ms var(--ease);
}
.faq-item.open .faq-a-inner { padding: 0 20px 18px; }

/* ========== Final CTA ========== */
.final-section { padding-bottom: clamp(80px, 12vw, 140px); }
.final-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.final-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.final-cta > p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 480px; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.footer-brand p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 580;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  color: var(--ink-2);
  font-size: 13.5px;
  padding: 4px 0;
  transition: color 140ms ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 0;
  color: var(--ink-3);
  font-size: 12px;
}

/* ========== Animations ========== */
.animate-rise { opacity: 0; transform: translateY(18px); animation: rise 700ms var(--ease) both; }
.animate-scale { opacity: 0; transform: scale(0.96); animation: scaleIn 800ms var(--ease) both; }
.delay-100 { animation-delay: 80ms; }
.delay-200 { animation-delay: 160ms; }
.delay-300 { animation-delay: 240ms; }
.delay-400 { animation-delay: 320ms; }
.delay-500 { animation-delay: 400ms; }
.delay-600 { animation-delay: 480ms; }
@keyframes rise    { to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.show { opacity: 1; transform: translateY(0); }
.pillar-orbit .reveal:nth-child(2) { transition-delay: 80ms; }
.pillar-orbit .reveal:nth-child(3) { transition-delay: 160ms; }
.flow-rail .reveal:nth-child(2) { transition-delay: 70ms; }
.flow-rail .reveal:nth-child(3) { transition-delay: 140ms; }
.flow-rail .reveal:nth-child(4) { transition-delay: 210ms; }
.flow-rail .reveal:nth-child(5) { transition-delay: 280ms; }
.feature-stack .reveal:nth-child(2) { transition-delay: 70ms; }
.feature-stack .reveal:nth-child(3) { transition-delay: 140ms; }
.feature-stack .reveal:nth-child(4) { transition-delay: 210ms; }
.feature-stack .reveal:nth-child(5) { transition-delay: 280ms; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger-btn { display: inline-flex; }
  .pillar-orbit { grid-template-columns: 1fr; }
  .flow-layout, .features-layout, .pricing-layout, .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-intro, .features-intro, .faq-title { position: relative; top: 0; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .stat-card-left { left: -16px; }
  .stat-card-right { right: -12px; }
}
@media (max-width: 640px) {
  body::before { display: none; }
  .container { padding-left: 16px; padding-right: 16px; }
  .nav-cta { display: none; }
  .hero-stage { margin-top: 44px; aspect-ratio: 4 / 5; }
  .stat-card { display: none; }
  .stage-ring { inset: -18px; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-mini, .feature-mini-list { align-self: flex-start; text-align: left; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .animate-rise, .animate-scale { opacity: 1; transform: none; animation: none; transition: none; }
  .chat-mock, .stat-card, .stage-ring { animation: none; }
}
