/* OfflineMDM — site styles. Dark is the default; light is opt-in via the toggle. */

:root,
:root[data-theme="dark"] {
  --page: #0B110E;
  --surface: #141C18;
  --line: #28332D;
  --text: #E9ECE6;
  --muted: #A3ADA6;
  --body: #C9CFC7;
  --btn-bg: #E9ECE6;
  --btn-fg: #0F1714;
  --sub: #101814;
  --band: #16201C;
  --code: #070B09;
  --dash: #4A5650;
  --accent-text: #F2A93B;
  --warn-bg: #2A2011;
  --warn-line: #5C4520;
  --warn-text: #F5D9A8;
  --warn-icon: #F2A93B;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --page: #F3F4F0;
  --surface: #FFFFFF;
  --line: #D9DCD3;
  --text: #0F1714;
  --muted: #4D5751;
  --body: #2E3833;
  --btn-bg: #0F1714;
  --btn-fg: #FFFFFF;
  --sub: #F3F4F0;
  --band: #0F1714;
  --code: #0F1714;
  --dash: #9AA59E;
  --accent-text: #8A5200;
  --warn-bg: #FFF4E0;
  --warn-line: #E8C78A;
  --warn-text: #4A3200;
  --warn-icon: #8A5200;
  color-scheme: light;
}

