/* ============================================================
   Anonimator Landing Page
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--indigo-100); color: var(--indigo-900); }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-brand);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 1.5px;
  background: var(--indigo-500);
  border-radius: 1px;
}

h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: var(--tracking-tight); }

.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  max-width: 720px;
  text-wrap: balance;
}
.section-lede {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: var(--lh-relaxed);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius-component);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 6px 18px -6px rgba(79,70,229,0.5);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border-color: var(--color-border-default);
}
.btn-secondary:hover {
  border-color: var(--color-border-hover);
  background: var(--slate-50);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover { color: var(--color-text-primary); background: var(--slate-100); }

.btn-sm { padding: 7px 12px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform var(--dur-normal) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--color-border-default);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2_5);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-800));
  position: relative;
  box-shadow: 0 1px 2px rgba(79,70,229,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 6px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.95;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%, 0 62%, 100% 62%, 100% 100%, 0 100%);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.site-nav a {
  padding: 6px 10px;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.site-nav a:hover {
  color: var(--color-text-primary);
  background: var(--slate-100);
  text-decoration: none;
}
.header-cta { margin-left: var(--space-4); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(99,102,241,0.06), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-16);
  align-items: center;
}
.hero h1 {
  margin-top: var(--space-5);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--color-text-brand);
  position: relative;
  white-space: nowrap;
}
.hero p.lede {
  margin-top: var(--space-6);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 540px;
}
.hero-ctas {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.trust-facts {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.trust-facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  list-style: none;
}
.trust-facts .check {
  width: 14px; height: 14px;
  color: var(--emerald-600);
  flex-shrink: 0;
}
.trust-facts ul { padding: 0; margin: 0; }

/* ---------- Hero mock card ---------- */
.hero-mock {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-3);
  background: var(--slate-50);
  border-bottom: 1px solid var(--color-border-default);
}
.mock-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.mock-chrome .dot.r { background: #ff5f57; }
.mock-chrome .dot.y { background: #febc2e; }
.mock-chrome .dot.g { background: #28c840; }
.mock-chrome .title {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
}

.mock-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border-default);
  background: var(--color-bg-surface);
}
.mock-step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-tertiary);
  background: var(--slate-100);
}
.mock-step.done { color: var(--emerald-700); background: var(--emerald-50); }
.mock-step.active {
  color: var(--indigo-700);
  background: var(--indigo-50);
  box-shadow: inset 0 0 0 1px var(--indigo-200);
}
.mock-step .stepnum {
  font-size: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7);
  font-weight: var(--fw-semibold);
}
.mock-step.done .stepnum { background: var(--emerald-100); }
.mock-step.active .stepnum { background: var(--indigo-100); }
.mock-step .chevron { color: var(--color-text-tertiary); margin: 0 4px; }
.mock-stepper-right {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.mock-stepper-right .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 0 var(--amber-300);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

.mock-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: 360px;
}
.mock-doc {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--color-border-default);
  background: #fff;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--slate-700);
}
.mock-doc h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--slate-900);
  margin: 0 0 4px;
}
.mock-doc .doc-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}
.mock-doc p { margin: 0 0 var(--space-3); }

