/* ==========================================================================
   xeoverse v2 - page styles
   --------------------------------------------------------------------------
   The palette is taken from the visualiser's own design tokens
   (frontend/src/styles/tokens.css) so this page, the globe legend and the
   controller panel read as one product.

   Colour scheme, 60 / 30 / 10:
     60%  surfaces  - space navy on the dark bands, a cool off-white body
     30%  cyan      - analogous to the Earth blues: links, focus, markers
     10%  gold      - the complement of blue: reserved for the main action
   The legend colours (satellite, terminal, gateway, ISL, GSL, route,
   footprint) are used only to mean what they mean inside the tool.
   ========================================================================== */

:root {
  color-scheme: light;

  /* dark surfaces: topbar, hero, code */
  --void: #070b14;
  --panel: #0e1524;
  --panel-alt: #131c2f;
  --raised: #1a2438;
  --line-dark: #223049;
  --line-dark-bright: #2f4266;
  --text-dark: #dce5f5;
  --text-dark-dim: #8296b5;
  --text-dark-faint: #5b6d8a;

  /* light surfaces: the body */
  --paper: #f5f7fb;
  --card: #ffffff;
  --line: #dfe5ef;
  --line-strong: #c7d2e3;
  --ink: #0e1524;
  --ink-2: #3b4a63;
  --ink-3: #5b6d8a;

  /* the 30 %: cyan family */
  --cyan: #4dd0ff;
  --cyan-dim: #2a7d9e;
  --cyan-ink: #0a6f95;
  --cyan-wash: #e8f7fd;
  --cyan-line: #bfe6f5;

  /* the 10 %: gold */
  --gold: #ffd000;
  --gold-hover: #f0c400;
  --gold-wash: #fff7cc;
  --gold-line: #f0d466;
  --gold-ink: #6b5200;

  /* legend colours, verbatim from the visualiser */
  --satellite: #ffd000;
  --terminal: #00dcff;
  --gateway: #ff60c8;
  --isl: #96a5c3;
  --gsl: #50f08c;
  --route: #ff5c7a;
  --footprint: #ff9a3c;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --topbar-h: 64px;
}

/* --- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 6px; font-weight: 600;
}
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- topbar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(7, 11, 20, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-dark);
}
.topbar .container { height: 100%; display: flex; align-items: center; gap: 24px; position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-dark); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand svg { width: 26px; height: 26px; }
.brand .ver {
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.5;
  color: var(--gold); border: 1px solid rgba(255, 208, 0, 0.45); border-radius: 999px; padding: 1px 7px;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text-dark-dim); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: var(--text-dark); text-decoration: none; background: var(--raised); }
.nav a.is-active { color: var(--cyan); }
.nav a.nav-cta { color: var(--ink); background: var(--gold); margin-left: 8px; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--gold-hover); color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line-dark-bright); color: var(--text-dark);
  border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav {
    display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--panel); border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 15px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text-dark); border-color: var(--line-dark-bright); }
.btn-ghost:hover { background: var(--raised); color: #fff; }
.btn-dark { background: var(--panel); color: var(--text-dark); border-color: var(--panel); }
.btn-dark:hover { background: var(--raised); color: #fff; }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--cyan-dim); color: var(--cyan-ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--void); color: var(--text-dark); padding: 72px 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(77, 208, 255, 0.14), transparent 70%),
    radial-gradient(45% 45% at 95% 100%, rgba(255, 208, 0, 0.07), transparent 70%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.crumb { display: inline-block; font-size: 13.5px; color: var(--text-dark-faint); margin-bottom: 22px; }
.crumb:hover { color: var(--text-dark); text-decoration: none; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero .lead { font-size: 17.5px; line-height: 1.6; color: var(--text-dark-dim); max-width: 58ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.stats {
  list-style: none; margin: 0; padding: 24px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid var(--line-dark);
}
.stats strong {
  display: block; font-size: 24px; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap;
}
.stats span { display: block; font-size: 13px; color: var(--text-dark-faint); line-height: 1.4; margin-top: 2px; }
.stats-note { font-size: 12px; color: var(--text-dark-faint); margin: 12px 0 0; }
.shot { margin: 0; }
.shot-frame {
  border: 1px solid var(--line-dark-bright); border-radius: var(--radius); overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(77, 208, 255, 0.08);
}
.shot-frame img { width: 100%; display: block; }
.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dark-dim);
}
.legend > span { display: inline-flex; align-items: center; }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend .bar { display: inline-block; width: 14px; height: 2px; margin-right: 6px; }
.legend .sep { width: 1px; height: 14px; background: var(--line-dark); }
@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .stats strong { font-size: 20px; } }

/* --- sections ------------------------------------------------------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--ink-2); margin: 0; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-ink);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--cyan); border-radius: 2px; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* --- cards and grids ------------------------------------------------------ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.section-alt .card { background: var(--paper); }
.grid { display: grid; gap: 20px; }
.grid > *, .overview-grid > *, .start-grid > *, .license-grid > *, .request-grid > *, .start-code > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.prose p { color: var(--ink-2); font-size: 16.5px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.muted { color: var(--ink-3); }

/* --- overview + paper ----------------------------------------------------- */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.paper-card { position: sticky; top: calc(var(--topbar-h) + 24px); text-align: center; }
.paper-card h3 { margin-bottom: 14px; }
.paper-thumb {
  display: block; margin: 0 auto 16px; max-width: 240px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff;
  box-shadow: 0 12px 30px rgba(14, 21, 36, .10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.paper-thumb:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14, 21, 36, .16); }
