/* ============================================================
   Wizeri — marketing site styles
   No build step, no external fonts/CDNs. System font stack.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-raised: #121212;
  --bg-card: #141414;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);

  --text: #f5f5f5;
  --text-muted: #a3a3a8;
  --text-faint: #6b6b72;

  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: rgba(249, 115, 22, 0.12);

  --green: #22c55e;
  --blue: #3b82f6;
  --amber: #eab308;
  --red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #0a0a0a;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
}

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

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn--primary {
  background: var(--orange);
  color: #140900;
}

.btn--primary:hover {
  background: var(--orange-dark);
}

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

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #171717;
  border: 1px solid var(--border);
  color: var(--orange);
}

.logo__text {
  color: var(--text);
}

.logo__text .accent {
  color: var(--orange);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px;
  margin-left: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border-soft);
  /* The panel lives inside a position:sticky header, so whatever falls past
     the viewport fold can never be scrolled into view — the panel itself has
     to scroll. This starts to bite as the nav grows: with the 5th link added
     by spec 016.3 the open menu is 395px tall, so on a landscape phone
     (~320-375px of viewport height) the trailing "Book a demo" CTA was
     cut off and unreachable. 5rem ≈ the nav bar sitting above the panel. */
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav a {
  padding: 10px 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav .btn {
  margin-top: 8px;
  width: 100%;
}

.mobile-nav[hidden] {
  display: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border-soft);
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subcopy {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Stats ---------- */

.stats {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raised);
}

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

.stat {
  padding: 40px 28px;
  border-left: 1px solid var(--border-soft);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat__num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat__num .accent {
  color: var(--orange);
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 220px;
}

/* ---------- Sections (generic) ---------- */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-soft);
}

.section--pipeline {
  background: var(--bg-raised);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Cards (roles) ---------- */

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #140900;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Security data-handling note ---------- */

.security__note {
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.security__note h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.security__note p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.security__note p:last-child {
  margin-bottom: 0;
}

.security__note a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, 0.4);
}

.security__note a:hover {
  text-decoration-color: var(--orange);
}

/* ---------- Pipeline video ---------- */

.pipeline-video {
  margin: 0 0 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pipeline-video__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ---------- Pipeline ---------- */

.pipeline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.pipeline__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pipeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  border-top: 2px dashed rgba(255, 255, 255, 0.16);
}

.pipeline__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--step-color, var(--orange));
  color: var(--step-color, var(--orange));
  margin-bottom: 14px;
  background: var(--bg-raised);
  position: relative;
  z-index: 1;
}

.pipeline__step[data-color="plan"] {
  --step-color: var(--blue);
}

.pipeline__step[data-color="build"] {
  --step-color: var(--green);
}

.pipeline__step[data-color="verify"] {
  --step-color: var(--amber);
}

.pipeline__step[data-color="risk"] {
  --step-color: var(--red);
}

.pipeline__step[data-color="ship"] {
  --step-color: var(--orange);
}

.pipeline__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--step-color, var(--orange));
  margin-bottom: 6px;
}

.pipeline__title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.pipeline__desc {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- How we start (numbered steps) ---------- */

.start-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.start-steps__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.start-steps__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #140900;
  font-weight: 800;
  font-size: 0.95rem;
}

.start-steps__body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.start-steps__body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.start-steps__cta {
  text-align: center;
  margin-top: 44px;
}

/* ---------- Proof (testimonial + use cases) ---------- */

.proof__video {
  position: relative;
  max-width: 720px;
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.proof__facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* The facade fills .proof__video exactly (inset: 0) and that parent clips with
   overflow: hidden, so the global :focus-visible ring (outline-offset: 2px)
   would be drawn entirely outside the clip box and never render — a keyboard
   user would tab onto the play button with no visible indicator. Pull the ring
   inside the button instead. */
.proof__facade:focus-visible {
  outline-offset: -4px;
}

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

.proof__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof__play svg {
  width: 72px;
  height: 72px;
  padding: 20px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.9);
  color: #140900;
}

