/* ============================================================
   SPECLEO — Industrial Inspection & Asset Intelligence
   Platform & pricing site
   ------------------------------------------------------------
   Aesthetic: precision instrument. Engineering-drawing grid,
   rating-plate data blocks, talon-sharp corners, orange used
   only where the product itself would use it — as attention.
   Every value resolves to a token in tokens.css.
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header height + breathing room, so anchored sections
     don't land underneath the bar. */
  scroll-padding-top: 6.5rem;
}

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

body {
  margin: 0;
  background: var(--oe-canvas);
  color: var(--oe-text);
  font-family: var(--oe-font-body);
  font-size: var(--oe-text-md);
  line-height: var(--oe-leading-normal);
  font-weight: var(--oe-weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--oe-font-display);
  font-weight: var(--oe-weight-black);
  line-height: var(--oe-leading-tight);
  letter-spacing: var(--oe-tracking-tight);
  font-stretch: 112%;
  text-transform: uppercase;
}

p {
  margin: 0;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--oe-border-width-thick) solid var(--oe-focus);
  outline-offset: 3px;
  border-radius: var(--oe-radius-xs);
}

::selection {
  background: var(--oe-accent);
  color: var(--oe-on-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--oe-space-3);
  left: var(--oe-space-3);
  z-index: 200;
  padding: var(--oe-space-2) var(--oe-space-4);
  background: var(--oe-accent);
  color: var(--oe-on-accent);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  border-radius: var(--oe-radius-xs);
  transform: translateY(-250%);
  transition: transform var(--oe-duration-fast) var(--oe-ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 2. ATMOSPHERE ---------- */
/* Fixed, non-interactive layers only — nothing that scrolls,
   so the grain filter never repaints during scroll. */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.atmosphere__grid {
  position: absolute;
  inset: -1px;
  background-image: linear-gradient(
      to right,
      var(--oe-hairline) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--oe-hairline) 1px, transparent 1px);
  background-size: 88px 88px;
  /* Fade the drawing grid out below the fold so it reads as a
     substrate, not a texture. */
  mask-image: radial-gradient(
    120% 90% at 62% 0%,
    rgba(0, 0, 0, 0.85),
    transparent 72%
  );
}

.atmosphere__bloom {
  position: absolute;
  top: -28vh;
  right: -12vw;
  width: 74vw;
  height: 88vh;
  background: radial-gradient(
    closest-side,
    rgba(224, 165, 38, 0.17),
    transparent
  );
  filter: blur(12px);
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  /* Without these an inline SVG falls back to its 300x150 intrinsic
     size and the grain prints as a visible block in the corner. */
  width: 100%;
  height: 100%;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ---------- 3. SHELL & SECTIONS ---------- */

.shell {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--oe-container);
  margin-inline: auto;
  padding-inline: var(--oe-gutter);
}

.wrap--wide {
  max-width: var(--oe-container-wide);
}

.section {
  position: relative;
  padding-block: clamp(var(--oe-space-8), 9vw, var(--oe-space-10));
  border-top: var(--oe-border-width) solid var(--oe-border);
}

.section--flush {
  border-top: 0;
}

.section--sunken {
  background: linear-gradient(
    180deg,
    var(--oe-surface-sunken),
    var(--oe-canvas) 70%
  );
}

/* Section masthead: run number, rule, title, lede.
   Modelled on a drawing sheet title block. */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--oe-space-4) var(--oe-space-5);
  align-items: baseline;
  margin-bottom: clamp(var(--oe-space-6), 5vw, var(--oe-space-8));
}

.masthead__index {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-accent);
  letter-spacing: var(--oe-tracking-wide);
  padding-top: 0.5em;
}

.masthead__body {
  max-width: 46rem;
}

.masthead__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  margin-bottom: var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

.masthead__eyebrow::before {
  content: "";
  width: var(--oe-space-6);
  height: var(--oe-border-width);
  background: var(--oe-accent);
  flex: none;
}

.masthead h2 {
  font-size: var(--oe-text-3xl);
  text-wrap: balance;
}

.masthead__lede {
  margin-top: var(--oe-space-5);
  color: var(--oe-text-muted);
  font-size: var(--oe-text-lg);
  line-height: var(--oe-leading-relaxed);
  max-width: 40rem;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

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

/* ---------- 4. HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: var(--oe-border-width) solid transparent;
  transition: border-color var(--oe-duration-base) var(--oe-ease-standard),
    background-color var(--oe-duration-base) var(--oe-ease-standard);
}

@supports (background: color-mix(in srgb, red, blue)) {
  .site-header {
    background: color-mix(in srgb, var(--oe-canvas) 82%, transparent);
  }
}

.site-header.is-stuck {
  border-bottom-color: var(--oe-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--oe-space-6);
  min-height: 4.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  flex: none;
}

.header-logo img {
  /* 2.25rem tall renders ~131px wide, clearing the 124px minimum
     lockup width documented in the brand foundations. */
  height: 2.25rem;
  width: auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(var(--oe-space-4), 2vw, var(--oe-space-6));
}

