/* Norekt uplift — same dark system, higher craft
   Inspired by Linear/Stripe product marketing: type, air, one light. */

:root {
  --bg: #050507;
  --bg-elevated: #0c0c0f;
  --bg-soft: #121216;
  --bg-hover: #18181d;
  --border: #1f1f26;
  --border-strong: #2e2e38;
  --text: #f4f4f5;
  --text-2: #a0a0ab;
  --text-3: #6b6b76;
  --accent: #a78bfa;
  --accent-2: #8b5cf6;
  --accent-dim: rgba(139, 92, 246, 0.14);
  --white: #ffffff;
  --black: #000000;
  --fail: #fb7185;
  --fail-bg: rgba(251, 113, 133, 0.09);
  --warn: #fbbf24;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.09);
  --max: 1120px;
  --prose: 38rem;
  --pad: clamp(1.25rem, 4.5vw, 2.25rem);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 3.75rem;
  /* Motion AI Kit / animations.dev:
     ease-out for UI; transform+opacity only; CSS linear() springs (no runtime) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
  /* Snappy spring ≈ visualDuration 0.35, bounce ~0.15 (Motion-style) */
  --spring-snappy: linear(
    0,
    0.006,
    0.025 2.8%,
    0.101 6.1%,
    0.304 13%,
    0.658 23.5%,
    0.821 29.2%,
    0.91 34.5%,
    0.968 40.1%,
    0.998 45.5%,
    1.012 51.5%,
    1.014 57.5%,
    1.006 67.5%,
    0.999 80%,
    1
  );
  /* Soft settle ≈ visualDuration 0.45, bounce ~0.08 */
  --spring-soft: linear(
    0,
    0.004,
    0.016 3.2%,
    0.068 7%,
    0.22 14.5%,
    0.52 26%,
    0.72 34%,
    0.86 42%,
    0.94 50%,
    0.985 60%,
    1.002 72%,
    1.003 82%,
    1
  );
  /* Tiny overshoot for badges / micro emphasis */
  --spring-pop: linear(
    0,
    0.01,
    0.04 3%,
    0.16 8%,
    0.48 18%,
    0.82 30%,
    0.98 40%,
    1.04 50%,
    1.02 58%,
    0.995 72%,
    1.002 85%,
    1
  );
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-med: 360ms;
  --dur-enter: 520ms;
  --dur-spring: 560ms;
  --r: 12px;
  --r-sm: 8px;
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on, "cv11" on, "kern" on;
  text-rendering: optimizeLegibility;
}

/* film grain — depth without decoration */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

body::after {
  display: none;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: var(--white);
}

/* refined scrollbars */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 2px solid var(--bg);
  }
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--accent);
}

p a,
.lede a,
li a,
.trust-item a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(167, 139, 250, 0.4);
}

p a:hover,
.lede a:hover {
  text-decoration-color: var(--accent);
}

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

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

/* ═══════════ Header ═══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 7, 0.88);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 520;
  font-size: 0.9375rem;
  letter-spacing: -0.025em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-sub {
  display: none;
}

@media (min-width: 720px) {
  .brand-sub {
    display: inline;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-3);
    letter-spacing: 0;
  }
  .brand-sub::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-strong);
    margin: 0 0.65rem 0.1rem 0.15rem;
    vertical-align: middle;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.65rem;
}

.nav a {
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.15rem;
  height: 1px;
  background: var(--text);
  opacity: 0.7;
}

.nav-cta {
  margin-left: 0.35rem !important;
  height: 2rem;
  display: inline-flex !important;
  align-items: center;
  padding: 0 0.85rem !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--bg) !important;
  background: var(--text);
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease) !important;
}

.nav-cta:hover {
  color: var(--bg) !important;
  opacity: 0.88;
  transform: translateY(-0.5px);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.15rem;
    background: rgba(5, 5, 7, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .nav-cta {
    margin: 0.9rem 0 0 !important;
    justify-content: center;
    height: 2.5rem !important;
  }
}

/* ═══════════ Type ═══════════ */
.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 0;
}

.kicker-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
}

