/* TrustRouting www — aligned with admin-panel globals.css tokens */

:root {
  --bg: #f8fafc;
  --bg-tint: #eff6ff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  --ink: #1e293b;
  --ink-secondary: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: rgba(148, 163, 184, 0.28);
  --line-soft: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(59, 130, 246, 0.22);
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --accent-glow: rgba(59, 130, 246, 0.15);
  --sky: #0ea5e9;
  --sky-glow: rgba(14, 165, 233, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.08);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shell: min(1180px, calc(100% - 48px));
  --nav-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  --space: 8px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(at 28% 18%, rgba(59, 130, 246, 0.1) 0px, transparent 52%),
    radial-gradient(at 82% 8%, rgba(14, 165, 233, 0.08) 0px, transparent 48%),
    radial-gradient(at 8% 58%, rgba(37, 99, 235, 0.06) 0px, transparent 50%),
    radial-gradient(at 94% 82%, rgba(59, 130, 246, 0.07) 0px, transparent 42%);
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.9;
}

.brand .logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  box-shadow: none;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-actions a:focus-visible,
.faq summary:focus-visible,
.nav-toggle:focus-visible,
.footer-col a:focus-visible,
.step-toc a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 0.75rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-submenu-toggle:hover {
  color: var(--accent-strong);
  background: var(--bg-tint);
  text-decoration: none;
}

.has-submenu {
  position: relative;
}

.nav-submenu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 0.75rem;
  cursor: pointer;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 40;
}

.has-submenu.is-open > .nav-submenu,
.has-submenu:focus-within > .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-signin {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
}

.nav-signin:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0.75rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ——— Buttons (admin-btn-primary / secondary parity) ——— */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    opacity var(--duration) var(--ease);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  text-decoration: none;
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  pointer-events: none;
}

.btn-primary:active::before,
.btn-secondary:active::before {
  transform: scale(2);
  opacity: 1;
  transition: transform 0s, opacity 0s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.02) translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 1px 8px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 18px rgba(59, 130, 246, 0.08);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow:
    0 10px 24px rgba(59, 130, 246, 0.12),
    0 1px 2px rgba(15, 23, 42, 0.04);
  transform: scale(1.02) translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.96);
  background: #eff6ff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  padding-inline: 12px;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-tint);
  color: var(--accent-deep);
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ——— Hero ——— */
.hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff, var(--bg-tint));
  box-shadow: var(--shadow-sm);
  white-space: normal;
  line-height: 1.35;
  text-wrap: balance;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 16ch;
  color: #020617;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 42rem;
  margin-bottom: 24px;
}

.hero-support {
  margin-top: 18px;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Hero product shot: no card chrome — device floats on page field. */
.hero-visual {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-visual img {
  display: block;
  width: auto;
  max-width: min(100%, 260px);
  height: auto;
  max-height: min(520px, 68vh);
  object-fit: contain;
  object-position: top center;
  border-radius: 18px;
  border: 0;
  /* Soft device lift only — no outer frame */
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 18px 40px rgba(15, 23, 42, 0.14);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.hero-visual:hover img {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 24px 48px rgba(15, 23, 42, 0.16);
}

.hero-caption {
  margin: 0;
  max-width: 22ch;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* ——— Sections ——— */
.section {
  padding: clamp(52px, 8vw, 96px) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line-soft);
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  max-width: 28ch;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  hyphens: manual;
  overflow-wrap: normal;
}

.section-copy {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1rem;
  margin-bottom: 0;
}

.section-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ——— Cards ——— */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-card,
.audience-card,
.price-card,
.path-card,
.problem-card,
.how-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 26px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left accent bar — same cue as admin-metric-card */
.compare-card::before,
.audience-card::before,
.price-card::before,
.path-card::before,
.problem-card::before,
.how-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--sky));
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

/* Admin-panel metric-card hover: lift + soft blue glow */
.compare-card::after,
.audience-card::after,
.price-card::after,
.path-card::after,
.problem-card::after,
.how-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .compare-card:hover,
  .audience-card:hover,
  .price-card:hover,
  .path-card:hover,
  .problem-card:hover,
  .how-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.06),
      0 24px 48px rgba(59, 130, 246, 0.15),
      inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  }

  .compare-card:hover::after,
  .audience-card:hover::after,
  .price-card:hover::after,
  .path-card:hover::after,
  .problem-card:hover::after,
  .how-card:hover::after {
    opacity: 0.4;
  }
}

