/* Simple Systems Management: a calm, civic look in the logo's own navy. System fonts only; no third-party requests.
   Every colour is a token; dark mode redefines the tokens, not the components. */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --tint: #e8eef6;
  --fg: #152033;
  --muted: #4d5d73;
  --line: #d3deeb;
  --navy: #163a6b;
  --navy-deep: #0f2748;
  --accent: #2f6fad;
  --accent-ink: #1f5a96;
  --on-navy: #ffffff;
  --on-navy-muted: #c9d8ea;
  --focus: #e8a33d;
  --shadow: 0 1px 2px rgba(15, 39, 72, .06), 0 10px 28px rgba(15, 39, 72, .09);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1724; --surface: #142236; --tint: #12202f; --fg: #e6edf6; --muted: #a6b7cb; --line: #263b54;
    --navy: #8db3dc; --navy-deep: #0a1523; --accent: #7fb0e0; --accent-ink: #9cc4ec;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--font-body); -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--fg); padding: 8px 14px; border-radius: 6px; z-index: 30; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
.fine { font-size: 14px; color: var(--muted); }

/* header */
.bar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font: 700 19px/1.1 var(--font-head); }
.brand img { display: block; width: auto; height: 44px; border-radius: 8px; background: #fff; padding: 2px 4px; }
.brand-foot img { height: 40px; }
.site-nav { display: flex; align-items: center; gap: 4px 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); border-color: var(--accent); }
.site-nav a.nav-signin { color: var(--on-navy); background: var(--navy-deep); border: 1px solid var(--navy-deep); padding: 8px 16px; border-radius: 8px; }
.site-nav a.nav-signin:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.menu-button { display: none; margin-left: auto; font: 600 15px var(--font-body); color: var(--fg); background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; cursor: pointer; }

/* hero */
.hero { background: var(--navy-deep) url("/static/images/hex-lattice.svg") center / 56px 100px; color: var(--on-navy); }
.hero .wrap { padding-block: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero-short .wrap { padding-block: 56px 48px; }
.hero-short .hero-grid { padding-block: 56px 48px; }
.hero .eyebrow { color: var(--on-navy-muted); }
.hero h1 { max-width: 24ch; }
.hero .lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--on-navy-muted); max-width: 60ch; margin: 18px 0 28px; }
.hero .fine { color: var(--on-navy-muted); margin-top: 18px; }
.hero-shot { margin: 0; }
.hero-shot img { display: block; width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 22px 0 0; list-style: none; font-size: 15px; color: var(--on-navy-muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; background: var(--focus); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.button { display: inline-block; font: 700 16px/1 var(--font-body); text-decoration: none; padding: 15px 24px; border-radius: 10px; border: 2px solid transparent; transition: background .15s, color .15s; }
.button-primary { background: var(--focus); color: #1b1b1b; }
.button-primary:hover { background: #f1b552; }
.button-light { background: transparent; color: var(--on-navy); border-color: rgba(255, 255, 255, .6); }
.button-light:hover { background: rgba(255, 255, 255, .12); }
.button-outline { color: var(--accent-ink); border-color: var(--accent); }
.button-outline:hover { background: var(--tint); }

/* sections */
.band { padding-block: 72px; }
.band-tint { background: var(--tint); }
.band-head { margin-bottom: 36px; max-width: 68ch; }
.band-head p { color: var(--muted); margin-top: 10px; font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.more { font-weight: 700; }
.lede-dark { font: 600 22px/1.35 var(--font-head); color: var(--navy); }
.product-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 44px; }
.product-feature .actions { margin-top: 22px; }
.product-logo { display: grid; place-items: center; }
.product-logo img { width: min(280px, 100%); border-radius: 18px; background: #fff; padding: 16px; box-shadow: var(--shadow); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px 32px; }
.points li { border-left: 3px solid var(--accent); padding-left: 18px; }
.points p { color: var(--muted); margin: 0; font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 44px; display: grid; place-items: center; background: var(--navy-deep); color: var(--on-navy); font: 700 17px var(--font-body); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps p { color: var(--muted); margin: 0; }
.module { margin-top: 40px; background: var(--surface); border: 1px dashed var(--accent); border-radius: 12px; padding: 22px 26px; }
.module p { margin: 0; color: var(--muted); }
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.access img { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.cta-band { background: var(--navy-deep) url("/static/images/hex-lattice.svg") center / 56px 100px; color: var(--on-navy); text-align: center; padding-block: 64px; }
.cta-band p { color: var(--on-navy-muted); font-size: 18px; margin: 12px 0 26px; }

.credentials { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.credentials h3 { margin: 0; font: 600 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.credentials ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.credentials li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px; }
.credit { margin: 28px 0 0; color: var(--muted); font-size: 15px; }

/* tour */
.tour-intro { padding-block: 32px 4px; }
.tour-intro p { max-width: 78ch; color: var(--muted); }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chapter-nav a { text-decoration: none; font-weight: 600; font-size: 15px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); padding: 8px 16px; border-radius: 999px; }
.chapter-nav a:hover { border-color: var(--accent); }
.chapter { padding-block: 48px 8px; }
.chapter-head { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
.chapter-head p:last-child { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 26px; box-shadow: var(--shadow); }
.player { margin: 0; min-width: 0; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; border: 1px solid var(--line); }
.player figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.copy { min-width: 0; }
.copy ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 7px; }
.copy li::marker { color: var(--accent); }
.question { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.question b { display: block; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.transcript { margin-top: 12px; font-size: 15px; color: var(--muted); }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.transcript p { margin: 8px 0 0; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; padding-block: 24px 56px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel h2 { font-size: 24px; margin-bottom: 12px; }
.panel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tour-version { font-size: 14px; color: var(--muted); padding-block: 0 24px; }

/* footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 44px 24px; }
.foot h2 { font: 700 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--accent-ink); }
.brand-foot { margin-bottom: 10px; }
.foot-legal { padding-block: 16px 36px; font-size: 14px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-grid, .product-feature, .access, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 32px; }
  .hero .wrap, .hero-short .hero-grid { padding-block: 48px 40px; }
  .band { padding-block: 52px; }
  .product-logo { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .feature { padding: 16px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.nav-signin { text-align: center; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
.points + .actions { margin-top: 32px; }