.site-nav a {
  position: relative;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-muted);
  padding-block: var(--oe-space-2);
  transition: color var(--oe-duration-fast) var(--oe-ease-standard);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--oe-border-width);
  background: var(--oe-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--oe-duration-base) var(--oe-ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--oe-text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* Beats .btn's own display, which is declared later in the sheet. */
.site-nav a.site-nav__cta {
  /* Only surfaces below 560px, where the header actions are dropped
     to keep the lockup and the toggle from colliding. */
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  flex: none;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  border-radius: var(--oe-radius-xs);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--oe-text);
  position: relative;
  transition: transform var(--oe-duration-fast) var(--oe-ease-standard),
    opacity var(--oe-duration-instant) linear;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--oe-text);
  transition: transform var(--oe-duration-fast) var(--oe-ease-standard),
    top var(--oe-duration-fast) var(--oe-ease-standard);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  /* The middle bar drops out and the two outer bars cross, which is
     an X. Rotating the middle bar alone leaves a single slash. */
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- 5. BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--oe-space-2);
  padding: 0.72rem 1.35rem;
  border: var(--oe-border-width) solid transparent;
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-sm);
  font-weight: var(--oe-weight-bold);
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--oe-duration-fast) var(--oe-ease-standard),
    color var(--oe-duration-fast) var(--oe-ease-standard),
    border-color var(--oe-duration-fast) var(--oe-ease-standard),
    transform var(--oe-duration-instant) var(--oe-ease-standard),
    box-shadow var(--oe-duration-fast) var(--oe-ease-standard);
}

.btn--primary {
  background: var(--oe-accent);
  /* Ink on orange, never white — white measures 2.68:1 and fails. */
  color: var(--oe-on-accent);
  box-shadow: var(--oe-shadow-accent);
}

.btn--primary:hover {
  background: var(--oe-accent-hover);
}

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

.btn--secondary:hover {
  background: var(--oe-neutral-600);
  border-color: var(--oe-neutral-500);
}

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

.btn--ghost:hover {
  color: var(--oe-text);
  background: var(--oe-accent-quiet);
}

.btn--lg {
  padding: 0.95rem 1.8rem;
  font-size: var(--oe-text-base);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- 6. HERO ---------- */

.hero {
  position: relative;
  padding-block: clamp(var(--oe-space-8), 8vw, var(--oe-space-10))
    clamp(var(--oe-space-8), 8vw, var(--oe-space-9));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  /* Asymmetric split — copy gets the wider column, the panel
     hangs off the optical edge. */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--oe-space-6), 5vw, var(--oe-space-9));
  align-items: center;
}

.hero__flag {
  /* Rating plate, not a pill: side by side the two runs are ~557px
     against a ~540px hero column, so both wrapped mid-phrase. */
  display: inline-grid;
  gap: var(--oe-space-1);
  padding: var(--oe-space-3) var(--oe-space-4);
  margin-bottom: var(--oe-space-6);
  background: var(--oe-accent-quiet);
  border: var(--oe-border-width) solid var(--oe-border-accent);
  border-left: 2px solid var(--oe-accent);
  border-radius: 0 var(--oe-radius-xs) var(--oe-radius-xs) 0;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-gold-200);
}

.hero__flag b {
  display: block;
  color: var(--oe-accent);
  font-weight: var(--oe-weight-semibold);
}

.hero__flag span {
  display: block;
  color: var(--oe-text-muted);
  letter-spacing: var(--oe-tracking-wide);
}

.hero h1 {
  /* Not the top of the scale: the longest word has to fit the
     narrower hero column at every width. */
  font-size: clamp(2.35rem, 4.6vw, 4.3rem);
  font-stretch: 118%;
  text-wrap: balance;
}

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

.hero__lede {
  margin-top: var(--oe-space-6);
  max-width: 34rem;
  font-size: var(--oe-text-lg);
  line-height: var(--oe-leading-relaxed);
  color: var(--oe-text-muted);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--oe-space-4);
  margin-top: var(--oe-space-7);
}

.hero__note {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-subtle);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-3) var(--oe-space-6);
  margin-top: var(--oe-space-7);
  padding-top: var(--oe-space-6);
  border-top: var(--oe-border-width) solid var(--oe-border);
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: var(--oe-space-2);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--oe-text-muted);
}

.hero__proof svg {
  flex: none;
  color: var(--oe-accent);
}

/* ---------- 7. PRODUCT SPECIMENS ---------- */
/* Interface fragments used as illustration. Real component
   styling, not screenshots, so they stay crisp and themed. */