.proof__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proof__noscript {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.proof__noscript a {
  color: var(--orange);
}

.proof__quotes {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.proof__quotes blockquote {
  margin: 0 0 16px;
}

.proof__quotes p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.proof__quotes figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.proof__cases {
  max-width: 720px;
  margin: 0 auto;
}

.proof__cases h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.proof__case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.proof__case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.proof__case a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.proof__case a:hover {
  text-decoration: underline;
}

.proof__case p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 8px;
}

.proof__references {
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.proof__references-count {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.proof__stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.proof__stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.proof__agnostic {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg-card);
}

.compare th,
.compare td {
  text-align: left;
  padding: 18px 24px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-soft);
}

.compare thead th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-raised);
}

.compare tbody th {
  color: var(--text-muted);
  font-weight: 500;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare__us {
  background: rgba(249, 115, 22, 0.06);
  color: var(--text);
}

.compare thead th.compare__us {
  color: var(--orange);
}

.compare td.compare__us {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare .check {
  flex: none;
}

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

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

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--featured {
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.08), var(--bg-card) 40%);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--orange);
  color: #140900;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.price-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-card__price {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.price-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  flex: 1;
}

.price-card__list li {
  padding-left: 20px;
  position: relative;
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.price-card__cta {
  width: 100%;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.cta-band__glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

.cta-band__fine {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

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

.footer {
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__by {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer__by a {
  color: inherit;
}

.footer__links {
  display: flex;
  gap: 26px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

/* ---------- Legal / prose pages (privacy policy) ---------- */

.legal__inner {
  max-width: 760px;
}

.legal__head {
  max-width: none;
  margin: 0 0 40px;
  text-align: left;
}

.legal__head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal__updated {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.legal__body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  /* Every section carries an id, so people deep-link to e.g.
     /privacy/#rights. The nav is position:sticky (~80px tall), which would
     otherwise park the heading and its first lines underneath it. */
  scroll-margin-top: 100px;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.legal__body ul {
  margin: 0 0 16px;
  padding-left: 0;
}

.legal__body li {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange);
}

.legal__body a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, 0.4);
}

.legal__body a:hover {
  text-decoration-color: var(--orange);
}

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

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-table th {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table td {
  color: var(--text-muted);
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Scroll reveal (optional, progressive) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

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

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

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

  .stat:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .stat:nth-child(2),
  .stat:nth-child(4) {
    border-left: 1px solid var(--border-soft);
    padding-left: 28px;
  }

  .pipeline {
    flex-wrap: wrap;
    row-gap: 40px;
  }

  .pipeline__step {
    flex: 0 0 calc(50% - 12px);
  }

  .pipeline__step::after {
    display: none;
  }
}

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

  .hero__glow {
    width: 400px;
    height: 400px;
  }

  .section {
    padding: 64px 0;
  }

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

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

  .proof__case-list {
    grid-template-columns: 1fr;
  }

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

  .stat {
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border-soft);
  }

  .stat:first-child {
    border-top: none;
  }

  .pipeline__step {
    flex: 0 0 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* The subprocessors table is 4 columns wide; inside the scrollable
     .table-wrap the last column ("Safeguard" — the transfer safeguard, the
     legally load-bearing one) fell entirely off-screen on phones with no
     visible scrollbar to hint at it. Stack each row into label/value pairs
     instead so nothing can be silently cut off. */
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table thead {
    /* Column headers are re-emitted per cell via [data-label]. */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .legal-table tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .legal-table tbody tr:last-child {
    border-bottom: none;
  }

  .legal-table td {
    border-bottom: none;
    padding: 6px 16px;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-faint);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }

  .compare th,
  .compare td {
    padding: 14px 16px;
  }
}

/* ============================================================
   Legal pages (Terms, Privacy) — plain-prose content, shared shell
   ============================================================ */

.legal__inner {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

/* Two classes deep on purpose: `.legal p` below is (class + type) specific and
   would otherwise win and reset this margin-bottom to 16px. */
.legal .legal__updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__list {
  margin: 0 0 16px;
  padding-left: 0;
}

.legal__list li {
  position: relative;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
