/* ============================================================
   Smart Fulfilment — marketing site (v2)
   Brand: modern British postal. Cream paper, postal red,
   airmail blue, stamp perforation + postmark motifs.
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (franking).
   Red = marketing CTAs & brand accents. Blue = product UI in mocks.
   Green = positive deltas only.
   v2: benefit-led IA — one section, one job. Split rows for the
   three benefit blocks; rates section with "what happens" steps.
   ============================================================ */

:root {
  --paper: #fbf7ef;
  --kraft: #f4ede0;
  --kraft-deep: #ede4d3;
  --card: #ffffff;
  --ink-1: #232842;
  --ink-2: #4a4f68;
  --ink-3: #636880;
  --ink-4: #8e92a6;
  --border: #e6dfd0;
  --border-soft: #eee8db;
  --red: #bf3b2b;
  --red-hover: #a93325;
  --red-tint: #f8e9e5;
  --blue: #27418f;
  --blue-ui: #3a56a8;
  --blue-tint: #e9edf8;
  --green: #15803d;
  --green-tint: #e5f2e9;
  --cost: #c2703d;
  --navy: #1b2340;
  --navy-ink: #f5efe3;
  --navy-ink-dim: #a7acc4;
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;
  --shadow-soft: 0 1px 1px rgba(35, 40, 66, .04), 0 3px 6px rgba(35, 40, 66, .04), 0 12px 32px rgba(35, 40, 66, .07);
  --shadow-btn: 0 1px 1px rgba(35, 40, 66, .08), 0 3px 2px rgba(35, 40, 66, .04), 0 5px 4px rgba(35, 40, 66, .02);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --airmail: repeating-linear-gradient(-45deg,
      var(--red) 0 12px, var(--paper) 12px 22px,
      var(--blue) 22px 34px, var(--paper) 34px 44px);
  --max: 1080px;
  --header-h: 64px;
  --speed: .15s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--red-tint); color: var(--ink-1); }

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

.container-narrow { max-width: 780px; }

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-1);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.8vw, 4.375rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 550;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--speed) ease, border-color var(--speed) ease, transform var(--speed) ease, box-shadow var(--speed) ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink-1);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink-4);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--navy-ink);
  color: var(--navy);
  box-shadow: var(--shadow-btn);
}
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) ease;
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--airmail);
}
.site-header.is-scrolled { border-bottom-color: var(--border-soft); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-1);
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; flex: none; }
.brand-mark .perf { fill: var(--paper); }
.brand-mark .perf-kraft { fill: var(--kraft); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin: 0 auto;
}
.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--speed) ease;
}
.site-nav a:hover { color: var(--red); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

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

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-inner { position: relative; }

.hero-wash {
  position: absolute;
  inset: auto 0 0;
  height: 75%;
  background: radial-gradient(52% 62% at 50% 100%, rgba(191, 59, 43, .07), transparent 70%);
  pointer-events: none;
}

.hero-frank {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: var(--ink-1);
  opacity: .16;
  transform: rotate(-7deg);
  pointer-events: none;
}
.hero-frank .postmark { width: 118px; height: 118px; }
.hero-frank .cancel-lines { width: 132px; height: 58px; margin-top: 30px; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 26px;
}

.hero-title { max-width: 900px; margin: 0 auto; }

.hero-sub {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-micro {
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--ink-3);
}

/* ---------- Mock: shared ---------- */

.mock-window {
  position: relative;
  max-width: 920px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  box-shadow: var(--shadow-soft);
  text-align: left;
  font-size: .8125rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mock-title {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-3);
}

.mock-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.mock-orders { border-right: 1px solid var(--border-soft); padding: 8px 0 0; }

.mock-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-weight: 600;
  font-size: .8125rem;
  color: var(--ink-1);
}
.mock-count {
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 600;
  font-size: .6875rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--border-soft);
}
.mock-check {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--blue-ui);
  position: relative;
}
.mock-check::after {
  content: "";
  position: absolute;
  left: 5px; top: 2.5px;
  width: 4px; height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mock-check-off { background: #fff; border: 1.5px solid var(--border); }
.mock-check-off::after { display: none; }

.mock-row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mock-row-main strong { font-weight: 550; font-size: .8125rem; color: var(--ink-1); }
.mock-row-main em { font-style: normal; font-size: .71875rem; color: var(--ink-3); }

.mock-pill {
  margin-left: auto;
  flex: none;
  font-size: .65625rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 3px 9px;
  border-radius: 999px;
}
.mock-pill-done { color: var(--green); background: var(--green-tint); }

.mock-rates { display: flex; flex-direction: column; padding: 8px 0 16px; }

.mock-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.mock-rate.is-best { border-color: var(--blue-ui); background: #fafbfe; }
.mock-rate-main { display: flex; flex-direction: column; gap: 1px; }
.mock-rate-main strong { font-weight: 550; font-size: .8125rem; }
.mock-rate-main em { font-style: normal; font-size: .71875rem; color: var(--ink-3); }
.mock-rate-side { display: flex; align-items: center; gap: 8px; }
.mock-best {
  font-size: .65625rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-tint);
  padding: 3px 8px;
  border-radius: 999px;
}
.mock-price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}

.mock-buy {
  margin: 12px 14px 0;
  background: var(--blue-ui);
  color: #fff;
  text-align: center;
  font-weight: 550;
  font-size: .8125rem;
  padding: 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-btn);
}