.paper-meta { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin: 0 0 14px; }
.paper-meta code { font-size: 12px; color: var(--ink-3); word-break: break-all; }
.paper-card .btn { width: 100%; }
.paper-card .cite-link { display: inline-block; margin-top: 12px; font-size: 13.5px; }
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .paper-card { position: static; }
}

/* --- features box (between the hero and Overview) ------------------------- */
.features-band { padding: 44px 0 0; }
.features-box {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 24px 48px; align-items: start;
  padding: 32px 36px; border-radius: 18px;
  background: linear-gradient(135deg, #e4f5fc 0%, #f3f6fb 55%, #fff5cc 100%);
  border: 1px solid rgba(14, 21, 36, 0.08);
  box-shadow: 0 12px 32px rgba(14, 21, 36, 0.07);
}
.features-intro .kicker { margin-bottom: 8px; }
.features-intro h2 { font-size: 26px; margin-bottom: 8px; }
.features-intro p { margin: 0; font-size: 14.5px; color: var(--ink-3); }
.features-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.features-list li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.features-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent);
}
@media (max-width: 900px) {
  .features-band { padding-top: 28px; }
  .features-box { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 22px; border-radius: 14px; }
}

/* --- maintainers ---------------------------------------------------------- */
.people { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.people li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.people .avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  color: var(--gold-ink); background: var(--gold-wash); border: 1px solid var(--gold-line);
}
.people li:nth-child(2) .avatar { color: var(--cyan-ink); background: var(--cyan-wash); border-color: var(--cyan-line); }
.people strong { display: block; font-size: 16px; color: var(--ink); }
.people .role { display: block; font-size: 13px; color: var(--ink-3); }
.contact { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* --- code ----------------------------------------------------------------- */
pre.code {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  background: var(--panel); color: var(--text-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.7; tab-size: 4;
}
pre.code .c { color: var(--text-dark-faint); }
pre.code .k { color: var(--cyan); }
code.inline { background: var(--cyan-wash); color: var(--cyan-ink); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.codeblock { position: relative; }
.codeblock .copy { position: absolute; top: 10px; right: 10px; }
.codeblock .label { position: absolute; top: 12px; left: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-dark-faint); text-transform: uppercase; }
.codeblock.labelled pre.code { padding-top: 40px; }

/* --- getting started ------------------------------------------------------ */
.start-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.req li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.req li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230a6f95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.req strong { color: var(--ink); font-weight: 600; }
.start-code { display: grid; gap: 14px; }
@media (max-width: 900px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- notices -------------------------------------------------------------- */
.notice { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; line-height: 1.55; border: 1px solid; }
.notice p { margin: 0; }
.notice-warn { background: var(--gold-wash); border-color: var(--gold-line); color: var(--gold-ink); }
.notice-info { background: var(--cyan-wash); border-color: var(--cyan-line); color: #0b4f69; }
.notice strong { font-weight: 650; }
.notice a { color: inherit; text-decoration: underline; }

/* --- license -------------------------------------------------------------- */
.license-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.license-grid .copyright { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; }
.points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan-dim); box-shadow: 0 0 0 3px var(--cyan-wash);
}
.points strong { color: var(--ink); font-weight: 600; }
.license-side { display: flex; flex-direction: column; gap: 12px; }
.license-side .btn { width: 100%; }
@media (max-width: 900px) { .license-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- request access ------------------------------------------------------- */
.request-card { border-color: rgba(255, 208, 0, .6); box-shadow: 0 0 0 4px var(--gold-wash); }
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.receive { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.receive li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.receive li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230a6f95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.receive strong { color: var(--ink); font-weight: 600; }
.request-cta { display: flex; flex-direction: column; gap: 14px; }
.request-cta .btn-gold { font-size: 16px; padding: 14px 22px; }
@media (max-width: 900px) { .request-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; } }

/* --- citation ------------------------------------------------------------- */
.cite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.cite-actions code { font-size: 12.5px; color: var(--ink-3); }

/* --- footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 40px 0; color: var(--ink-3); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer img { height: 54px; width: auto; }
.footer p { margin: 0; max-width: 60ch; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-2); }
@media (max-width: 760px) { .footer-links { margin-left: 0; } }

/* --- modal (request form) ------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(7, 11, 20, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal-dialog {
  width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 18px; }
.modal-close { background: transparent; border: 0; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--paper); color: var(--ink); }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.statusMsg { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
.statusMsg:empty { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-grid .form-group { margin-bottom: 0; }
.form-group:last-child { margin-bottom: 0; }
label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form-control {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px;
}
.form-control::placeholder { color: #98a6bd; }
.form-control:focus { outline: none; border-color: var(--cyan-dim); box-shadow: 0 0 0 3px rgba(77, 208, 255, .28); }
textarea.form-control { min-height: 96px; resize: vertical; }
select.form-control {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235b6d8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.checkbox input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--cyan-ink); }
.form-hint { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
}

/* --- document pages (license) -------------------------------------------- */
.doc { max-width: 820px; margin: 40px auto 80px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 18px; }
.doc-head { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: 30px; margin-bottom: 8px; }
.doc-head p { color: var(--ink-3); margin: 0; }
.doc-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }
.doc .intro { padding: 18px 0 6px; }
.doc section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.doc h2 { font-size: 19px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul { padding-left: 22px; margin: 8px 0 12px; }
.doc li { margin: 4px 0; }
.doc .notice { margin-top: 12px; }
.doc .notice p { margin: 0; }
@media print {
  .topbar, .footer, .doc-actions, .back, .skip { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
  .doc { margin: 0; }
}
