/* ILX Connection public site. Tokens follow ilxstudio.com assets/site.css (blue #1a70ff, light #f4f6f9,
   dark #080d18, system fonts, 1100 px column, frosted sticky nav). Light / dark follows the system unless the
   visitor picks one with the toggle (html[data-theme], site/static/theme.js). No external fonts or CDNs. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --blue: #1a70ff; --blue-2: #1559d6; --blue-dim: #0d4bb5;
  --bg: #f4f6f9; --bg2: #ffffff; --bg3: #eef1f6;
  --text: #243044; --heading: #0f172a; --muted: #4f5d6e; --faint: #6b7787;
  --border: rgba(15,23,42,0.12); --border-2: rgba(26,112,255,0.35);
  --green: #15803d; --amber: #92400e; --amber-bg: #fef3c7;
  --nav-bg: rgba(244,246,249,0.86);
  --shadow: 0 1px 2px rgba(15,23,42,0.05), 0 10px 30px rgba(15,23,42,0.06);
  --grid-line: rgba(15,23,42,0.05);
  --maxw: 1100px;
  --ci-line: #2a3950;
  --ci-st-t: #f1f4f8; --ci-st-l: #c3cedc; --ci-st-r: #93a2b7;
  --ci-pt-t: #bcd5ff; --ci-pt-l: #5b97ff; --ci-pt-r: #1f63dc;
  --ci-bo-t: #7d8ba0; --ci-bo-l: #3c4a60; --ci-bo-r: #222d40;
  --ci-we-t: #f08a6f; --ci-we-l: #d24b33; --ci-we-r: #a53221;
  --ci-co-t: #eceae4; --ci-co-l: #d2cdc2; --ci-co-r: #aea797;
  --ci-ho: #3a4860;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue-2: #60a5fa; --bg: #080d18; --bg2: #0d1525; --bg3: #111e35;
    --text: #e2e8f0; --heading: #ffffff; --muted: #a3b1c4; --faint: #8090a6;
    --border: rgba(255,255,255,0.10); --border-2: rgba(96,165,250,0.35);
    --green: #4ade80; --amber: #fcd34d; --amber-bg: rgba(252,211,77,0.12);
    --nav-bg: rgba(8,13,24,0.85); --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.25);
    --grid-line: rgba(255,255,255,0.04);
    --ci-line: #070c17;
    --ci-st-t: #b7c3d4; --ci-st-l: #7d8ea8; --ci-st-r: #56667f;
    --ci-pt-t: #a9caff; --ci-pt-l: #4a8bff; --ci-pt-r: #1b58c9;
    --ci-bo-t: #6c7a90; --ci-bo-l: #2c374b; --ci-bo-r: #18202f;
    --ci-we-t: #ff977c; --ci-we-l: #e25a3f; --ci-we-r: #b13b27;
    --ci-co-t: #b3aea3; --ci-co-l: #8b867b; --ci-co-r: #67635a;
    --ci-ho: #0b1322;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue-2: #60a5fa; --bg: #080d18; --bg2: #0d1525; --bg3: #111e35;
  --text: #e2e8f0; --heading: #ffffff; --muted: #a3b1c4; --faint: #8090a6;
  --border: rgba(255,255,255,0.10); --border-2: rgba(96,165,250,0.35);
  --green: #4ade80; --amber: #fcd34d; --amber-bg: rgba(252,211,77,0.12);
  --nav-bg: rgba(8,13,24,0.85); --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.25);
  --grid-line: rgba(255,255,255,0.04);
  --ci-line: #070c17;
  --ci-st-t: #b7c3d4; --ci-st-l: #7d8ea8; --ci-st-r: #56667f;
  --ci-pt-t: #a9caff; --ci-pt-l: #4a8bff; --ci-pt-r: #1b58c9;
  --ci-bo-t: #6c7a90; --ci-bo-l: #2c374b; --ci-bo-r: #18202f;
  --ci-we-t: #ff977c; --ci-we-l: #e25a3f; --ci-we-r: #b13b27;
  --ci-co-t: #b3aea3; --ci-co-l: #8b867b; --ci-co-r: #67635a;
  --ci-ho: #0b1322;
  color-scheme: dark;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 60; background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--heading); font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { color: var(--heading); text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand b { color: var(--blue-2); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; font-size: 0.92rem; }
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--heading); text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-actions .btn { white-space: nowrap; }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border); color: var(--muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--heading); border-color: var(--border-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem; box-shadow: var(--shadow); display: none;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-actions .signin { display: none; }
  .nav-links .mobile-only { display: block; }
}
.nav-links .mobile-only { display: none; }
@media (max-width: 420px) { .site-nav .bar { padding: 0.5rem 1rem; } .nav-actions .btn { padding: 0.5rem 0.75rem; font-size: 0.82rem; } .brand span.name { font-size: 0.95rem; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 0.7rem 1.35rem; border-radius: 8px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; text-align: center; line-height: 1.3; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #1560e0; color: #fff; }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--heading); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------------- Sections ---------------- */
section { padding: 3.5rem 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 0.5rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.section-head { margin-bottom: 2rem; }

.hero {
  position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(900px 480px at 85% -10%, rgba(26,112,255,0.16), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero h1 b { color: var(--blue-2); }
.hero .lead { margin-bottom: 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(26,112,255,0.12); color: var(--blue-2); border: 1px solid var(--border-2); padding: 0.2rem 0.65rem; border-radius: 999px;
}
.hero .badge { margin-bottom: 1rem; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.hero-tiles figure { margin: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem 0.4rem 0.5rem; text-align: center; box-shadow: var(--shadow); }
.hero-tiles .ci-icon { width: 72px; height: 72px; display: block; margin: 0 auto; }
.hero-tiles figcaption { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 3rem 0 2.5rem; } }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.3rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }
.card .ci-icon { width: 64px; height: 64px; display: block; flex: none; }

.family { display: grid; grid-template-columns: 64px 1fr; gap: 0.25rem 1rem; align-items: start; }
.family h3 { margin: 0.15rem 0 0.2rem; }
.family p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.family .members { grid-column: 1 / -1; margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.family .members li { display: grid; grid-template-columns: 48px 1fr; gap: 0.75rem; align-items: start; border-top: 1px solid var(--border); padding-top: 0.7rem; }
.family .members .ci-icon { width: 48px; height: 48px; }
.family .members strong { color: var(--heading); display: block; }
.family .members span { color: var(--muted); font-size: 0.9rem; }
.shot-slot {
  grid-column: 1 / -1; margin-top: 0.9rem; aspect-ratio: 12 / 5; border: 1px dashed var(--border-2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 0.82rem; background: var(--bg3);
}
.shot-slot.inline { grid-column: auto; margin-top: 0; aspect-ratio: 4 / 3; align-self: center; }
/* Screenshots (site/static/screens, tools/site_screenshots.mjs). width/height attributes + height:auto reserve the
   space before the image loads. A light / dark pair follows the site theme like the colour tokens above. */
.shot { display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg3); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
a.shot { transition: border-color 0.15s, transform 0.15s; }
a.shot:hover { border-color: var(--blue-2); }
.shot .shot-dark { display: none; }
:root[data-theme="dark"] .shot .shot-light { display: none; }
:root[data-theme="dark"] .shot .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot .shot-dark { display: block; }
}
.card-shot { grid-column: 1 / -1; margin-top: 0.9rem; aspect-ratio: 16 / 9; }
/* Image overlay (site/static/lightbox.js): an image link opens here over a dimmed page; a click outside the picture,
   Esc or the close button closes it. Colours from the tokens above, so it follows the light / dark theme. */
.lb-open, .lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 4rem 2.5rem; background: rgba(8,13,24,0.9); opacity: 0; transition: opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; max-width: 100%; max-height: 100%; }
.lb-img {
  display: block; max-width: 100%; max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem); width: auto; height: auto;
  object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); box-shadow: var(--shadow);
  transform: scale(0.96); transition: transform 0.18s ease; cursor: default;
}
.lightbox.is-open .lb-img { transform: none; }
.lb-cap { color: #e2e8f0; font-size: 0.9rem; text-align: center; max-width: 70ch; line-height: 1.4; }
.lb-cap[hidden] { display: none; }
.lb-count { position: absolute; top: 1.1rem; left: 1.25rem; color: #a3b1c4; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 999px; background: var(--bg2); color: var(--heading); border: 1px solid var(--border); cursor: pointer;
  padding: 0; box-shadow: var(--shadow);
}
.lb-btn:hover { border-color: var(--blue-2); color: var(--blue-2); }
.lb-btn:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn[hidden], .lb-count[hidden] { display: none; }
.lb-close { top: 0.75rem; right: 0.75rem; }
.lb-prev { left: 0.75rem; top: 50%; margin-top: -22px; }
.lb-next { right: 0.75rem; top: 50%; margin-top: -22px; }
@media (max-width: 640px) {
  .lightbox { padding: 3.75rem 0.75rem 4.5rem; }
  .lb-img { max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); }
  .lb-prev, .lb-next { top: auto; bottom: 0.9rem; margin-top: 0; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-img { transition: none; } .lb-img { transform: none; } }
@media print { .lightbox { display: none !important; } }
/* Feature cards are narrow: zoom 1.5x into the editor (inputs, status, drawings), skipping the project panel. The
   link opens the full screenshot. The box has a fixed aspect ratio, so nothing shifts while it loads. */
.card-shot img { width: 150%; max-width: none; margin-left: -24%; }
.fit-wide .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.home-sheet { align-self: center; background: #fff; }
.group-block + .group-block { margin-top: 2.75rem; }
.group-block > h2 { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.group-block > h2 .count { font-size: 0.85rem; color: var(--faint); font-weight: 500; }

.family-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.family-list li { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.family-list h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.family-list .types { color: var(--muted); font-size: 0.9rem; margin: 0; }
.family-list .icons { display: flex; gap: 0.25rem; margin-bottom: 0.4rem; }
.family-list .ci-icon { width: 40px; height: 40px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.42rem; width: 1rem; height: 0.55rem; border-left: 2.5px solid var(--blue-2); border-bottom: 2.5px solid var(--blue-2); transform: rotate(-45deg); }

.claim { border-left: 4px solid var(--blue); padding: 1rem 1.25rem; background: var(--bg2); border-radius: 0 12px 12px 0; font-size: 1.08rem; color: var(--heading); box-shadow: var(--shadow); }
.notice { font-size: 0.86rem; color: var(--muted); }

/* ---------------- Pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 0.6rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--heading); line-height: 1.1; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan .check-list { margin: 0.4rem 0 1rem; flex: 1; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.plan.soon { opacity: 0.72; filter: grayscale(0.6); }
.plan.soon .price { color: var(--muted); }
.plan .ribbon { align-self: flex-start; }
.ribbon-soon { background: var(--bg3); color: var(--muted); border-color: var(--border); }

form.interest { display: grid; gap: 0.9rem; max-width: 38rem; }
form.interest label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--heading); font-size: 0.92rem; }
form.interest .opt { font-weight: 400; color: var(--faint); }
form.interest input, form.interest textarea {
  font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.75rem; width: 100%;
}
form.interest input:focus, form.interest textarea:focus { border-color: var(--blue); outline: 2px solid rgba(26,112,255,0.35); outline-offset: 0; }
form.interest textarea { min-height: 7rem; resize: vertical; }
form.interest .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 0.7rem 0.9rem; border-radius: 8px; font-weight: 600; }
.form-msg.ok { background: rgba(22,163,74,0.12); color: var(--green); }
.form-msg.err { background: rgba(220,38,38,0.10); color: #dc2626; }
:root[data-theme="dark"] .form-msg.err { color: #f87171; }

/* ---------------- Account pages (/signup, /verify, /forgot, /reset) ---------------- */
.account-section { padding-top: 3rem; }
.account-wrap { max-width: 34rem; }
.account-card { padding: 1.75rem 1.75rem 1.4rem; }
.account-card h1 { font-size: 1.7rem; }
form.account { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
form.account .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { form.account .row2 { grid-template-columns: 1fr; } .account-card { padding: 1.25rem 1.1rem; } }
form.account label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--heading); font-size: 0.92rem; }
form.account label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; color: var(--text); }
form.account label.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; flex: none; }
form.account .opt { font-weight: 400; color: var(--faint); }
form.account input:not([type=checkbox]) {
  font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.75rem; width: 100%;
}
form.account input.code { font-size: 1.35rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 12rem; }
form.account input:focus { border-color: var(--blue); outline: 2px solid rgba(26,112,255,0.35); outline-offset: 0; }
form.account input[aria-invalid="true"] { border-color: #dc2626; }
form.account .field-err { color: #dc2626; font-weight: 500; font-size: 0.85rem; }
:root[data-theme="dark"] form.account .field-err { color: #f87171; }
form.account .hint { margin: -0.5rem 0 0; }
form.account .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
form.account button[type=submit] { justify-self: start; }
.account-foot { margin: 1.1rem 0 0; }
.account-help { text-align: center; margin-top: 1rem; }

/* ---------------- FAQ ---------------- */
.faq details { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 0.2rem 1.1rem; }
.faq details + details { margin-top: 0.6rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--heading); padding: 0.75rem 0; list-style-position: outside; }
.faq details p { margin: 0 0 0.9rem; color: var(--text); }

/* ---------------- Page header, prose, legal ---------------- */
.page-head { padding-top: 3rem; padding-bottom: 1.5rem; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.legal-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; font-size: 0.92rem; }

/* ---------------- Verification ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin: 1.5rem 0; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 1.8rem; color: var(--heading); line-height: 1.15; }
.stat span { color: var(--muted); font-size: 0.86rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--heading); background: var(--bg3); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(26,112,255,0.12); color: var(--blue-2); font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------------- Gallery / videos placeholders ---------------- */
.placeholder {
  aspect-ratio: 16 / 10; border: 1px dashed var(--border-2); border-radius: 12px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--faint); padding: 1rem; font-size: 0.9rem;
}
/* ---------------- Videos (/videos, /videos/<slug>, manual links) ---------------- */
.video-section { padding-top: 0.5rem; }
.video-section + .video-section { padding-top: 0; }
.video-section-title { font-size: 1.5rem; margin: 0 0 0.25rem; }
.video-section-text { margin: 0 0 1.25rem; }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #080d18; overflow: hidden; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.video-thumb:hover img, .video-thumb:focus-visible img { transform: scale(1.03); }
.video-thumb .placeholder { height: 100%; aspect-ratio: auto; border-radius: 0; border-width: 0 0 1px; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(26,112,255,0.92); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.video-play svg { margin-left: 3px; }
.video-thumb .video-len { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(8,13,24,0.82); color: #fff; border-color: transparent; }
.video-body { padding: 1rem 1.2rem 1.15rem; }
.video-body h3 { font-size: 1.08rem; margin: 0 0 0.35rem; }
.video-body h3 a { color: var(--heading); text-decoration: none; }
.video-body h3 a:hover { color: var(--blue-2); text-decoration: underline; }
.video-body p { margin: 0 0 0.5rem; }
.video-manual { font-size: 0.9rem; }
.video-len { font-size: 0.8rem; font-weight: 600; color: var(--muted); background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.55rem; white-space: nowrap; }
.video-head .eyebrow a { color: inherit; text-decoration: none; }
.video-head .eyebrow a:hover { text-decoration: underline; }
.video-page-wrap { display: grid; gap: 1.5rem; max-width: 1000px; }
.video-player { padding: 0; overflow: hidden; }
.video-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #080d18; }
.video-player > .placeholder { aspect-ratio: 16 / 9; border-radius: 12px 12px 0 0; border-width: 0 0 1px; }
.video-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; margin: 0; }
.transcript h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.transcript h3 { font-size: 0.95rem; margin: 1rem 0 0.3rem; }
.transcript p { font-size: 0.95rem; color: var(--text); margin: 0 0 0.6rem; max-width: 70ch; }
.video-chapters { padding: 1rem 1.2rem; }
.video-chapters h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.video-chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.video-chapters a { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.3rem 0.45rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.video-chapters a:hover, .video-chapters a:focus-visible { background: var(--bg3); color: var(--blue-2); }
.video-chapters a.on { background: var(--bg3); color: var(--blue-2); font-weight: 600; }
.video-chapter-time { flex: none; min-width: 3.2em; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue-2); }
.video-more h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.video-more ul { margin: 0; padding-left: 1.1rem; }
.video-more li { margin: 0.2rem 0; }
.manual-videos { display: grid; gap: 0.5rem; margin: 0 0 1.25rem; }
.manual-video { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; border: 1px solid var(--border-2); border-radius: 10px;
  background: var(--bg3); color: var(--text); text-decoration: none; }
.manual-video:hover { border-color: var(--blue); }
.manual-video b { color: var(--blue-2); margin-right: 0.35rem; }
.manual-video .video-play { position: static; transform: none; width: 32px; height: 32px; flex: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .video-thumb img { transition: none; } }
figure.tile { margin: 0; }
figure.tile figcaption { margin-top: 0.5rem; font-weight: 600; color: var(--heading); }
figure.tile figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }

/* ---------------- Manual ---------------- */
.manual { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2.25rem; padding: 2rem 0 3rem; }
@media (max-width: 900px) { .manual { grid-template-columns: 1fr; gap: 1rem; } }
.manual-side { position: sticky; top: 4.25rem; align-self: start; max-height: calc(100vh - 5rem); overflow: auto; padding-right: 0.25rem; }
@media (max-width: 900px) { .manual-side { position: static; max-height: none; } .manual-side .toc { display: none; } .manual-side.open .toc { display: block; } }
.manual-side .toc-toggle { display: none; width: 100%; margin-top: 0.6rem; }
@media (max-width: 900px) { .manual-side .toc-toggle { display: block; } }
.toc { list-style: none; margin: 0.75rem 0 0; padding: 0; font-size: 0.9rem; }
.toc a { display: block; padding: 0.28rem 0.5rem; border-radius: 6px; color: var(--muted); }
.toc a:hover { background: var(--bg3); color: var(--heading); text-decoration: none; }
.toc a[aria-current="page"] { color: var(--blue-2); font-weight: 600; background: rgba(26,112,255,0.08); }
.toc ul { list-style: none; padding-left: 0.75rem; margin: 0.1rem 0 0.4rem; border-left: 1px solid var(--border); }
.toc ul a { font-size: 0.84rem; padding: 0.18rem 0.5rem; }
.search input {
  width: 100%; font: inherit; font-size: 0.92rem; padding: 0.55rem 0.75rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text);
}
.search-results { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.86rem; }
.search-results li { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); }
.search-results li a { font-weight: 600; }
.search-results li span { display: block; color: var(--muted); }
.manual-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.2rem; padding-top: 0.25rem; }
.doc h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.doc h4 { font-size: 1rem; margin-top: 1.2rem; }
.doc :is(h2, h3, h4) { scroll-margin-top: 4.5rem; }
.doc [id] { scroll-margin-top: 4.5rem; }
.doc .permalink { margin-left: 0.4rem; color: var(--faint); font-weight: 400; opacity: 0; }
.doc :is(h2, h3, h4):hover .permalink, .doc .permalink:focus { opacity: 1; }
.doc img { display: block; height: auto; border: 1px solid var(--border); border-radius: 8px; margin: 0.5rem 0 1rem; background: #fff; }
.doc ul, .doc ol { padding-left: 1.5rem; }
.doc li { margin-bottom: 0.3rem; }
.doc li > p { margin-bottom: 0.4rem; }
.doc blockquote { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--blue); background: var(--bg2); border-radius: 0 8px 8px 0; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88em; background: var(--bg3); padding: 0.1rem 0.3rem; border-radius: 4px; }
.doc pre { background: var(--bg3); padding: 0.8rem 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.85rem; }
.doc pre code { background: none; padding: 0; }
.doc .table-wrap { margin: 0.5rem 0 1.25rem; }
.doc-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.doc-pager a { display: block; max-width: 48%; }
.doc-pager span { display: block; font-size: 0.78rem; color: var(--faint); }
.print-chapter + .print-chapter { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }

/* ---------------- CTA band + footer ---------------- */
.cta-band { text-align: center; padding: 3.5rem 0; }
.cta-band .cta-row { justify-content: center; }
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 2.5rem 0 2rem; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--heading); }
.foot-notes { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.82rem; display: grid; gap: 0.3rem; }

@media print {
  .site-nav, .site-footer, .manual-side, .doc-pager, .skip, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .manual { display: block; padding: 0; }
  .doc a { color: #000; }
  .doc img { max-width: 100%; page-break-inside: avoid; }
  .print-chapter { page-break-before: always; border: none !important; margin: 0 !important; padding: 0 !important; }
  .print-chapter:first-of-type { page-break-before: auto; }
  .doc h2, .doc h3 { page-break-after: avoid; }
}