.compare-card h3,
.audience-card h3,
.path-card h3,
.problem-card h3,
.how-card h3 {
  line-height: 1.3;
  letter-spacing: -0.015em;
  hyphens: manual;
  overflow-wrap: normal;
}

.compare-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.compare-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.compare-card.is-highlight {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: none;
}

/* ——— Pipeline ——— */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.pipeline-step {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  min-height: 132px;
  box-shadow: none;
}

.pipeline-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-strong);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.pipeline-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.pipeline-step span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ——— Split ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: none;
}

.claim-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.claim-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.claim-list li:last-child {
  border-bottom: 0;
}

.claim-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ——— Audience ——— */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.audience-card:hover {
  text-decoration: none;
  color: inherit;
}

.audience-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.audience-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.audience-card .card-cta {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ——— Dual paths / channels / flow (MK2.1 homepage signature) ——— */
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.path-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.path-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.path-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.path-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: #eff6ff;
}

.path-note {
  font-size: 0.82rem;
  margin-top: 4px !important;
}

.path-card-mno {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.channel-strip,
.outcome-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.channel-strip li,
.outcome-strip li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-secondary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 7px 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .channel-strip li:hover,
  .outcome-strip li:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--bg-tint);
    color: var(--accent-strong);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  }
}

/* Status / plan chips (admin TestingStatusBadge + filter pills) */
.chip,
.plan-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
}

.plan-tag {
  color: var(--muted);
  background: var(--bg-subtle);
  border-color: var(--line-soft);
}

.chip-info,
.plan-tag.chip-info {
  color: #1e40af;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.chip-success {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.chip-warn {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.chip-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.chip-neutral {
  color: #334155;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.flow-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

.flow-node {
  position: relative;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-align: center;
}

/* Sequence lives BETWEEN nodes — centered connector, not a spine through the cards. */
.flow-node + .flow-node,
.flow-node + .flow-outcome {
  margin-top: 40px;
}

.flow-node + .flow-node::before,
.flow-node + .flow-outcome::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background: var(--accent-strong);
}

.flow-node + .flow-node::after,
.flow-node + .flow-outcome::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-strong);
}

/* Final stage spreads horizontally — the packed arrow string was the crush. */
.flow-outcome {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.78));
  overflow: hidden;
}

.flow-outcome > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 72px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
}

.flow-outcome > span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-strong);
  background: transparent;
  pointer-events: none;
}

@media (max-width: 900px) {
  .flow-outcome {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .flow-outcome > span:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .flow-outcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-node {
    text-align: left;
    padding: 16px 18px;
  }
}

.enterprise-banner {
  /* Same quiet surface language as .cta-band */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.72));
  box-shadow: none;
  overflow: hidden;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.enterprise-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--sky));
}

.enterprise-banner:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.enterprise-banner strong {
  color: var(--ink);
  font-weight: 700;
}

.enterprise-banner p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
}

.enterprise-banner .btn {
  flex-shrink: 0;
}

.center-link {
  text-align: center;
  margin: 18px 0 0;
}

.mandatory-line {
  position: relative;
  margin-top: 28px;
  margin-inline: auto;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.72));
  font-size: 1rem;
  line-height: 1.55;
  max-width: min(56rem, 100%);
  color: var(--ink-secondary);
  overflow: hidden;
  box-shadow: none;
}

.mandatory-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--sky));
}

.footnote {
  margin-top: 14px;
  font-size: 0.85rem;
}

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

.troubleshoot {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.troubleshoot h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.prose-ol {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--ink-secondary);
}

.prose-ol li {
  margin-bottom: 6px;
}