/* ---------- Works-with strip ---------- */

.strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 26px 0;
  background: var(--kraft);
}
.strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.strip-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-4);
  white-space: nowrap;
}
.strip-list {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
}
.strip-list li {
  font-family: var(--font-mono);
  font-size: .78125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.strip-list a {
  color: var(--red);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 550;
  font-size: .875rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9.5vw, 128px) 0; }
.section-tint { background: var(--kraft); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-sub {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: .71875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
  opacity: .45;
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

/* ---------- Stamp perforation ---------- */

.stamp-edge {
  --perf-t: 15px;
  background: var(--card);
  border: none;
  border-radius: 0;
  padding: calc(28px + var(--perf-t) / 2);
  box-shadow: inset 0 0 0 1px var(--border),
              inset 0 0 0 8px var(--card),
              inset 0 0 0 9px var(--red);
  -webkit-mask:
    radial-gradient(circle 4.5px at calc(var(--perf-t) / 2) calc(var(--perf-t) / 2), transparent 98%, #000) 0 0 / var(--perf-t) var(--perf-t) round,
    linear-gradient(#000 0 0) calc(var(--perf-t) / 2) calc(var(--perf-t) / 2) / calc(100% - var(--perf-t)) calc(100% - var(--perf-t)) no-repeat;
  mask:
    radial-gradient(circle 4.5px at calc(var(--perf-t) / 2) calc(var(--perf-t) / 2), transparent 98%, #000) 0 0 / var(--perf-t) var(--perf-t) round,
    linear-gradient(#000 0 0) calc(var(--perf-t) / 2) calc(var(--perf-t) / 2) / calc(100% - var(--perf-t)) calc(100% - var(--perf-t)) no-repeat;
}

/* ---------- What changes (before/after) ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}

.problem-card { display: flex; flex-direction: column; }
.problem-card-title {
  font-family: var(--font-mono);
  font-size: .71875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.problem-card-after .problem-card-title { color: var(--red); }

.problem-list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.problem-list li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: .9375rem;
  color: var(--ink-2);
}
.problem-list li::before {
  content: counter(step);
  flex: none;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--kraft);
  border: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: .65625rem;
  font-weight: 500;
  color: var(--ink-3);
  transform: translateY(4px);
}
.problem-list-after li::before {
  background: var(--red-tint);
  border-color: transparent;
  color: var(--red);
}

.problem-time {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: .8125rem;
  font-weight: 550;
  color: var(--ink-3);
}
.problem-time-after { color: var(--green); }

/* ---------- Benefit split rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split-reverse { grid-template-columns: 1.15fr 1fr; }
.split-reverse .split-text { order: 2; }

.split-text h2 { margin-top: 0; }
.split-text .section-sub { margin-top: 16px; }
.split-text .section-sub + .section-sub { margin-top: 12px; }

.side-visual { display: flex; justify-content: center; }

.rate-card,
.ship-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  padding: 14px 8px 16px;
  font-size: .8125rem;
}

.rate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 14px 12px;
}
.rate-card-title { font-weight: 600; font-size: .8125rem; color: var(--ink-1); }
.rate-card-tag {
  font-family: var(--font-mono);
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-4);
}

.ship-card { padding: 8px 0 16px; }
.ship-card .mock-row:first-child { border-top: none; }
.ship-card .chip-progress { margin: 12px 14px 0; }

.chip-progress { display: flex; flex-direction: column; gap: 8px; }
.chip-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--kraft);
  overflow: hidden;
}
.chip-progress-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--green);
}
.chip-progress-text {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--green);
}

/* ---------- Analytics panel ---------- */

.mock-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: .8125rem;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-kpi {
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-kpi-label { font-size: .6875rem; color: var(--ink-3); }
.mock-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.mock-chart {
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 14px 14px 12px;
}
.mock-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.mock-chart-title { font-size: .71875rem; font-weight: 550; color: var(--ink-2); }
.mock-legend { display: flex; gap: 12px; }
.mock-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .65625rem;
  color: var(--ink-3);
}
.mock-legend-item i { width: 8px; height: 8px; border-radius: 3px; }
.lg-cost { background: var(--cost); }
.lg-margin { background: var(--blue-ui); }

.mock-vbars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding-top: 4px;
  border-bottom: 1px solid var(--border-soft);
}
.mock-vbar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mock-vbar {
  width: 62%;
  max-width: 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-vbar b {
  display: block;
  background: var(--blue-ui);
  border-radius: 4px 4px 0 0;
}
.mock-vbar i {
  display: block;
  background: var(--cost);
  border-radius: 0;
  order: 2;
}

.mock-products { display: flex; flex-direction: column; }
.mock-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-top: 1px solid var(--border-soft);
  font-size: .78125rem;
  color: var(--ink-2);
}
.mock-product:first-child { border-top: none; }
.mock-product-margin {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}

/* ---------- Rates section ---------- */

.rates-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

.rates-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rates-step h3 { font-size: 1.125rem; }
.rates-step p {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.rs-num {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  transform: rotate(-8deg);
  margin-bottom: 6px;
}

.fact-row {
  display: flex;
  justify-content: center;
  gap: 12px 32px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: clamp(32px, 4vw, 44px);
}
.fact-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
}
.fact-row li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.cost-cta {
  margin-top: clamp(32px, 4vw, 44px);
  text-align: center;
}
.cost-cta .hero-micro { margin-top: 14px; }

/* ---------- Platforms ---------- */

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

.platform-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .875rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  transition: border-color var(--speed) ease, transform var(--speed) ease;
}
.platform-tile:hover { border-color: var(--ink-4); transform: translateY(-1px); }

.platform-mono {
  flex: none;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--kraft);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.platform-note {
  margin-top: 28px;
  text-align: center;
  font-size: .875rem;
  color: var(--ink-3);
}

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

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 2px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  transition: color var(--speed) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }

.faq-marker {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
}
.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
  transition: transform var(--speed) ease;
}
.faq-marker::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-marker::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-marker::after { transform: scaleY(0); }

.faq-body { padding: 0 44px 24px 2px; }
.faq-body p { font-size: .9975rem; line-height: 1.6; color: var(--ink-3); }

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  background: var(--navy);
  background-image: radial-gradient(48% 70% at 50% 0%, rgba(191, 59, 43, .18), transparent 70%);
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--airmail);
}

