/* ==========================================================================
   CentralCtrl — marketing site
   Cupertino v2 tokens. Content-first, one typeface (system), muted Tiffany
   primary. Quality comes from type, spacing, and rhythm — not decoration.
   No animation beyond short functional transitions.
   ========================================================================== */

:root {
  /* Primary — muted Tiffany */
  --t50: #eaf6f4;
  --t100: #c7e8e3;
  --t200: #9ad4cc;
  --t400: #4ba29a;
  --t600: #2f8079;
  --t800: #1f5651;

  /* Neutrals */
  --page: #fbfbfc;
  --surface: #f5f5f7;
  --white: #ffffff;
  --rule: #ececee;
  --rule-soft: #f0f0f2;
  --rule-strong: #dcdce0;
  --faint: #b3b0a8;
  --muted: #8a877f;
  --soft: #5b5953;
  --ink: #1d1d1f;

  /* Complementary — used only where they carry meaning */
  --honey50: #faf4e8;
  --honey800: #614818;
  --peri50: #eef0fa;
  --peri800: #313a63;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii */
  --r-control: 10px;
  --r-panel: 18px;
  --r-pill: 980px;

  /* Elevation — soft, low-opacity, never a hard drop */
  --e0: 0 1px 2px rgba(0, 0, 0, 0.04);
  --e1: 0 4px 14px rgba(0, 0, 0, 0.06);
  --e2: 0 10px 30px rgba(0, 0, 0, 0.09);

  /* Motion */
  --fast: 120ms;
  --base: 180ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Measure */
  --gutter: 48px;
  --max: 1080px;
}

/* Large displays: one root ramp, 16px -> 18px across the 1440p band, built in
   rem so it multiplies the user's own text-size setting. */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
@media (min-width: 1280px) {
  html {
    font-size: calc(16px + 2 * ((100vw - 1280px) / 640));
  }
}
@media (min-width: 1920px) {
  html {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

/* Page does not scroll behind the mobile menu overlay. */
body.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 0.9375rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--t100);
  color: var(--t800);
}

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

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

section {
  padding: 96px 0;
  scroll-margin-top: 70px;
}

/* Alternating bands carry the rhythm — no rules needed between them. */
.band {
  background: var(--surface);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 600;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 600;
}

/* The one place the primary tints a headline. */
h1 em,
h2 em {
  font-style: normal;
  color: var(--t600);
}

/* Section label — mono, tracked, with an optional index. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 0.6875rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t800);
  font-variant-numeric: tabular-nums;
}
.eyebrow i {
  font-style: normal;
  color: var(--soft);
}
.eyebrow i::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--rule-strong);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 60ch;
}

p {
  color: var(--soft);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}
.section-head h2 {
  margin-top: 18px;
}
.section-head .lead {
  margin-top: 18px;
  font-size: 1.0625rem;
}

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

/* Brand spectrum bar. The mark's fixed spectrum in its documented order —
   page chrome only, never inside the interface. */
.brandbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 3px;
  background: linear-gradient(
    90deg,
    #08cbbd,
    #1775ff,
    #7440df,
    #dc1f63,
    #ffb000,
    #35d883
  );
}