.eyebrow::before {
  display: none;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 520;
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.8vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  max-width: 11.2em;
  margin-bottom: 1.6rem;
  line-height: 1.02;
}

h1 em,
h1 .roman {
  font-style: normal;
  font-weight: 450;
  color: var(--text-2);
}

h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.15rem);
  letter-spacing: -0.035em;
  max-width: 16em;
  margin-bottom: 1rem;
  line-height: 1.12;
  font-weight: 520;
}

h3 {
  font-size: 0.95rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.lede {
  margin: 0 0 2.15rem;
  max-width: var(--prose);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: -0.011em;
}

.muted {
  color: var(--text-3);
}

/* ═══════════ Buttons ═══════════ */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.65rem;
  padding: 0 1.2rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}

.btn:hover {
  text-decoration: none;
}

/* animations.dev: scale on press so UI feels responsive */
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  box-shadow: 0 0 0 0 transparent, 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:hover {
  background: #ececf1;
  color: var(--black);
  border-color: #ececf1;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: #3f3f4a;
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: scale(0.97) translateY(0);
}

.btn-arrow::after {
  content: "→";
  font-size: 0.95em;
  opacity: 0.7;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.btn-primary.btn-arrow:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* ═══════════ Hero ═══════════ */
.hero {
  padding: clamp(4.5rem, 13vw, 8.5rem) 0 clamp(4.5rem, 11vw, 7rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* single soft violet bloom — one light source */
.hero::before {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 50vmax;
  left: -15%;
  top: -30%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.16) 0%,
    rgba(139, 92, 246, 0.04) 35%,
    transparent 65%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-strong) 30%,
    var(--accent-2) 50%,
    var(--border-strong) 70%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.hero-art {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 23.5rem);
  gap: clamp(2.75rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  h1 {
    max-width: none;
  }
}

.hero-meta {
  margin: 2.15rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 30rem;
  letter-spacing: -0.005em;
}

.palette-row {
  display: none;
}

/* ═══════════ Product frame ═══════════ */
.product-frame {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 32px 64px -28px rgba(0, 0, 0, 0.75),
    0 0 80px -40px rgba(139, 92, 246, 0.25);
  overflow: hidden;
}

.product-frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #141418 0%, var(--bg-soft) 100%);
}

.product-frame-dots {
  display: flex;
  gap: 0.35rem;
}

.product-frame-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.product-frame-dots span:nth-child(1) {
  background: #ff5f57;
  opacity: 0.85;
}
.product-frame-dots span:nth-child(2) {
  background: #febc2e;
  opacity: 0.85;
}
.product-frame-dots span:nth-child(3) {
  background: #28c840;
  opacity: 0.85;
}

.product-frame-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  padding-right: 2rem; /* optical center vs dots */
}

.check-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.check-card::before {
  display: none;
}

.check-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.05rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: -0.01em;
}

.check-card-bar strong {
  color: var(--text-2);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  border: 1px solid transparent;
}

.badge-fail {
  background: var(--fail-bg);
  color: var(--fail);
  border-color: rgba(251, 113, 133, 0.22);
}

.badge-pass {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.22);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px currentColor;
  opacity: 0.5;
  box-shadow: none;
}

.check-card-body {
  padding: 1.05rem 1.1rem 1.2rem;
  background: var(--bg-elevated);
}

.check-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  color: var(--text);
}