.final-postmark {
  position: absolute;
  left: 4%;
  bottom: -34px;
  width: 190px;
  height: 190px;
  color: var(--navy-ink);
  opacity: .1;
  transform: rotate(-10deg);
  pointer-events: none;
}

.final-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.final-inner h2 { color: var(--navy-ink); }
.final-inner p {
  margin: 18px 0 32px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--navy-ink-dim);
}
.final-micro {
  margin: 16px 0 0 !important;
  font-size: .8125rem !important;
}

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

.site-footer {
  background: var(--kraft);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 72px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand { max-width: 300px; }
.footer-blurb {
  margin-top: 16px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: .875rem;
  color: var(--ink-2);
  width: fit-content;
}
.footer-col a:hover { color: var(--ink-1); }

.footer-legal {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal p {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .platform-tile { transition: none; }
}

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

@media (max-width: 1180px) {
  .hero-frank { right: 8px; opacity: .12; }
}

@media (max-width: 960px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .split,
  .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
  .split-text { text-align: center; max-width: 640px; margin: 0 auto; }
  .side-visual { margin: 0 auto; }
  .rates-steps { grid-template-columns: 1fr; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-frank { display: none; }
}

@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: .9375rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 0 12px; }
  .nav-toggle { flex: none; width: 38px; height: 38px; padding: 0 8px; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 4px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    font-size: 1rem;
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-orders { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .mock-row:nth-child(n+5) { display: none; }

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

  .fact-row { flex-direction: column; align-items: center; gap: 12px; }

  .final-postmark { display: none; }
}

@media (max-width: 640px) {
  .hero-title br { display: none; }
}

@media (max-width: 560px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpi:last-child { grid-column: 1 / -1; }
}