.panel {
  /* Column flex so a stretched panel hands its spare height to the
     body rather than pooling it under the content. */
  display: flex;
  flex-direction: column;
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  box-shadow: var(--oe-shadow-md);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  padding: var(--oe-space-3) var(--oe-space-4);
  border-bottom: var(--oe-border-width) solid var(--oe-border);
  background: var(--oe-surface-sunken);
  border-radius: var(--oe-radius-md) var(--oe-radius-md) 0 0;
}

.panel__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--oe-radius-pill);
  background: var(--oe-neutral-600);
  flex: none;
}

.panel__title {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-muted);
  letter-spacing: 0.03em;
}

.panel__meta {
  margin-left: auto;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
}

.panel__body {
  flex: 1;
  padding: var(--oe-space-5);
}

.panel__body--tight {
  padding: var(--oe-space-4);
}

.hero__panel {
  position: relative;
}

.hero__panel .panel {
  box-shadow: var(--oe-shadow-lg);
}

/* Asset rows */
.asset-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--oe-space-3) var(--oe-space-4);
  align-items: center;
  padding: var(--oe-space-3) 0;
  border-bottom: var(--oe-border-width) solid var(--oe-hairline);
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row__id {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-subtle);
}

.asset-row__name {
  font-size: var(--oe-text-base);
  font-weight: var(--oe-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-row__sub {
  display: block;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Status pills — colour is never the only signal, every pill
   carries its label and a dot. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--oe-space-2);
  padding: 0.2rem var(--oe-space-3) 0.2rem var(--oe-space-2);
  border-radius: var(--oe-radius-pill);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: var(--oe-border-width) solid transparent;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--oe-radius-pill);
  background: currentColor;
  flex: none;
}

.pill--pass {
  color: var(--oe-pass);
  background: var(--oe-pass-quiet);
  border-color: var(--oe-pass-quiet);
}

.pill--attention {
  color: var(--oe-attention);
  background: var(--oe-attention-quiet);
  border-color: var(--oe-border-accent);
}

.pill--critical {
  color: var(--oe-critical);
  background: var(--oe-critical-quiet);
  border-color: var(--oe-critical-quiet);
}

.pill--draft {
  color: var(--oe-draft);
  background: var(--oe-draft-quiet);
  border-color: var(--oe-draft-quiet);
}

/* Checklist specimen */
.check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--oe-space-3);
  align-items: start;
  padding: var(--oe-space-3) 0;
  border-bottom: var(--oe-border-width) solid var(--oe-hairline);
}

.check-item:last-child {
  border-bottom: 0;
}

.check-box {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: var(--oe-radius-xs);
  border: var(--oe-border-width-thick) solid var(--oe-border-strong);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
  color: var(--oe-on-accent);
}

.check-box--done {
  background: var(--oe-pass);
  border-color: var(--oe-pass);
  color: var(--oe-neutral-950);
}

.check-box--flag {
  background: var(--oe-accent);
  border-color: var(--oe-accent);
  color: var(--oe-on-accent);
}

.check-item__label {
  font-size: var(--oe-text-base);
}

.check-item__reading {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-muted);
  white-space: nowrap;
}

.check-item__reading b {
  color: var(--oe-text);
  font-weight: var(--oe-weight-semibold);
}

.check-item__tol {
  display: block;
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  margin-top: 2px;
}

.check-item--flagged .check-item__reading b {
  color: var(--oe-accent);
}

/* Evidence thumbnails */
.evidence {
  display: flex;
  gap: var(--oe-space-2);
  margin-top: var(--oe-space-3);
}

.evidence span {
  width: 2.6rem;
  height: 2rem;
  border-radius: var(--oe-radius-xs);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  background: linear-gradient(
      135deg,
      var(--oe-neutral-600),
      var(--oe-neutral-700)
    ),
    var(--oe-neutral-700);
  display: grid;
  place-items: center;
  color: var(--oe-text-subtle);
}

.evidence span:last-child {
  background: var(--oe-accent-quiet);
  border-color: var(--oe-border-accent);
  color: var(--oe-accent);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
}

/* Offline sync bar */
.sync-bar {
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  padding: var(--oe-space-3) var(--oe-space-4);
  background: var(--oe-accent-quiet);
  border: var(--oe-border-width) solid var(--oe-border-accent);
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--oe-gold-200);
}

.sync-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--oe-radius-pill);
  background: var(--oe-accent);
  flex: none;
  animation: pulse 2.4s var(--oe-ease-in-out) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.sync-bar__count {
  margin-left: auto;
  color: var(--oe-text);
}

/* ---------- 8. PROBLEM / FAILURE MODES ---------- */

.failures {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--oe-space-5);
}

/* Deliberately uneven spans — a 3-equal-card row is the tell. */
.failures li:nth-child(1) {
  grid-column: 1 / span 7;
}

.failures li:nth-child(2) {
  grid-column: 8 / span 5;
}

.failures li:nth-child(3) {
  grid-column: 1 / span 5;
}

