/* ==========================================================================
   ImportKit marketing site, docs and legal pages
   Light theme with dark accent sections (showcase, CTA, mocks, code).
   One stylesheet, no build step.
   ========================================================================== */

:root {
  /* Light theme (default). Dark accent sections re-declare these below. */
  --ink: #0f1a17;
  --ink-2: #33413c;
  --ink-3: #56665f;
  --ink-4: #75857e;
  --bg: #f6f8f7;
  --bg-1: #ecf2ef;
  --bg-2: #ffffff;
  --bg-3: #f0f5f2;
  --bg-rgb: 246 248 247;
  --fg-rgb: 15 26 23;
  --line: rgba(15, 26, 23, 0.08);
  --line-2: rgba(15, 26, 23, 0.14);
  --violet: #0e9f6e;
  --violet-2: #006e52;
  --indigo: #008060;
  --magenta: #0e7490;
  --grad: linear-gradient(115deg, #006e52 0%, #008060 45%, #0e7490 100%);
  --grad-text: var(--grad);
  --grad-soft: linear-gradient(115deg, rgba(0, 128, 96, 0.14), rgba(14, 116, 144, 0.14));
  --accent-ink: #047857;
  --accent-ink-2: #065f46;
  --accent-line: #0e9f6e;
  --accent-underline: rgba(4, 120, 87, 0.35);
  --ok: #0c7d56;
  --ok-soft: rgba(12, 125, 86, 0.1);
  --warn: #975a06;
  --warn-soft: rgba(202, 138, 4, 0.13);
  --warn-ink: #6e4204;
  --danger: #bf3328;
  --danger-soft: rgba(210, 60, 48, 0.1);
  --danger-ink: #8a241c;
  --info: #1f5fc4;
  --info-soft: rgba(31, 95, 196, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-bg-2: rgba(255, 255, 255, 0.92);
  --panel-bg: rgba(255, 255, 255, 0.97);
  --surface-a: rgba(255, 255, 255, 0.7);
--radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(15, 26, 23, 0.06), 0 1px 3px rgba(15, 26, 23, 0.06);
  --shadow: 0 18px 44px -18px rgba(10, 60, 45, 0.22), 0 2px 6px rgba(15, 26, 23, 0.05);
  --shadow-lg: 0 40px 80px -28px rgba(10, 60, 45, 0.3), 0 10px 24px -12px rgba(15, 26, 23, 0.1);
  --glow: 0 20px 60px -14px rgba(16, 185, 129, 0.55);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
}

/* Dark accent sections: showcase panels, CTA cards, product mocks and code. */
.showcase,
.cta-card,
.mock,
.window,
.verdicts,
.stepper,
.issues,
.docs-main pre,
.codeblock {
  --ink: #f2f7f5;
  --ink-2: #c3d1cb;
  --ink-3: #8fa39a;
  --ink-4: #667a71;
  --bg: #08110e;
  --bg-1: #0b1512;
  --bg-2: #101c18;
  --bg-3: #17241f;
  --bg-rgb: 8 17 14;
  --fg-rgb: 255 255 255;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent-ink: #6ee7b7;
  --grad-text: linear-gradient(115deg, #34d399 0%, #2dd4bf 50%, #67e8f9 100%);
  --accent-ink-2: #a7f3d0;
  --accent-line: #34d399;
  --accent-underline: rgba(110, 231, 183, 0.4);
  --ok: #57d9a3;
  --ok-soft: rgba(87, 217, 163, 0.14);
  --warn: #f0b859;
  --warn-soft: rgba(240, 184, 89, 0.14);
  --warn-ink: #f7dcaa;
  --danger: #f27a72;
  --danger-soft: rgba(242, 122, 114, 0.14);
  --danger-ink: #ffd2ce;
  --info: #7cb8ff;
  --info-soft: rgba(124, 184, 255, 0.14);
  --panel-bg: rgba(16, 28, 24, 0.92);
  --surface-a: rgba(16, 28, 24, 0.4);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  color: var(--ink-2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

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

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

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}
.section-tight {
  padding: 72px 0;
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 3rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  font-weight: 650;
}

/* Key phrase: same display font, set apart by the brand gradient only. */
h1 em,
h2 em {
  font-style: normal;
  font-weight: inherit;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.05em;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-3);
  max-width: 60ch;
}
.center .lede {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.center .eyebrow {
  justify-content: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-2);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --- Nav: floating glass pill ------------------------------------------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled .nav-inner {
  background: var(--nav-bg-2);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.7);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex: none;
  margin-right: 8px;
}
.brand img {
  width: 26px;
  height: 26px;
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.06);
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--panel-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
  .nav .btn {
    margin: 4px 4px 0;
  }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px -10px rgba(16, 185, 129, 0.7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--glow);
}
.btn-secondary {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.05);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  background: rgb(var(--fg-rgb) / 0.09);
  border-color: rgb(var(--fg-rgb) / 0.24);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink-2);
  background: transparent;
  border-color: var(--line-2);
}
.btn-ghost:hover {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.05);
}
.btn-glass {
  color: #fff;
  background: rgb(var(--fg-rgb) / 0.08);
  border-color: rgb(var(--fg-rgb) / 0.16);
}
.btn-glass:hover {
  background: rgb(var(--fg-rgb) / 0.14);
  transform: translateY(-1px);
}
.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}
.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.center .btn-row,
.hero .btn-row,
.page-hero .btn-row,
.cta-card .btn-row,
.cta-inner .btn-row {
  justify-content: center;
}

