/* =========================================================================
   Quanty — Marketing Site Styles
   Token names map back to design.md. Never inline hex; always use var(--*).
   Order: tokens → reset → typography → layout primitives → components → sections → responsive.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* -------------------------------------------------------------------------
   Tokens (design.md)
   ------------------------------------------------------------------------- */
:root {
  /* Brand & action */
  --color-primary: #111111;
  --color-primary-active: #242424;
  --color-brand-accent: #3b82f6;

  /* Pastel set */
  --color-badge-orange: #fb923c;
  --color-badge-pink: #ec4899;
  --color-badge-violet: #8b5cf6;
  --color-badge-emerald: #34d399;

  /* Surface */
  --color-canvas: #ffffff;
  --color-surface-soft: #f8f9fa;
  --color-surface-card: #f5f5f5;
  --color-surface-strong: #e5e7eb;
  --color-surface-dark: #101010;
  --color-surface-dark-elevated: #1a1a1a;
  --color-hairline: #e5e7eb;
  --color-hairline-soft: #f3f4f6;

  /* Text */
  --color-ink: #111111;
  --color-body: #374151;
  --color-muted: #6b7280;
  --color-muted-soft: #757575;
  --color-on-primary: #ffffff;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: #a1a1aa;

  /* Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Spacing — base unit 4px */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --radius-full: 50%;

  /* Layout */
  --container-max: 1200px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-mockup: 0 4px 24px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-body);
  background: var(--color-canvas);
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Typography utilities (design.md type ramp)
   Display sizes use weight 600 with negative tracking — the brand signature.
   ------------------------------------------------------------------------- */
.t-display-xl {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--color-ink);
}

.t-display-lg {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--color-ink);
}

.t-display-md {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--color-ink);
}

.t-display-sm {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}

.t-title-lg {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--color-ink);
}

.t-title-md {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
}

.t-title-sm {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
}

.t-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-body);
}

.t-body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-body);
}

.t-caption {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

/* -------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 80ms ease;
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.button-primary:active {
  background: var(--color-primary-active);
}

.button-primary[disabled],
.button-primary.is-disabled {
  background: var(--color-surface-strong);
  color: var(--color-muted);
  cursor: not-allowed;
}

.button-secondary {
  background: var(--color-canvas);
  color: var(--color-ink);
  border: 1px solid var(--color-hairline);
}

.button-secondary:active {
  background: var(--color-surface-soft);
}

.button-text-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.text-link {
  color: var(--color-ink);
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Inputs
   ------------------------------------------------------------------------- */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.text-input,
.textarea {
  width: 100%;
  height: 40px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  transition: border-color 100ms ease;
}

.textarea {
  height: auto;
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.text-input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-ink);
  border-width: 1.5px;
  padding: calc(10px - 0.5px) calc(14px - 0.5px);
}

.textarea:focus {
  padding: calc(12px - 0.5px) calc(14px - 0.5px);
}

.text-input[data-state="error"],
.textarea[data-state="error"] {
  border-color: var(--color-error);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-error);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Badges & avatars
   ------------------------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-surface-card);
  border-radius: var(--radius-pill);
}

.badge-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  flex: 0 0 6px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-on-primary);
  flex: 0 0 36px;
}

.avatar-circle.is-orange { background: var(--color-badge-orange); }
.avatar-circle.is-pink { background: var(--color-badge-pink); }
.avatar-circle.is-violet { background: var(--color-badge-violet); }
.avatar-circle.is-emerald { background: var(--color-badge-emerald); }

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.feature-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.feature-icon-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.product-mockup-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.fit-criteria-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.hero-app-mockup-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-mockup);
}

.cta-band-light {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Nav-pill-group (used inside hero mockup tab switcher)
   ------------------------------------------------------------------------- */
.nav-pill-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-pill);
}

.nav-pill-group .pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-pill);
}

.nav-pill-group .pill.is-active {
  background: var(--color-canvas);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------------
   Top navigation
   ------------------------------------------------------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--color-canvas);
  transition: box-shadow 120ms ease;
}

.top-nav.is-scrolled {
  box-shadow: 0 1px 0 var(--color-hairline);
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.brand-mark .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-ink);
  color: var(--color-on-primary);
  font-size: 13px;
  font-weight: 600;
}

