/* =========================================================================
   Surface | AI analytics for marketing agencies
   Single stylesheet. Vanilla CSS. Brand tokens from the direction brief.
   Light theme only (brand is warm-white; one deliberate dark band).
   ========================================================================= */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/HankenGrotesk-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --page: #F7F4F4;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #4B4B57;
  --muted: #66666F;
  --border: #D9DCF5;

  /* Interactive */
  --cobalt: #4042E2;
  --cobalt-hover: #3335C6;
  --cobalt-soft: #E8E8FC;

  /* Status */
  --green: #16a34a;
  --green-soft: #e7f6ec;

  /* Signature gradient (canopy + top strip only) */
  --gradient: linear-gradient(18deg, #2A1FF5 0%, #531EC6 22%, #832DA8 45%, #B94169 63%, #EA6952 80%, #FBD23C 100%);

  /* Type */
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Radius scale (soft, consistent) */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (tinted to page hue, never pure black) */
  --shadow-sm: 0 1px 2px rgba(20, 20, 45, 0.05);
  --shadow-md: 0 12px 34px rgba(30, 30, 70, 0.09);
  --shadow-lg: 0 30px 70px rgba(30, 30, 80, 0.14);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-hover); }

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--cobalt);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Thin gradient page-top strip (brand continuity) ---------- */
.page-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 120;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 132px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 18px;
}

/* Two-column section header (Linear) */
.sec-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 68px);
}
.sec-head h2 {
  font-size: clamp(29px, 4.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 15ch;
}
.sec-head .sec-support {
  color: var(--ink-2);
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.6;
  max-width: 42ch;
}
@media (max-width: 768px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .sec-head h2 { max-width: 20ch; }
}

/* Mono utility (numbers, prices, stats) */
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 244, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 244, 244, 0.9);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 200ms var(--ease);
}
.site-header.is-scrolled .header-inner { height: 64px; }

/* Brand lockup */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  white-space: nowrap;
}
.lockup:hover { color: var(--ink); }
.lockup__mark { width: 30px; height: 30px; flex: none; }
.lockup__name { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.lockup__by { color: var(--muted); font-size: 14px; font-weight: 500; }
@media (max-width: 480px) {
  .lockup__by { display: none; }
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  transition: color 140ms var(--ease);
}
.nav__links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 120ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-hover); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--cobalt); color: var(--cobalt); background: var(--cobalt-soft); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  position: relative;
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 160ms var(--ease), top 220ms var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 79px 0 auto 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px var(--gutter) 26px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav ul a {
  display: block;
  padding: 16px 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}
.mobile-nav ul a:hover { color: var(--cobalt); }

@media (max-width: 900px) {
  .nav__links, .nav .btn { display: none; }
  .hamburger { display: block; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

/* =========================================================================
   Hero (gradient canopy)
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(120px, 15vh, 168px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero__canopy {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 440px;
  background: var(--gradient);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero__canopy::after {
  /* soften into page white so text sits on a quiet field */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(247,244,244,0) 0%, rgba(247,244,244,0.35) 55%, rgba(247,244,244,0.9) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero__eyebrow {
  color: var(--cobalt);
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
  margin-bottom: 30px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Validated proof chip */
.proof {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  max-width: 34rem;
}
.badge-validated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--green-soft);
  color: #0f7a37;
  border: 1px solid rgba(22, 163, 74, 0.28);
  padding: 7px 14px 7px 11px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.badge-validated svg { width: 15px; height: 15px; flex: none; }
.proof__caption { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* Browser frame */
.frame-wrap {
  position: relative;
  z-index: 1;
}
.frame-wrap::before {
  /* radial cobalt glow behind the screenshot */
  content: "";
  position: absolute;
  inset: -8% -6% -12% -6%;
  background: radial-gradient(60% 55% at 55% 42%, rgba(64, 66, 226, 0.34), rgba(64, 66, 226, 0) 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: #fbfbfe;
  border-bottom: 1px solid var(--border);
}
.browser__dots { display: inline-flex; gap: 7px; flex: none; }
.browser__dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #dcdce7; display: block;
}
.browser__url {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser__body { display: block; }
.browser__body img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: none; }
  .hero__canopy { height: 380px; }
}

/* =========================================================================
   Problem section (pain-point grid)
   ========================================================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pain {
  background: var(--surface);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 180ms var(--ease);
}
.pain:hover { background: #fdfdff; }
.pain__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.pain__icon svg { width: 21px; height: 21px; }
.pain h3 {
  font-size: 18px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pain p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.pain__cost { font-family: var(--mono); color: var(--cobalt); font-weight: 700; }
.pain--wide { grid-column: span 2; }

.problem-closer {
  margin-top: clamp(32px, 4vw, 48px);
  border-left: 3px solid var(--cobalt);
  padding: 8px 0 8px 24px;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .pain--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
  .pain--wide { grid-column: span 1; }
}

/* =========================================================================
   Product tour (alternating screenshot rows)
   ========================================================================= */
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
}
.tour-row--reverse .tour-row__media { order: -1; }
.tour-row__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cobalt);
  margin-bottom: 14px;
}
.tour-row h3 {
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 16ch;
}
.tour-row p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 44ch;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.detail-chip svg { width: 16px; height: 16px; flex: none; color: var(--cobalt); }
.detail-chip.detail-chip--validated {
  background: var(--green-soft);
  border-color: rgba(22, 163, 74, 0.28);
  color: #0f7a37;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}
.detail-chip.detail-chip--validated svg { color: var(--green); }

/* Explore row: full-width media to break the zigzag rhythm */
.tour-wide { margin-top: clamp(56px, 8vw, 104px); }
.tour-wide__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.tour-wide__head .tour-row__label { display: block; }
.tour-wide__head h3 {
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 18ch;
}
.tour-wide__head p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 52ch; }