.failures li:nth-child(4) {
  grid-column: 6 / span 7;
}

.failure {
  height: 100%;
  padding: var(--oe-space-6);
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border);
  border-left: var(--oe-border-width-thick) solid var(--oe-critical);
  border-radius: 0 var(--oe-radius-md) var(--oe-radius-md) 0;
}

.failure__stat {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-2xl);
  font-weight: var(--oe-weight-black);
  font-stretch: 112%;
  color: var(--oe-text);
  line-height: var(--oe-leading-flat);
  margin-bottom: var(--oe-space-3);
}

.failure h3 {
  font-size: var(--oe-text-md);
  letter-spacing: var(--oe-tracking-snug);
  margin-bottom: var(--oe-space-3);
}

.failure p {
  color: var(--oe-text-muted);
  font-size: var(--oe-text-base);
  line-height: var(--oe-leading-relaxed);
}

/* ---------- 9. WORKFLOW STEPS ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--oe-space-5);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--oe-space-6);
  border-top: var(--oe-border-width-thick) solid var(--oe-border-strong);
  transition: border-color var(--oe-duration-base) var(--oe-ease-standard);
}

.step:hover {
  border-top-color: var(--oe-accent);
}

.step__num {
  counter-increment: step;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-accent);
  letter-spacing: var(--oe-tracking-wide);
}

.step__num::before {
  content: "0" counter(step);
}

.step h3 {
  margin-block: var(--oe-space-3);
  font-size: var(--oe-text-lg);
  letter-spacing: var(--oe-tracking-snug);
}

.step p {
  color: var(--oe-text-muted);
  font-size: var(--oe-text-base);
  line-height: var(--oe-leading-relaxed);
}

/* ---------- 10. MODULE ROWS ---------- */

.module {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(var(--oe-space-6), 5vw, var(--oe-space-9));
  align-items: center;
  padding-block: clamp(var(--oe-space-7), 6vw, var(--oe-space-9));
  border-top: var(--oe-border-width) solid var(--oe-border);
}

.module:first-of-type {
  border-top: 0;
}

/* Zig-zag: even rows flip the specimen to the left. */
.module:nth-child(even) .module__copy {
  order: 2;
}

.module__tag {
  display: inline-block;
  margin-bottom: var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-accent);
  padding: 0.25rem var(--oe-space-3);
  border: var(--oe-border-width) solid var(--oe-border-accent);
  border-radius: var(--oe-radius-xs);
}

.module h3 {
  font-size: var(--oe-text-2xl);
  text-wrap: balance;
}

.module__copy > p {
  margin-top: var(--oe-space-5);
  color: var(--oe-text-muted);
  font-size: var(--oe-text-md);
  line-height: var(--oe-leading-relaxed);
  max-width: 34rem;
  text-wrap: pretty;
}

.module__list {
  margin-top: var(--oe-space-6);
  display: grid;
  gap: var(--oe-space-3);
}

.module__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--oe-space-3);
  align-items: start;
  font-size: var(--oe-text-base);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-snug);
}

.module__list svg {
  flex: none;
  margin-top: 0.25em;
  color: var(--oe-accent);
}

.module__list b {
  color: var(--oe-text);
  font-weight: var(--oe-weight-semibold);
}

/* ---------- 11. CHARTS ---------- */

.insight {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--oe-space-5);
}

.insight > *:nth-child(1) {
  grid-column: 1 / span 12;
}

.insight > *:nth-child(2) {
  grid-column: 1 / span 7;
}

.insight > *:nth-child(3) {
  grid-column: 8 / span 5;
}

/* KPI row — stat tiles, because a headline number is not a chart */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--oe-border-width);
  background: var(--oe-border);
  border: var(--oe-border-width) solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  overflow: hidden;
}

.kpi {
  padding: var(--oe-space-5);
  background: var(--oe-surface);
}

.kpi__label {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

.kpi__value {
  margin-top: var(--oe-space-3);
  /* Same sans as the rest — a display serif on a hero figure
     reads as decoration. Proportional figures at this size. */
  font-family: var(--oe-font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: var(--oe-weight-black);
  font-stretch: 110%;
  line-height: var(--oe-leading-flat);
  letter-spacing: var(--oe-tracking-tight);
}

.kpi__delta {
  display: flex;
  align-items: center;
  gap: var(--oe-space-2);
  margin-top: var(--oe-space-3);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-muted);
}

.kpi__delta b {
  color: var(--oe-pass);
  font-weight: var(--oe-weight-semibold);
}

.kpi__delta--watch b {
  color: var(--oe-accent);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--oe-hairline);
  stroke-width: 1;
}