.microcopy {
  font-size: 0.86rem;
  color: var(--ink-4);
  margin: 16px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.05);
  border: 1px solid var(--line-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 24px;
}
.pill:hover {
  border-color: rgb(var(--fg-rgb) / 0.3);
  color: var(--ink);
}
.pill b {
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* --- Backgrounds ---------------------------------------------------------- */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -30%;
  height: 1000px;
  background: radial-gradient(38% 45% at 24% 28%, rgba(0, 128, 96, 0.45), transparent 70%),
    radial-gradient(34% 42% at 78% 20%, rgba(14, 116, 144, 0.32), transparent 70%),
    radial-gradient(30% 36% at 55% 60%, rgba(87, 217, 163, 0.1), transparent 70%);
  filter: blur(30px);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(var(--fg-rgb) / 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 176px 0 0;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1 {
  max-width: 17ch;
  margin: 22px auto 22px;
}
.hero .lede {
  margin: 0 auto 36px;
}
.hero-note {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--ink-4);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

/* Product stage (mocked pre-import check, since no live screenshots exist yet) */
.stage {
  position: relative;
  max-width: 1080px;
  margin: 80px auto 0;
  padding: 0 24px;
}
.stage::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 6%;
  bottom: 8%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.45), transparent);
  filter: blur(70px);
}
.stage .window {
  transform: rotateX(10deg) scale(0.97);
  transform-origin: 50% 0;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage.in .window {
  transform: none;
}
.stage-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0), var(--bg) 92%);
}

.window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgb(var(--fg-rgb) / 0.03);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb) / 0.12);
}
.window-bar i:nth-child(1) {
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window-url {
  margin: 0 auto;
  transform: translateX(-24px);
  font-size: 12px;
  color: var(--ink-4);
  background: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 40px;
}

/* Pre-import check mock inside the browser frame */
.check-mock {
  padding: 22px 26px 26px;
}
.check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.check-head h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
}
.check-modes {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid var(--line);
  gap: 2px;
}
.check-modes span {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
}
.check-modes span.on {
  background: rgb(var(--fg-rgb) / 0.08);
  color: var(--ink);
}
.check-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.check-total {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.03);
  border: 1px solid var(--line);
}
.check-total b {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.check-total span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.check-total.t-create b {
  color: var(--ok);
}
.check-total.t-update b {
  color: var(--info);
}
.check-total.t-skip b {
  color: var(--warn);
}
.check-total.t-error b {
  color: var(--danger);
}

.check-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgb(var(--fg-rgb) / 0.025);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.check-row .rn {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.72rem;
  width: 34px;
  flex: none;
}
.check-row .rd {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.check-row .rv {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
}
.check-row.settled .rv {
  opacity: 1;
  transform: none;
}
.rv-create {
  background: var(--ok-soft);
  color: var(--ok);
}
.rv-update {
  background: var(--info-soft);
  color: var(--info);
}
.rv-skip {
  background: var(--warn-soft);
  color: var(--warn);
}
.rv-error {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Floating UI cards over the hero stage */
.float {
  position: absolute;
  z-index: 3;
  animation: bob 7s ease-in-out infinite;
}
.float-a {
  left: -8px;
  top: 30%;
  animation-delay: -1.2s;
}
.float-b {
  right: -12px;
  top: 10%;
  animation-delay: -3.4s;
}
.float-c {
  right: 4%;
  top: 62%;
  animation-delay: -5.1s;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.card-ui {
  text-align: left;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.card-ui small {
  display: block;
  color: var(--ink-4);
  font-size: 0.72rem;
  margin-top: 2px;
}
.card-ui .badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--ink);
}
.card-ui .badge-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.card-ui.refund .badge-dot::before {
  background: var(--warn);
}
.card-ui.credits {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-ui .credits-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* --- Marquee -------------------------------------------------------------- */

.marquee-wrap {
  padding: 48px 0 8px;
}
.marquee-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-4);
  margin-bottom: 22px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scrollx 42s linear infinite;
  padding: 4px 0;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes scrollx {
  to {
    transform: translateX(-50%);
  }
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tag b {
  font-weight: 600;
  color: var(--accent-ink);
}

/* --- Counter + steps ------------------------------------------------------ */

.count-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.count-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 48px;
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.14), var(--surface-a) 60%);
  border: 1px solid var(--line-2);
}
.count-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(14, 116, 144, 0.22), transparent);
}
.count-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-3);
}
.count-label svg {
  width: 16px;
  height: 16px;
}
.count-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.count-sub {
  font-size: 0.88rem;
  color: var(--ink-4);
  margin-bottom: 22px;
}
.count-bar-row {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: rgb(var(--fg-rgb) / 0.06);
}
.count-bar-row span {
  display: block;
  height: 100%;
  transition: width 0.4s ease;
}
.count-bar-row .b-create {
  background: var(--ok);
}
.count-bar-row .b-update {
  background: var(--info);
}
.count-bar-row .b-skip {
  background: var(--warn);
}
.count-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-4);
  flex-wrap: wrap;
}
.count-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.count-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  transition: background 0.25s ease;
}
.step:hover {
  background: rgb(var(--fg-rgb) / 0.03);
}
.step-n {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-ink);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.step h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.step p {
  font-size: 0.94rem;
  color: var(--ink-3);
  margin: 0;
}