.legal-card > p:first-child {
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: #fffbeb;
  border-radius: var(--radius-sm);
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .how-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ——— Pricing ——— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(59, 130, 246, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.price-card .plan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-card .amount small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.price-card li {
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.note-box {
  position: relative;
  margin-top: 20px;
  padding: 14px 16px 14px 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.72));
  border: 1px solid var(--line-strong);
  color: var(--ink-secondary);
  font-size: 0.9rem;
  box-shadow: none;
  overflow: hidden;
}

.note-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--sky));
}

/* ——— CTA ——— */
/* Quiet close: soft field + edge, not a filled brand slab (colors stay site-native). */
.cta-band {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.72));
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 52px);
  text-align: center;
  box-shadow: none;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--sky));
}

.cta-band h2 {
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

.cta-band p {
  color: var(--ink-secondary);
  max-width: 36rem;
  margin: 0 auto 24px;
}

/* Use default site buttons — no inverted white/ghost-on-blue. */

/* ——— Page chrome ——— */
.page-hero {
  padding: clamp(40px, 7vw, 72px) 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  max-width: 22ch;
  line-height: 1.2;
  letter-spacing: -0.02em;
  hyphens: manual;
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.page-hero .effective {
  color: var(--faint);
  font-size: 0.875rem;
  margin-top: 8px;
}

.prose {
  max-width: 760px;
}

/* Long-form legal: open measure + leading — global heading squeeze does not apply here. */
.prose.legal-card {
  max-width: min(48rem, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: none;
  padding: clamp(28px, 4.5vw, 48px) clamp(22px, 4vw, 44px);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.prose.legal-card > p:first-child {
  margin-bottom: 1.25em;
}

.prose.legal-card p {
  margin: 0 0 1.2em;
  max-width: none;
}

.prose.legal-card h2,
.prose.legal-card h3,
.prose.legal-card h4 {
  font-family: var(--font-display);
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.prose.legal-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin: 2.4em 0 0.85em;
  padding-top: 0.35em;
  border-top: 1px solid var(--line-soft);
}

.prose.legal-card h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.75em;
}

.prose.legal-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 1.65em 0 0.55em;
}

.prose.legal-card ul,
.prose.legal-card ol {
  color: var(--ink-secondary);
  padding-left: 1.35em;
  margin: 0.35em 0 1.35em;
}

.prose.legal-card li {
  margin-bottom: 0.85em;
  line-height: 1.7;
  padding-left: 0.15em;
}

.prose.legal-card li:last-child {
  margin-bottom: 0.2em;
}

.prose.legal-card a {
  text-underline-offset: 3px;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 1.75em;
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.35em;
}

.prose ul,
.prose ol {
  color: var(--ink-secondary);
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose .disclaimer {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--bg-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-secondary);
  font-size: 0.925rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

table.data th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-subtle);
}

table.data tr:last-child td {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(148, 163, 184, 0.75);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--accent-glow),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.radio-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.radio-fieldset legend {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.step-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.step-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.step-toc a:hover {
  color: var(--accent-strong);
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--bg-tint);
  text-decoration: none;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.7);
  padding: 48px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 0.85rem;
}

