/* ==========================================================================
   Elev8 Cloud — design system
   Palette derives from the logo: gradient blue tile, ascending chevrons.
   Money green is functional only: it marks margin, never decoration.
   ========================================================================== */

:root {
  /* brand constants (theme independent) */
  --brand: #225ED2;
  --brand-lt: #3884F6;
  --brand-deep: #122044;
  --cyan: #2EC4E8;

  /* light theme (default) */
  --bg: #FAFBFD;
  --bg-alt: #F1F5FB;
  --surface: #FFFFFF;
  --surface-2: #F4F7FC;
  --line: #DEE6F2;
  --line-strong: #C7D4E8;
  --ink: #0F1930;
  --body: #3D4A64;
  --muted: #5A6882;
  --accent: #225ED2;
  --accent-soft: rgba(34, 94, 210, 0.08);
  --money: #0F8F52;
  --money-soft: rgba(15, 143, 82, 0.1);
  --shadow-sm: 0 1px 2px rgba(15, 25, 48, 0.06);
  --shadow-md: 0 6px 24px -8px rgba(15, 25, 48, 0.14);
  --shadow-lg: 0 24px 60px -24px rgba(15, 25, 48, 0.28);
  --tile-glow: rgba(34, 94, 210, 0.14);

  /* type */
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 1180px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* multiplier driven by the text size control */
  --scale: 1;
}

[data-theme="dark"] {
  --bg: #080E1C;
  --bg-alt: #0C1426;
  --surface: #0F1930;
  --surface-2: #16233E;
  --line: #21314F;
  --line-strong: #2E4166;
  --ink: #F2F6FC;
  --body: #B4C2DA;
  --muted: #8393B1;
  --accent: #62A0FA;
  --accent-soft: rgba(98, 160, 250, 0.12);
  --money: #35D08C;
  --money-soft: rgba(53, 208, 140, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 70px -28px rgba(0, 0, 0, 0.8);
  --tile-glow: rgba(56, 132, 246, 0.22);
}

/* --------------------------------------------------------------- base -- */

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

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------- typography -- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.35rem, calc(5.4vw * var(--scale)), 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, calc(3.6vw * var(--scale)), 2.75rem); }
h3 { font-size: clamp(1.15rem, calc(1.8vw * var(--scale)), 1.35rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, calc(1.5vw * var(--scale)), 1.25rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 58ch;
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ layout -- */

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

.band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.75rem, 5vw, 4rem); }
.band--alt { background: var(--bg-alt); }
.band--rule { border-top: 1px solid var(--line); }

/* Section heads use a left-margin index label — the catalog spine idea */
.band-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.band-index {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.65rem;
  border-top: 2px solid var(--accent);
}

.band-head h2 { margin-bottom: 0.5rem; }
.band-head p { color: var(--muted); max-width: 60ch; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ----------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-lt); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.arrow-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.arrow-link::after { content: "\2192"; transition: transform 0.18s ease; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------ header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px var(--tile-glow); }
.brand-word { color: var(--ink); font-weight: 400; white-space: nowrap; }
.brand-word b { font-weight: 700; }
.brand-word > span { font-weight: 300; color: var(--accent); margin-left: 0.14em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--body);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* only rendered inside the mobile menu panel */
.nav-links a.nav-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.icon-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--body);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }

.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 40%;
  height: 130%;
  background:
    radial-gradient(closest-side, var(--tile-glow), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-lt), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede { margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 2rem; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-notes span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-notes span::before { content: "\2713"; color: var(--accent); font-size: 0.85rem; }

/* --------------------------------------------- signature: the margin model -- */

.model {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.model-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.model-head h2 {
  font-size: 0.95rem;
  font-family: var(--f-body);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}
.model-head .mono { color: var(--muted); font-size: 0.66rem; }

.model-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 78px 78px;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.model-cols span:not(:first-child) { text-align: right; }

.model-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 78px 78px;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--line);
}