.check-summary {
  margin: 0 0 0.95rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.finding {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.15rem 0.7rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

.finding-sev {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0;
  background: none !important;
  text-align: left;
  height: fit-content;
}

.sev-critical {
  color: var(--fail);
}

.sev-high {
  color: var(--warn);
}

.finding-code {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 450;
  color: var(--text);
  letter-spacing: -0.015em;
}

.finding-msg {
  grid-column: 2;
  margin: 0;
  color: var(--text-3);
  line-height: 1.45;
  font-size: 0.8rem;
}

.finding-path {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  opacity: 0.75;
}

.check-tip {
  margin: 0.95rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-2);
  background: rgba(139, 92, 246, 0.05);
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ═══════════ Sections ═══════════ */
.section {
  padding: clamp(4.5rem, 11vw, 7rem) 0;
}

.section-tight {
  padding: clamp(3.25rem, 8vw, 5rem) 0;
}

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

.section-paper {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  position: relative;
}

.section-paper .graphic-orb {
  display: none;
}

.section-paper h2,
.section-paper h3 {
  color: var(--text);
}

.section-paper .lede,
.section-paper p {
  color: var(--text-2);
}

.section-paper .kicker,
.section-paper .eyebrow {
  color: var(--text-3);
  background: none;
  border: none;
}

.section-paper .card {
  background: var(--bg);
}

.section-paper .card p {
  color: var(--text-3);
}

.section-paper .card-label {
  color: var(--text-3);
}

.section-paper .card-status {
  color: var(--text-3);
}

.section-paper .card-status.shipped {
  color: var(--ok);
}

.section-paper .card-status.dogfood {
  color: var(--accent);
}

.section-paper a {
  color: var(--accent);
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 34rem;
}

/* ═══════════ Grids ═══════════ */
.grid-3,
.grid-2 {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

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

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

@media (max-width: 800px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-elevated);
  border: none;
  border-radius: 0;
  padding: 1.65rem 1.5rem 1.75rem;
  box-shadow: none;
  transition: background 0.2s var(--ease);
}

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

.section-paper .card:hover {
  background: #101014;
}

.card::before {
  display: none;
}

.card-label {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 450;
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-3);
  letter-spacing: -0.005em;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 450;
}

.card-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.card-status.shipped {
  color: var(--ok);
}

.card-status.dogfood {
  color: var(--accent);
}

/* ═══════════ Gap list ═══════════ */
.gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-elevated);
}

.gap-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.35rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-2);
  letter-spacing: -0.01em;
  transition: background 0.15s var(--ease);
}

.gap-list li:hover {
  background: var(--bg-hover);
}

.gap-list li:last-child {
  border-bottom: none;
}

.gap-list .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 0.22rem;
  font-weight: 450;
}

.gap-list .tag.ok {
  color: var(--ok);
}

.gap-list .tag.gap {
  color: var(--fail);
  font-weight: 500;
}

/* ═══════════ Steps (install rail) ═══════════ */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent-2),
    var(--border-strong) 30%,
    var(--border)
  );
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem 1.15rem;
  padding: 0 0 1.5rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  align-items: start;
  position: relative;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text-2);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-elevated);
}

.steps li:first-child::before {
  background: var(--accent-2);
  color: var(--white);
}

.steps strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-weight: 520;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ═══════════ Code ═══════════ */
pre,
.code-block {
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: #000;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
}

pre code {
  font-family: inherit;
  color: inherit;
}

.code-wrap {
  position: relative;
  margin: 1.1rem 0 1.6rem;
}

