/* ══════════════════════════════════════════════════════════════════════
   TAILOR AI — HIGH-CRAFT MARKETING DESIGN SYSTEM
   Canonical References from Mobbin:
   - Mercury (warm off-white canvas, hairline structure, calm grotesque)
   - Linear (subtle technical precision, dark technical layer, Cmd+K tags)
   - 1Password (high-trust software presentation, quiet confidence)
   - Resend (bento micro-UI widgets, crisp monospace chips)
   - Framer (bare hairline FAQ accordion)
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* Canvas & Surfaces */
  --bg: #FAFAFA;                /* Acctual white */
  --bg-subtle: #F4F4F5;
  --surface: #FFFFFF;
  --surface-hover: #FAFAFA;
  
  /* Inks — Acctual near-black + grays */
  --ink: #1E1E1E;
  --ink-secondary: #333333;
  --muted: #666666;
  --faint: #8D8D8D;
  --subtle: #B3B3B3;
  
  /* Primary Action — Acctual blue */
  --accent: #0098F2;
  --accent-hover: #0084D6;
  --accent-deep: #0072B8;       /* AA-safe on white (4.9:1) */
  --accent-soft: #E8F4FE;       /* light blue pill */
  --accent-tint: #D6ECFC;
  
  /* Status & Indicator — Acctual green */
  --emerald: #22C55E;
  --emerald-soft: #E9FBF0;
  --emerald-border: #BBF7D0;
  
  /* Supporting vivids (illustration/accent moments) */
  --c-violet: #6C56FC;
  --c-orange: #E26708;
  --c-magenta: #F200CA;
  --c-green: #22C55E;
  
  /* Dark Technical Layer (Mercury Layer 1 / Linear) */
  --dark-bg: #15171C;
  --dark-surface: #1E2128;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-border-hover: rgba(255, 255, 255, 0.16);
  --dark-ink: #F4F4F6;
  --dark-muted: #9C9C9C;
  --dark-faint: #6B7280;
  
  /* Hairlines & Borders */
  --border: #E8E8E8;
  --border-strong: #D8D8D8;
  --line: #F0F0F0;
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(18, 19, 22, 0.03);
  --shadow-card: 0 2px 6px -1px rgba(18, 19, 22, 0.04), 0 10px 24px -10px rgba(18, 19, 22, 0.06);
  --shadow-window: 0 24px 64px -16px rgba(18, 19, 22, 0.12), 0 0 0 1px rgba(18, 19, 22, 0.05);
  
  /* Typography */
  --font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Geist', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ── Global Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 13px;
}

.skip:focus {
  left: 20px;
  top: 20px;
}

