/* Ignition public site.
   Layout concept: a charcoal "cab" band at the top and bottom (where the flame lives),
   light working pages between, one diagonal stripe band like the rear of an apparatus,
   and headings set in a heavy condensed face like truck-door lettering.
   Colours and body type follow the app (app/templates/base.html). */

/* ---------- Barlow Condensed 600/700/800, self-hosted (SIL Open Font License 1.1, (c) The Barlow Project Authors) ---------- */
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-condensed-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-condensed-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --band:        #1b2127;  /* nav, hero, footer: the app's charcoal */
  --band-2:      #232b33;  /* raised surface on the band */
  --band-line:   #3a4550;
  --band-fg:     #f3f5f7;
  --band-muted:  #aeb9c5;
  --accent:      #00a8ff;  /* electric blue: fills and borders, dark text on it */
  --accent-hover:#33b9ff;
  --accent-ink:  #1b2127;  /* text on the accent */
  --accent-text: #1f6f9c;  /* blue as text on light */
  --accent-tint: #e3f4ff;
  --page:        #f0f2f4;
  --surface:     #e8eaed;
  --surface-2:   #ffffff;
  --line:        #d1d5db;
  --line-strong: #9ca3af;
  --fg:          #111827;
  --muted:       #5b6472;
  --green:       #15803d;
  --amber:       #b45309;
  --red:         #b91c1c;
  --todo-bg:     #fff4d6;
  --todo-fg:     #6b4a00;
  --todo-line:   #d9a400;

  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 0.5rem;
  --max: 72rem;
  --measure: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band: #0f1418; --band-2: #182026; --band-line: #2c3640; --band-fg: #f3f5f7; --band-muted: #aeb9c5;
    --accent-text: #5cc6ff; --accent-tint: #13314a;
    --page: #161c22; --surface: #1e262e; --surface-2: #232c35; --line: #333e49; --line-strong: #56636f;
    --fg: #e8ecf0; --muted: #a3afbb;
    --green: #4ade80; --amber: #fbbf24; --red: #f87171;
    --todo-bg: #3a2f10; --todo-fg: #ffe08a; --todo-line: #b38900;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --band: #0f1418; --band-2: #182026; --band-line: #2c3640; --band-fg: #f3f5f7; --band-muted: #aeb9c5;
  --accent-text: #5cc6ff; --accent-tint: #13314a;
  --page: #161c22; --surface: #1e262e; --surface-2: #232c35; --line: #333e49; --line-strong: #56636f;
  --fg: #e8ecf0; --muted: #a3afbb;
  --green: #4ade80; --amber: #fbbf24; --red: #f87171;
  --todo-bg: #3a2f10; --todo-fg: #ffe08a; --todo-line: #b38900;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.75rem 1rem; font-weight: 700; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: 0.5rem; }

/* Width wrapper: every band uses it so the side gutter is set in one place. */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 8.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }
.prose { display: grid; gap: 1rem; justify-items: start; }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.55rem 1.2rem;
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
.btn-ghost:hover { background: var(--band-2); border-color: var(--band-muted); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--line); border-color: var(--line-strong); }

/* ---------- Owner placeholders: grep for "OWNER:" ---------- */
.todo {
  background: var(--todo-bg); color: var(--todo-fg);
  border: 1px dashed var(--todo-line); border-radius: 4px;
  padding: 0.05rem 0.4rem; font-size: 0.92em; font-weight: 600;
}
div.todo, p.todo { display: block; padding: 0.75rem 1rem; }

/* ---------- Top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--band); border-bottom: 1px solid var(--band-line); }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--band-fg); text-decoration: none; margin-right: auto; }
.brand img { width: 1.9rem; height: auto; }
.brand span { font: 700 1.1rem/1 var(--font-body); color: var(--band-fg); }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--band-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-fg); border-bottom-color: var(--accent); }
.topbar .btn { min-height: 2.6rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
@media (min-width: 56rem) { .nav { display: flex; } }

/* Small-screen nav: a plain disclosure, no script */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--band-fg); border: 2px solid var(--band-line); border-radius: var(--radius); min-height: 2.6rem; padding: 0.35rem 0.75rem; font-weight: 600; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--accent); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--band-2); border: 1px solid var(--band-line); border-radius: var(--radius); padding: 0.5rem; display: grid; min-width: 13rem; }
.menu-panel a { color: var(--band-fg); text-decoration: none; padding: 0.7rem 0.8rem; border-radius: 4px; font-weight: 600; }
.menu-panel a:hover { background: var(--band); }
@media (min-width: 56rem) { .menu { display: none; } }
@media (max-width: 23rem) { .topbar .btn { display: none; } }
@media (max-width: 40rem) { .topbar .login { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--band); color: var(--band-fg); }
.hero .wrap { display: grid; gap: 2.5rem; padding-block: 3.5rem 3rem; align-items: center; }
.hero h1 { color: var(--band-fg); max-width: 13ch; }
.hero h1 .nosig { color: var(--accent); }
.hero .lede { color: var(--band-muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-flame { justify-self: center; width: min(16rem, 62vw); }
.hero-flame img { width: 100%; height: auto; display: block; }
.byline { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--band-muted); font-size: 0.95rem; border-top: 1px solid var(--band-line); padding-top: 1.25rem; max-width: var(--measure); }
.byline svg { flex: none; color: var(--accent); margin-top: 0.15rem; }
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1.55fr 1fr; padding-block: 5rem 4.5rem; }
  .hero-flame { width: 100%; max-width: 21rem; justify-self: end; }
}
/* Page heads on inner pages reuse the band, shorter */
.pagehead { background: var(--band); color: var(--band-fg); }
.pagehead .wrap { padding-block: 3rem 2.75rem; display: grid; gap: 1rem; }
.pagehead .lede { color: var(--band-muted); }