/* --- Dark showcase --------------------------------------------------------- */

.showcase {
  position: relative;
  overflow: hidden;
  margin: 0 16px;
  padding: 108px 0;
  border-radius: var(--radius-xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.showcase::before,
.showcase::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.showcase::before {
  width: 680px;
  height: 680px;
  left: -220px;
  top: -280px;
  background: radial-gradient(closest-side, rgba(0, 128, 96, 0.4), transparent);
}
.showcase::after {
  width: 600px;
  height: 600px;
  right: -220px;
  bottom: -280px;
  background: radial-gradient(closest-side, rgba(14, 116, 144, 0.28), transparent);
}
.showcase .wrap {
  position: relative;
  z-index: 1;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.showcase h2 {
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 26px 0 32px;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Verdict queue mock (dry run demo) */
.verdicts {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.verdicts-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 16px;
}
.verdicts-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}
.verdicts-title svg {
  width: 17px;
  height: 17px;
  color: var(--accent-ink);
}
.verdicts-cost {
  font-size: 0.76rem;
  font-weight: 650;
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-ink);
  padding: 5px 11px;
  border-radius: 99px;
}
.verdicts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.vrow .vname {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vrow .vbadge {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgb(var(--fg-rgb) / 0.06);
  color: var(--ink-4);
  transition: background 0.3s ease, color 0.3s ease;
}
.vrow.done .vbadge.rv-create {
  background: var(--ok-soft);
  color: var(--ok);
}
.vrow.done .vbadge.rv-update {
  background: var(--info-soft);
  color: var(--info);
}
.vrow.done .vbadge.rv-skip {
  background: var(--warn-soft);
  color: var(--warn);
}
.vrow.done .vbadge.rv-error {
  background: var(--danger-soft);
  color: var(--danger);
}
.vrow.pending .vbadge {
  background: rgb(var(--fg-rgb) / 0.05);
}

/* --- Bento grid ------------------------------------------------------------ */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
.tile h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.tile p {
  color: var(--ink-3);
  font-size: 0.92rem;
  max-width: 42ch;
}
.tile-visual {
  margin-top: auto;
  padding-top: 22px;
}
.tile-compact {
  min-height: 0;
}
.tile-compact .tile-visual {
  padding-top: 18px;
}
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.type-chip i {
  font-family: var(--font);
  font-style: normal;
  color: var(--ink-4);
}
.tile-soon {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-2);
}
.soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-ink);
}
.tile.tint {
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.12), var(--bg-2) 60%);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-ink);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.icon svg {
  width: 19px;
  height: 19px;
}

.mini-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.mini-toast .ok-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.mini-toast b {
  color: var(--ink);
}

.retry-mock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.retry-mock .rline {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgb(var(--fg-rgb) / 0.06);
  overflow: hidden;
}
.retry-mock .rline span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad);
  border-radius: 99px;
}
.retry-mock b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  flex: none;
}