.chart-axis text {
  fill: var(--oe-text-subtle);
  font-family: var(--oe-font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.chart-line {
  fill: none;
  stroke: var(--oe-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#oeAreaFill);
}

.chart-dot {
  fill: var(--oe-accent);
  /* 2px surface ring instead of a border around the mark. */
  stroke: var(--oe-surface);
  stroke-width: 2;
}

.chart-label {
  fill: var(--oe-text);
  font-family: var(--oe-font-mono);
  font-size: 11px;
  font-weight: 500;
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.chart-crosshair {
  stroke: var(--oe-border-strong);
  stroke-width: 1;
  opacity: 0;
  transition: opacity var(--oe-duration-instant) linear;
}

.chart-figure {
  margin: 0;
  /* The two insight panels are equal-height grid items; without this
     the shorter one left ~120px of dead space under its footer. */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-figure figcaption {
  margin-top: var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  line-height: var(--oe-leading-snug);
}

/* Tooltip for the line chart */
.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  padding: var(--oe-space-2) var(--oe-space-3);
  background: var(--oe-neutral-950);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  white-space: nowrap;
  box-shadow: var(--oe-shadow-md);
  transition: opacity var(--oe-duration-instant) linear;
}

.chart-tip b {
  color: var(--oe-accent);
}

.chart-wrap {
  position: relative;
}

/* Horizontal bars — emphasis form: the top category in accent,
   the rest de-emphasised grey. Every bar is direct-labelled,
   which is the required relief for the grey's contrast. */
.bars {
  display: grid;
  gap: var(--oe-space-4);
  margin-top: var(--oe-space-2);
}

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--oe-space-2) var(--oe-space-4);
  align-items: center;
}

.bar__label {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar__value {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text);
  font-variant-numeric: tabular-nums;
}

.bar__track {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--oe-neutral-800);
  border-radius: var(--oe-radius-xs);
  overflow: hidden;
}

.bar__fill {
  /* A span defaults to inline, where width and height do nothing. */
  display: block;
  height: 100%;
  /* 4px rounded data-end, anchored flat to the baseline. */
  border-radius: 0 var(--oe-radius-sm) var(--oe-radius-sm) 0;
  background: var(--oe-neutral-400);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--oe-duration-slow) var(--oe-ease-out);
}

.is-in .bar__fill {
  transform: scaleX(1);
}

.bar--lead .bar__fill {
  background: var(--oe-accent);
}

.bar--lead .bar__label {
  color: var(--oe-text);
}

/* Table view — every charted value is reachable without hover */
.table-toggle {
  margin-top: auto;
  padding-top: var(--oe-space-5);
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-accent);
  cursor: pointer;
  border-bottom: var(--oe-border-width) dotted var(--oe-border-accent);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--oe-space-4);
  font-size: var(--oe-text-sm);
}

.data-table caption {
  text-align: left;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
  padding-bottom: var(--oe-space-3);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: var(--oe-space-2) var(--oe-space-3);
  border-bottom: var(--oe-border-width) solid var(--oe-hairline);
}

.data-table th {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--oe-text-subtle);
  font-weight: var(--oe-weight-medium);
}

.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
  font-family: var(--oe-font-mono);
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

/* ---------- 12. PRICING ---------- */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--oe-space-5);
  margin-bottom: var(--oe-space-7);
}

.term-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  border-radius: var(--oe-radius-pill);
}

.term-toggle button {
  position: relative;
  padding: 0.5rem var(--oe-space-4);
  background: none;
  border: 0;
  border-radius: var(--oe-radius-pill);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-muted);
  cursor: pointer;
  transition: color var(--oe-duration-fast) var(--oe-ease-standard),
    background-color var(--oe-duration-fast) var(--oe-ease-standard);
}

.term-toggle button[aria-pressed="true"] {
  background: var(--oe-accent);
  color: var(--oe-on-accent);
}

.term-toggle .save {
  color: var(--oe-pass);
  margin-left: var(--oe-space-2);
}

.term-toggle button[aria-pressed="true"] .save {
  color: var(--oe-neutral-950);
}

/* Plan cards: the recommended plan is taller and wider, so the
   row reads as a decision, not three equal options. */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--oe-space-4);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--oe-space-6);
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  transition: border-color var(--oe-duration-base) var(--oe-ease-standard),
    transform var(--oe-duration-base) var(--oe-ease-out);
}

.plan:hover {
  border-color: var(--oe-border-strong);
  transform: translateY(-3px);
}

.plan--featured {
  background: var(--oe-surface-raised);
  border-color: var(--oe-accent);
  box-shadow: var(--oe-shadow-lg);
  /* Lifts out of the row so the recommendation is structural,
     not just a coloured label. */
  margin-block: calc(var(--oe-space-4) * -1);
  padding-block: calc(var(--oe-space-6) + var(--oe-space-4));
}

.plan__flag {
  position: absolute;
  top: 0;
  left: var(--oe-space-6);
  transform: translateY(-50%);
  padding: 0.2rem var(--oe-space-3);
  background: var(--oe-accent);
  color: var(--oe-on-accent);
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
}