/* Entity styling — pair color + border (colorblind safe) */
.ent {
  display: inline-flex;
  align-items: baseline;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: default;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.ent.person  { background: var(--indigo-50); color: var(--indigo-800); border-color: var(--indigo-200); }
.ent.org     { background: var(--teal-50);   color: var(--teal-800);   border-color: var(--teal-200); }
.ent.loc     { background: var(--amber-50);  color: var(--amber-800);  border-color: var(--amber-200); }
.ent.id      { background: var(--slate-100); color: var(--slate-700);  border-color: var(--slate-300); font-family: var(--font-mono); font-size: 0.92em; }
.ent.pub     { background: #fff; color: var(--slate-700); border-color: var(--slate-300); border-style: dashed; }
.ent.contact { background: var(--teal-50);   color: var(--teal-800);   border-color: var(--teal-200); font-family: var(--font-mono); font-size: 0.92em; }

.ent.is-animated {
  animation: ent-pop 0.6s var(--ease-spring) both;
}
@keyframes ent-pop {
  0% { background: transparent; border-color: transparent; color: var(--slate-700); }
  100% {}
}

/* Right pane — entity panel */
.mock-panel {
  background: var(--slate-50);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mock-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-default);
}
.mock-panel-header h5 {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
}
.mock-panel-header .count {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
}
.mock-row {
  background: #fff;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--fs-xs);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.mock-row:hover { border-color: var(--indigo-300); box-shadow: var(--shadow-sm); }
.mock-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.mock-row-type {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
}
.mock-row-status {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.mock-row-status.ok { background: var(--emerald-50); color: var(--emerald-700); }
.mock-row-status.warn { background: var(--amber-50); color: var(--amber-700); }
.mock-row-status.check { background: var(--slate-100); color: var(--slate-600); }
.mock-row-replacement {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.mock-row-replacement .from { color: var(--slate-500); text-decoration: line-through; text-decoration-color: var(--slate-400); }
.mock-row-replacement .to { color: var(--slate-900); font-weight: var(--fw-medium); }
.mock-row-replacement .arrow-s { color: var(--color-text-tertiary); }

.mock-actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-default);
}
.mock-cta {
  flex: 1;
  padding: 8px 12px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-component);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: center;
  border: none;
}
.mock-cta:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Problem section ---------- */
.problem {
  background: #fff;
  border-top: 1px solid var(--color-border-default);
  border-bottom: 1px solid var(--color-border-default);
}
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-16);
  align-items: center;
}
.inflection-card {
  background: var(--slate-50);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.inflection-row {
  display: grid;
  grid-template-columns: 1.4fr 16px 1fr;
  gap: var(--space-3);
  padding: 10px 0;
  align-items: center;
}
.inflection-row + .inflection-row { border-top: 1px dashed var(--color-border-default); }
.inflection-row .case {
  font-size: 10px;
  color: var(--color-text-tertiary);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.inflection-row .orig { color: var(--slate-700); }
.inflection-row .repl { color: var(--indigo-700); }
.inflection-row .arrow-l { color: var(--color-text-tertiary); text-align: center; }

.problem ul.bullets {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2_5);
}
.problem ul.bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--slate-700);
}
.problem ul.bullets svg {
  width: 18px; height: 18px;
  color: var(--indigo-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Workflow ---------- */
.workflow-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  position: relative;
}
.workflow-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}
.workflow-card:hover {
  border-color: var(--indigo-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.workflow-num {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-brand);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.workflow-num .step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--indigo-50);
  color: var(--indigo-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  border: 1px solid var(--indigo-200);
}
.workflow-card h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}
.workflow-card p {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}
.workflow-fragment {
  margin-top: auto;
  background: var(--slate-50);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}
.fragment-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.fragment-line .ic { width: 14px; height: 14px; color: var(--color-text-tertiary); flex-shrink: 0; }
.fragment-line .ic.ok { color: var(--emerald-600); }
.fragment-line .ic.brand { color: var(--indigo-600); }
.fragment-line .filename { color: var(--slate-800); font-weight: var(--fw-medium); }
.fragment-line .meta { color: var(--color-text-tertiary); margin-left: auto; font-size: 11px; }

/* ---------- Segments ---------- */
.segments {
  background: #fff;
  border-top: 1px solid var(--color-border-default);
}
.segments-intro {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 720px;
  line-height: var(--lh-relaxed);
  margin-top: var(--space-4);
}
.tabs {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  width: fit-content;
  max-width: 100%;
}
.tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  transition: all var(--dur-normal) var(--ease-out);
  white-space: nowrap;
}
.tab:hover { color: var(--color-text-primary); }
.tab.active {
  background: #fff;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}
.tab-panels {
  position: relative;
  margin-top: var(--space-8);
}
.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
  animation: tab-fade var(--dur-slow) var(--ease-out);
}
.tab-panel.active { display: grid; }
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-panel h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.tab-panel p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-md);
  margin: 0;
}
.tab-panel ul.bullets {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2_5);
}
.tab-panel ul.bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--slate-700);
}
.tab-panel ul.bullets svg {
  width: 18px; height: 18px;
  color: var(--indigo-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.segment-doc {
  background: var(--slate-50);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate-700);
}
.segment-doc .doc-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--color-border-default);
}
.segment-doc .doc-header .ic { width: 14px; height: 14px; }

/* ---------- Differentiators ---------- */
.differentiators-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.diff-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.diff-card:hover {
  border-color: var(--indigo-200);
  transform: translateY(-2px);
}
.diff-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--indigo-500);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
}
.diff-card:hover::after { opacity: 1; }
.diff-card h4 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.diff-card .diff-ic {
  width: 18px; height: 18px;
  color: var(--indigo-600);
  flex-shrink: 0;
}
.diff-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}
.diff-card .demo {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border-default);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.demo .from { color: var(--slate-500); }
.demo .to { color: var(--indigo-700); font-weight: var(--fw-medium); }
.demo .arrow-s { color: var(--color-text-tertiary); }
.demo .check { color: var(--emerald-600); }