.mapping-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mapping-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.mapping-row .mcol {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
}
.mapping-row .marrow {
  color: var(--ink-4);
}
.mapping-row .mfield {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--accent-ink);
  font-weight: 600;
  white-space: nowrap;
}

.error-mock {
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid rgba(242, 122, 114, 0.35);
  font-size: 0.8rem;
  color: var(--danger-ink);
}
.error-mock code {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  margin-top: 6px;
  color: var(--danger);
}

.sees {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sees div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.sees .yes {
  color: var(--info);
  font-weight: 600;
}
.sees .no {
  color: var(--ink-4);
  font-weight: 600;
}

/* --- Versus ---------------------------------------------------------------- */

.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.vs-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.vs-card h4 {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 22px;
}
.vs-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.vs-card li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 0.98rem;
  color: var(--ink-3);
}
.vs-card li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb) / 0.06)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667a71' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.vs-card.us {
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.18), var(--bg-2) 65%);
  border-color: rgba(16, 185, 129, 0.3);
}
.vs-card.us h4 {
  color: var(--accent-ink);
}
.vs-card.us li {
  color: var(--ink);
}
.vs-card.us li::before {
  background: var(--ok-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c7d56' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* --- Pricing teaser --------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
}
.price-card p {
  margin: 0;
}
.price-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card.is-featured {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.14), var(--bg-2) 65%);
}
.price-tag {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.price-name {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
  margin: 0;
}
.price-amount {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-rows {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.92rem;
  margin: 0;
}
.price-per {
  font-size: 0.82rem;
  color: var(--ink-4);
  margin: 0;
}
.price-card .btn {
  justify-content: center;
  margin-top: auto;
}

/* --- CTA card --------------------------------------------------------------- */

.cta {
  padding: 24px 16px 100px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: #fff;
  background: radial-gradient(60% 80% at 50% 0%, rgba(16, 185, 129, 0.6), transparent 70%),
    radial-gradient(40% 60% at 90% 100%, rgba(14, 116, 144, 0.4), transparent 70%), var(--bg-1);
  border: 1px solid var(--line-2);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgb(var(--fg-rgb) / 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%);
}
.cta-card > * {
  position: relative;
  z-index: 1;
}
.cta-card h2 {
  max-width: 17ch;
  margin: 0 auto 16px;
}
.cta-card p {
  color: var(--ink-3);
  max-width: 480px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
}

/* --- Footer ------------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--ink-4);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 30ch;
}
.footer h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-4);
  font-weight: 650;
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}
.footer ul a {
  font-size: 0.88rem;
  color: var(--ink-3);
  transition: color 0.15s;
}
.footer ul a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-4);
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: var(--ink-4);
}
.footer-bottom a:hover {
  color: var(--ink-2);
}

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 980px) {
  .showcase-grid,
  .count-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 6;
  }
  .vs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 80px 0;
  }
  .hero {
    padding-top: 148px;
  }
  .float {
    display: none;
  }
  .check-totals {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Reveal-on-scroll ---------------------------------------------------- */

.reveal,
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in,
.stagger.in > * {
  opacity: 1;
  transform: none;
}
.stagger.in > *:nth-child(2) {
  transition-delay: 0.08s;
}
.stagger.in > *:nth-child(3) {
  transition-delay: 0.16s;
}
.stagger.in > *:nth-child(4) {
  transition-delay: 0.24s;
}
.stagger.in > *:nth-child(5) {
  transition-delay: 0.32s;
}
.stagger.in > *:nth-child(6) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
  .float {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   Phase 2: shared components for feature, pricing and compare pages
   ========================================================================== */

/* --- Nav: features menu --------------------------------------------------- */

.has-menu {
  position: relative;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.menu-btn:hover,
.has-menu.is-open .menu-btn {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.06);
}
.menu-btn[data-current="true"] {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.08);
}
.menu-btn .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.has-menu.is-open .chev {
  transform: rotate(180deg);
}
.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 330px;
  padding: 8px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-menu.is-open .menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-links .menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  white-space: normal;
}
.menu a b {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.menu a small {
  display: block;
  color: var(--ink-4);
  font-size: 0.8rem;
}
.menu-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--accent-ink);
}
.menu-icon svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 860px) {
  .menu-btn {
    display: none;
  }
  .menu {
    position: static;
    width: auto;
    padding: 0 0 6px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
  }
}