.plan__name {
  font-size: var(--oe-text-lg);
  letter-spacing: var(--oe-tracking-snug);
}

.plan__for {
  margin-top: var(--oe-space-3);
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-snug);
  min-height: 2.6em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--oe-space-2);
  margin-top: var(--oe-space-5);
  padding-top: var(--oe-space-5);
  border-top: var(--oe-border-width) solid var(--oe-hairline);
}

.plan__amount {
  font-family: var(--oe-font-display);
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  font-weight: var(--oe-weight-black);
  font-stretch: 110%;
  line-height: var(--oe-leading-flat);
  letter-spacing: var(--oe-tracking-tight);
}

.plan__per {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan__billed {
  margin-top: var(--oe-space-2);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  min-height: 1.4em;
}

.plan__quota {
  display: grid;
  gap: var(--oe-space-2);
  margin-top: var(--oe-space-5);
  padding: var(--oe-space-4);
  background: var(--oe-surface-sunken);
  border-radius: var(--oe-radius-xs);
}

.plan--featured .plan__quota {
  background: rgba(11, 11, 12, 0.45);
}

.plan__quota div {
  display: flex;
  justify-content: space-between;
  gap: var(--oe-space-3);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--oe-text-subtle);
}

.plan__quota b {
  color: var(--oe-text);
  font-weight: var(--oe-weight-semibold);
}

.plan__features {
  display: grid;
  gap: var(--oe-space-3);
  margin-top: var(--oe-space-5);
}

.plan__features li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--oe-space-3);
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-snug);
}

.plan__features svg {
  flex: none;
  margin-top: 0.2em;
  color: var(--oe-accent);
}

.plan__cta {
  margin-top: var(--oe-space-6);
  padding-top: var(--oe-space-5);
}

.plan__cta .btn {
  width: 100%;
}

.plan > .plan__cta {
  margin-top: auto;
}

/* Seat & item calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  margin-top: var(--oe-space-7);
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  border-radius: var(--oe-radius-md);
  overflow: hidden;
}

.calc__controls {
  padding: clamp(var(--oe-space-5), 3vw, var(--oe-space-7));
}

.calc__out {
  padding: clamp(var(--oe-space-5), 3vw, var(--oe-space-7));
  background: var(--oe-surface-sunken);
  border-left: var(--oe-border-width) solid var(--oe-border);
  display: flex;
  flex-direction: column;
}

.calc h3 {
  font-size: var(--oe-text-xl);
}

.calc__hint {
  margin-top: var(--oe-space-3);
  color: var(--oe-text-muted);
  font-size: var(--oe-text-base);
}

.field {
  margin-top: var(--oe-space-6);
}

.field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--oe-space-4);
  margin-bottom: var(--oe-space-3);
}

.field label {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

.field__read {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-base);
  color: var(--oe-text);
  font-variant-numeric: tabular-nums;
}

.field__read b {
  color: var(--oe-accent);
  font-weight: var(--oe-weight-semibold);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--oe-neutral-700);
  border-radius: var(--oe-radius-pill);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--oe-neutral-700);
  border-radius: var(--oe-radius-pill);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: var(--oe-radius-pill);
  background: var(--oe-accent);
  border: var(--oe-border-width-thick) solid var(--oe-neutral-950);
  box-shadow: var(--oe-shadow-sm);
  transition: transform var(--oe-duration-instant) var(--oe-ease-standard);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: var(--oe-radius-pill);
  background: var(--oe-accent);
  border: var(--oe-border-width-thick) solid var(--oe-neutral-950);
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.tier-pick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-2);
  margin-top: var(--oe-space-3);
}

.tier-pick button {
  padding: 0.45rem var(--oe-space-4);
  background: var(--oe-surface-raised);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-muted);
  cursor: pointer;
  transition: all var(--oe-duration-fast) var(--oe-ease-standard);
}

.tier-pick button[aria-pressed="true"] {
  background: var(--oe-accent);
  border-color: var(--oe-accent);
  color: var(--oe-on-accent);
}

.calc__plan {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

.calc__plan b {
  color: var(--oe-accent);
}

.calc__total {
  display: flex;
  align-items: baseline;
  gap: var(--oe-space-2);
  margin-top: var(--oe-space-4);
}

.calc__total-num {
  font-family: var(--oe-font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: var(--oe-weight-black);
  font-stretch: 110%;
  line-height: var(--oe-leading-flat);
  letter-spacing: var(--oe-tracking-tight);
}

.calc__lines {
  margin-top: var(--oe-space-5);
  padding-top: var(--oe-space-5);
  border-top: var(--oe-border-width) solid var(--oe-border);
  display: grid;
  gap: var(--oe-space-3);
}

.calc__lines div {
  display: flex;
  justify-content: space-between;
  gap: var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-muted);
}

.calc__lines div span:last-child {
  color: var(--oe-text);
  font-variant-numeric: tabular-nums;
}

.calc__lines div.is-zero {
  color: var(--oe-text-subtle);
  opacity: 0.55;
}

.calc__annual {
  margin-top: var(--oe-space-5);
  padding: var(--oe-space-3) var(--oe-space-4);
  background: var(--oe-pass-quiet);
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-pass);
}

.calc__cta {
  margin-top: auto;
  padding-top: var(--oe-space-6);
}

/* Add-ons */
.addons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--oe-space-4);
  margin-top: var(--oe-space-6);
}