.nav {
  position: sticky;
  top: 3px;
  z-index: 50;
  height: 58px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.8) blur(14px);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand lockup — mirrors the production AppLogo (CCTRL-Core globals.css).
   The mark never animates (brand rule). */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  text-decoration: none;
  flex: none;
  color: var(--ink);
}
.logo-symbol {
  display: block;
  width: var(--logo-symbol);
  height: var(--logo-symbol);
  flex: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: var(--logo-text-gap);
  min-width: 0;
}
.wordmark {
  color: currentColor;
  font-family: var(--sans);
  font-size: var(--logo-wordmark);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark b {
  /* "Ctrl" stays heavier to mark the shift from intent to control. The extra
     tracking was tuned for all-caps and reads wrong on mixed case, so it goes. */
  font-weight: 700;
  letter-spacing: 0;
}
/* Letter-spaced to span the full width of the wordmark. */
.logo-tagline {
  display: block;
  width: 100%;
  color: var(--soft);
  font-family: var(--sans);
  font-size: var(--logo-tagline);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--logo-tagline-tracking);
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.logo--sm {
  --logo-symbol: 26px;
  --logo-wordmark: 16px;
  --logo-tagline: 6px;
  --logo-tagline-tracking: 0.2em;
  --logo-text-gap: 4px;
}
.logo--md {
  --logo-symbol: 34px;
  --logo-wordmark: 20px;
  --logo-tagline: 8px;
  --logo-tagline-tracking: 0.24em;
  --logo-text-gap: 6px;
}

.nav nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav nav a {
  font: 500 0.8125rem/1 var(--sans);
  color: var(--soft);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 9px;
  transition:
    color var(--fast) var(--ease),
    background var(--fast) var(--ease);
}
.nav nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
.nav nav a.active {
  color: var(--ink);
  background: var(--surface);
}

/* ---------------------------------------------------------- links ------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 11px 20px;
  border-radius: var(--r-control);
  background: var(--t600);
  color: var(--white);
  font: 600 0.8125rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--e0);
  transition:
    background var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.button:hover {
  background: var(--t800);
  box-shadow: var(--e1);
}

.button-quiet {
  background: var(--white);
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: none;
}
.button-quiet:hover {
  background: var(--surface);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.8125rem/1 var(--sans);
  color: var(--t800);
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.hero {
  padding: 104px 0 88px;
}
.hero h1 {
  margin-top: 22px;
  max-width: 21ch;
}
.hero .lead {
  margin-top: 26px;
  font-size: 1.1875rem;
  max-width: 56ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Fact band — plain statements, set as a measured row. No chart. */
.facts {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts span {
  padding: 22px 20px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--soft);
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}
.facts span:first-child {
  border-left: 0;
  padding-left: 0;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  padding: 28px;
  box-shadow: var(--e1);
  transition:
    border-color var(--base) var(--ease),
    box-shadow var(--base) var(--ease);
}
.card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--e2);
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.card .num {
  font: 600 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  display: block;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

/* Whole-card links (applications index). */
.app-card {
  text-decoration: none;
  color: inherit;
}
.app-card h3 {
  color: var(--ink);
}

/* Maturity chips — the tints carry meaning (status), not decoration.
   800-step text on the 50-step fill keeps small text at AA. */
.chip {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  font: 600 0.625rem/1 var(--sans);
  letter-spacing: 0.03em;
}
.card .chip {
  margin-top: 22px;
}
.chip-core {
  background: var(--t50);
  color: var(--t800);
}
.chip-evolving {
  background: var(--honey50);
  color: var(--honey800);
}
.chip-ops {
  background: var(--peri50);
  color: var(--peri800);
}

/* --------------------------------------------------------- lists -------- */

/* Bordered rows — the calm alternative to a card grid. */
.rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.rows > div {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--rule);
}
.rows > div:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}
.rows h3 {
  margin-bottom: 9px;
}
.rows p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.rows .num {
  font: 600 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--t800);
  display: block;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

/* Two-up variant — for four-item sections. */
.rows-2 {
  grid-template-columns: repeat(2, 1fr);
}
.rows-2 > div:not(:nth-child(3n + 1)) {
  padding-left: 0;
  border-left: 0;
}
.rows-2 > div:not(:nth-child(2n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

/* FAQ rows read as questions, so the heading carries the weight. */
.faq h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}
.faq p {
  font-size: 0.875rem;
}

/* Ordered steps — a list, not a diagram. */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.steps > div {
  padding-top: 18px;
  border-top: 2px solid var(--t400);
}
.steps b {
  font: 600 0.6875rem/1 var(--mono);
  color: var(--t800);
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: 0.9375rem;
  margin-bottom: 7px;
}
.steps p {
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Two-column prose. */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.split p + p {
  margin-top: 16px;
}
.split h2 {
  margin-top: 18px;
}

/* Tag row */
.tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--rule);
  font: 500 0.75rem/1 var(--sans);
  color: var(--soft);
}

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

/* The documented dark-mode token set (Foundations > Dark mode). Tokens invert,
   colors do not: the page goes near-black, and the primary brightens one step
   to hold contrast. Used for the closing band so each page ends on emphasis. */
.dark {
  --page: #161618;
  --surface: #202023;
  --rule: #2a2a2e;
  --rule-strong: #3a3a41;
  --ink: #f2f2f4;
  --soft: #b5b3ae;
  --t600: #4ba29a;
  --t800: #6fbcb3;
  background: #161618;
  color: #f2f2f4;
}
.dark h1,
.dark h2,
.dark h3 {
  color: #f2f2f4;
}
.dark p,
.dark .lead,
.dark .note {
  color: #b5b3ae;
}
.dark .eyebrow {
  color: #6fbcb3;
}
.dark .eyebrow i {
  color: #b5b3ae;
}
.dark .eyebrow i::after {
  background: #3a3a41;
}
.dark h1 em,
.dark h2 em {
  color: #6fbcb3;
}
.dark .button {
  background: #f2f2f4;
  color: #161618;
}
.dark .button:hover {
  background: #ffffff;
}
.dark .button-quiet {
  background: transparent;
  color: #f2f2f4;
  border-color: #3a3a41;
}
.dark .button-quiet:hover {
  background: #202023;
}
.dark a:focus-visible,
.dark button:focus-visible {
  outline-color: #6fbcb3;
}

/* --------------------------------------------------------- closing ------ */

.closing {
  text-align: center;
  padding: 104px 0;
}
.closing .eyebrow {
  justify-content: center;
}
.closing h2 {
  margin-top: 18px;
}
.closing .lead {
  margin: 20px auto 0;
  text-align: center;
}
.closing .hero-actions {
  justify-content: center;
}

.note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--soft);
  margin-top: 22px;
  max-width: 62ch;
}
.closing .note {
  margin-inline: auto;
}

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

footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 30ch;
}
/* Footer group labels are real headings (h2) so no page skips a level;
   they are styled as small labels, not as display type. */
.footer-title {
  margin: 0 0 16px;
  font: 600 0.6875rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Breadcrumb — wayfinding on nested application pages. */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  color: var(--soft);
}
.breadcrumb a {
  color: var(--soft);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--t800);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb span[aria-hidden] {
  color: var(--rule-strong);
}
.breadcrumb [aria-current] {
  color: var(--ink);
}
.footer-col a {
  display: block;
  margin-bottom: 11px;
  font: 400 0.8125rem/1.4 var(--sans);
  color: var(--soft);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--t800);
}
.footer-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--soft);
}

/* ---------------------------------------------------- legal pages ------- */

.legal-hero {
  padding: 80px 0 32px;
}
.legal-hero h1 {
  margin-top: 18px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}
.legal-updated {
  margin-top: 16px;
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.legal {
  padding: 0 0 104px;
}
.legal-body {
  max-width: 70ch;
}
.legal-body h2 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}
.legal-body p,
.legal-body li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--soft);
}
.legal-body p {
  margin-bottom: 15px;
}
.legal-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
}
.legal-body ul {
  margin: 0 0 15px;
  padding-left: 20px;
}
.legal-body li {
  margin-bottom: 7px;
}
.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-body a {
  color: var(--t800);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.notfound {
  padding: 128px 0;
  text-align: center;
}
.notfound .eyebrow {
  justify-content: center;
}
.notfound h1 {
  margin: 18px 0 0;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}
.notfound p {
  margin: 20px auto 0;
  max-width: 46ch;
}
.notfound .hero-actions {
  justify-content: center;
}

/* ----------------------------------------------------- back to top ------ */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--e2);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--base) var(--ease),
    visibility var(--base) var(--ease),
    background var(--fast) var(--ease);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
}
.to-top:hover {
  background: var(--surface);
}
/* Chevron drawn in CSS — 1.75px stroke, matching the icon spec. */
.to-top i {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 1.75px solid currentColor;
  border-left: 1.75px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}
body.menu-open .to-top {
  display: none;
}
@media (max-width: 768px) {
  .to-top {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------- focus & a11y --------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--t600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: var(--r-control);
  background: var(--t600);
  color: var(--white);
  font: 600 0.8125rem/1 var(--sans);
  text-decoration: none;
  transform: translateY(-72px);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mobile-panel {
  display: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle i::before {
  transform: translateY(-5.5px);
}
.menu-toggle i::after {
  transform: translateY(3.75px);
}

@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }
  .split {
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .rows {
    grid-template-columns: repeat(2, 1fr);
  }
  .rows > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .rows > div:not(:nth-child(2n + 1)) {
    padding-left: 28px;
    border-left: 1px solid var(--rule);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 64px 0;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
  }
  .facts span {
    padding-top: 18px;
  }
  .facts span:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .closing {
    padding: 72px 0;
  }

  /* Nav collapses to a disclosure panel. */
  .nav nav {
    display: none;
  }
  .nav .nav-inner > .button {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  /* Full-height overlay below the pinned header (3px brandbar + 58px nav). */
  .mobile-panel.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--page);
    padding: 16px 0 max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-panel .wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
  }
  .mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    border-radius: var(--r-control);
    font: 500 1.0625rem/1 var(--sans);
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
  }
  .mobile-panel a:last-of-type {
    border-bottom: 0;
  }
  .mobile-panel a:hover,
  .mobile-panel a:active {
    background: var(--surface);
  }
  .mobile-panel .button {
    margin-top: auto;
    justify-content: center;
    min-height: 48px;
    font-size: 0.9375rem;
    color: var(--white);
    border-bottom: 0;
  }
  /* Toggle becomes a close control while the overlay is open. */
  .menu-toggle[aria-expanded="true"] i {
    background: transparent;
  }
  .menu-toggle[aria-expanded="true"] i::before {
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] i::after {
    transform: rotate(-45deg);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .rows {
    grid-template-columns: 1fr;
  }
  .rows > div,
  .rows > div:not(:nth-child(2n + 1)) {
    padding: 24px 0;
    border-left: 0;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts span,
  .facts span:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    padding-top: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-legal {
    margin-top: 40px;
  }
}

/* All motion is a short, functional transition — and optional. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* ----------------------------------------------------------- print ------ */
/* Legal pages get printed. Drop the chrome, keep the words readable. */
@media print {
  .brandbar,
  .nav,
  .mobile-panel,
  .skip-link,
  .breadcrumb,
  .hero-actions,
  footer nav,
  .footer-col {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  section,
  .band,
  .dark {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }
  .dark h1,
  .dark h2,
  .dark p {
    color: #000 !important;
  }
  .wrap {
    width: 100%;
  }
  .legal-body {
    max-width: none;
  }
  .legal-body a {
    color: #000;
    text-decoration: underline;
  }
  /* Expand link targets so a printed policy stays verifiable. */
  .legal-body a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