/* --- Inner page hero ------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 96px;
  text-align: center;
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 1.9rem + 2.6vw, 4rem);
  max-width: 17ch;
  margin: 0 auto 22px;
}
.page-hero .lede {
  margin: 0 auto 34px;
}

/* --- Split: text + mock ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 72px;
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
.split h2 {
  margin-bottom: 18px;
}
.split + .split {
  margin-top: 120px;
}

/* Generic mock card */
.mock {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.mock::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.35), transparent);
  filter: blur(50px);
}
.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 16px;
  font-size: 0.86rem;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.mock-top b {
  color: var(--ink);
  font-weight: 600;
}
.mock-chip {
  font-size: 0.74rem;
  font-weight: 650;
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-ink);
  padding: 5px 11px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s, color 0.3s;
}
.mock-chip.ready,
.mock-chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

/* --- Imports: rowcast ------------------------------------------------------ */

.rc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.rc-tab {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 99px;
  color: var(--ink-4);
  border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.rc-tab.on {
  color: #fff;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
}
.rc-stage {
  position: relative;
  min-height: 190px;
}
.rc-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rc-item.on {
  opacity: 1;
}
.rc-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-4);
  margin: 0 0 8px;
}
.rc-line {
  display: block;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-ink);
  overflow-wrap: anywhere;
}
.rc-line::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent-ink);
  animation: blink 1s steps(2) infinite;
}
.rc-item.popped .rc-line::after {
  display: none;
}
@keyframes blink {
  to {
    opacity: 0;
  }
}
.rc-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid rgba(87, 217, 163, 0.3);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rc-item.popped .rc-result {
  opacity: 1;
  transform: none;
}
.rc-result .ok-ring {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
}
.rc-result .ok-ring svg {
  width: 15px;
  height: 15px;
}
.rc-result b {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}
.rc-result small {
  color: var(--ink-4);
  font-size: 0.78rem;
}
/* Reduced motion: every example shown as a list */
.static .rc-stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.static .rc-item {
  position: static;
}
.static .rc-tabs {
  display: none;
}

/* --- Preview: conflict mode switch ----------------------------------------- */

.md-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  background: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid var(--line);
}
.md-btn {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  transition: background 0.25s, color 0.25s;
}
.md-btn.on {
  background: var(--grad);
  color: #fff;
}
.md-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s ease;
}
[data-modes].switching .md-rows {
  opacity: 0.55;
}
.md-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}
.md-row .vname {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-row .vname small {
  color: var(--ink-4);
  margin-left: 6px;
}
.md-row .vbadge,
.results .vbadge {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
}
.vbadge.rv-create {
  background: var(--ok-soft);
  color: var(--ok);
}
.vbadge.rv-update {
  background: var(--info-soft);
  color: var(--info);
}
.vbadge.rv-skip {
  background: var(--warn-soft);
  color: var(--warn);
}
.vbadge.rv-error {
  background: var(--danger-soft);
  color: var(--danger);
}
.mode-legend {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.mode-legend li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.mode-legend b {
  flex: none;
  width: 64px;
  font-family: var(--display);
  color: var(--ink);
}

/* --- Preview showcase: issue cards ----------------------------------------- */

.issues {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.issue {
  padding: 15px 17px;
  border-radius: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.issue.shown {
  opacity: 1;
  transform: none;
}
.issue-row {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--danger);
}
.issue p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.issue code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 0.74rem;
}

/* --- Files: mapper ---------------------------------------------------------- */

.mp-head {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 10px;
  padding: 0 4px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-4);
}
.mp-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-row {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 10px;
  align-items: center;
}
.mp-from,
.mp-to {
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-from {
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.mp-to {
  border: 1px dashed var(--line-2);
  color: var(--ink-4);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.mp-arrow {
  text-align: center;
  color: var(--ink-4);
  transition: color 0.3s;
}
.mp-row.matched .mp-to {
  border-style: solid;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-ink-2);
  font-weight: 600;
}
.mp-row.matched .mp-arrow {
  color: var(--ok);
}
.mp-row.ignored .mp-to {
  border-style: solid;
  background: rgb(var(--fg-rgb) / 0.04);
  color: var(--ink-3);
}

/* Template list */
.tpl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tpl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.tpl i {
  font-style: normal;
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--ink-4);
  white-space: nowrap;
}
.tpl .dl {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-ink);
}
.tpl .dl svg {
  width: 15px;
  height: 15px;
}

/* Stepper */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.st-num {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-ink);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.st-step b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}
.st-step small {
  color: var(--ink-4);
  font-size: 0.82rem;
}
.st-check {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok);
  opacity: 0;
  transition: opacity 0.3s;
}
.st-step.active {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), var(--bg-3));
  transform: translateX(6px);
}
.st-step.done .st-num {
  background: var(--ok-soft);
  border-color: rgba(87, 217, 163, 0.35);
  color: var(--ok);
}
.st-step.done .st-check {
  opacity: 1;
}