.addon {
  padding: var(--oe-space-5);
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border);
  border-radius: var(--oe-radius-md);
}

.addon__price {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-xl);
  font-weight: var(--oe-weight-black);
  font-stretch: 110%;
  color: var(--oe-accent);
}

.addon h4 {
  margin-block: var(--oe-space-3) var(--oe-space-2);
  font-size: var(--oe-text-base);
  letter-spacing: var(--oe-tracking-snug);
}

.addon p {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-snug);
}

/* Comparison table */
.compare-wrap {
  margin-top: var(--oe-space-7);
  overflow-x: auto;
  border: var(--oe-border-width) solid var(--oe-border);
  border-radius: var(--oe-radius-md);
}

.compare {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: var(--oe-text-sm);
}

.compare th,
.compare td {
  padding: var(--oe-space-3) var(--oe-space-4);
  text-align: left;
  border-bottom: var(--oe-border-width) solid var(--oe-hairline);
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--oe-surface-sunken);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
  font-weight: var(--oe-weight-medium);
  border-bottom-color: var(--oe-border);
}

.compare thead th.is-featured {
  color: var(--oe-accent);
}

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

.compare td {
  text-align: center;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--oe-text);
}

.compare tr.group th {
  background: var(--oe-surface);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-accent);
}

.compare .yes {
  color: var(--oe-pass);
}

.compare .no {
  color: var(--oe-text-subtle);
}

/* ---------- 13. FAQ ---------- */

.faq {
  display: grid;
  gap: 0;
  border-top: var(--oe-border-width) solid var(--oe-border);
  max-width: 52rem;
}

.faq details {
  border-bottom: var(--oe-border-width) solid var(--oe-border);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: var(--oe-space-4);
  padding: var(--oe-space-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-md);
  font-weight: var(--oe-weight-bold);
  font-stretch: 108%;
  transition: color var(--oe-duration-fast) var(--oe-ease-standard);
}

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

.faq summary:hover {
  color: var(--oe-accent);
}

.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 11px;
  height: 11px;
  border-right: var(--oe-border-width-thick) solid var(--oe-accent);
  border-bottom: var(--oe-border-width-thick) solid var(--oe-accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--oe-duration-base) var(--oe-ease-out);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq p {
  padding-bottom: var(--oe-space-5);
  color: var(--oe-text-muted);
  font-size: var(--oe-text-base);
  line-height: var(--oe-leading-relaxed);
  max-width: 44rem;
}

.faq p + p {
  padding-top: 0;
  margin-top: calc(var(--oe-space-3) * -1);
}

/* ---------- 14. SECURITY GRID ---------- */

.trust {
  display: grid;
  /* Pinned to three, not auto-fit: six cells in a four-column track
     left two empty ones showing as a bare slab of the divider colour. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--oe-border-width);
  background: var(--oe-border);
  border: var(--oe-border-width) solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  overflow: hidden;
}

.trust__cell {
  padding: var(--oe-space-6);
  background: var(--oe-surface);
}

.trust__cell svg {
  color: var(--oe-accent);
  margin-bottom: var(--oe-space-4);
}

.trust__title {
  font-size: var(--oe-text-base);
  letter-spacing: var(--oe-tracking-snug);
  margin-bottom: var(--oe-space-2);
}

.trust__cell p {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-relaxed);
}

/* ---------- 15. CTA BAND ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--oe-space-8), 8vw, var(--oe-space-10));
  border-top: var(--oe-border-width) solid var(--oe-border);
  background: radial-gradient(
      80% 140% at 82% 0%,
      var(--oe-accent-quiet),
      transparent 62%
    ),
    var(--oe-surface-sunken);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(var(--oe-space-6), 5vw, var(--oe-space-8));
  align-items: center;
}

.cta-band h2 {
  font-size: var(--oe-text-3xl);
  text-wrap: balance;
}

.cta-band p {
  margin-top: var(--oe-space-5);
  color: var(--oe-text-muted);
  font-size: var(--oe-text-lg);
  line-height: var(--oe-leading-relaxed);
  max-width: 34rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-4);
  margin-top: var(--oe-space-6);
}

.cta-card {
  padding: var(--oe-space-6);
  background: var(--oe-surface);
  border: var(--oe-border-width) solid var(--oe-border-strong);
  border-radius: var(--oe-radius-md);
  box-shadow: var(--oe-shadow-lg);
}

.cta-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--oe-space-4);
  padding-block: var(--oe-space-3);
  border-bottom: var(--oe-border-width) solid var(--oe-hairline);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-muted);
}

.cta-card__row:last-of-type {
  border-bottom: 0;
}

.cta-card__row b {
  color: var(--oe-text);
  font-weight: var(--oe-weight-semibold);
}

/* ---------- 16. FOOTER ---------- */

.site-footer {
  padding-block: var(--oe-space-8) var(--oe-space-6);
  border-top: var(--oe-border-width) solid var(--oe-border);
  background: var(--oe-canvas);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--oe-space-7) var(--oe-space-6);
}