.model-line .sku {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.model-line .name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.model input {
  width: 100%;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-align: right;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}
.model input::-webkit-outer-spin-button,
.model input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.model input:hover { border-color: var(--line-strong); }
.model input:focus { border-color: var(--accent); background: var(--surface); outline: none; }

.model-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.model-total dt {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.model-total dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.model-total .is-money dd { color: var(--money); }

.model-foot {
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------- cards -- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; color: var(--muted); }

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 20px; height: 20px; }

/* pillar card carries a mono index because the four pillars are a sequence
   through the partner's own workflow: buy → provision → bill → support */
.pillar { position: relative; padding-top: 2.4rem; }
.pillar .step {
  position: absolute;
  top: 1.4rem;
  left: 1.6rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.feature-list { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--body);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* ------------------------------------------------------------ catalog -- */

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.search-field { position: relative; flex: 1 1 260px; }
.search-field svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.94rem;
  padding: 0.8rem 0.9rem 0.8rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
}
.search-field input:focus { border-color: var(--accent); outline: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card[hidden] { display: none; }

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.cat-sku {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
/* Darker than --money: the tag's translucent fill lifts the effective
   background, and --money on it lands at 3.66:1. This is 4.78:1. */
.tag--seat { background: var(--money-soft); color: #0C7A46; }
[data-theme="dark"] .tag--seat { color: var(--money); }

.cat-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cat-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.cat-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--muted);
}
.empty-state[hidden] { display: none; }

/* -------------------------------------------------------------- tiers -- */

.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem;
}
.tier--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  position: relative;
}
.tier--featured::before {
  content: "Most partners start here";
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
}
.tier h3 { margin-bottom: 0.25rem; }
.tier .tier-for { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.tier .tier-rate {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--money);
  line-height: 1;
}
.tier .tier-rate small { font-size: 0.8rem; font-weight: 400; color: var(--muted); font-family: var(--f-body); letter-spacing: 0; }
.tier .feature-list { margin-top: 1.25rem; flex: 1; }
.tier .btn { margin-top: 1.5rem; justify-content: center; }

/* -------------------------------------------------------------- steps -- */

.steps { counter-reset: step; display: grid; gap: 0; }

.step-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-row .num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.step-row h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step-row p { font-size: 0.94rem; color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------- accordion -- */

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

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 1.3rem; font-size: 0.95rem; color: var(--muted); max-width: 70ch; }

/* --------------------------------------------------------- dark panel -- */