.nav-menu {
  display: none;
  gap: var(--space-lg);
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-cluster .button-text-link {
  display: none;
}

/* Mobile hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-ink);
}

.nav-sheet {
  position: fixed;
  inset: 0;
  background: var(--color-canvas);
  z-index: 60;
  padding: var(--space-lg);
  display: none;
  flex-direction: column;
}

.nav-sheet.is-open {
  display: flex;
}

.nav-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  margin-bottom: var(--space-xxl);
}

.nav-sheet-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-sheet-links a {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.3px;
}

.nav-sheet-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-xl);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  padding: var(--space-section) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.hero-h1 {
  margin-top: var(--space-lg);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--color-ink);
}

.hero-sub {
  margin-top: var(--space-lg);
  max-width: 540px;
  font-size: 16px;
  color: var(--color-body);
}

.hero-cta-row {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-trust {
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--color-muted-soft);
  max-width: 540px;
}

/* Hero mockup chrome */
.mockup-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.mockup-dots {
  display: inline-flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface-card);
}

.mockup-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-pill);
}

.mockup-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
}

.mockup-tabs {
  margin-bottom: var(--space-md);
}

.mockup-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.mockup-grid th,
.mockup-grid td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--color-hairline-soft);
}

.mockup-grid th:first-child,
.mockup-grid td:first-child {
  text-align: left;
  color: var(--color-ink);
  font-weight: 500;
}

.mockup-grid th {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mockup-grid tr.is-highlighted td:first-child {
  font-weight: 600;
}

.mockup-grid td.is-selected {
  border: 1px solid var(--color-brand-accent);
  border-radius: var(--radius-sm);
  position: relative;
}

.mockup-ai {
  margin-top: var(--space-md);
  padding: 10px 14px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-ai .ai-mark {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: var(--color-on-primary);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  flex: 0 0 18px;
}

.mockup-ai .arrow {
  margin-left: auto;
  color: var(--color-ink);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Hero stack (new): dashboard preview + AI assistant panel
   ------------------------------------------------------------------------- */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.hero-dashboard {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-mockup);
}

.hero-dashboard .mockup-window-bar {
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid var(--color-hairline-soft);
  background: var(--color-surface-soft);
}

.hero-dashboard img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-assistant {
  background: linear-gradient(160deg, #eff8fc 0%, #ffffff 45%, #ffffff 100%);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(15, 80, 160, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.assistant-thread,
.msg,
.msg-ai,
.msg-user,
.msg-body,
.msg-artifact {
  min-width: 0;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-hairline-soft);
}

.assistant-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-ink);
  flex: 0 0 28px;
}

.assistant-mark svg {
  width: 16px;
  height: 16px;
}

.hero-assistant .assistant-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.assistant-tabs {
  margin-left: auto;
  display: inline-flex;
  background: var(--color-surface-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.assistant-tabs .tab {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-pill);
  cursor: default;
}

.assistant-tabs .tab.is-active {
  background: var(--color-canvas);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}

.assistant-body {
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.assistant-hint {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.prompt-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-pill);
}

/* ----- Chat thread (Pigment-style chat moment in hero) ----- */
.assistant-thread {
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.msg {
  display: flex;
  max-width: 100%;
}

.msg-user {
  justify-content: flex-end;
}

.msg-user .bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-ink);
  background: rgba(225, 238, 246, 0.7);
  border: 1px solid rgba(150, 195, 220, 0.25);
  border-radius: 14px;
  border-top-right-radius: 4px;
}

.msg-ai {
  align-items: flex-start;
  gap: 10px;
}

.msg-ai .msg-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-ink);
  color: var(--color-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.msg-ai .msg-mark svg {
  width: 14px;
  height: 14px;
}

.msg-ai .msg-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.thought-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: default;
  padding: 0;
}

.thought-toggle svg {
  width: 14px;
  height: 14px;
}

.msg-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink);
}

.msg-artifact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}

.artifact-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--color-ink);
  display: inline-flex;
}

.artifact-icon svg {
  width: 100%;
  height: 100%;
}

.artifact-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artifact-chevron {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  display: inline-flex;
}

.artifact-chevron svg {
  width: 100%;
  height: 100%;
}

.assistant-input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 12px;
  padding: 10px 14px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  position: relative;
}

