/* Level Up Media Group — site styles
   Brand colors live in :root below. Change them here and every page updates. */

@font-face {
  font-family: "LU Display";
  src: url("/assets/fonts/adventor-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LU Display";
  src: url("/assets/fonts/adventor-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LU Text";
  src: url("/assets/fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LU Text";
  src: url("/assets/fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (from the Level Up logo package) */
  --navy: #0B1F3B;        /* midnight navy */
  --blue: #1769FF;        /* electric blue */
  --teal: #20C9A6;        /* signal teal */
  --white: #FFFFFF;

  /* Derived tones */
  --abyss: #050E1C;       /* page background */
  --navy-2: #122B52;      /* raised surfaces, hover */
  --line: #22406B;        /* borders and dividers */
  --text: #EDF2F9;        /* body text on dark */
  --muted: #A9B8CE;       /* secondary text on dark */
  --blue-hi: #3D82FF;     /* button hover */
  --blue-text: #7AAAFF;   /* links on dark */
  --paper: #EEF2F7;       /* light section background */
  --ink: #0B1F3B;         /* text on light */
  --ink-muted: #3E5272;   /* secondary text on light */
  --ink-link: #0F55D6;    /* links on light */

  --font-display: "LU Display", "Century Gothic", "URW Gothic", "Avant Garde", "Trebuchet MS", sans-serif;
  --font-text: "LU Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius-u: 3px 3px 12px 12px; /* echoes the U-shaped base of the monogram */
  --header-h: 72px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.35rem + 4.1vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 600; }

a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--white); }

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

::selection { background: var(--blue); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  background: var(--teal);
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--navy); }

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

.lede {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius-u);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--navy-2); border-color: var(--blue-text); color: var(--white); }
.btn--small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(34, 64, 107, 0.6);
}
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 14, 28, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 6px 0; }
.brand img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.nav__link:hover { color: var(--white); background: var(--navy); }
.nav__link[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-u);
  background: var(--navy);
  color: var(--text);
  font: 600 0.95rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 1px);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--abyss);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    width: 100%;
    min-height: 56px;
    padding: 0.75rem 0.25rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text);
  }
  .nav__link:hover { background: transparent; color: var(--blue-text); }
  .nav__link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--teal); padding-left: 1rem; }
  .nav__cta { margin: 0.5rem 0 0; width: 100%; min-height: 54px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand img { width: 128px; }
  .nav-toggle__label { display: none; }
}
@media (max-width: 400px) {
  .ladder__here { display: none !important; }
}
.nav__email { display: none; }
@media (max-width: 1040px) {
  .nav__email {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 44px;
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
  }
  .nav__email:hover { color: var(--white); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.section--rule { border-top: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section__head p { color: var(--muted); }

/* Light section — used once per page at most, for disclosure content */
.paper { background: var(--paper); color: var(--ink); }
.paper h2, .paper h3 { color: var(--ink); }
.paper p, .paper li { color: var(--ink-muted); }
.paper a { color: var(--ink-link); }
.paper a:hover { color: var(--ink); }
.paper :focus-visible { outline-color: var(--blue); }
.paper .btn { color: var(--white); }
.paper .btn--ghost { color: var(--ink); border-color: #9AAAC2; }
.paper .btn--ghost:hover { background: #DDE5F0; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2.5rem + 5vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* faint chart-paper grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(34, 64, 107, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 64, 107, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
.hero h1 { max-width: 13ch; margin-bottom: 0.45em; }
.hero__lede { color: var(--muted); }
.hero__note { margin-top: 1.5rem; font-size: 0.92rem; color: var(--muted); }
.hero__note a { color: var(--muted); }
.hero__note a:hover { color: var(--white); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Level ladder (signature element) ---------- */
.ladder { position: relative; }
.ladder__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.ladder__hint { font-size: 0.88rem; color: var(--muted); margin: -0.6rem 0 1rem; }
.ladder__steps {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ladder__step {
  --i: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: calc(100% - var(--i) * clamp(10px, 3.4vw, 46px));
  margin-left: calc(var(--i) * clamp(10px, 3.4vw, 46px));
  min-height: 58px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--navy);
  color: var(--text);
  font: 700 1.02rem/1.2 var(--font-display);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ladder__step:hover { border-color: var(--blue-text); background: var(--navy-2); }
.ladder__step--l1 { --i: 0; }
.ladder__step--l2 { --i: 1; }
.ladder__step--l3 { --i: 2; }
.ladder__step--l4 { --i: 3; }
.ladder__step--l5 { --i: 4; }
.ladder__step[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: inset 5px 0 0 var(--teal);
}
.ladder__num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid currentColor;
  border-radius: 3px 3px 9px 9px;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.ladder__name { flex: 1 1 auto; }
.ladder__step[aria-selected="true"] .ladder__here { display: inline; }
.ladder__here {
  display: none;
  flex: 0 0 auto;
  font: 600 0.78rem/1 var(--font-text);
  color: var(--navy);
  background: var(--teal);
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
}
.ladder__panels { margin-top: 1rem; }
.ladder__panel {
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  background: linear-gradient(180deg, var(--navy) 0%, rgba(11, 31, 59, 0.55) 100%);
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 0 0 12px 12px;
}
.ladder__panel + .ladder__panel { margin-top: 0.75rem; }
.ladder__panel h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.ladder__panel p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.75rem; }
.ladder__panel ul { margin: 0 0 0.9rem; padding-left: 1.1rem; color: var(--text); font-size: 0.95rem; }
.ladder__panel li { margin-bottom: 0.25rem; }
.ladder__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.95rem; font-weight: 600; }
.ladder__panel[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .ladder__step { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .ladder__panel.is-switching { animation: panel-in 0.25s ease both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Problem columns ---------- */
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0;
}
.columns > div { border-top: 2px solid var(--blue); padding-top: 1.1rem; }
.columns dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.6rem; }
.columns dd { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .columns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service rows ---------- */
.rowlist { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rowlist__item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.6rem 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.rowlist__item:hover { background: var(--navy); color: var(--text); }
.rowlist__name { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); font-weight: 700; line-height: 1.15; }
.rowlist__item:hover .rowlist__name { color: var(--blue-text); }
.rowlist__desc { color: var(--muted); }
.rowlist__for { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
@media (max-width: 820px) {
  .rowlist__item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding: 1.35rem 0.25rem; }
  .rowlist__for { justify-content: flex-start; }
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.tag--public { border-color: rgba(122, 170, 255, 0.5); color: var(--blue-text); }
.tag--private { border-color: rgba(32, 201, 166, 0.5); color: var(--teal); }

/* ---------- Split (public / private) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split__half { background: var(--abyss); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: flex; flex-direction: column; }
.split__half h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
.split__half ul { padding-left: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; }
.split__half li { margin-bottom: 0.45rem; }
.split__half .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps (real sequences only) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  counter-reset: step;
}
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--teal);
  border-radius: 3px 3px 10px 10px;
  color: var(--teal);
  font: 700 1rem/1 var(--font-display);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 3.1rem;
  right: -0.5rem;
  height: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.paper .steps li::before { border-color: var(--blue); color: var(--blue); }
.steps--stack { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-top: 0.5rem; }
.steps--stack li { padding-top: 0; padding-left: 3.1rem; min-height: 2.2rem; }
.steps--stack li::before { width: 2.1rem; height: 2.1rem; font-size: 0.9rem; }
.steps--stack li::after { display: none; }
.steps--stack h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.steps--stack p { font-size: 0.93rem; }
.aside-box + .aside-box { margin-top: 1.25rem; }
.aside-box--next { border-top-color: var(--teal); }
@media (max-width: 900px) {
  .steps, .steps--3 { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .steps li { padding-top: 0; padding-left: 3.4rem; min-height: 2.4rem; }
  .steps li::after { display: none; }
}

/* ---------- Disclosure block ---------- */
.disclose { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.disclose h2 { max-width: 14ch; }
.never { list-style: none; margin: 0 0 1.75rem; padding: 0; border-top: 1px solid #C9D3E1; }
.never li { display: flex; gap: 0.85rem; align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid #C9D3E1; color: var(--ink); font-weight: 600; }
.never li::before { content: ""; flex: 0 0 auto; width: 12px; height: 2px; background: var(--blue); transform: translateY(-0.3em); }
@media (max-width: 900px) { .disclose { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Channel list ---------- */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.channels > div { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.channels dt { font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.channels dd { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .channels { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 1.1rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--blue-text);
  border-bottom: 2px solid var(--blue-text);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--blue-text); }
.faq .faq__a { padding: 0 0.25rem 1.25rem; color: var(--muted); max-width: 70ch; }
.faq .faq__a p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem); }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(23, 105, 255, 0.22), transparent 60%), var(--abyss); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 820px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); max-width: 18ch; }
.page-hero .lede { color: var(--muted); }
.page-hero__meta { margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }

.crumbs { margin: 0 0 1.5rem; font-size: 0.88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 32px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- Two-column content ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }
.aside-box { border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--navy); padding: 1.5rem; border-radius: 0 0 12px 12px; }
.aside-box h2, .aside-box h3 { font-size: 1.2rem; }
.aside-box ul { padding-left: 1.1rem; margin: 0 0 1rem; color: var(--muted); }
.aside-box p { color: var(--muted); font-size: 0.97rem; }
.aside-box .btn { width: 100%; }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .sticky-aside { position: static; } }

.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li { position: relative; padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.25rem; top: 1.25rem;
  width: 0.7rem; height: 0.38rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--text); display: block; }
.checklist span { color: var(--muted); }

.callout { border-left: 3px solid var(--teal); background: var(--navy); padding: 1.1rem 1.25rem; margin: 2rem 0; border-radius: 0 6px 6px 0; }
.callout p { margin: 0; color: var(--text); }
.callout p + p { margin-top: 0.6rem; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related a { display: block; background: var(--abyss); padding: 1.35rem; color: var(--text); text-decoration: none; }
.related a:hover { background: var(--navy); }
.related strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.35rem; }
.related a:hover strong { color: var(--blue-text); }
.related span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Levels table ---------- */
.table-wrap { border: 1px solid var(--line); }
.levels-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.levels-table caption { text-align: left; padding: 1rem 1.1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.levels-table th, .levels-table td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.levels-table thead th { color: var(--muted); font-weight: 600; font-size: 0.88rem; background: var(--navy); }
.levels-table tbody th { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.levels-table tbody tr:last-child th, .levels-table tbody tr:last-child td { border-bottom: 0; }
.levels-table td { color: var(--muted); }
@media (max-width: 720px) {
  .levels-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .levels-table, .levels-table tbody, .levels-table tr, .levels-table th, .levels-table td { display: block; width: 100%; }
  .levels-table tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .levels-table tbody tr:last-child { border-bottom: 0; }
  .levels-table tbody th { white-space: normal; padding-bottom: 0.25rem; border: 0; }
  .levels-table td { border: 0; padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .levels-table td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); }
}

/* ---------- Prose (legal and long-form pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 2.6rem; padding-top: 0.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #D3DDEA; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--blue-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem; border: 1px solid var(--line); }
.prose th { background: var(--navy); color: var(--text); font-weight: 600; }
.prose td { color: #D3DDEA; }
.prose .caps { text-transform: none; font-weight: 600; color: var(--text); }
.prose-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.92rem; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc h2 { font-family: var(--font-text); font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-bottom: 0.75rem; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--white); box-shadow: inset 2px 0 0 var(--teal); }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--line); padding: 1rem 1.1rem; background: var(--navy); }
}

/* ---------- Glossary ---------- */
.glossary-index { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.glossary-index a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 3px; color: var(--text); text-decoration: none; font-size: 0.92rem; }
.glossary-index a:hover { border-color: var(--blue-text); color: var(--white); }
.terms { margin: 0; max-width: 78ch; }
.terms > div { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.terms dt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.45rem; }
.terms dd { margin: 0; color: #D3DDEA; }
.terms dd p:last-child { margin-bottom: 0; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-weight: 600; font-size: 0.97rem; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #34548A;
  border-radius: 4px;
  background: var(--navy);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-text); /* 16px+ prevents zoom on iOS */
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-text) 50%), linear-gradient(135deg, var(--blue-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input::placeholder, .field textarea::placeholder { color: #7D90AD; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FF8A8A; }
.field__error { color: #FFB3B3; font-size: 0.9rem; min-height: 0; }
.field__error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.6rem; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
@media (max-width: 640px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 44px; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-weight: 400 !important; }
.check:hover { border-color: var(--blue-text); }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { border: 1px solid var(--teal); border-left-width: 4px; background: var(--navy); padding: 1.1rem 1.25rem; border-radius: 0 6px 6px 0; }
.form-status h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.form-status p { color: var(--muted); margin-bottom: 0.9rem; }
.form-status[hidden] { display: none; }

.email-card { display: grid; gap: 0.75rem; }
.email-card__addr { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); word-break: break-all; color: var(--white); text-decoration: none; }
.email-card__addr:hover { color: var(--blue-text); }
.copy-btn[data-copied="true"], .copy-btn[data-copied="true"]:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #040B16; padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem) 2rem; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__brand img { width: 170px; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); max-width: 34ch; }
.footer__email { font-weight: 600; }
.footer__col h2 { font-family: var(--font-text); font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; letter-spacing: 0; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: 0; }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.footer__legal p { max-width: 110ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound__code { font: 700 clamp(4rem, 3rem + 8vw, 9rem)/0.9 var(--font-display); color: var(--blue); margin: 0 0 1rem; letter-spacing: -0.04em; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn-row, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .prose p, .prose li, .prose td { color: #000; }
  a { color: #000; }
}
