/* Stockmere design system — hand-rolled, no external dependencies. */

:root {
  --navy-950: #081524;
  --navy-900: #0b1f33;
  --navy-800: #11293f;
  --navy-700: #1a3450;
  --ink: #16232f;
  --muted: #55677a;
  --faint: #8194a6;
  --paper: #ffffff;
  --mist: #f3f6f9;
  --line: #dfe6ec;
  --teal: #0e9384;
  --teal-strong: #0a7264;
  --teal-soft: #d9efec;
  --amber: #b7791f;
  --danger: #b3261e;
  --danger-soft: #fbeae9;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 8px 24px rgba(11, 31, 51, 0.08);
  --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, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-strong);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 750;
}

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

p {
  margin: 0 0 1em;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  position: relative;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--navy-900);
}

.wordmark-glyph {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav > a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav > a:hover {
  color: var(--navy-900);
}

.site-nav > a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--teal);
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

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

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-strong);
  color: #fff;
}

.btn-secondary {
  background: var(--paper);
  color: var(--navy-900);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn-ghost {
  color: var(--navy-900);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--navy-900);
}

.section-dark .btn-secondary,
.section-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.text-link::after {
  content: " →";
}

/* ---------- Hero & sections ---------- */

.hero {
  background:
    radial-gradient(1000px 460px at 85% -10%, rgba(14, 147, 132, 0.14), transparent 65%),
    linear-gradient(180deg, var(--mist), var(--paper) 85%);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-strong);
  margin-bottom: 0.9rem;
}

/* ---------- Icons ----------
   Lucide, inlined at build time by scripts/build-icons.js. Every one sits
   beside text that already names it, so they are all aria-hidden and sized in
   em to track whatever they sit next to. */

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.16em;
}

.eyebrow .icon {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.45em;
  vertical-align: -0.2em;
}

.card-icon {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

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

.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0.9rem;
}

.center-actions {
  justify-content: center;
}