/* --- Safety net: run --------------------------------------------------------- */

.run-bar {
  height: 10px;
  border-radius: 99px;
  background: rgb(var(--fg-rgb) / 0.06);
  overflow: hidden;
  margin-bottom: 18px;
}
.run-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad);
}
.run-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.run-stat {
  padding: 12px 10px;
  border-radius: 13px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  text-align: center;
}
.run-stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.run-stat span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.run-stat.s-ok b {
  color: var(--ok);
}
.run-stat.s-skip b {
  color: var(--warn);
}
.run-stat.s-err b {
  color: var(--danger);
}
.run-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  min-height: 34px;
  flex-wrap: wrap;
}
.run-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.run-toast.shown {
  opacity: 1;
  transform: none;
}
.run-toast .ok-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.run-dl {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 99px;
  background: #fff;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.35s;
}
[data-run].finished .run-dl {
  opacity: 1;
}
[data-run].finished .mock-chip {
  background: var(--ok-soft);
  color: var(--ok);
}

/* Ledger (safety net + pricing) */
.ledger {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
  transition: opacity 0.35s, transform 0.35s;
}
[data-ledger] .lg-line {
  opacity: 0.25;
}
[data-ledger] .lg-line.shown {
  opacity: 1;
}
.lg-line b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.lg-line b.free {
  color: var(--ok);
}
.lg-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding: 16px 15px 4px;
  border-top: 1px solid var(--line-2);
}
.lg-total span {
  color: var(--ink-3);
  font-size: 0.88rem;
}
.lg-total b {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
[data-ledger].finished .lg-total b {
  color: var(--ok);
}

/* Results table mock */
.results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.res-row .rn {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-4);
}
.res-row .rd {
  min-width: 0;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-row .rd small {
  display: block;
  color: var(--ink-4);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Compare: problem → answer ---------------------------------------------- */

.qa {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}
.qa-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.qa-q,
.qa-a {
  padding: 18px 20px;
  border-radius: 20px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.qa-q {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.qa-q blockquote {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}
.qa-q cite {
  font-style: normal;
  font-size: 0.76rem;
}
.qa-q cite a {
  color: var(--ink-4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.qa-q cite a:hover {
  color: var(--ink-2);
}
.qa-a {
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.2), var(--bg-2) 70%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-bottom-right-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
}
.qa-a b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 4px;
}
.js-qa .qa-q,
.js-qa .qa-a {
  opacity: 0;
  transform: translateY(10px);
}
.js-qa .qa-pair.asked .qa-q,
.js-qa .qa-pair.answered .qa-a {
  opacity: 1;
  transform: none;
}

/* --- Tables ------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
}
.table-wrap th,
.table-wrap td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}
.table-wrap th {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: rgb(var(--fg-rgb) / 0.02);
}
.table-wrap td {
  color: var(--ink-2);
}
.table-wrap tbody th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink);
  background: none;
}
.table-wrap td:first-child {
  color: var(--ink);
  font-weight: 550;
}
.table-wrap .col-us {
  background: rgba(16, 185, 129, 0.08);
}
.table-wrap th.col-us {
  color: var(--accent-ink);
}
.t-yes {
  color: var(--ok) !important;
  font-weight: 600;
}
.t-part {
  color: var(--warn) !important;
}
.t-no {
  color: var(--ink-4) !important;
}
.table-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-4);
}

/* --- FAQ ---------------------------------------------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0 22px;
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] {
  border-color: var(--line-2);
  background: var(--bg-3);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-ink);
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 0.96rem;
}
.faq a,
.lede a,
.microcopy a,
.table-note a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-underline);
}

/* --- Related features ----------------------------------------------------------- */

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.related a:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow);
}
.related .icon {
  margin-bottom: 12px;
}
.related b {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}
.related span {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.related .more {
  margin-top: 8px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.86rem;
}
.related-head {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 18px;
}

/* --- Pricing extras ------------------------------------------------------------ */

.price-good {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin: 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .lede {
  margin: 0 auto;
}
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.example {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.example h3 {
  font-size: 1.15rem;
}
.example p {
  color: var(--ink-3);
  font-size: 0.92rem;
  margin: 0 0 16px;
}
.example .sum {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-ink-2);
  font-weight: 600;
  font-size: 0.86rem;
  margin: 0;
}

/* Fit pills (compare) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 99px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.pills span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* --- Responsive (phase 2) ---------------------------------------------------------- */

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .split + .split {
    margin-top: 88px;
  }
  .related,
  .examples {
    grid-template-columns: 1fr;
  }
  .qa-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 148px 0 72px;
  }
  .run-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .mp-head,
  .mp-row {
    grid-template-columns: 1fr 20px 1fr;
    gap: 6px;
  }
}

.tag .to {
  color: var(--ink-4);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Phase 3: docs, legal and 404
   ========================================================================== */

/* --- Docs shell ------------------------------------------------------------ */

.docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 48px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 124px 24px 96px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.docs-sidebar {
  font-size: 0.9rem;
  padding-right: 6px;
}
.docs-sidebar h2,
.docs-toc h2 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 24px 0 8px;
}
.docs-sidebar h2:first-child {
  margin-top: 0;
}
.docs-sidebar ul,
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.docs-sidebar a {
  display: block;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.docs-sidebar a:hover {
  color: var(--ink);
  background: rgb(var(--fg-rgb) / 0.05);
}
.docs-sidebar a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.18);
  box-shadow: inset 2px 0 0 var(--accent-line);
}

.docs-toc {
  font-size: 0.84rem;
}
.docs-toc h2 {
  margin-top: 0;
}
.docs-toc ul {
  gap: 8px;
  border-left: 1px solid var(--line);
}
.docs-toc a {
  display: block;
  padding-left: 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-4);
  line-height: 1.4;
}
.docs-toc a:hover {
  color: var(--ink-2);
}
.docs-toc a.is-active {
  color: var(--accent-ink);
  border-left-color: var(--accent-line);
  font-weight: 600;
}