/* The one bold device: an apparatus rear-chevron band, drawn as SVG (no gradient). */
.chevron {
  height: 1.1rem;
  background-color: var(--band);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 18 L18 0 L30 0 L12 18 Z' fill='%2300a8ff'/%3E%3C/svg%3E");
  background-size: 2.2rem 1.1rem;
  background-repeat: repeat-x;
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: 2.25rem; max-width: 46rem; }
.kicker { font: 700 1.05rem/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--accent-text); }

/* Apps: two primary panels, then a row of three */
.apps-main { display: grid; gap: 1rem; }
.apps-more { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 48rem) { .apps-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .apps-more { grid-template-columns: repeat(3, 1fr); } }
.app {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: grid; gap: 1rem; align-content: start; min-width: 0;
}
.apps-main .app { border-top: 4px solid var(--accent); padding: 1.75rem; }
.app-title { display: flex; align-items: center; gap: 0.65rem; }
.app-title svg { color: var(--accent-text); flex: none; }
.app ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.app li { padding-left: 1.1rem; position: relative; }
.app li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 2px; background: var(--accent); }
.app .lead { color: var(--muted); }
.apps-more .app h3 { font-size: 1.35rem; }

/* No-signal sequence */
.offline { background: var(--surface); }
.offline-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .offline-grid { grid-template-columns: 1fr 1.3fr; gap: 3rem; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line-strong); }
.steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.steps .bars { display: flex; align-items: flex-end; gap: 3px; height: 1.6rem; margin-top: 0.15rem; }
.steps .bars i { display: block; width: 6px; background: var(--line-strong); border-radius: 1px; }
.steps .bars i:nth-child(1) { height: 25%; } .steps .bars i:nth-child(2) { height: 50%; } .steps .bars i:nth-child(3) { height: 75%; } .steps .bars i:nth-child(4) { height: 100%; }
.steps .bars i.on { background: var(--accent); }
.steps strong { display: block; font: 700 1.3rem/1.1 var(--font-display); margin-bottom: 0.25rem; }
.steps p { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.92rem; margin-top: 0.4rem; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--green); } .status.warn { color: var(--amber); } .status.bad { color: var(--red); }
.status span { color: var(--fg); font-weight: 500; }

/* NERIS strip: one block, easy to remove */
.neris { background: var(--surface-2); border-block: 1px solid var(--line); }
.neris .wrap { display: grid; gap: 1.5rem; padding-block: 2.5rem; align-items: center; }
.neris-badge { width: 8.5rem; height: 8.5rem; flex: none; }
.neris-badge img { width: 100%; height: auto; display: block; }
.neris-copy { display: grid; gap: 0.6rem; max-width: 44rem; min-width: 0; }
.neris-copy h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
@media (min-width: 40rem) { .neris .wrap { grid-template-columns: auto 1fr; gap: 2.25rem; } }

/* Every size */
.sizes { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .sizes { grid-template-columns: 1fr 1fr; } }
.size { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 1.75rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.size.dark { background: var(--band); color: var(--band-fg); border-color: var(--band); }
.size.dark .muted { color: var(--band-muted); }
.size ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.muted { color: var(--muted); }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 48rem) { .roadmap { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.roadmap li { display: flex; gap: 0.75rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); align-items: baseline; min-width: 0; }
.roadmap b { font: 700 1.2rem/1.2 var(--font-display); flex: none; min-width: 9.5rem; }
.roadmap span { color: var(--muted); }
@media (max-width: 30rem) { .roadmap li { flex-direction: column; gap: 0.1rem; } .roadmap b { min-width: 0; } }

/* Facts list (security, every size) */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 52rem; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 0.35rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .facts li { grid-template-columns: 14rem 1fr; gap: 1.5rem; } }
.facts b { font: 700 1.25rem/1.15 var(--font-display); }
.facts p { color: var(--muted); }
.notyet li b { color: var(--muted); }

/* Trial form */
.trial { background: var(--band); color: var(--band-fg); }
.trial .wrap { padding-block: 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .trial .wrap { grid-template-columns: 1fr 1.25fr; gap: 4rem; } }
.trial .lede { color: var(--band-muted); }
.trial-points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; color: var(--band-muted); }
.trial-points li { padding-left: 1.1rem; position: relative; }
.trial-points li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 2px; background: var(--accent); }
form.request { display: grid; gap: 1.1rem; background: var(--band-2); border: 1px solid var(--band-line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
@media (min-width: 40rem) { form.request { grid-template-columns: 1fr 1fr; padding: 2rem; } .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { color: var(--band-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.75rem;
  font: 1rem/1.4 var(--font-body); color: var(--band-fg);
  background: var(--band); border: 1px solid var(--band-line); border-radius: var(--radius);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.consent { color: var(--band-muted); font-size: 0.95rem; }
.form-done { border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.4rem; }
.trial .todo { font-size: 0.85rem; }

/* Pricing model */
.tiers { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 1.5rem; display: grid; gap: 0.75rem; align-content: start; }
.tier h3 { font-size: 1.5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--band); color: var(--band-muted); font-size: 0.95rem; }
.footer .wrap { padding-block: 3rem 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand img { width: 9.5rem; height: auto; }
.footer h2 { font-size: 1.15rem; color: var(--band-fg); margin-bottom: 0.6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer a { color: var(--band-fg); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--band-line); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer .version { grid-column: 1 / -1; font-family: monospace; font-size: 0.8rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s, border-color .15s, color .15s; }
}

/* Trial form: spam trap (kept off screen, not display:none, so simple bots still fill it) and error box */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.request { position: relative; }
.form-error { border: 1px solid var(--red); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.4rem; }
.btn:disabled { opacity: 0.7; cursor: progress; }