.panel-deep {
  background: linear-gradient(150deg, #0D1730 0%, #16294F 55%, #1B3768 100%);
  color: #DCE6F7;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  position: relative;
  overflow: hidden;
}
.panel-deep::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.panel-deep > * { position: relative; z-index: 1; }
.panel-deep h2, .panel-deep h3 { color: #fff; }
.panel-deep p { color: #A9BDDE; }
.panel-deep .eyebrow {
  color: var(--cyan);
  background: rgba(46, 196, 232, 0.12);
  border-color: rgba(46, 196, 232, 0.3);
}
.panel-deep .eyebrow::before { background: var(--cyan); }
.panel-deep .feature-list li { color: #C9D8EF; }
.panel-deep .feature-list li::before { background: var(--cyan); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-row dt {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FA8D0;
  margin-bottom: 0.35rem;
}
.stat-row dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}

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

.cta-band {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 70%, var(--brand-lt));
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn--primary:hover { background: #EAF1FF; color: var(--brand-deep); }

/* -------------------------------------------------------------- form -- */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field .error { font-size: 0.78rem; color: #C6362F; font-family: var(--f-body); letter-spacing: 0; text-transform: none; min-height: 1em; }
[data-theme="dark"] .field .error { color: #FF8A80; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C6362F; }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--money-soft);
  border: 1px solid color-mix(in srgb, var(--money) 35%, transparent);
  color: var(--money);
  font-size: 0.92rem;
}
.form-status[hidden] { display: none; }

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

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
thead th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
tbody td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------ footer -- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid p { font-size: 0.9rem; color: var(--muted); max-width: 34ch; margin-top: 1rem; }
.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid li a { color: var(--body); font-size: 0.9rem; }
.footer-grid li a:hover { color: var(--accent); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.build-note {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  color: var(--body);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.build-note strong { color: var(--ink); }
.build-note svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------------------------------------------------------- page head -- */

.page-head {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-head h1 { font-size: clamp(2rem, calc(4.4vw * var(--scale)), 3.1rem); margin-bottom: 0.8rem; }
.page-head .lede { max-width: 62ch; }

/* ----------------------------------------------------------- reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------- responsive -- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .band-head { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .band-index { border-top: 0; padding-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .apply-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.75rem var(--gutter) 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a.nav-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    border-bottom: 0;
    background: var(--brand);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    padding: 0.9rem 1.2rem;
  }
  .nav-links a.nav-cta:hover { background: var(--brand-lt); color: #fff; }
}

@media (max-width: 620px) {
  .model-cols,
  .model-line { grid-template-columns: minmax(0, 1fr) 54px 66px 66px; gap: 0.4rem; padding-inline: 0.9rem; }
  .model-head, .model-total, .model-foot { padding-inline: 0.9rem; }
  .model-total { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .model-total dd { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .step-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

@media print {
  .site-header, .cta-band, .site-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- utility -- */

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

.stack-sm > * + * { margin-top: 0.75rem; }
.mt-lg { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ------------------------------------------------------ named vendors -- */
/* Vendor-level listings, as distinct from the category scopes below them.
   A card only belongs here once there is a real agreement to point at. */

.vendor-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.vendor-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.vendor-card[hidden] { display: none; }

/* Fixed-height box so logos of different aspect ratios sit on one baseline.
   object-fit keeps the vendor's artwork undistorted whatever its dimensions. */
.vendor-logo {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.vendor-logo img {
  max-height: 34px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Vendors ship logos in two broad shapes and one slot cannot serve both.
   A stacked or square lockup forced into the 34px wide-slot renders its
   wordmark at ~4px. Square gets more height and less width instead. */
.vendor-logo[data-shape="square"] { height: 56px; }
.vendor-logo[data-shape="square"] img {
  max-height: 56px;
  max-width: 56px;
}

/* A vendor supplying only a light-background lockup needs a plate behind it
   in dark mode, rather than being inverted — inverting brand color is worse
   than boxing it. Add data-plate="true" on the .vendor-logo for those. */
[data-theme="dark"] .vendor-logo[data-plate="true"] {
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  align-self: flex-start;
  width: max-content;
}

.vendor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.vendor-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.vendor-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }

.tag--pending {
  background: rgba(183, 121, 31, 0.12);
  color: #8A5A12;
}
[data-theme="dark"] .tag--pending {
  background: rgba(232, 179, 74, 0.16);
  color: #E8B34A;
}

.sub-head {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--accent);
  display: inline-block;
}
.sub-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

.vendor-cat {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem !important;
}

/* --------------------------------------------------- text size control -- */
/* Scales the root font size. Nearly all sizing in this stylesheet is in rem,
   so type, spacing and component heights scale together rather than text
   overflowing fixed-height boxes. */

.text-size {
  display: flex;
  gap: 0.25rem;
}

.size-btn {
  width: 32px;
  height: 32px;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}
.size-btn sub,
.size-btn sup {
  font-size: 0.7em;
  line-height: 0;
}
.size-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.size-btn[disabled]:hover {
  border-color: var(--line);
  color: var(--body);
}

@media (max-width: 420px) {
  /* Keep the control, shrink it — an accessibility affordance should not be
     the thing that disappears on the smallest screens. */
  .size-btn { width: 28px; height: 28px; font-size: 0.72rem; }
  .nav-actions { gap: 0.4rem; }
}