.docs-nav-toggle {
  display: none;
}

/* --- Docs content ------------------------------------------------------------ */

.docs-main,
.legal {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.docs-main h1,
.legal h1 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  margin-bottom: 14px;
}
.docs-main h2,
.legal h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 2.6em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.docs-main h1 + .lede + h2,
.docs-main > h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.docs-main h3,
.legal h3 {
  font-size: 1.12rem;
  margin: 2em 0 0.5em;
}
.docs-main h4 {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1rem;
  margin: 1.6em 0 0.4em;
}
.docs-main > .lede {
  font-size: 1.12rem;
  margin-bottom: 2.2em;
}
.docs-main strong,
.legal strong {
  color: var(--ink);
  font-weight: 600;
}
.docs-main a:not(.btn):not(.card):not(.anchor),
.legal a:not(.btn) {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-underline);
}
.docs-main a:not(.btn):not(.card):not(.anchor):hover,
.legal a:not(.btn):hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.docs-main ul,
.docs-main ol,
.legal ul,
.legal ol {
  padding-left: 1.3em;
  margin: 0 0 1.3em;
}
.docs-main li,
.legal li {
  margin-bottom: 0.45em;
}
.docs-main li > ul,
.docs-main li > ol {
  margin: 0.45em 0 0.6em;
}
.docs-main dl {
  margin: 0 0 1.4em;
}
.docs-main dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.1em;
}
.docs-main dd {
  margin: 0.2em 0 0;
  color: var(--ink-3);
}
.docs-main hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.breadcrumb {
  font-size: 0.84rem;
  color: var(--ink-4);
  margin: 0 0 12px;
}
.breadcrumb a {
  color: var(--ink-3) !important;
  text-decoration: none !important;
}
.breadcrumb a:hover {
  color: var(--accent-ink) !important;
}

.anchor {
  margin-left: 0.4em;
  color: var(--ink-4);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.15s;
}
h2:hover > .anchor,
h3:hover > .anchor,
.anchor:focus-visible {
  opacity: 1;
}

/* Inline code, code blocks */
.docs-main :not(pre) > code,
.legal :not(pre) > code,
.faq :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--accent-ink-2);
  overflow-wrap: break-word;
}
.docs-main pre {
  margin: 0 0 1.3em;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
}
.docs-main pre code {
  font-family: var(--mono);
  white-space: pre;
}
.codeblock {
  position: relative;
  margin: 0 0 1.3em;
}
.codeblock pre {
  margin: 0;
  padding-top: 46px;
}
.codeblock-bar {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  background: var(--bg-2);
}
.codeblock-name {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-4);
}
.copy-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.copy-btn:hover {
  color: var(--ink);
  border-color: rgb(var(--fg-rgb) / 0.3);
}
.copy-btn.is-copied {
  color: var(--ok);
  border-color: rgba(87, 217, 163, 0.5);
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-scroll th,
.table-scroll td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}
.table-scroll th {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: rgb(var(--fg-rgb) / 0.02);
  white-space: nowrap;
}
.table-scroll td {
  color: var(--ink-2);
}
.table-scroll td code {
  white-space: nowrap;
}
.table-split table,
.table-split-3 table {
  table-layout: fixed;
}
.table-split th,
.table-split td {
  width: 50%;
}
.table-split-3 th,
.table-split-3 td {
  width: 33.333%;
}
.table-split th,
.table-split td,
.table-split-3 th,
.table-split-3 td,
.table-split code,
.table-split-3 code {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(var(--fg-rgb) / 0.05);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge-req {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-ink);
}
.badge-ok {
  background: var(--ok-soft);
  border-color: rgba(87, 217, 163, 0.35);
  color: var(--ok);
}
.badge-warn {
  background: var(--warn-soft);
  border-color: rgba(240, 184, 89, 0.35);
  color: var(--warn);
}
.badge-danger {
  background: var(--danger-soft);
  border-color: rgba(242, 122, 114, 0.35);
  color: var(--danger);
}