/* ——— Motion ——— */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .compare-card,
  .audience-card,
  .price-card,
  .path-card,
  .problem-card,
  .how-card {
    transition: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .compare-card:hover,
  .audience-card:hover,
  .price-card:hover,
  .path-card:hover,
  .problem-card:hover,
  .how-card:hover {
    transform: none;
  }

  .compare-card:hover,
  .audience-card:hover,
  .price-card:hover,
  .path-card:hover,
  .problem-card:hover,
  .how-card:hover {
    box-shadow: var(--shadow-md);
  }

  .compare-card::after,
  .audience-card::after,
  .price-card::after,
  .path-card::after,
  .problem-card::after,
  .how-card::after {
    display: none;
  }
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  :root {
    --shell: calc(100% - 40px);
  }

  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-block: 8px;
    gap: 8px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }

  .nav.is-open .nav-links > li > a,
  .nav.is-open .nav-submenu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
  }

  .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 12px;
    border-top: 1px solid var(--line-soft);
    margin-top: 4px;
  }

  .nav.is-open .nav-actions .btn,
  .nav.is-open .nav-actions .nav-signin {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .has-submenu.is-open > .nav-submenu,
  .has-submenu:focus-within > .nav-submenu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 4px 8px;
    min-width: 0;
  }

  .nav.is-open .nav-submenu a {
    text-align: left;
    white-space: normal;
  }

  .nav-submenu-toggle {
    width: 100%;
    text-align: left;
  }

  .hero-grid,
  .split,
  .compare,
  .audience-grid,
  .path-grid,
  .how-grid,
  .how-grid-4,
  .problem-grid,
  .shot-grid,
  .two-col,
  .pipeline,
  .pricing-grid,
  .pricing-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    max-width: min(100%, 220px);
    max-height: min(400px, 55vh);
  }

  .hero h1,
  .section-title,
  .page-hero h1 {
    max-width: none;
  }

  .btn-row .btn {
    width: 100%;
  }

  .phone-grid,
  .phone-grid-2,
  .phone-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .step-item {
    grid-template-columns: 1fr;
  }

  .enterprise-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .enterprise-banner .btn {
    width: 100%;
  }

  .step-toc a {
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .shell {
    padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
  }

  .site-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 6px 10px;
  }

  .hero {
    padding-top: clamp(28px, 6vw, 48px);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .cta-band {
    padding: 28px 20px;
  }

  .cta-band h2 {
    max-width: none;
  }

  .phone-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

/* ——— How-it-works steps ——— */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.how-card {
  padding: 22px 20px;
}

.how-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 9999px;
}

.how-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.how-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.problem-card {
  padding: 22px 20px;
}

.problem-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.problem-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ——— Shot galleries ——— */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .shot-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.06),
      0 20px 40px rgba(59, 130, 246, 0.12);
  }
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
  background: var(--bg-subtle);
}

.shot-card figcaption {
  padding: 12px 14px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

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

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

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

.phone-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  text-align: center;
}

.phone-card img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: top center;
  background: var(--bg-subtle);
}

.phone-card figcaption {
  padding: 10px 10px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.75fr);
  gap: 24px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: none;
}

.step-item.is-critical {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #fff, #fffbeb);
}

.step-item h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.step-item p,
.step-item li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-item img {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  max-height: 420px;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  background: var(--bg-subtle);
}

/* ——— Click-to-enlarge lightbox ——— */
img.zoomable {
  cursor: zoom-in;
}

.zoom-figure {
  cursor: zoom-in;
}

.zoom-figure:focus-within,
img.zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px 32px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: min(960px, 96vw);
  max-height: min(85vh, 920px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #0f172a;
  cursor: default;
  opacity: 0;
  transform: scale(0.88) translateY(12px);
  transition:
    opacity 0.32s var(--ease),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lightbox.is-open .lightbox-img.is-swap {
  opacity: 0;
  transform: scale(0.96);
  transition-duration: 0.15s;
}

.lightbox-caption,
.lightbox-hint,
.lightbox-close,
.lightbox-nav {
  opacity: 0;
  transition: opacity 0.28s var(--ease) 0.05s;
}

.lightbox.is-open .lightbox-caption,
.lightbox.is-open .lightbox-hint,
.lightbox.is-open .lightbox-close,
.lightbox.is-open .lightbox-nav {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-img,
  .lightbox-caption,
  .lightbox-hint,
  .lightbox-close,
  .lightbox-nav {
    transition: none !important;
  }

  .lightbox-img {
    transform: none;
  }
}


.lightbox-caption {
  margin: 0;
  max-width: min(640px, 90vw);
  text-align: center;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.lightbox-hint {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.8rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-nav[hidden] {
  display: none !important;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--duration) var(--ease);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.step-item ol {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

/* ——— FAQ ——— */
.faq {
  max-width: 760px;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: none;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  margin: 12px 0 4px;
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
