/* Fasti BPM landing page. Plain CSS, no build step. */

:root {
  color-scheme: light;
  --bg: #fcfbf8;
  --bg-alt: #f5f2eb;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --text: #141a26;
  --muted: #566074;
  --border: #e4ded1;
  --border-strong: #cfc7b6;
  --accent: #a8321f;
  --accent-hover: #8a2716;
  --accent-soft: #f8e6e1;
  --on-accent: #ffffff;
  --ok: #1c6a44;
  --ok-soft: #e0f1e7;
  --plan: #7a5a07;
  --plan-soft: #f9eecb;
  --ink: #101726;
  --ink-2: #18223a;
  --ink-text: #dfe5f0;
  --ink-muted: #8f9ab1;
  --ink-border: #2a3550;
  --glow: rgba(168, 50, 31, 0.1);
  --grid-line: rgba(20, 26, 38, 0.045);
  --header-bg: rgba(252, 251, 248, 0.82);
  --shadow-sm: 0 1px 2px rgba(20, 26, 38, 0.05);
  --shadow: 0 1px 2px rgba(20, 26, 38, 0.05), 0 12px 32px -8px rgba(20, 26, 38, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 26, 38, 0.06), 0 32px 64px -20px rgba(20, 26, 38, 0.28);
  --radius: 14px;
  --maxw: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c111b;
  --bg-alt: #111827;
  --surface: #161e2e;
  --surface-2: #1a2336;
  --text: #eef1f7;
  --muted: #a4aec2;
  --border: #263147;
  --border-strong: #36435e;
  --accent: #f08a73;
  --accent-hover: #f6a491;
  --accent-soft: #3a211d;
  --on-accent: #1a0d0a;
  --ok: #7fd3a6;
  --ok-soft: #153224;
  --plan: #e9c666;
  --plan-soft: #3a3013;
  --ink: #080c14;
  --ink-2: #121a2c;
  --glow: rgba(240, 138, 115, 0.12);
  --grid-line: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(12, 17, 27, 0.8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -20px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c111b;
    --bg-alt: #111827;
    --surface: #161e2e;
    --surface-2: #1a2336;
    --text: #eef1f7;
    --muted: #a4aec2;
    --border: #263147;
    --border-strong: #36435e;
    --accent: #f08a73;
    --accent-hover: #f6a491;
    --accent-soft: #3a211d;
    --on-accent: #1a0d0a;
    --ok: #7fd3a6;
    --ok-soft: #153224;
    --plan: #e9c666;
    --plan-soft: #3a3013;
    --ink: #080c14;
    --ink-2: #121a2c;
    --glow: rgba(240, 138, 115, 0.12);
    --grid-line: rgba(255, 255, 255, 0.035);
    --header-bg: rgba(12, 17, 27, 0.8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -20px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  overflow-wrap: anywhere;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--on-accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

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

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 2px;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.tool:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
}

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

.menu-panel {
  position: absolute;
  right: 0;
  top: 50px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
}

.menu-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.menu-panel a:hover {
  background: var(--bg-alt);
}

@media (max-width: 940px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* Buttons and badges */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -8px var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-now {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-plan {
  background: var(--plan-soft);
  color: var(--plan);
}

.badge-now::before,
.badge-plan::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow .badge {
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 76px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(60% 70% at 85% 10%, var(--glow), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 33em;
  margin-top: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.soon {
  background: var(--plan-soft);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  max-width: 36em;
  margin: 0 0 18px;
}

.origin {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 36em;
}

/* Hero visual: an app-like window. The HTML ledger inside stays visible when
   the R2 image is unavailable. */

.window {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 18px;
  border: 1px solid var(--ink-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4664;
}

.window-bar span {
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-bar b {
  margin-left: auto;
  font-weight: 700;
  color: #7fd3a6;
  white-space: nowrap;
}

.visual {
  position: relative;
  aspect-ratio: 3 / 2;
}

.visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 22px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
}

.ledger li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px dashed rgba(143, 154, 177, 0.28);
  padding-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
}

.ledger .t {
  color: var(--ink-muted);
}

.ledger .e {
  color: #f3a08d;
}

.ledger .ok {
  margin-left: auto;
  color: #7fd3a6;
}

/* Facts strip */

.facts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.facts dl > div {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
}

.facts dl > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts dt {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.02rem;
}

/* Sections */

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 44em;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-top h3 {
  margin: 0;
}

.phase {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

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

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
}

/* Architecture figure */

.arch {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.arch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--ink-border);
  box-shadow: var(--shadow-lg);
}

.arch.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.arch figcaption h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.modules {
  margin: 0;
  display: grid;
  gap: 12px;
}

.modules > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
}

.modules dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.modules dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.stats dt {
  order: 2;
  color: var(--muted);
  font-size: 0.9rem;
}

.stats > div {
  display: flex;
  flex-direction: column;
}

.stats dd {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

caption {
  text-align: left;
  padding: 18px 20px 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

th,
td {
  text-align: left;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--surface-2);
}

td.num {
  font-family: var(--mono);
  white-space: nowrap;
  color: var(--muted);
}

td.new {
  color: var(--ok);
  font-weight: 700;
}

td.new::before {
  content: "→ ";
  opacity: 0.6;
  font-weight: 400;
}

.sub {
  margin: 56px 0 20px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.fixes li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.fixes h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.fixes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.kind {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 10px;
}

.note {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--surface);
}

/* Roadmap */

.roadmap .card {
  position: relative;
  overflow: hidden;
}

.roadmap .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--border-strong);
}

.roadmap .card.is-now::before {
  background: var(--ok);
}

/* Contact */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(240, 138, 115, 0.22), transparent 60%),
    linear-gradient(135deg, #18223a, #0b101a);
  color: var(--ink-text);
  border: 1px solid var(--ink-border);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact h2 {
  color: #ffffff;
}

.contact p {
  color: var(--ink-text);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.contact .actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.contact .btn-primary {
  background: #f08a73;
  color: #1a0d0a;
  box-shadow: none;
}

.contact .btn-primary:hover {
  background: #f6a491;
}

.contact .mail {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.contact :focus-visible {
  outline-color: #ffffff;
}

/* Footer */

.site-footer {
  padding: 56px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.foot-grid .brand {
  margin-bottom: 12px;
}

.foot-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-grid a:not(.brand) {
  color: var(--muted);
  text-decoration: none;
}

.foot-grid a:not(.brand):hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 72em;
}

.legal {
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 980px) {
  .hero .wrap,
  .arch,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .hero .wrap {
    gap: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .grid-3,
  .fixes {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .facts dl > div {
    padding: 16px 0 16px 16px;
  }

  .facts dl > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .stats dd {
    font-size: 1.8rem;
  }

  .stats > div {
    padding: 16px;
  }

  .contact {
    padding: 34px 24px;
    border-radius: 20px;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .brand small {
    display: none;
  }

  table {
    font-size: 0.88rem;
  }

  th,
  td {
    padding: 10px;
  }

  thead th {
    white-space: normal;
    letter-spacing: 0.02em;
  }

  caption {
    padding: 14px 10px 8px;
  }
}

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

  .btn,
  .card {
    transition: none;
  }

  .btn-primary:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .mock,
  .cta-row {
    display: none;
  }
}

/* ---------- Layout helpers ---------- */

.wrap.narrow {
  max-width: 820px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

/* ---------- Hero: centered copy above a product mock ---------- */

.hero {
  padding: 84px 0 64px;
}

.hero .wrap {
  display: block;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 38em;
}

.hero-copy .cta-row {
  justify-content: center;
  margin-bottom: 16px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 12px 5px 5px;
  margin-bottom: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

a.pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pill-tag {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.pill svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

/* ---------- Product mock ---------- */

.mock {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
  background: var(--ink);
  color: var(--ink-text);
  border: 1px solid var(--ink-border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--glow);
  overflow: hidden;
  font-size: 0.82rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4664;
  flex: none;
}

.mock-url {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-bar b {
  margin-left: auto;
  color: #7fd3a6;
  white-space: nowrap;
}

.mock-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 210px;
}

.mock-side,
.mock-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.mock-side {
  border-right: 1px solid var(--ink-border);
}

.mock-panel {
  border-left: 1px solid var(--ink-border);
}

.mock-h {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 8px 0 6px;
}

.mock-h:first-child {
  margin-top: 0;
}

.mock-item {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-text);
}

.mock-item.is-active {
  background: rgba(240, 138, 115, 0.16);
  color: #f6a491;
  font-weight: 650;
}

.mock-panel dl {
  margin: 0 0 6px;
  display: grid;
  gap: 2px;
}

.mock-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(143, 154, 177, 0.16);
}

.mock-panel dt {
  color: var(--ink-muted);
}

.mock-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
}

.mock-panel .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd3a6;
  margin-right: 6px;
}

.mock-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 16px 0 0;
}

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

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.bento .card.span-2 {
  grid-column: span 2;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--glow), transparent 60%),
    var(--surface);
}

.bento .card.span-2 h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.steps li + li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 46px;
  width: 21px;
  border-top: 2px dashed var(--border-strong);
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Engine split and accordions ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.split .table-wrap {
  position: sticky;
  top: 92px;
}

.fix-groups .sub {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.fix-groups .acc + .sub {
  margin-top: 32px;
}

.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.acc details + details {
  border-top: 1px solid var(--border);
}

.acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 44px 15px 18px;
  position: relative;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

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

.acc summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.acc details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.acc summary:hover {
  background: var(--surface-2);
}

.acc summary:focus-visible {
  outline-offset: -3px;
}

.acc summary .kind {
  margin: 0;
  flex: none;
}

.acc details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq summary {
  padding-top: 19px;
  padding-bottom: 19px;
  font-size: 1.04rem;
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.timeline > li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.timeline > li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--border-strong);
}

.timeline > li.is-now::before {
  background: var(--ok);
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tl-head .phase {
  margin: 0;
}

.timeline h3 {
  margin-bottom: 14px;
}

.foot-grid .origin {
  font-size: 0.85rem;
}

/* ---------- Responsive for the blocks above ---------- */

@media (max-width: 980px) {
  .mock-body {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .mock-side {
    display: none;
  }

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

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split .table-wrap {
    position: static;
  }
}

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

  .pill {
    font-size: 0.8rem;
  }

  .mock {
    margin-top: 40px;
    border-radius: 14px;
  }

  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-panel,
  .mock-bar b {
    display: none;
  }

  .bento,
  .timeline,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento .card.span-2 {
    grid-column: span 1;
  }

  .steps li + li::before {
    display: none;
  }

  .acc summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