.code-wrap .copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.code-wrap .copy-btn:hover,
.code-wrap .copy-btn.is-copied {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.code-kw {
  color: #c4b5fd;
}
.code-str {
  color: #6ee7b7;
}
.code-cm {
  color: #52525b;
}
.code-num {
  color: #fcd34d;
}

/* ═══════════ Tables ═══════════ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-soft);
}

tr:last-child td {
  border-bottom: none;
}

td {
  color: var(--text-2);
  background: var(--bg-elevated);
  letter-spacing: -0.005em;
}

td strong {
  color: var(--text);
  font-weight: 520;
}

/* ═══════════ Callout ═══════════ */
.callout {
  padding: 1.05rem 1.2rem;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-2);
  background: var(--accent-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.callout p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.callout strong {
  color: var(--text);
  font-weight: 520;
}

.callout-warn {
  border-left-color: var(--fail);
  background: var(--fail-bg);
  border-color: rgba(251, 113, 133, 0.2);
}

/* ═══════════ CTA ═══════════ */
.cta-band {
  padding: clamp(4.5rem, 11vw, 7rem) 0;
  border-top: 1px solid var(--border);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 50vmax;
  height: 40vmax;
  right: -10%;
  bottom: -40%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-band .wrap {
  position: relative;
}

.cta-band h2 {
  max-width: 14em;
}

.cta-band .lede {
  margin-bottom: 1.85rem;
}

/* ═══════════ Footer ═══════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
}

.footer-links a {
  color: var(--text-3);
  font-weight: 450;
}

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

/* ═══════════ Page hero ═══════════ */
.page-hero {
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 2.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 50vmax;
  height: 40vmax;
  left: -10%;
  top: -50%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  max-width: 14em;
}

/* ═══════════ Trust ═══════════ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

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

.trust-item {
  padding: 1.65rem 1.5rem;
  border: none;
  background: var(--bg-elevated);
  transition: background 0.15s var(--ease);
}

.trust-item:hover {
  background: var(--bg-hover);
}

.trust-item:nth-child(odd),
.trust-item:nth-child(2),
.trust-item:nth-child(3),
.trust-item:nth-child(4),
.trust-item:nth-child(5),
.trust-item:nth-child(6) {
  border: none;
  padding-right: 1.5rem;
}

.trust-item p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ═══════════ Paths ═══════════ */
.paths {
  display: grid;
  gap: 1.75rem;
}

.path {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.path-head h2 {
  font-size: 0.95rem;
  font-weight: 520;
  margin: 0;
  max-width: none;
  letter-spacing: -0.02em;
}

.path-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.55rem;
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 999px;
  font-weight: 500;
}

.path-body {
  padding: 1.5rem 1.4rem 1.65rem;
}

.path-body > p:first-child {
  margin-top: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ═══════════ Split ═══════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.section-paper .check-card,
.section-paper .product-frame {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: none;
}

.section-paper .check-card-bar {
  background: var(--bg-soft);
  border-color: var(--border);
}

.section-paper .check-title {
  color: var(--text);
}

.section-paper .check-summary,
.section-paper .finding-msg,
.section-paper .finding-path {
  color: var(--text-3);
}

.section-paper .finding {
  border-color: var(--border);
}

.section-paper .finding-code {
  color: var(--text);
}

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.8em;
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.section-paper .inline-code {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-2);
}

.graphic-strip {
  display: none;
}



/* ═══════════ Hero check card (clean Checks detail) ═══════════ */
.gh-check-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gh-x {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.14);
  color: var(--fail);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
}

.check-frame .check-card {
  border-radius: 0;
}

.check-frame .check-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.check-findings {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.check-findings .finding {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.15rem 0.65rem;
  margin: 0;
  padding: 0.8rem 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  background: transparent;
}

.check-findings .finding:first-child {
  border-top: none;
}

.check-findings .finding-main {
  min-width: 0;
}

.check-findings .finding-code {
  display: block;
  grid-column: auto;
}

.check-findings .finding-msg {
  grid-column: auto;
  margin: 0.2rem 0 0;
}

.check-findings .finding-path {
  grid-column: auto;
  display: block;
  margin-top: 0.25rem;
}

.check-tip.muted-tip {
  margin-top: 0.85rem;
  padding: 0;
  border: none;
  border-left: none;
  background: none;
  font-size: 0.72rem;
  color: var(--text-3);
}

.check-tip.muted-tip a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}

.check-tip.muted-tip a:hover {
  color: var(--accent);
}

.catch-card h3 {
  margin-bottom: 0.5rem;
}

/* home install steps — horizontal story */
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  counter-reset: hs;
}

.home-steps li {
  counter-increment: hs;
  padding: 1.4rem 1.3rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.home-steps li::before {
  content: counter(hs, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.home-steps strong {
  display: block;
  color: var(--text);
  font-weight: 520;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.home-steps p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .home-steps {
    grid-template-columns: 1fr;
  }
}

/* sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem var(--pad) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(5, 5, 7, 0.88);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  /* duration/easing refined under prefers-reduced-motion block above when motion on */
  transition: transform 320ms var(--ease-out);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

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

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-cta-copy {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.sticky-cta-btn {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}


@media (max-width: 520px) {
  .sticky-cta-copy {
    display: none;
  }
  .sticky-cta-inner {
    justify-content: stretch;
  }
  .sticky-cta-btn {
    width: 100%;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ═══════════ Motion — animations.dev principles
   · ease-out only on UI · transform + opacity only
   · short orchestration · not everything animates ═══════════ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    transform: translateY(12px);
    animation: rise-in var(--dur-spring) var(--spring-soft) forwards;
  }
  /* tight stagger — one orchestrated beat */
  .hero-copy > *:nth-child(1) { animation-delay: 40ms; }
  .hero-copy > *:nth-child(2) { animation-delay: 90ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 140ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 190ms; }
  .hero-copy > *:nth-child(5) { animation-delay: 240ms; }

  /* never scale from 0 — start near final size */
  .product-frame.is-animate {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    animation: frame-in var(--dur-spring) var(--spring-snappy) 160ms forwards;
  }

  .product-frame.is-animate .check-card-bar {
    opacity: 0;
    animation: rise-in 400ms var(--spring-soft) 300ms forwards;
  }

  .product-frame.is-animate .check-title,
  .product-frame.is-animate .check-summary {
    opacity: 0;
    animation: rise-in 400ms var(--spring-soft) 360ms forwards;
  }

  .finding.is-stagger {
    opacity: 0;
    transform: translateY(8px);
  }
  .product-frame.is-animate .finding.is-stagger {
    animation: rise-in 480ms var(--spring-snappy) forwards;
  }
  .product-frame.is-animate .check-findings .finding.is-stagger:nth-child(1) {
    animation-delay: 440ms;
  }
  .product-frame.is-animate .check-findings .finding.is-stagger:nth-child(2) {
    animation-delay: 540ms;
  }
  .product-frame.is-animate .check-tip {
    opacity: 0;
    animation: rise-in 400ms var(--spring-soft) 640ms forwards;
  }

  /* micro pop on fail badge */
  .product-frame.is-animate .badge-fail {
    animation: badge-in 480ms var(--spring-pop) 400ms both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 520ms var(--spring-soft),
      transform 520ms var(--spring-soft);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 480ms var(--spring-snappy),
      transform 480ms var(--spring-snappy);
  }
  .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 55ms; }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 110ms; }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 165ms; }
  .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
  }

  .card {
    transition:
      background var(--dur) var(--ease-out),
      transform 280ms var(--spring-snappy);
  }
  .card:hover {
    transform: translateY(-2px);
  }

  .diff-panel {
    transition: transform 280ms var(--spring-snappy);
  }

  .nav-cta {
    transition:
      opacity var(--dur-fast) var(--ease-out),
      transform 200ms var(--spring-snappy) !important;
  }
  .nav-cta:active {
    transform: scale(0.96);
  }

  .sticky-cta {
    transition: transform 420ms var(--spring-snappy);
  }

  .toast {
    transition:
      opacity 280ms var(--spring-soft),
      transform 320ms var(--spring-pop);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badge-in {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  70% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .product-frame,
  .finding.is-stagger,
  .check-tip,
  .check-card-bar,
  .check-title,
  .check-summary,
  .badge-fail {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:active,
  .card:hover {
    transform: none !important;
  }
}

/* ═══════════ Before / after (9) ═══════════ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

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

.diff-panel {
  background: var(--bg-elevated);
  padding: 1.35rem 1.3rem 1.5rem;
  min-height: 100%;
}

.diff-panel h3 {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.diff-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.diff-panel--before .diff-label {
  color: var(--text-3);
}

.diff-panel--after .diff-label {
  color: var(--accent);
}

.diff-mock {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg);
}

.diff-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
}

.diff-mock-body {
  padding: 0.85rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-3);
}

.diff-mock-body p {
  margin: 0 0 0.55rem;
}

.diff-mock-body p:last-child {
  margin-bottom: 0;
}

.diff-empty {
  color: var(--text-3);
  font-style: normal;
  opacity: 0.85;
}

.diff-anno {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(251, 113, 133, 0.25);
  background: var(--fail-bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fail);
  line-height: 1.45;
}

.diff-anno strong {
  display: block;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 520;
  margin-bottom: 0.2rem;
}

/* ═══════════ Install progress (3) ═══════════ */
.install-progress {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.install-progress-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  padding: 0.65rem 0;
  overflow-x: auto;
}

.install-progress a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.install-progress a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.install-progress a.is-active {
  color: var(--text);
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

.install-progress a.is-done {
  color: var(--ok);
}

.install-progress .step-ix {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: inherit;
  opacity: 0.75;
}

.install-success {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--r);
  background: var(--ok-bg);
}

.install-success h3 {
  color: var(--ok);
  margin-bottom: 0.4rem;
}

.install-success p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
}

.install-success ul {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.55;
}

.install-success li {
  margin-bottom: 0.3rem;
}

/* ═══════════ Config builder (7) ═══════════ */
.config-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}

@media (max-width: 860px) {
  .config-builder {
    grid-template-columns: 1fr;
  }
}

.config-controls {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-elevated);
  padding: 1.1rem 1.15rem 1.2rem;
}

.config-controls h3 {
  margin-bottom: 0.85rem;
}

.config-mode {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
}

.config-mode button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.config-mode button.is-active {
  background: var(--text);
  color: var(--bg);
}

.config-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.config-row:first-of-type {
  border-top: none;
}

.config-row-name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.config-row-hint {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: -0.25rem;
}

.config-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
}