:root {
  /* Constant in both themes */
  --accent: #F2A93B;
  --hero: #0F1714;
  --hero-line: #26302B;
  --hero-card: #16201C;
  --hero-card-line: #2E3A34;
  --hero-text: #E9ECE6;
  --hero-body: #C9CFC7;
  --hero-muted: #9AA59E;
  --hero-border: #4A5650;

  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: #0F1714; padding: 10px 16px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.display { font-family: var(--cond); font-weight: 700; line-height: 1.04; letter-spacing: -0.005em; }
.h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; }
.h1-sub { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 4vw, 52px); }
.h2-sm { font-size: 36px; line-height: 1.1; }
.h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.6; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--hero); color: var(--hero-text); border-bottom: 1px solid var(--hero-line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; font-family: var(--cond); font-weight: 700; font-size: 22px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--hero-body); text-decoration: none; padding: 10px 0; }
.nav-links a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--hero-text);
  border: 1px solid var(--hero-border); border-radius: 6px; cursor: pointer;
}
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--accent); color: #0F1714; }
.btn-ghost-dark { border-color: var(--hero-border); color: #FFFFFF; font-weight: 500; }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-outline { border-color: var(--text); color: var(--text); font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-copy h1 { color: #FFFFFF; }
.hero-copy .lead { color: var(--hero-body); max-width: 560px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 13px; color: var(--hero-muted); }

.policy-card { flex: 1 1 400px; min-width: 0; max-width: 480px; background: var(--hero-card); border: 1px solid var(--hero-card-line); border-radius: 12px; overflow: hidden; font-family: var(--mono); }
.policy-card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--hero-card-line); font-size: 13px; color: var(--hero-muted); }
.policy-card-head .status { display: inline-flex; align-items: center; gap: 8px; color: var(--hero-text); }
.policy-card dl { margin: 0; padding: 8px 20px 20px; }
.policy-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--hero-card-line); font-size: 14px; }
.policy-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.policy-card dt { color: var(--hero-body); }
.policy-card dd { margin: 0; color: var(--accent); text-align: right; }
.policy-card dd.plain { color: #FFFFFF; }
.policy-card dd.off { color: var(--hero-muted); }

.page-hero { display: flex; flex-direction: column; gap: 20px; padding-top: 72px; padding-bottom: 88px; }
.page-hero h1 { color: #FFFFFF; max-width: 860px; }
.page-hero .lead { color: var(--hero-body); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hero-border); border-radius: 999px; color: var(--hero-text); text-decoration: none; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding-top: 112px; padding-bottom: 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head h2 { max-width: 640px; }
.section-head p { font-size: 17px; color: var(--muted); max-width: 420px; }
.band-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.baselines { background: var(--surface); border-bottom: 1px solid var(--line); }
.baselines .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 28px; padding-bottom: 28px; }
.baselines .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.baselines ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--cond); font-weight: 600; font-size: 22px; }
.baselines li:last-child { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feature-grid > div { background: var(--surface); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.feature-grid p { color: var(--muted); }
.text-link { display: inline-block; margin-top: 40px; font-weight: 600; color: var(--accent-text); }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; }
.compare thead tr { background: var(--sub); }
.compare thead th { font-weight: 600; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; }
.compare .them { color: var(--muted); }
.compare .us { font-weight: 600; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.path { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.path .tag { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.path .title { font-size: 22px; font-weight: 600; }
.path .desc { color: var(--muted); }

.trust { background: var(--band); color: var(--hero-text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 104px; padding-bottom: 104px; }
.trust-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.trust-copy h2 { color: #FFFFFF; font-size: clamp(32px, 4vw, 48px); }
.trust-copy p { font-size: 17px; color: var(--hero-body); }
.trust-grid { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.trust-grid > div { padding: 24px; border: 1px solid var(--hero-card-line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.trust-grid strong { color: #FFFFFF; font-size: 17px; font-weight: 600; }
.trust-grid span { font-size: 15px; line-height: 1.55; color: var(--hero-muted); }
.trust-grid a { color: var(--accent); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 112px; padding-bottom: 112px; }
.cta h2 { max-width: 640px; }

/* ---------- Feature / guide rows ---------- */
.rows { padding-top: 32px; padding-bottom: 96px; }
.row-sec { display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.row-sec:last-of-type { border-bottom: 0; }
.row-head { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.row-head .num { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.row-head .big-num { font-family: var(--cond); font-weight: 700; font-size: 64px; line-height: 1; color: var(--accent-text); }
.row-head p { color: var(--muted); }
.row-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.row-body > p, .row-body ol { font-size: 17px; line-height: 1.65; color: var(--body); }
.row-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { font-size: 15px; color: var(--muted); }

.standout { background: var(--band); color: var(--hero-text); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.standout > div:first-child { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.standout .eyebrow { font-size: 12px; }
.standout h3 { font-size: 22px; font-weight: 600; color: #FFFFFF; }
.standout p { font-size: 15px; color: var(--hero-body); }
.standout dl { flex: 1 1 240px; min-width: 0; margin: 0; font-family: var(--mono); font-size: 14px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--hero-card-line); border-radius: 8px; }
.standout dl div { display: flex; justify-content: space-between; gap: 12px; }
.standout dt { color: var(--hero-muted); }
.standout dd { margin: 0; color: var(--accent); }
.standout dd.plain { color: #FFFFFF; }

.callout { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.callout > div { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.callout h2 { font-size: 30px; }
.callout p { color: var(--muted); }

/* Getting started */
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: -40px; position: relative; }
.picker a { background: var(--surface); padding: 24px 28px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.picker .tag { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.picker .title { font-size: 18px; font-weight: 600; }
.picker .meta { font-size: 14px; color: var(--muted); }

.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.qr-card.primary { border: 2px solid var(--text); }
.qr-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qr-card-head h3 { font-size: 20px; font-weight: 600; }
.badge { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 4px; }
.badge-solid { background: var(--btn-bg); color: var(--btn-fg); }
.badge-line { border: 1px solid var(--accent-text); color: var(--accent-text); }
.qr { align-self: center; width: 232px; max-width: 100%; padding: 16px; background: #FFFFFF; border-radius: 8px; }
.qr img { width: 100%; image-rendering: pixelated; }
.qr-card p { font-size: 15px; color: var(--muted); }
.qr-card p a { color: var(--accent-text); font-weight: 500; }

.terminal { background: var(--code); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.terminal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--hero-card-line); font-family: var(--mono); font-size: 12px; color: var(--hero-muted); }
.copy-btn { min-height: 36px; min-width: 84px; padding: 0 14px; background: transparent; border: 1px solid var(--hero-border); border-radius: 6px; color: var(--hero-text); font: 500 14px var(--sans); cursor: pointer; }
.terminal pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 15px; color: var(--hero-text); }
.terminal .prompt { color: var(--accent); user-select: none; }

.warn { display: flex; gap: 14px; padding: 20px 22px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; color: var(--warn-text); font-size: 15px; }
.warn svg { flex: none; margin-top: 2px; color: var(--warn-icon); }

/* Privacy */
.prose { max-width: 720px; padding-top: 32px; padding-bottom: 96px; }
.prose h2 { font-family: var(--cond); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--body); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--accent-text); }
.updated { font-family: var(--mono); font-size: 14px; color: var(--hero-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.footer-brand .name { font-family: var(--cond); font-weight: 700; font-size: 22px; }
.footer-brand p { font-size: 15px; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 15px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.footer-cols a { text-decoration: none; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding-top: 56px; padding-bottom: 72px; gap: 48px; }
  .section { padding-top: 80px; padding-bottom: 72px; }
  .cta { padding-top: 80px; padding-bottom: 80px; }
  .trust .wrap { padding-top: 80px; padding-bottom: 80px; }
  .nav-links .btn { width: 100%; }
  .callout { padding: 28px; }
}

/* fixes */
.trust-copy .eyebrow { color: var(--accent); font-size: 13px; }