/* ---------- Security limits ---------- */
.security {
  background: #fff;
  border-top: 1px solid var(--color-border-default);
}
.security-body {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 720px;
}
.limits-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.limit-card {
  background: var(--slate-50);
  border: 1px solid var(--color-border-default);
  border-left: 3px solid var(--slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.limit-card h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--slate-800);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.limit-card h4 .ic { width: 16px; height: 16px; color: var(--slate-500); }
.limit-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Pilot form ---------- */
.pilot {
  background: var(--slate-50);
  border-top: 1px solid var(--color-border-default);
}
.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-12);
  align-items: start;
}
.pilot-receives {
  margin-top: var(--space-8);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pilot-receives li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--slate-700);
  line-height: 1.55;
}
.pilot-receives svg {
  width: 18px; height: 18px;
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-6);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-row label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--slate-700);
}
.form-row .req { color: var(--rose-600); }
.form-row .helper {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  line-height: 1.5;
}
.input, .select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-component);
  background: #fff;
  font-size: var(--fs-base);
  color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:hover, .select:hover { border-color: var(--color-border-hover); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-focus);
}
.input::placeholder { color: var(--color-text-tertiary); }
.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='%2364748b' 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 12px center;
  padding-right: 36px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill {
  position: relative;
  display: inline-flex;
}
.radio-pill label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 12px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-component);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  background: #fff;
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.radio-pill label:hover { border-color: var(--color-border-hover); background: var(--slate-50); }
.radio-pill input:checked + label {
  background: var(--indigo-50);
  color: var(--indigo-800);
  border-color: var(--indigo-300);
  font-weight: var(--fw-medium);
}
.radio-pill input:focus-visible + label { box-shadow: var(--shadow-focus); }

.consent {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  line-height: 1.55;
  padding: var(--space-3);
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--slate-300);
}
.form-submit {
  width: 100%;
  margin-top: var(--space-6);
  padding: 12px 18px;
  font-size: var(--fs-md);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  gap: var(--space-4);
}
.form-success.show { display: flex; }
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: var(--fs-xl); }
.form-success p { color: var(--color-text-secondary); }

/* ---------- Pilot price note ---------- */
.pilot-price-note {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.pilot-price-note strong {
  color: var(--color-text-primary);
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--slate-50);
  border-top: 1px solid var(--color-border-default);
}
.pricing-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}
.pricing-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--indigo-300);
  box-shadow: 0 0 0 1px var(--indigo-200), var(--shadow-md);
}
.pricing-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  background: var(--indigo-100);
  color: var(--indigo-800);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
}
.pricing-tier {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}
.pricing-price {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-amount {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pricing-period {
  font-size: var(--fs-sm);
  color: var(--color-text-tertiary);
}
.pricing-target {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  line-height: 1.55;
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--color-border-default);
}
.pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pricing-features li {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-left: var(--space-4);
  position: relative;
}
.pricing-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-text-tertiary);
}
.pricing-addon {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-surface);
  border: 1px dashed var(--color-border-default);
  border-radius: var(--radius-lg);
}
.pricing-addon-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
}
.pricing-addon-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}
.pricing-addon-price {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--indigo-700);
  font-variant-numeric: tabular-nums;
}
.pricing-addon-desc {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-left: auto;
  max-width: 400px;
}

/* ---------- FAQ ---------- */
.faq {
  background: #fff;
  border-top: 1px solid var(--color-border-default);
}
.faq-list {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border-default);
}
.faq-item {
  border-bottom: 1px solid var(--color-border-default);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-5) var(--space-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--slate-800);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-question:hover { color: var(--color-text-brand); }
.faq-question .plus {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: transform var(--dur-normal) var(--ease-out);
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); color: var(--color-text-brand); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-in-out);
}
.faq-answer-inner {
  padding: 0 var(--space-1) var(--space-5);
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 760px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--slate-900);
  color: var(--slate-50);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(99,102,241,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99,102,241,0.10), transparent 50%);
  pointer-events: none;
}
.final-cta > .container { position: relative; }
.final-cta h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
}
.final-cta p {
  margin: var(--space-5) auto 0;
  max-width: 580px;
  font-size: var(--fs-md);
  color: var(--slate-300);
  line-height: var(--lh-relaxed);
}
.final-cta .btn-primary {
  margin-top: var(--space-8);
  padding: 14px 24px;
  font-size: var(--fs-md);
}
.final-cta .btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(99,102,241,0.5); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: var(--space-12) 0;
  font-size: var(--fs-sm);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.site-footer .brand { color: var(--slate-100); }
.site-footer .links { display: flex; gap: var(--space-5); }
.site-footer a { color: var(--slate-400); }
.site-footer a:hover { color: var(--slate-200); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .problem-grid,
  .pilot-grid,
  .tab-panel.active {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .differentiators-grid,
  .limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-nav { display: none; }
  section { padding: var(--space-14) 0; }
  .hero { padding: var(--space-14) 0; }
  .container { padding: 0 var(--space-5); }
}

@media (max-width: 640px) {
  .differentiators-grid,
  .limits-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: var(--fs-2xl); }
  .form-card { padding: var(--space-6); }
  .mock-body { grid-template-columns: 1fr; }
  .mock-doc { border-right: none; border-bottom: 1px solid var(--color-border-default); }
  .header-cta { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