.assistant-input .placeholder {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.assistant-input[data-typing="true"] .placeholder {
  color: var(--color-ink);
}

.assistant-input .caret {
  display: none;
  width: 1px;
  height: 14px;
  background: var(--color-ink);
  margin-left: -8px;
  margin-right: 4px;
  animation: caret-blink 1s steps(1) infinite;
}

.assistant-input[data-typing="true"] .caret {
  display: inline-block;
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Fade-in for incoming messages and artifact */
.msg {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.msg.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.msg-artifact {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.msg-artifact.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.thought-toggle {
  opacity: 0;
  transition: opacity 200ms ease;
}

.thought-toggle.is-shown {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .msg,
  .msg-artifact,
  .thought-toggle {
    transition: none;
  }
  .assistant-input .caret {
    animation: none;
  }
}

.assistant-input .send-icon {
  display: inline-flex;
  color: var(--color-muted);
}

.assistant-input .send-icon svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------------------
   AI Assistants section — Builder / Analyst / Pipeline cards
   ------------------------------------------------------------------------- */
.grid-3.assistants {
  margin-top: var(--space-xxl);
}

.assistant-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.assistant-card-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.assistant-card-head h3 {
  margin-bottom: 4px;
}

.assistant-card-head .role {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.assistant-card .example-label {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-md);
}

.value-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-body);
}

.value-list .check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--color-success);
  margin-top: 3px;
  display: inline-flex;
}

.value-list .check svg {
  width: 100%;
  height: 100%;
}

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-list li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------------------
   Foundations (Integrations + MDM) — 2-up cards
   ------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
}

.foundation-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.foundation-shot {
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-hairline-soft);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.foundation-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.foundation-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.foundation-body h3 {
  margin-bottom: var(--space-xs);
}

/* -------------------------------------------------------------------------
   Section heads
   ------------------------------------------------------------------------- */
.section-head {
  max-width: 720px;
}

.section-head .eyebrow {
  margin-bottom: var(--space-md);
}

.section-head p {
  margin-top: var(--space-md);
  max-width: 640px;
}

/* -------------------------------------------------------------------------
   3-up grids
   ------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: 64px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
}

/* Feature card content */
.feature-card .icon,
.feature-icon-card .icon {
  width: 24px;
  height: 24px;
  stroke: var(--color-ink);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card .title {
  margin-top: var(--space-lg);
}

.feature-card .body {
  margin-top: var(--space-sm);
}

.feature-icon-card .title {
  margin-top: var(--space-md);
}

.feature-icon-card .body {
  margin-top: var(--space-xs);
  color: var(--color-body);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
   Section: Unified platform explainer
   ------------------------------------------------------------------------- */
.flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
}

.flow-block {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.flow-block .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.flow-block .name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--color-ink);
}

.flow-block .visual {
  margin-top: auto;
  padding-top: var(--space-md);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.flow-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-captions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
}

.flow-captions h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}

.flow-captions p {
  font-size: 16px;
  color: var(--color-body);
  max-width: 320px;
}

/* -------------------------------------------------------------------------
   Section: AI assistance band (light-gray full-width band)
   ------------------------------------------------------------------------- */
.band-soft {
  background: var(--color-surface-card);
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */
.testimonial-card .meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card .meta .name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
}

.testimonial-card .meta .role {
  font-size: 14px;
  color: var(--color-muted);
}

.testimonial-card .quote {
  margin-top: var(--space-md);
  color: var(--color-body);
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  margin-top: var(--space-md);
  color: var(--color-badge-orange);
}

/* -------------------------------------------------------------------------
   Pre-footer CTA band
   ------------------------------------------------------------------------- */
.cta-band-light .eyebrow {
  display: inline-block;
}

.cta-band-light h2 {
  margin-top: var(--space-sm);
}

.cta-band-light p {
  margin: var(--space-sm) auto 0;
  max-width: 560px;
  color: var(--color-body);
}

.cta-band-light .button-primary {
  margin-top: var(--space-lg);
}

/* -------------------------------------------------------------------------
   Contact form section
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.contact-form-col h2 {
  margin-top: var(--space-sm);
}

.contact-form-col .lead {
  margin-top: var(--space-md);
  max-width: 560px;
  color: var(--color-body);
}

.what-you-get {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.what-you-get .item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 16px;
  color: var(--color-ink);
  font-weight: 500;
}

.what-you-get .check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--color-success);
  margin-top: 2px;
}

.what-you-get .check svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.what-you-get b {
  font-weight: 600;
}

.beta-form {
  margin-top: var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.beta-form .field {
  display: flex;
  flex-direction: column;
}

.beta-form .submit-row {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.beta-form .submit-row .button-primary {
  width: 100%;
}

.beta-form .micro {
  font-size: 14px;
  color: var(--color-muted-soft);
}

.form-error {
  display: none;
  font-size: 14px;
  color: var(--color-error);
  margin-bottom: var(--space-xs);
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  text-align: left;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.form-success p {
  color: var(--color-body);
}

/* Fit-criteria card (right column) */
.fit-criteria-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
}