@media (max-width: 860px) {
  .tour-row { grid-template-columns: 1fr; gap: 28px; }
  .tour-row--reverse .tour-row__media { order: 0; }
  .tour-row h3, .tour-row p { max-width: none; }
}

/* =========================================================================
   Why Surface (editorial numbered list)
   ========================================================================= */
.why-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
}
.why-intro h2 {
  font-size: clamp(29px, 4.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 14ch;
}
.why-intro p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 38ch; }
.why-intro .eyebrow { color: var(--cobalt); }

.pillars { display: flex; flex-direction: column; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.pillar:last-child { border-bottom: 1px solid var(--border); }
.pillar__num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--cobalt);
  padding-top: 3px;
}
.pillar h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }

@media (max-width: 860px) {
  .why-layout { grid-template-columns: 1fr; gap: 32px; }
  .why-intro h2, .why-intro p { max-width: none; }
}

/* =========================================================================
   Trust band (dark)
   ========================================================================= */
.trust {
  background: var(--ink);
  color: #fff;
}
.trust .container { padding-block: clamp(72px, 10vw, 128px); }
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.trust .eyebrow { color: #9fa0f2; }
.trust h2 {
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 18ch;
}
.trust__body { color: #c4c4d2; font-size: 17px; line-height: 1.62; max-width: 48ch; margin-bottom: 34px; }
.trust__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tstat { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 16px; }
.tstat__num {
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}
.tstat__label { color: #9a9ab0; font-size: 13.5px; line-height: 1.45; }

.trust .browser { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); border-color: #2b2b3a; }
.trust .browser__bar { background: #16161f; border-bottom-color: #2b2b3a; }
.trust .browser__dots i { background: #3a3a4c; }
.trust .browser__url { background: #0f0f16; border-color: #2b2b3a; color: #8a8aa0; }

@media (max-width: 860px) {
  .trust__grid { grid-template-columns: 1fr; gap: 36px; }
  .trust__body { max-width: none; }
  .trust__media { order: -1; }
}
@media (max-width: 460px) {
  .trust__stats { grid-template-columns: 1fr; gap: 0; }
  .tstat { padding-block: 16px; }
}

/* =========================================================================
   Roadmap bento (rolling out)
   ========================================================================= */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rtile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.rtile:hover { border-color: var(--cobalt); box-shadow: var(--shadow-md); }
.rtile--wide { grid-column: span 2; }
.rtile__marker {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--cobalt);
  font-size: 15px;
  margin-right: 8px;
}
.rtile h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
}
.rtile p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.roadmap-foot {
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .rtile--wide { grid-column: span 1; }
}

/* =========================================================================
   Pricing
   ========================================================================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.tier:hover { border-color: var(--cobalt); box-shadow: var(--shadow-md); }
.tier__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.tier__scope { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.tier__price .amount { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.tier__price .per { color: var(--muted); font-size: 14px; }
.tier__full {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tier__full s { text-decoration-thickness: 1.5px; }
.tier__full .early-tag { color: var(--cobalt); font-weight: 700; }
.tier .btn { margin-top: auto; }

/* Featured tier */
.tier--featured {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.tier--featured:hover { border-color: var(--cobalt); }
.tier--featured .tier__scope { color: #cfd0fb; }
.tier--featured .tier__price .per { color: #cfd0fb; }
.tier--featured .tier__full { color: #cfd0fb; }
.tier--featured .tier__full .early-tag { color: #fff; }
.tier--featured .btn--ghost {
  background: #fff;
  color: var(--cobalt);
  border-color: #fff;
}
.tier--featured .btn--ghost:hover { background: #f0f0ff; color: var(--cobalt-hover); border-color: #f0f0ff; }
.tier__pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.price-anchor {
  margin-top: 30px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}
.price-anchor .mono { color: var(--ink); font-weight: 700; }

@media (max-width: 1000px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tier__pill { top: -12px; }
}
@media (max-width: 520px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Early adopter offer + form
   ========================================================================= */
.offer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.offer__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.offer h2 {
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 26px;
  max-width: 16ch;
}
.offer .eyebrow { color: var(--cobalt); }
.offer__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.offer__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.offer__list li:first-child { border-top: 1px solid var(--border); }
.offer__list .check {
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  display: grid; place-items: center;
}
.offer__list .check svg { width: 13px; height: 13px; }
.offer__body { color: var(--ink-2); font-size: 16px; line-height: 1.62; max-width: 52ch; }

/* Form card */
.form-card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.form-card__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.form-card__note { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
  width: 100%;
}
.field input::placeholder { color: #9a9aa6; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366666F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-card .btn { margin-top: 6px; }
.form-card__legal { margin-top: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.form-success {
  display: none;
  background: var(--green-soft);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: #0f7a37;
  border-radius: var(--r-md);
  padding: 20px;
  font-size: 15px;
  line-height: 1.5;
}
.form-error {
  margin-top: 14px;
  color: #b42318;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.form-error[hidden] { display: none; }
.form-error a { color: #b42318; text-decoration: underline; }

@media (max-width: 860px) {
  .offer__grid { grid-template-columns: 1fr; gap: 40px; }
  .offer h2, .offer__body { max-width: none; }
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 {
  font-size: clamp(29px, 4.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 12ch;
}
.faq-intro p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 34ch; }
.faq-intro .eyebrow { color: var(--cobalt); }
.faq-list { border-top: 1px solid var(--border); }
details.faq {
  border-bottom: 1px solid var(--border);
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 140ms var(--ease);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--cobalt); }
details.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 26px;
  width: 13px; height: 13px;
  border-right: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
details.faq[open] summary::after { transform: rotate(225deg); top: 30px; }
details.faq .faq-answer {
  padding: 0 44px 24px 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.62;
  max-width: 60ch;
}
@media (prefers-reduced-motion: no-preference) {
  details.faq[open] .faq-answer { animation: faqReveal 320ms var(--ease); }
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
  .faq-intro h2, .faq-intro p { max-width: none; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--page);
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer-tag { margin-top: 16px; color: var(--ink-2); font-size: 17px; font-weight: 500; max-width: 30ch; }
.footer-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-right a { color: var(--ink-2); font-weight: 500; }
.footer-right a:hover { color: var(--cobalt); }
.footer-bottom {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
}
.footer-copy { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-legal a { color: var(--muted); font-weight: 500; }
.footer-legal a:hover { color: var(--cobalt); }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================================
   Legal pages (privacy, terms, data deletion) — shared
   ========================================================================= */
.legal {
  position: relative;
  padding-top: clamp(116px, 15vh, 158px);
  padding-bottom: clamp(56px, 9vw, 104px);
  overflow: hidden;
}
.legal__canopy {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  background: var(--gradient);
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 46%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 46%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 0;
}
.legal .container { position: relative; z-index: 1; }
.legal-doc { max-width: 70ch; margin-inline: auto; }
.legal-doc h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 10px;
}
.legal-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.legal-doc h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 40px 0 12px;
}
.legal-doc p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-doc .legal-lede { color: var(--ink); font-size: 17.5px; }
.legal-doc a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--cobalt-hover); }

/* =========================================================================
   404
   ========================================================================= */
.notfound {
  min-height: 66vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}
.notfound__code { font-family: var(--mono); font-size: clamp(56px, 12vw, 96px); font-weight: 700; color: var(--cobalt); letter-spacing: -0.04em; line-height: 1; }
.notfound h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 12px; }
.notfound p { color: var(--ink-2); font-size: 17px; margin-bottom: 30px; max-width: 40ch; }

/* =========================================================================
   Scroll reveals
   ========================================================================= */
/* Only hide reveals when JS is present to bring them back. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-validated, .hamburger span, .site-header, .header-inner { transition: none; }
  * { scroll-behavior: auto; }
}


/* ============================================================
   Hero: live Ask demo (variant A, adopted 2026-07-17)
   ============================================================ */
    .ask-live { position: relative; z-index: 1; }
    .ask-live__glow {
      content: ""; position: absolute; inset: -8% -6% -12% -6%;
      background: radial-gradient(60% 55% at 55% 40%, rgba(64, 66, 226, 0.32), rgba(64, 66, 226, 0) 70%);
      filter: blur(10px); z-index: -1; pointer-events: none;
    }
    .ask-live__panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      box-shadow: var(--shadow-lg);
      padding: 18px;
    }
    /* Ask bar */
    .al-bar { display: flex; gap: 10px; align-items: stretch; }
    .al-input {
      flex: 1; min-width: 0;
      display: flex; align-items: center;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 13px 15px;
      font-size: 15px; line-height: 1.4; color: var(--ink);
      min-height: 48px;
    }
    .al-typed { white-space: pre-wrap; }
    .al-input.is-empty .al-typed::before { content: "Ask about this client's data..."; color: #9a9aa6; }
    .al-caret {
      display: inline-block; width: 2px; height: 1.05em;
      background: var(--cobalt); margin-left: 1px; vertical-align: -2px;
      opacity: 0;
    }
    .al-input.is-typing .al-caret { animation: alBlink 1s steps(1) infinite; }
    @keyframes alBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
    .al-ask {
      flex: none; align-self: stretch;
      background: var(--cobalt); color: #fff;
      border: 1px solid var(--cobalt); border-radius: var(--r-md);
      padding: 0 22px; font-weight: 700; font-size: 15px; cursor: default;
    }
    /* Answer card */
    .al-card {
      margin-top: 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 20px;
    }
    /* Skeleton (thinking) */
    .al-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 6px 0; }
    .al-skeleton span {
      display: block; height: 12px; border-radius: 6px;
      background: linear-gradient(90deg, #edeef8 0%, #f6f7fc 40%, #edeef8 80%);
      background-size: 200% 100%;
      animation: alShimmer 1.15s var(--ease) infinite;
    }
    .al-skeleton span:nth-child(1) { width: 82%; }
    .al-skeleton span:nth-child(2) { width: 64%; }
    .al-skeleton span:nth-child(3) { width: 40%; }
    @keyframes alShimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
    .al-card[data-state="content"] .al-skeleton { display: none; }
    .al-card[data-state="think"] .al-content { display: none; }
    /* Content */
    .al-content { opacity: 0; transition: opacity 320ms var(--ease); }
    .al-card[data-state="content"] .al-content { opacity: 1; }
    .al-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
    .al-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--green-soft); color: #0f7a37;
      border: 1px solid rgba(22, 163, 74, 0.28);
      padding: 4px 11px 4px 9px; border-radius: var(--r-pill);
      font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
      transform-origin: left center;
    }
    .al-badge svg { width: 13px; height: 13px; }
    .al-badge.is-stamp { animation: alStamp 380ms var(--ease) both; }
    @keyframes alStamp { 0% { opacity: 0; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
    .al-platforms {
      font-family: var(--mono); font-size: 11.5px; font-weight: 700;
      letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase;
    }
    .al-narr { font-size: 15px; line-height: 1.55; color: var(--ink); margin-bottom: 16px; }
    .al-divider { height: 1px; background: var(--border); margin: 16px 0; }
    .al-stats { display: flex; gap: 20px; flex-wrap: wrap; }
    .al-stat { flex: 1; min-width: 96px; }
    .al-stat__label {
      font-size: 12px; line-height: 1.35; color: var(--muted); margin-bottom: 6px;
      overflow-wrap: anywhere;
    }
    .al-stat__val {
      font-family: var(--mono); font-weight: 700; letter-spacing: -0.01em;
      font-size: clamp(18px, 2.4vw, 22px); color: var(--ink);
      font-feature-settings: "tnum" 1;
    }
    .al-ev {
      font-size: 13px; color: var(--cobalt); font-weight: 600;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .al-ev .al-tri { font-size: 9px; }
    .al-ev .mono { font-family: var(--mono); }
    /* Chips */
    .al-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .al-chip {
      background: var(--surface); color: var(--ink-2);
      border: 1px solid var(--border); border-radius: var(--r-pill);
      padding: 8px 15px; font-size: 13px; font-weight: 500; line-height: 1.2;
      cursor: pointer; text-align: left;
      transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease);
    }
    .al-chip:hover { border-color: var(--cobalt); color: var(--cobalt); }
    .al-chip.is-active { background: var(--cobalt-soft); border-color: var(--cobalt); color: var(--cobalt-hover); }
    @media (prefers-reduced-motion: reduce) {
      .al-content { opacity: 1; transition: none; }
      .al-skeleton span { animation: none; }
      .al-badge.is-stamp { animation: none; }
      .al-input.is-typing .al-caret { animation: none; opacity: 0; }
    }
  