.config-toggle input {
  accent-color: var(--accent-2);
  width: 0.9rem;
  height: 0.9rem;
  cursor: pointer;
}

.config-preview {
  position: relative;
}

.config-preview .code-wrap {
  margin: 0;
}

.config-preview pre {
  min-height: 16rem;
}

/* ═══════════ Toast ═══════════ */
/* toast: scale from ~0.96 not 0 (animations.dev tip) */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  z-index: 220;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
  .toast.is-on {
    transform: translateX(-50%);
  }
}

/* ═══════════ Product layers + L2 flow (unified story) ═══════════ */
.layer-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0 0 2.5rem;
}
@media (max-width: 900px) {
  .layer-rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .layer-rail { grid-template-columns: 1fr; }
}
.layer-pill {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--r);
  padding: 1rem 1.05rem;
  min-height: 7.5rem;
}
.layer-pill h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.layer-pill p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.45;
}
.layer-pill .card-status { margin-top: 0.75rem; display: inline-flex; }

/* L2 flow — compact numbered strip (no floating arrows) */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.35rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-elevated);
}
@media (max-width: 720px) {
  .flow {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .flow {
    grid-template-columns: 1fr;
  }
}
.flow-step {
  position: relative;
  padding: 1rem 1.05rem 1.05rem;
  min-width: 0;
  border-right: 1px solid var(--border);
}
.flow-step:last-child {
  border-right: none;
}
@media (max-width: 720px) {
  .flow-step:nth-child(2n) {
    border-right: none;
  }
  .flow-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 420px) {
  .flow-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .flow-step:last-child {
    border-bottom: none;
  }
}
.flow-step .n {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.flow-step strong {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.flow-step span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* Flag list under L2 (simple stack, not fake table) */
.flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.flag-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.45;
}
.flag-list .tag {
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Pre-sign mock (matches demo UX language) */
.sign-mock {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 22rem;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
}
.sign-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.sign-mock-head strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 550;
}
.sign-mock-body { padding: 1rem 1.05rem 0.35rem; }
.sign-mock-body p {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.sign-kv {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem 0.65rem;
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
}
.sign-kv dt { color: var(--text-3); }
.sign-kv dd {
  margin: 0;
  font-family: var(--mono);
  color: var(--text-2);
  word-break: break-all;
}
.sign-reason {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}
.sign-reason code {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
}
.sign-mock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.75rem 1rem 1rem;
}
.sign-mock-actions .btn {
  justify-content: center;
  font-size: 0.8rem;
  height: 2.35rem;
}
.badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
}

.split-sign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 1.75rem 2.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .split-sign {
    grid-template-columns: 1fr;
  }
  .sign-mock {
    max-width: none;
  }
}
.l2-block {
  margin-top: 1.75rem;
}
.l2-note {
  margin: 1rem 0 0;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 36rem;
}
.split-sign .sign-mock {
  justify-self: end;
  max-width: none;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 800px) {
  .story-strip { grid-template-columns: 1fr; }
}
.story-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-elevated);
  padding: 1.1rem 1.15rem;
}
.story-card .when {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.story-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.story-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}