.hero-note {
  color: var(--faint);
  font-size: 0.92rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(1.6rem, 4vw, 2.8rem) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

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

.page-hero {
  background: linear-gradient(180deg, var(--mist), var(--paper));
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

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

.values-grid {
  margin: 1.2rem 0 2.2rem;
}

/* ---------- Logo strip ---------- */

.logo-strip-label {
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.logo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 2rem;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--faint);
  min-height: 3rem;
  margin: 0;
}

.logo span {
  display: inline-block;
}

/* Distinct typographic wordmarks — all fictional companies. */
.logo-nordwind span {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-boltbarrel span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.logo-harbourpine span {
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.logo-ferrous span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.logo-cloudberry span {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.logo-kestrel span {
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1.5px solid currentColor;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.logo-meridian span {
  font-weight: 750;
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.09em;
}

.logo-aldergrove span {
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.1rem;
}

/* ---------- Metric band ---------- */

.section-dark {
  background: var(--navy-900);
}

.metric-band {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.metric-band li {
  display: grid;
  gap: 0.25rem;
}

.metric-band strong {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.metric-band span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.metric-band-light {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  margin: 1.8rem 0;
}

.metric-band-light strong {
  color: var(--teal-strong);
}

.metric-band-light span {
  color: var(--muted);
}

/* ---------- Split / feature sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}

.feature-alt {
  background: var(--mist);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  padding-left: 1.7rem;
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-50deg);
}

.feature-panel {
  display: grid;
  justify-items: center;
}

.panel-card {
  width: min(420px, 100%);
  background: var(--navy-900);
  color: #dce7f0;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  font-family: var(--mono);
}

.panel-table td {
  padding: 0.45rem 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-table td:last-child {
  text-align: right;
}

.panel-table .ok {
  color: #5cd6c3;
}

.panel-table .warn {
  color: #f0b45c;
}

.panel-foot {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.spark svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* ---------- Quotes ---------- */

.quote {
  margin: 0;
  background: var(--mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 1.7rem;
}

.quote p {
  font-size: 1.08rem;
  color: var(--navy-800);
  font-weight: 500;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

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

.section-cta {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  color: #fff;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.cta-inner a:not(.btn) {
  color: #7adcCC;
}

.cta-inner .btn-primary {
  margin-top: 0.5rem;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--paper);
}

.price-card .btn {
  margin-top: auto;
  text-align: center;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  position: relative;
}

.badge {
  position: absolute;
  top: -0.8rem;
  left: 1.2rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin: 0;
}

.price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin: 0;
}

.price span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0;
}

.price-blurb {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card .check-list li {
  font-size: 0.92rem;
}

.price-card.enterprise {
  background: var(--navy-900);
}

.price-card.enterprise h2,
.price-card.enterprise .price {
  color: #fff;
}

.price-card.enterprise .price span {
  color: rgba(255, 255, 255, 0.6);
}

.price-card.enterprise .price-blurb {
  color: rgba(255, 255, 255, 0.75);
}

.price-card.enterprise .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.table-title {
  margin-bottom: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-top: 1px solid var(--line);
}

.compare-table thead th {
  border-top: none;
  background: var(--mist);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.compare-table td.yes {
  color: var(--teal);
  font-weight: 800;
}

.compare-table td.no {
  color: var(--faint);
}

.fine-print {
  color: var(--faint);
  font-size: 0.88rem;
  margin-top: 1.2rem;
  max-width: 72ch;
}

/* ---------- Case studies ---------- */

.case-study {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.case-head {
  max-width: 780px;
}

.case-logo {
  justify-content: flex-start;
  color: var(--navy-800);
  min-height: 0;
  margin-bottom: 0.6rem;
}

.case-meta {
  color: var(--faint);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-body {
  max-width: 780px;
}

.case-body p {
  color: var(--ink);
}

.case-body .quote {
  margin-top: 1.6rem;
}

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

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

/* Two SVG-specific gotchas, both verified in a browser rather than assumed:
   1. `transform: rotate(180deg)` is silently dropped on an <svg> element — the
      property is treated as the SVG presentation attribute, whose grammar
      rejects the deg unit. The standalone `rotate` property is unambiguous.
   2. Transitioning `rotate` on an <svg> parks the value at 0deg, so the icon
      never flips. Untransitioned, it flips correctly. The flip is instant by
      necessity, which also means there is no reduced-motion case to handle. */
.faq-chevron {
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  rotate: 180deg;
}

.faq-item summary h2 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
}

.faq-item > p {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.demo-form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.optional {
  font-weight: 500;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--danger);
}

.error-msg {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0;
  font-weight: 600;
}

.form-alert {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.form-alert p {
  margin: 0;
  color: var(--danger);
  font-size: 0.95rem;
}

/* Honeypot: visually removed, still in the accessibility-hidden DOM for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside h2 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}

.contact-aside h2:first-child {
  margin-top: 0;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* The /about section that states the property is fictional. */
.disclosure-note {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

/* Still an <ol>, so the order is in the markup; the icons carry it visually. */
.steps-list {
  list-style: none;
  padding-left: 0;
  color: var(--muted);
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.step-icon {
  color: var(--teal);
  margin-top: 0.12em;
}

.ref-line {
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.ref-code {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-strong);
  background: var(--teal-soft);
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
}

.roles-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.roles-list strong {
  color: var(--navy-900);
}

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

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-wordmark {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-legal {
  padding-top: 1.6rem;
}

.footer-legal p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Legible rather than fine print: this is the line that says the company is
   invented, and burying it would defeat the point of having it. */
.footer-disclosure {
  color: rgba(255, 255, 255, 0.72) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.1rem;
  margin-bottom: 0.6rem !important;
  max-width: 70ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split,
  .split-rev {
    grid-template-columns: 1fr;
  }

  .split-rev > .feature-panel {
    order: -1;
  }

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

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

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

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--navy-900);
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.25rem 1.2rem;
    gap: 0.2rem;
    box-shadow: var(--shadow);
  }

  .site-nav > a {
    padding: 0.6rem 0.2rem;
    border-bottom: none;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-top: 0.6rem;
    text-align: center;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    transform: rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(-90deg) translateX(-7px);
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }

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

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

  * {
    transition: none !important;
  }
}

/* ---------- Client-rendered panels ---------- */

/* Prices, comparison cells, and case-study figures are fetched from /api/…
   after load. Each skeleton mirrors the box its real content will occupy, so
   the layout doesn't jump when the data lands. */

.skeleton-line {
  display: block;
  height: 0.85em;
  margin: 0.3em 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line) 25%, var(--mist) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton-sheen 1.4s ease-in-out infinite;
}

.skeleton-line-short {
  width: 62%;
}

/* Metric bands: a tall value line over one or two label lines, each occupying
   the line box its text will. */
.skeleton-metric-value {
  height: calc(clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem) * 1.6);
  width: 62%;
  margin: 0 auto;
  padding: 1rem 0;
  background-clip: content-box;
}

.skeleton-labels {
  display: block;
}

.skeleton-metric-label {
  height: 1.472rem; /* .metric-band span line box: 0.92rem × 1.6 */
  width: 88%;
  margin: 0 auto;
  padding: 0.29rem 0;
  background-clip: content-box;
}

.skeleton-metric-label.skeleton-line-short {
  width: 58%;
}

.metric-band .skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12) 25%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.12) 75%
  );
  background-size: 200% 100%;
}

.metric-band-light .skeleton-line {
  background: linear-gradient(90deg, var(--line) 25%, #e7eef4 50%, var(--line) 75%);
  background-size: 200% 100%;
}

/* Price card: the amount over the cadence, then one bullet per real highlight.
   Each of these occupies exactly the line box its text will occupy — the height
   is the line box, the padding insets the visible bar (background-clip keeps
   the shimmer off the padding). The card is the right height before the fetch
   lands, so nothing below it moves. */
.skeleton-price {
  height: 3.36rem; /* .price line box: 2.1rem × 1.6 */
  width: 7.5rem;
  margin: 0;
  padding: 0.63rem 0;
  background-clip: content-box;
}

.skeleton-cadence {
  height: 1.36rem; /* .price span line box: 0.85rem × 1.6 */
  width: 11rem;
  margin: 0;
  padding: 0.28rem 0;
  background-clip: content-box;
}

.check-list li[aria-hidden="true"] {
  padding-left: 0;
}

.check-list li[aria-hidden="true"]::before {
  content: none;
}

.skeleton-bullet {
  height: 1.472rem; /* .price-card .check-list line box: 0.92rem × 1.6 */
  margin: 0;
  padding: 0.29rem 0;
  background-clip: content-box;
}

.skeleton-cell {
  width: 4.5rem;
  max-width: 100%;
  margin: 0.15em 0;
}

/* An inline figure withheld from the prose around it. */
.figure.is-loading {
  display: inline-block;
  width: 3.1em;
  height: 0.8em;
  vertical-align: baseline;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line) 25%, var(--mist) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton-sheen 1.4s ease-in-out infinite;
}

.case-meta .figure.is-loading {
  width: 14em;
}

h2 .figure.is-loading {
  width: 2.2em;
  height: 0.7em;
}

@keyframes skeleton-sheen {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.panel-error {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
  list-style: none;
  text-align: left;
}

.metric-band .panel-error {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.metric-band-light .panel-error {
  color: var(--muted);
}

.panel-error-wide {
  grid-column: 1 / -1;
}

.table-wrap .panel-error {
  padding: 0 1rem 0.9rem;
}

/* How many cards fit across decides how wide a card is, and a card's width
   decides which highlights wrap — so the second reserved line follows the card,
   not the viewport. See BULLET_BUCKETS in src/lib/panels.js. */
.price-card {
  container-type: inline-size;
}

.skeleton-bullet-wrap-330,
.skeleton-bullet-wrap-280 {
  display: none;
}

@container (max-width: 330px) {
  .skeleton-bullet-wrap-330 {
    display: block;
  }
}

@container (max-width: 280px) {
  .skeleton-bullet-wrap-280 {
    display: block;
  }
}

/* Below this the band is one column, so its labels stop wrapping. */
@media (max-width: 430px) {
  .skeleton-metric-label:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .figure.is-loading {
    animation: none;
    background: var(--line);
  }

  .metric-band .skeleton-line {
    background: rgba(255, 255, 255, 0.16);
  }
}