/* Callouts */
.note {
  margin: 0 0 1.5em;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  font-size: 0.95rem;
}
.note > *:last-child {
  margin-bottom: 0;
}
.note-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 650;
  color: var(--ink);
}
.note-tip {
  border-left-color: var(--ok);
}
.note-warn {
  border-left-color: var(--warn);
}
.note-danger {
  border-left-color: var(--danger);
}

/* Cards and grids inside docs */
.grid {
  display: grid;
  gap: 16px;
  margin: 0 0 1.4em;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.card p {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 0.93rem;
}
.card p:last-child {
  margin-bottom: 0;
}
a.card {
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow);
}
a.card .more {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Numbered steps (ordered lists in docs) */
.docs-main .steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 20px;
}
.docs-main .steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin: 0;
}
.docs-main .steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-ink);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.docs-main .steps > li > h3,
.docs-main .steps > li > h4 {
  margin: 4px 0;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 9px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin: 0;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* FAQ inside docs spans the column */
.docs-main .faq {
  max-width: none;
  margin: 0 0 1.4em;
}

/* Screenshots. Placeholder frames stay hidden until a real image is added
   inside the <figure>, so file names stay stable without showing gaps. */
.shot {
  margin: 28px 0;
}
.shot:not(:has(img)) {
  display: none;
}
.shot img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-4);
}

/* Prev / next */
.next-prev {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.next-prev a {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s;
}
.next-prev a:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.next-prev span {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 3px;
}
.next-prev strong {
  color: var(--accent-ink);
}
.next-prev .is-next {
  text-align: right;
}

/* Utilities used in docs */
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-2 {
  margin-top: 2rem;
}
.nowrap {
  white-space: nowrap;
}

@media (max-width: 1140px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 108px;
  }
  .docs-nav-toggle {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    display: none;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-2);
  }
  .docs-sidebar.is-open {
    display: block;
  }
}

/* --- Legal pages ---------------------------------------------------------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 96px;
}
.legal .meta {
  font-size: 0.9rem;
  color: var(--ink-4);
  margin-bottom: 2em;
}
.legal-summary {
  margin: 0 0 2.4em;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.14), var(--bg-2) 70%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.legal-summary h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 1.1rem;
}
.legal-summary ul {
  margin: 0;
}
.legal-toc {
  columns: 2;
  column-gap: 32px;
  margin: 0 0 2.4em;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.legal-toc li {
  break-inside: avoid;
  margin-bottom: 6px;
}
.legal .caps {
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .legal-toc {
    columns: 1;
  }
}

/* --- 404 -------------------------------------------------------------------- */

.not-found .page-hero {
  min-height: 80vh;
  display: grid;
  align-content: center;
}

/* Check icons inside dark sections keep the pale lavender stroke. */
.showcase .check-list li::before {
  background: rgba(16, 185, 129, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Light-theme tuning: softer hero glow, crisper cards. */
.aurora::before {
  opacity: 0.55;
}
.stage::before,
.mock::before {
  opacity: 0.6;
}
.tile,
.price-card,
.related a,
.example,
.faq details,
.table-wrap,
.table-scroll,
.vs-card,
.card,
.count-card,
.qa-q,
.next-prev a {
  box-shadow: var(--shadow-sm);
}
.btn-secondary,
.btn-ghost {
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}
.showcase .btn-secondary,
.showcase .btn-ghost,
.cta-card .btn-secondary {
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: none;
}

/* Mocks sit on light sections too, so give them their own dark base. */
.mock {
  background-color: var(--bg-1);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Stop wide code blocks from stretching step items on phones. */
.docs-main .steps > li {
  min-width: 0;
}
.docs-main li :not(pre) > code {
  overflow-wrap: anywhere;
}

/* Heading anchors are revealed on hover; that's intentional, not hidden content. */