.fit-criteria-card .intro {
  margin-top: var(--space-sm);
  color: var(--color-body);
}

.criteria-list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.criteria-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  color: var(--color-body);
  font-size: 16px;
}

.criteria-list .tick {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--color-success);
  margin-top: 3px;
}

.criteria-list .tick svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fit-divider {
  margin: var(--space-lg) 0;
  border: 0;
  border-top: 1px solid var(--color-hairline-soft);
}

.fit-fallback p {
  margin: 0;
}

.fit-fallback .lead-line {
  color: var(--color-ink);
  font-size: 16px;
}

.fit-fallback .lead-line a {
  font-weight: 500;
}

.fit-fallback .response-line {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-muted);
}

/* -------------------------------------------------------------------------
   Legal pages (privacy / terms)
   ------------------------------------------------------------------------- */
.legal {
  max-width: 760px;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
}

.legal .meta {
  margin-top: var(--space-xs);
  font-size: 14px;
  color: var(--color-muted);
}

.legal h1 {
  margin-top: var(--space-md);
}

.legal h2 {
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-sm);
}

.legal p {
  margin-top: var(--space-md);
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.65;
}

.legal a {
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-hairline);
}

.legal a:hover {
  text-decoration-color: var(--color-ink);
}

.legal-list {
  margin-top: var(--space-md);
  padding-left: var(--space-lg);
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.legal-list li {
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
  padding: 48px 0 32px;
}

.site-footer .brand-mark {
  color: var(--color-on-dark);
}

.footer-minimal {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-nav a {
  font-size: 14px;
  color: var(--color-on-dark-soft);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-surface-dark-elevated);
  font-size: 13px;
  color: var(--color-on-dark-soft);
}

.footer-bottom .bizid {
  color: var(--color-on-dark-soft);
  opacity: 0.7;
}

.footer-bottom .policy {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom .policy a {
  color: var(--color-on-dark-soft);
}

@media (min-width: 768px) {
  .footer-minimal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* -------------------------------------------------------------------------
   Sub-page hero (text-only, single column) — /planning, /consolidation
   ------------------------------------------------------------------------- */
.hero-simple .hero-copy {
  max-width: 800px;
}

.hero-simple .hero-sub {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.55;
}

/* Closing line under a capabilities grid */
.cap-tail {
  margin-top: var(--space-xl);
  max-width: 640px;
}

/* "Learn more" link at the foot of a pillar feature card */
.feature-card .more {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

/* -------------------------------------------------------------------------
   Use-case list — /planning
   ------------------------------------------------------------------------- */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl) var(--space-xxl);
  margin-top: var(--space-xxl);
}

.usecase h3 {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-hairline);
}

.usecase p {
  margin-top: var(--space-xs);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-body);
}

/* -------------------------------------------------------------------------
   FAQ — native <details> accordion, hairline-separated
   ------------------------------------------------------------------------- */
.faq {
  margin-top: var(--space-xxl);
  max-width: 800px;
  border-top: 1px solid var(--color-hairline);
}

.faq-item {
  border-bottom: 1px solid var(--color-hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

.faq-item summary svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: var(--color-muted);
  fill: none;
  stroke-width: 1.75;
  transition: transform 160ms ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 var(--space-lg);
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary svg {
    transition: none;
  }
}

/* -------------------------------------------------------------------------
   Responsive — tablet (>= 768px)
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero-h1 {
    font-size: 56px;
    letter-spacing: -2px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    flex-direction: row;
    align-items: stretch;
  }

  .flow-arrow {
    flex: 0 0 32px;
    transform: none;
  }

  .flow-captions {
    grid-template-columns: repeat(3, 1fr);
  }

  .what-you-get {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .beta-form .submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
  }

  .beta-form .submit-row .button-primary {
    width: auto;
  }
}

/* -------------------------------------------------------------------------
   Responsive — desktop (>= 1024px)
   ------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-xxl);
  }

  .hero-h1 {
    font-size: 64px;
    letter-spacing: -2px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-menu {
    display: inline-flex;
  }

  .nav-cluster .button-text-link {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .contact-grid {
    max-width: 760px;
  }
}

/* -------------------------------------------------------------------------
   Responsive — wide (>= 1440px)
   ------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-xxl);
  }
}
