/* Keepford product page. Plain CSS, no build step, no external requests. */

:root {
  --ink: #0b1f3a;
  --ink-2: #1f3350;
  --muted: #56667b;
  --faint: #8391a3;
  --line: #e2e7ed;
  --line-2: #d3dae3;
  --soft: #f6f8fa;
  --white: #fff;
  --green: #0f7a45;
  --green-dark: #0b6438;
  --green-tint: #e6f3eb;
  --green-line: #c4e3cf;
  --green-light: #4ade80;
  --red: #b42318;
  --red-tint: #fdeceb;
  --red-line: #f5c6c2;
  --amber: #8a5300;
  --amber-tint: #fdf1dc;
  --blue: #1d4ed8;
  --blue-tint: #e8effd;
  --blue-line: #c7d7fa;
  --slate-tint: #edf1f5;
  --dark: #0b1f3a;
  --dark-2: #13294a;
  --on-dark: #e6ecf4;
  --on-dark-muted: #a9b6c8;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(11 31 58 / 5%), 0 8px 24px rgb(11 31 58 / 7%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer :focus-visible, .player :focus-visible { outline-color: var(--green-light); }

section[id], figure[id] { scroll-margin-top: 5rem; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white); border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.7rem 1.2rem; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 12%); }
.btn--primary:hover { background: var(--green-dark); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink-2); background: var(--soft); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.94rem; }
.btn--lg { padding: 0.85rem 1.4rem; font-size: 1.04rem; }
.btn--xl { padding: 0.95rem 1.5rem; font-size: 1.1rem; gap: 0.7rem; }
.btn-icon { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon--fill { fill: currentColor; stroke: none; }
.btn--xl .btn-icon { width: 1.25rem; height: 1.25rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(255 255 255 / 82%); backdrop-filter: saturate(1.4) blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-name { font-size: 1.28rem; font-weight: 760; letter-spacing: -0.025em; }

.nav-desktop { display: none; }

.menu { position: relative; }
.menu summary {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.85rem; font-weight: 600;
  border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; list-style: none; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu[open] summary { border-color: var(--ink); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); display: grid; gap: 0.2rem; min-width: 15rem;
  padding: 0.7rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-panel a:not(.btn) { padding: 0.65rem 0.75rem; text-decoration: none; font-weight: 550; border-radius: 8px; }
.menu-panel a:not(.btn):hover { background: var(--soft); }
.menu-panel .btn { margin-top: 0.4rem; }

@media (min-width: 900px) {
  .menu { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 1.8rem; }
  .nav-desktop a:not(.btn) { position: relative; padding-block: 0.25rem; text-decoration: none; font-weight: 550; font-size: 0.97rem; color: var(--ink-2); transition: color var(--ease); }
  .nav-desktop a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.1rem; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
  .nav-desktop a:not(.btn):hover { color: var(--ink); }
  .nav-desktop a:not(.btn):hover::after { transform: scaleX(1); }
}

/* ---------- Type ---------- */

.eyebrow { margin-bottom: 0.85rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.eyebrow--light { color: var(--green-light); }

h1 .h1-line { display: block; }
h1 .h1-accent { color: var(--green); }
h1 { font-size: clamp(2.1rem, 4.3vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 790; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); line-height: 1.14; letter-spacing: -0.028em; font-weight: 760; text-wrap: balance; }
h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

.lede { margin-top: 1.3rem; max-width: 36rem; font-size: 1.15rem; color: var(--muted); }
.section { padding-block: clamp(3.5rem, 8vw, 5.75rem); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4rem); }
.section--soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-lede { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }

@media (max-width: 520px) {
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }
  .lede { font-size: 1.08rem; }
  .section-lede { font-size: 1.02rem; }
}

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

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 6vw, 4.5rem);
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgb(11 31 58 / 5%) 1px, transparent 1px),
    linear-gradient(rgb(11 31 58 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0%) 0, #000 22%, #000 62%, rgb(0 0 0 / 0%) 100%);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0%) 0, #000 22%, #000 62%, rgb(0 0 0 / 0%) 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.25rem; max-width: 34rem; font-size: 0.95rem; color: var(--muted); }
.hero-note strong { color: var(--ink); font-weight: 600; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3.25rem; }
}
@media (min-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 4rem; }
}