/* ── Typography (Mercury style: Calm, High Contrast, Tight tracking) ── */
h1, h2, h3, h4, .eyebrow {
  font-family: var(--font-display);
  text-rendering: optimizeLegibility;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h2 {
  font-size: clamp(1.5rem, 2.9vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.sec-head {
  text-align: center;
  margin-bottom: 56px;
}

.sec-head h2 {
  max-width: 720px;
  margin: 0 auto 12px;
}

.sec-head .sec-sub {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.hero-accent {
  color: var(--accent);
}

/* ── Buttons (Mercury & 1Password pill standard) ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease-out;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 15px;
}

/* ── Navigation (Floating transparent capsule app bar) ──────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  pointer-events: none;
  background: transparent;
  border-bottom: 0;
  padding: 14px 16px 0;
}

.nav-in {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 30, 30, 0.08);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

.nav a:focus-visible,
.nav button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 10px;
}

[id] {
  scroll-margin-top: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.brand-mark svg { width: 28px; height: 28px; display: block; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.btn):not(.gh-link) {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links > a:not(.btn):not(.gh-link):hover {
  color: var(--ink);
}

.nav-links .gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.15s ease;
}

.nav-links .gh-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* ── Hero Section (1Password & Mercury centered composition) ───── */
.hero {
  padding: 80px 0 0;
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: clamp(2.3rem, 4.7vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.07;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--faint);
  flex-wrap: wrap;
}

.hero-specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-specs i {
  color: var(--accent);
  font-size: 14px;
}

/* ── Realistic Desktop Window Frame ────────────────────────────── */
.hero-shot {
  max-width: 1040px;
  margin: 54px auto 0;
}

.browser-window {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
}

.browser-titlebar {
  background: #F6F4EF;
  border-bottom: 1px solid var(--border);
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.dot-red { background: #121316; }
.dot-yellow { background: #121316; }
.dot-green { background: #121316; }

.browser-url-bar {
  flex: 1;
  max-width: 420px;
  height: 26px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding: 0 12px;
}

.browser-url-bar i {
  color: var(--emerald);
  font-size: 12px;
}

.browser-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-meta .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.browser-body {
  background: #FAF9F6;
}

.browser-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Proof & Numbers Band (Mercury quiet counters) ─────────────── */
.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin-top: 44px;
  padding: 0;                 /* a stats band, not a full section */
}

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

.hstat {
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.hstat:last-child {
  border-right: none;
}

.hstat b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 2px;
}

.hstat span {
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
}

/* ── Interactive Workflow Tour (Tines & Framer style) ──────────── */
.workflow-section {
  padding: 96px 0;
  background: var(--bg);
}

.workflow-live {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.wf-media {
  aspect-ratio: 16 / 9;
}

.wf-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wf-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 24px 26px;
}

.wf-stage {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.wf-stage:hover {
  opacity: 0.92;
}

.wf-stage.is-active {
  opacity: 1;
  background: var(--bg-subtle);
  border-color: var(--ink);
}

.wf-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wf-stage-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wf-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.wf-stage.is-active .wf-num {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.wf-seek {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.wf-seek:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.wf-stages .wf-stage h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.wf-stages .wf-stage p {
  font-size: 13.5px;
  line-height: 1.55;
}

.wf-stages .wf-stage .panel-bullets {
  gap: 6px;
  margin: 2px 0;
}

.wf-stages .wf-stage .panel-bullets li {
  font-size: 13px;
}

.panel-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-step-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.panel-copy h3 {
  font-size: 1.55rem;
  line-height: 1.25;
}

.panel-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.panel-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0;
}

.panel-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.panel-bullets li i {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.panel-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  transition: gap 0.15s ease;
}

.panel-link:hover {
  gap: 10px;
}

/* ── Bento Grid with Micro-UI Previews (Mercury Card Standard) ─── */
.bento-section {
  padding: 96px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.bento-col-7 { grid-column: span 7; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }

/* Micro-UI Widgets inside Bento Cards */
.mini-ui {
  background: #FAF9F6;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.mini-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-badge-green {
  background: var(--emerald-soft);
  color: #15803D;
}

.mini-badge-subtle {
  background: #EFECE6;
  color: var(--muted);
  font-family: var(--mono);
}

.mini-gauge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-gauge-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-deep);
}

.mini-gauge-bar {
  flex: 1;
  height: 6px;
  background: #EFECE6;
  border-radius: 3px;
  overflow: hidden;
}

.mini-gauge-fill {
  width: 94%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.mini-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.mini-db-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.mini-db-stat span:last-child {
  color: var(--emerald);
  font-weight: 600;
}

.bento-card h3 {
  font-size: 1.3rem;
}

.bento-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Dark Technical Layer / Architecture (Mercury Layer 1 style) ── */
.arch-section {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 96px 0;
}

.arch-section .eyebrow {
  color: #EDEDEB;
}

.arch-section h2 {
  color: var(--dark-ink);
}

.arch-section .sec-sub {
  color: var(--dark-muted);
}

.arch-diagram {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 36px;
}

.arch-flow {
  display: grid;
  grid-template-columns: 1.15fr auto 1.15fr;
  align-items: center;
  gap: 28px;
}

.arch-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.arch-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.arch-box-title i {
  color: #EDEDEB;
  font-size: 20px;
}

.arch-box p {
  font-size: 13px;
  color: var(--dark-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.arch-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6EE7A8;
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #EDEDEB;
  text-align: center;
}

.arch-bridge i {
  font-size: 22px;
}

.arch-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-pillar {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.arch-pillar h4 {
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.arch-pillar p {
  color: var(--dark-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ── Quickstart Terminal (Linear / Stripe style) ───────────────── */
.quickstart-section {
  padding: 96px 0;
  background: var(--bg);
}

.term-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.term {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4);
  color: #D1D5DB;
  font-family: var(--mono);
  font-size: 13.5px;
  overflow: hidden;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #17181D;
}

.term-tabs {
  display: flex;
  gap: 4px;
}

.term-tab {
  background: none;
  border: 0;
  color: #8E939E;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.term-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.term-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.term-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

.term-copy.copied {
  background: #121316;
  color: #FFFFFF;
  border-color: #121316;
}

.term-body {
  padding: 22px 22px 26px;
  line-height: 1.8;
}

.term-pane {
  display: none;
}

.term-pane.active {
  display: block;
}

.term code {
  display: block;
  font-family: var(--mono);
  white-space: pre-wrap;
}

.term .prompt {
  color: #E5E5E2;
  margin-right: 6px;
  user-select: none;
}

.term-note {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

.term-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Affiliates Section (Disclosed, Calm) ───────────────────────── */
.affiliates-section {
  padding: 88px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

/* ── Integrated with — logo strip only (marquee, left → right) ── */
.ix-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 26px;
}

.ix-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

.logo-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 88px;
  width: max-content;
  padding: 6px 88px;
  animation: logoScroll 32s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-track a {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.logo-track img {
  height: 24px;
  width: auto;
}

.logo-track b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

.logo-track a:hover b {
  opacity: 1;
}

@keyframes logoScroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ── FAQ — two columns, hairline rows (Harvest standard) ───────── */
.faq-section {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 104px;
}

.faq-intro-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.faq-support {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.faq-support a {
  color: var(--accent-deep);
  font-weight: 500;
}

.faq-support a:hover {
  text-decoration: underline;
}

.faq-list {
  border-top: 1px solid var(--border);
}

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

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s ease;
}

.faq-q:hover {
  color: var(--accent-deep);
}

.faq-q .chev {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  visibility: hidden;
  transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s;
}

.faq-a > p {
  overflow: hidden;
  margin: 0;
  padding-bottom: 24px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.open .faq-a {
  grid-template-rows: minmax(0, 1fr);
  visibility: visible;
  transition: grid-template-rows 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a,
  .faq-item.open .faq-a {
    transition: none;
  }
}

@media (max-width: 980px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-intro {
    position: static;
  }
}

/* ── Closing CTA Band (Mercury & Stripe style) ─────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #111215;
  color: #FFFFFF;
  padding: 96px 0;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

/* Cartoon cloud sky — three parallax layers drifting left → right */
.cta-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-clouds {
  position: absolute;
  left: 0;
  width: calc(100% + 1200px);
  height: 260px;
  background-repeat: repeat-x;
  background-size: 1200px 260px;
  animation: ctaDrift 150s linear infinite;
}

.cta-clouds-far {
  bottom: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03' stroke='%23FFFFFF' stroke-opacity='0.16' stroke-width='1.5' vector-effect='non-scaling-stroke'%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(170,125) scale(4.2)'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(500,185) scale(3.4)'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(790,115) scale(3.8)'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(1060,190) scale(3.2)'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-clouds-mid {
  bottom: -20px;
  height: 300px;
  background-size: 1200px 300px;
  animation-duration: 95s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.04' stroke='%23FFFFFF' stroke-opacity='0.22' stroke-width='1.5' vector-effect='non-scaling-stroke'%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(120,185) scale(5.4)'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(560,210) scale(4.6)'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(900,195) scale(5.8)'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-clouds-near {
  bottom: -44px;
  height: 320px;
  background-size: 1200px 320px;
  animation-duration: 65s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 320'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05' stroke='%23FFFFFF' stroke-opacity='0.38' stroke-width='1.5' vector-effect='non-scaling-stroke'%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(240,170) scale(7.2)'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z' transform='translate(820,180) scale(6.4)'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes ctaDrift {
  from { transform: translateX(-1200px); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-clouds { animation: none; }
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 52px;
  align-items: center;
}

.cta-copy .eyebrow {
  color: #EDEDEB;
}

.cta-copy h2 {
  color: #FFFFFF;
  margin-bottom: 14px;
}

.cta-copy .sec-sub {
  color: #9C9C9C;
  margin-bottom: 28px;
  font-size: 16px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-section .btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

.cta-term {
  background: #17181D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}

.cta-term .term-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E5E5E2;
  margin-bottom: 10px;
}

.cta-term code {
  display: block;
  color: #E5E7EB;
}

/* ── Footer (Grain 4-Column style) ─────────────────────────────── */
/* Guide byline — E-E-A-T author + freshness signal */
.guide-byline {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--faint);
}

.guide-byline a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-byline a:hover {
  color: var(--ink);
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 68px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.6;
}

.footer-built {
  margin-top: 22px;
}

.footer-built-label {
  display: block;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.footer-built-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--ink);
}

/* Product Hunt featured badge (official embed — external brand asset) */
.footer-ph {
  display: inline-block;
  margin-top: 14px;
  line-height: 0;
}

.footer-ph img {
  display: block;
  width: 250px;
  height: 54px;
}

.footer-social i {
  font-size: 15px;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--faint);
}

/* Flex text items must be allowed to shrink below max-content, otherwise the
   copyright line overflows the 390px viewport instead of wrapping. */
.footer-bottom > span {
  min-width: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--ink);
}

/* ── Scroll Reveals ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed[data-delay="1"] { transition-delay: 0.07s; }
.reveal.revealed[data-delay="2"] { transition-delay: 0.14s; }
.reveal.revealed[data-delay="3"] { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav {
    padding: 10px 12px 0;
  }

  .nav-in {
    height: 56px;
    padding: 0 10px 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

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

  .hstat:nth-child(2) {
    border-right: none;
  }

  .hstat:nth-child(1), .hstat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .workflow-live {
    border-radius: var(--radius-lg);
  }

  .wf-stages {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .wf-stage {
    padding: 14px 16px;
  }

  .wf-stage:not(.is-active) {
    opacity: 0.75;
  }

  .bento-col-7, .bento-col-5, .bento-col-4 {
    grid-column: span 12;
  }

  .arch-flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .arch-bridge {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .arch-pillars, .logo-track {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 0;
  }

  .proof-strip-in {
    grid-template-columns: 1fr;
  }

  .hstat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 16px;
  }

  .hstat:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .browser-titlebar {
    padding: 0 10px;
    gap: 8px;
  }

  .browser-url-bar {
    max-width: 180px;
    font-size: 11px;
  }

  .browser-meta {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ── Integrations table — mobile stacking ─────────────────────── */
@media (max-width: 920px) {
  .ix-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .ix-role {
    order: 2;
  }

  .ix-desc {
    order: 3;
  }

  .ix-link {
    order: 4;
    margin-top: 4px;
  }
}

/* ── Features — one panel, hairline-divided cells ─────────────── */
.fx-section {
  padding: 88px 0;
}

.fx-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}

.fx-card {
  background: var(--surface);
  padding: 28px 24px 32px;
  transition: background-color 0.15s ease;
}

.fx-card:hover {
  background: var(--bg-subtle);
}

.fx-ico {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.fx-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-soon {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #15803D;
  background: var(--emerald-soft);
  border-radius: 4px;
  padding: 2px 6px;
}

.fx-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .fx-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fx-panel { grid-template-columns: 1fr; }
  .fx-section { padding: 64px 0; }
}