.footer__logo img {
  height: 2.1rem;
  width: auto;
  margin-bottom: var(--oe-space-4);
}

.footer__blurb {
  color: var(--oe-text-subtle);
  font-size: var(--oe-text-sm);
  line-height: var(--oe-leading-relaxed);
  max-width: 24rem;
}

.footer__col h5 {
  margin: 0 0 var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
  font-weight: var(--oe-weight-medium);
}

.footer__col li + li {
  margin-top: var(--oe-space-3);
}

.footer__col a {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  transition: color var(--oe-duration-fast) var(--oe-ease-standard);
}

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

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-3) var(--oe-space-6);
  align-items: center;
  margin-top: var(--oe-space-8);
  padding-top: var(--oe-space-5);
  border-top: var(--oe-border-width) solid var(--oe-border);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
}

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

/* ---------- 17. REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--oe-duration-reveal) var(--oe-ease-out),
    transform var(--oe-duration-reveal) var(--oe-ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--oe-duration-slow) var(--oe-ease-out),
    transform var(--oe-duration-slow) var(--oe-ease-out);
}

.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-in > *:nth-child(1) {
  transition-delay: 0ms;
}
.reveal-stagger.is-in > *:nth-child(2) {
  transition-delay: 70ms;
}
.reveal-stagger.is-in > *:nth-child(3) {
  transition-delay: 140ms;
}
.reveal-stagger.is-in > *:nth-child(4) {
  transition-delay: 210ms;
}
.reveal-stagger.is-in > *:nth-child(5) {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sync-bar__dot {
    animation: none;
  }

  .bar__fill {
    transform: scaleX(1);
    transition: none;
  }
}

/* ---------- 18. RESPONSIVE ---------- */

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

  .plan--featured {
    margin-block: 0;
    padding-block: var(--oe-space-6);
  }

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

@media (max-width: 940px) {
  .site-nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--oe-space-4) var(--oe-gutter) var(--oe-space-6);
    background: var(--oe-canvas);
    border-bottom: var(--oe-border-width) solid var(--oe-border);
    box-shadow: var(--oe-shadow-lg);
    transform: translateY(-130%);
    transition: transform var(--oe-duration-base) var(--oe-ease-out);
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding-block: var(--oe-space-4);
    border-bottom: var(--oe-border-width) solid var(--oe-hairline);
    font-size: var(--oe-text-sm);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn--ghost {
    display: none;
  }

  .hero__grid,
  .module,
  .cta-band__grid,
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .module:nth-child(even) .module__copy {
    order: 0;
  }

  .calc__out {
    border-left: 0;
    border-top: var(--oe-border-width) solid var(--oe-border);
  }

  .failures li,
  .insight > *:nth-child(1),
  .insight > *:nth-child(2),
  .insight > *:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

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

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

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

@media (max-width: 700px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--oe-space-3);
  }

  .masthead__index {
    padding-top: 0;
  }

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

  .pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .term-toggle {
    justify-content: center;
  }

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

  .hero__proof {
    gap: var(--oe-space-3);
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    gap: var(--oe-space-4);
  }

  /* "Book a walkthrough" is 230px wide; at this width the lockup, the
     button and the toggle cannot share a row, so the call to action
     moves to the foot of the nav drawer instead of being truncated. */
  .header-actions {
    display: none;
  }

  .site-nav a.site-nav__cta {
    display: inline-flex;
    width: 100%;
    margin-top: var(--oe-space-5);
    border-bottom: 0;
    padding-block: 0.8rem;
    font-size: var(--oe-text-xs);
    /* .site-nav a outranks .btn--primary, so the ink has to be
       restated or the label sits muted on the orange fill. */
    color: var(--oe-on-accent);
  }

  .kpi__delta {
    /* Two columns at 390px is 165px of cell; the comparison phrase
       broke mid-clause beside the figure. */
    display: grid;
    gap: var(--oe-space-1);
  }

  .nav-toggle {
    margin-left: auto;
  }
}

/* ---------- 19. PRINT ---------- */

@media print {
  .atmosphere,
  .site-header,
  .nav-toggle,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