/* ---------- Player ---------- */

.player {
  position: relative;
  padding: 1.35rem 1.4rem 1.15rem;
  color: var(--on-dark);
  background: var(--dark);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 0%) 40%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgb(11 31 58 / 10%), 0 20px 48px -12px rgb(11 31 58 / 35%);
}
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.65rem; font-size: 0.76rem; font-weight: 650; border-radius: 999px; }
.badge--rec { color: #cfe9d9; background: rgb(74 222 128 / 10%); border: 1px solid rgb(74 222 128 / 22%); }
.rec-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 3px rgb(74 222 128 / 18%); }
.player-date { font-size: 0.78rem; color: var(--on-dark-muted); }
.player-title { margin-top: 1.05rem; font-size: 1.3rem; font-weight: 720; letter-spacing: -0.02em; color: var(--white); line-height: 1.25; }
.player-sub { margin-top: 0.4rem; font-size: 0.96rem; color: var(--on-dark-muted); line-height: 1.5; }

.player-controls { display: none; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.js .player-controls { display: flex; }
.js .native-audio { display: none; }
.native-audio { display: block; width: 100%; margin-top: 1.1rem; }
.wave-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.play-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%;
  background: var(--green); color: var(--white); cursor: pointer;
  box-shadow: 0 0 0 0 rgb(74 222 128 / 0%);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.play-btn:hover { background: #12914f; box-shadow: 0 0 0 5px rgb(74 222 128 / 14%); }
.play-btn:active { transform: scale(0.95); }
.play-btn svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.play-btn .icon-play { display: block; margin-left: 0.15rem; }
.play-btn .icon-pause { display: none; }
.player.is-playing .play-btn .icon-play { display: none; }
.player.is-playing .play-btn .icon-pause { display: block; }

.wave-wrap { position: relative; flex: 1; min-width: 0; height: 4rem; cursor: pointer; touch-action: none; border-radius: 6px; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave--base { fill: rgb(169 182 200 / 42%); transition: fill var(--ease); }
.wave-wrap:hover .wave--base { fill: rgb(169 182 200 / 58%); }
.wave-played { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.wave-played .wave { fill: var(--green-light); }
.wave-split { position: absolute; top: -6px; bottom: -6px; left: 72.4%; width: 1px; background: rgb(255 255 255 / 30%); }
.wave-marks { position: absolute; inset: 0; pointer-events: none; }
.wave-marks span { position: absolute; bottom: -6px; width: 1px; height: 5px; background: rgb(255 255 255 / 40%); }
.wave-head { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; margin-left: -1px; background: var(--white); border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity var(--ease); }
.wave-head::after { content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--white); }
.player.is-playing .wave-head, .wave-wrap:focus-visible .wave-head { opacity: 1; }
.wave-wrap:focus-visible { outline-offset: 6px; }

.player-time { flex: none; width: 5.4rem; font-size: 0.8rem; color: var(--on-dark); text-align: right; font-variant-numeric: tabular-nums; }
.player-time--narrow { display: none; }

.wave-meta { display: none; position: relative; align-items: center; height: 1.2rem; margin-top: 0.6rem; margin-left: 4.25rem; margin-right: 6.4rem; font-size: 0.72rem; color: var(--on-dark-muted); white-space: nowrap; }
.js .wave-meta { display: flex; }
.wave-legend { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.wave-legend > span { position: absolute; top: 0; }
.wave-legend-1 { left: 0; }
.wave-legend-2 { left: 72.4%; padding-left: 0.4rem; }

.player-now { display: flex; align-items: baseline; gap: 0.6rem; min-height: 1.3rem; margin-top: 0.7rem; font-size: 0.9rem; color: var(--on-dark); line-height: 1.4; }
.player-now.is-empty { visibility: hidden; }
html:not(.js) .player-now { display: none; }
.player-now-label { flex: none; padding: 0.05rem 0.45rem; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-light); border: 1px solid rgb(74 222 128 / 30%); border-radius: 4px; }
.player-now-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player-caption { margin-top: 1.05rem; padding-top: 0.9rem; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 0.82rem; color: var(--on-dark-muted); }

@media (max-width: 520px) {
  .player { padding: 1.1rem 1rem 1rem; }
  .player-title { font-size: 1.18rem; }
  .play-btn { width: 2.9rem; height: 2.9rem; }
  .player-controls { gap: 0.8rem; }
  .wave-wrap { height: 3.4rem; }
  .player-time--wide { display: none; }
  .player-time--narrow { display: block; width: auto; margin-left: auto; font-size: 0.76rem; }
  .wave-meta { margin-left: 0; margin-right: 0; margin-top: 0.75rem; font-size: 0.66rem; }
  .wave-legend { position: static; display: flex; gap: 0.9rem; }
  .wave-legend > span { position: static; }
  .wave-legend-2 { padding-left: 0; }
  .wave-legend-long { display: none; }
  .player-now-text { white-space: normal; }
}

/* ---------- Chapters ---------- */

.chapters-grid, .business-grid { display: grid; gap: 1rem; }
.section-head--side { margin-bottom: 1rem; }
@media (min-width: 980px) {
  .chapters-grid, .business-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; }
  .section-head--side { position: sticky; top: 6rem; margin-bottom: 0; }
}

.chapters { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.chapters :focus-visible { outline-offset: -3px; }
.chapter-group {
  padding: 0.65rem 1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line);
}
.chapters li:not(.chapter-group) + .chapter-group { border-top: 1px solid var(--line); }
.chapter {
  position: relative; display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.5rem 0.75rem; align-items: baseline; width: 100%;
  padding: 0.75rem 1rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  font-size: 0.98rem; line-height: 1.45; color: var(--ink-2);
  transition: background-color var(--ease);
}
.chapter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); opacity: 0; transition: opacity var(--ease); }
.chapters li:last-child .chapter { border-bottom: 0; }
.chapter:hover { background: #fafbfc; }
.chapter:hover .ts { color: var(--green); }
.chapter .ts { color: var(--green-dark); font-weight: 600; }
.chapter.is-active { background: var(--green-tint); color: var(--ink); }
.chapter.is-active::before { opacity: 1; }
.chapter.is-active .ts { color: var(--green-dark); }
.outcome { display: inline-block; padding: 0.1rem 0.5rem; font-size: 0.74rem; border: 1px solid; border-radius: var(--radius-sm); white-space: nowrap; line-height: 1.5; }
.outcome, .outcome--booked { color: var(--green-dark); background: var(--green-tint); border-color: var(--green-line); }
.outcome--transferred { color: var(--red); background: var(--red-tint); border-color: var(--red-line); }
.outcome--captured { color: var(--blue); background: var(--blue-tint); border-color: var(--blue-line); }
.outcome--other { color: var(--muted); background: var(--slate-tint); border-color: var(--line-2); }
html:not(.js) .chapter { cursor: default; }
html:not(.js) .chapter:hover { background: none; }
@media (max-width: 520px) {
  .chapter { grid-template-columns: 3.1rem 1fr; }
  .chapter .outcome { grid-column: 2; justify-self: start; }
}

/* ---------- What it does ---------- */

.what-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.what-grid li { padding: 1.5rem 1.5rem 1.6rem; background: var(--white); }
.what-grid p { margin-top: 0.45rem; font-size: 0.98rem; color: var(--muted); }
@media (min-width: 700px) { .what-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .what-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Call flow ---------- */

.flow-lanes { display: none; }
.flow { display: grid; gap: 0.75rem; }
.flow-node {
  position: relative; padding: 1.1rem 1.15rem 1.2rem; background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.flow-node h3 { font-size: 1rem; margin-top: 0.35rem; }
.flow-node p { margin-top: 0.3rem; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.flow-step { font-size: 0.75rem; color: var(--faint); }
.flow-node--rules { background: #fbfdfc; border-color: var(--green-line); box-shadow: inset 0 3px 0 var(--green); }
.flow-node--out { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.flow-node--out .flow-step { color: var(--on-dark-muted); }
.flow-node--out h3 { color: var(--white); }
.flow-outcomes { display: grid; gap: 0.35rem; margin-top: 0.6rem; font-size: 0.85rem; color: var(--on-dark); }
.flow-outcomes li { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.dot--green { background: var(--green-light); }
.dot--red { background: #f87171; }
.dot--blue { background: #93c5fd; }

/* Lane labels: inline tags on small screens, a spanning header row on wide ones. */
.flow-lane-tag, .flow-lane {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.flow-lane-tag { display: block; width: max-content; margin-bottom: 0.55rem; padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); }
.flow-node--lane-start:not(:first-child) { margin-top: 0.6rem; }
.flow-lane-tag--ai, .flow-lane--ai { color: var(--muted); }
.flow-lane-tag--ai { background: var(--slate-tint); }
.flow-lane-tag--rules, .flow-lane--rules { color: var(--green-dark); }
.flow-lane-tag--rules { background: var(--green-tint); }
.flow-lane-tag--out, .flow-lane--out { color: var(--ink-2); }
.flow-lane-tag--out { background: rgb(255 255 255 / 12%); color: var(--on-dark); }

.flow-node:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -0.62rem; width: 1px; height: 0.5rem; background: var(--line-2);
}
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
  .flow-node:not(:last-child)::after { left: auto; right: -0.9rem; top: 50%; bottom: auto; width: 0.7rem; height: 1px; }
  .flow-node--lane-start:not(:first-child) { margin-top: 0; }
  .flow-lane-tag { display: none; }
  .flow-lanes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; margin-bottom: 0.75rem; }
  .flow-lane { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-2); }
  .flow-lane::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
  .flow-lane--ai { grid-column: 1 / 3; }
  .flow-lane--ai::before { background: var(--faint); }
  .flow-lane--rules { grid-column: 3 / 5; border-bottom-color: var(--green); }
  .flow-lane--rules::before { background: var(--green); }
  .flow-lane--out { grid-column: 5; border-bottom-color: var(--dark); }
  .flow-lane--out::before { background: var(--dark); }
}
.flow-rules-note { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.93rem; color: var(--muted); }
.rules-key { width: 1.4rem; height: 0.8rem; flex: none; border: 1px solid var(--green-line); border-top: 3px solid var(--green); border-radius: 3px; background: #fbfdfc; }

/* ---------- Scenarios ---------- */

.scenario-grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .scenario-grid { grid-template-columns: repeat(2, 1fr); } }
.scenario { display: flex; flex-direction: column; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.scenario header { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.scenario h3 { font-size: 1.15rem; }
.scenario-lead { margin-top: 0.55rem; font-size: 0.98rem; color: var(--ink-2); font-style: italic; }
.steps-list { margin-top: 1rem; display: grid; gap: 0.5rem; counter-reset: step; }
.steps-list li { position: relative; padding-left: 2rem; font-size: 0.96rem; color: var(--muted); counter-increment: step; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0.12rem; width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2);
  background: var(--soft); border: 1px solid var(--line-2); border-radius: 5px;
}
.scenario-out { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.scenario-out { margin-top: 1.2rem; }
.scenario-out-label { margin-right: 0.2rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

.tag { display: inline-block; padding: 0.12rem 0.55rem; font-size: 0.74rem; font-weight: 600; border-radius: var(--radius-sm); line-height: 1.5; }
.tag--green { color: var(--green-dark); background: var(--green-tint); }
.tag--red { color: var(--red); background: var(--red-tint); }
.tag--amber { color: var(--amber); background: var(--amber-tint); }
.tag--slate { color: var(--muted); background: var(--slate-tint); }

.also { margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.also-title { font-weight: 700; font-size: 0.95rem; }
.also-list { display: grid; gap: 0.4rem 2rem; margin-top: 0.7rem; }
.also-list li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; color: var(--muted); }
.also-list li::before { content: ""; position: absolute; left: 0; top: 0.68rem; width: 0.4rem; height: 1px; background: var(--faint); }
@media (min-width: 760px) { .also-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Architecture: four stacked layers ---------- */

.arch-grid { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.arch { display: grid; gap: 0.9rem; padding: 1.35rem 1.4rem 1.45rem; border-top: 1px solid var(--line-2); }
.arch:first-child { border-top: 0; }
.arch:nth-child(even) { background: #fbfcfd; }
.arch-head { display: flex; align-items: baseline; gap: 0.7rem; }
.arch-num { font-size: 0.75rem; color: var(--faint); }
.arch h3 { font-size: 1.12rem; }
.arch-items { display: grid; gap: 0.6rem 2rem; }
.arch li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 0.5rem; align-items: baseline; font-size: 0.93rem; color: var(--ink-2); line-height: 1.45; }
.arch li.is-planned { color: var(--muted); }
.status {
  display: inline-block; justify-self: start; padding: 0.02rem 0.45rem; font-family: var(--mono); font-size: 0.7rem;
  font-weight: 600; border-radius: 5px; line-height: 1.55; white-space: nowrap;
}
.status--live { color: var(--green-dark); background: var(--green-tint); border: 1px solid var(--green-line); }
.status--planned { color: var(--faint); background: transparent; border: 1px dashed var(--line-2); }
.arch sup a { color: var(--green-dark); text-decoration: none; font-weight: 700; }
.footnote { margin-top: 1.25rem; max-width: 50rem; font-size: 0.88rem; color: var(--muted); }
.footnote a { color: var(--green-dark); text-decoration: none; font-weight: 700; }
@media (min-width: 700px) {
  .arch-items { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .arch { grid-template-columns: 11rem 1fr; gap: 2rem; padding: 1.5rem 1.6rem; }
  .arch-head { flex-direction: column; gap: 0.25rem; }
  .arch h3 { font-size: 1.15rem; }
}

/* ---------- Engineering (dark) ---------- */

.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2 { color: var(--white); }
.eng-grid { display: grid; gap: 0 3rem; counter-reset: eng; }
.eng-grid li { position: relative; padding: 1.4rem 0 1.5rem 2.6rem; border-top: 1px solid rgb(255 255 255 / 12%); counter-increment: eng; }
.eng-grid li::before {
  content: counter(eng, decimal-leading-zero); position: absolute; left: 0; top: 1.55rem;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--green-light);
}
.eng-grid h3 { color: var(--white); }
.eng-grid p { margin-top: 0.45rem; font-size: 0.96rem; color: var(--on-dark-muted); }
@media (min-width: 760px) { .eng-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .eng-grid { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; } }
.disclaimer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 0.9rem; color: var(--on-dark-muted); }

/* ---------- Configured per business ---------- */

.config { border-top: 1px solid var(--line); }
.config div { display: grid; gap: 0.2rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.config dt { font-size: 0.82rem; color: var(--green-dark); font-weight: 600; }
.config dd { color: var(--ink-2); font-size: 0.99rem; }
@media (min-width: 640px) { .config div { grid-template-columns: 9.5rem 1fr; gap: 1.25rem; align-items: baseline; } }

/* ---------- Try it ---------- */

.try { background: var(--soft); border-top: 1px solid var(--line); }
.try-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .try-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.try-contact { margin-top: 1.75rem; }
.try-small { margin-top: 0.85rem; font-size: 0.95rem; color: var(--muted); }
.try-small a { color: var(--green-dark); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.try-side { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.try-side h3 { font-size: 1rem; }
.try-side h3 + .try-list { margin-top: 0.7rem; }
.try-list + h3 { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.try-list { display: grid; gap: 0.5rem; }
.try-list li { position: relative; padding-left: 1.2rem; font-size: 0.96rem; color: var(--ink-2); }
.try-list li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--green); }
.try-list--notes li { color: var(--muted); }
.try-list--notes li::before { background: var(--line-2); }

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

.site-footer { padding-block: 3rem 2rem; background: var(--dark); color: var(--on-dark); }
.site-footer .brand { color: var(--white); }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.footer-brand p { margin-top: 0.7rem; color: var(--on-dark-muted); font-size: 0.96rem; }
.footer-brand .footer-muted { max-width: 30rem; font-size: 0.88rem; }
.footer-muted a { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: start; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; transition: color var(--ease); }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; font-size: 0.86rem; color: var(--on-dark-muted); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } .footer-nav { justify-content: flex-end; } }

/* ---------- 404 ---------- */

.cta-section { background: var(--soft); text-align: center; }
.cta-inner { max-width: 44rem; }
.notfound { min-height: 70vh; display: grid; align-items: center; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound-actions { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
