/* Fire Hub RMS public site. Shares its colors with the app. */
:root{
  --navy:#0E1A2B; --navy-2:#16263D; --navy-line:#2A3A52; --navy-text:#C3CDDB;
  --ink:#121A26; --muted:#4A5466; --line:#DCE1E8; --ground:#F3F5F8; --paper:#FFFFFF;
  --blue:#1D5FD1; --blue-dark:#174BA6; --red:#C2271B; --red-dark:#9B1D14; --amber:#F2B544;
  --head:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --wrap:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);font-size:17px;line-height:1.6;color:var(--ink);background:var(--paper)}
img,svg{max-width:100%}
a{color:var(--blue)}
a:hover{color:var(--blue-dark)}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:3px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:0;background:var(--amber);color:var(--ink);padding:8px 12px;z-index:10}
.skip:focus{left:8px;top:8px}

/* Header */
.site-head{background:var(--navy);color:#fff}
.site-head .bar{display:flex;align-items:center;gap:24px;min-height:68px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-family:var(--head);font-weight:700;font-size:24px;letter-spacing:.01em}
.brand:hover{color:#fff}
.brand .mark{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.nav{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.nav a{color:var(--navy-text);text-decoration:none;font-weight:500;font-size:15px;padding:10px 12px;border-radius:8px}
.nav a:hover{color:#fff;background:var(--navy-2)}
.nav a[aria-current="page"]{color:#fff}
.nav a.demo{color:#fff;border:1px solid var(--navy-line);margin-left:6px}

/* Type */
h1,h2,h3{font-family:var(--head);font-weight:700;line-height:1.02;letter-spacing:.005em;margin:0}
h1{font-size:clamp(44px,7vw,84px)}
h2{font-size:clamp(32px,4.4vw,48px)}
h3{font-size:24px;line-height:1.1}
p{margin:0 0 1em}
.lede{font-size:clamp(18px,2.1vw,21px);color:var(--muted);max-width:640px}
.on-dark .lede{color:var(--navy-text)}

/* Buttons */
.btn{display:inline-block;font-family:var(--body);font-weight:600;font-size:16px;text-decoration:none;border-radius:10px;padding:14px 22px;line-height:1.2}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark);color:#fff}
.btn-quiet{color:#fff;border:1px solid var(--navy-line)}
.btn-quiet:hover{background:var(--navy-2);color:#fff}

/* Hero */
.hero{background:var(--navy);color:#fff;padding:56px 0 72px;overflow:hidden}
.hero .grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:center}
.hero h1{max-width:9.5em}
.hero .lede{margin:22px 0 30px}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}

/* Station-board call card (the one memorable element) */
.board{background:#0A1321;border:1px solid var(--navy-line);border-radius:16px;padding:14px;box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
.board-top{display:flex;justify-content:space-between;align-items:center;color:var(--navy-text);font-size:13px;padding:2px 6px 12px}
.board-top .live{display:inline-flex;align-items:center;gap:8px}
.board-top .dot{width:8px;height:8px;border-radius:50%;background:#3FBF6A}
.call{background:var(--red);border-radius:12px;padding:20px 22px 18px;color:#fff;position:relative}
.call .unit{font-family:var(--head);font-weight:700;font-size:22px;opacity:.92}
.call .type{font-family:var(--head);font-weight:700;font-size:clamp(40px,5.4vw,60px);line-height:.95;margin:6px 0 10px;min-height:1.9em;display:flex;flex-direction:column;justify-content:flex-end}
.call .type .was{font-size:.42em;opacity:.75;text-decoration:line-through;text-decoration-thickness:2px}
.call .addr{font-size:18px;font-weight:600}
.call .meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;margin-top:10px;opacity:.92}
.board-rows{display:grid;gap:8px;margin-top:10px}
.row{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--navy-2);border-radius:10px;padding:11px 14px;font-size:14px;color:#E3E8F0}
.row .u{font-family:var(--head);font-weight:700;font-size:18px;color:#fff}
.row .st{font-size:13px;color:var(--navy-text)}
.row .ok{color:#7FD99B;font-weight:600}
@media (prefers-reduced-motion:no-preference){
  .call .type .was{animation:was .4s ease 1.6s both}
  .call .type .now{animation:now .5s ease 1.6s both}
  .call{animation:pulse 1.2s ease 1.6s 1}
  @keyframes was{from{opacity:0;transform:translateY(6px)}to{opacity:.75;transform:none}}
  @keyframes now{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgba(242,181,68,.0)}30%{box-shadow:0 0 0 6px rgba(242,181,68,.55)}100%{box-shadow:0 0 0 0 rgba(242,181,68,0)}}
}

/* Sections */
.section{padding:68px 0}
.section.tint{background:var(--ground)}
.section-head{max-width:720px;margin-bottom:40px}
.section-head .lede{margin-top:14px}

/* Modules: a list with a rule, not identical cards */
.modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:56px}
.module{padding:26px 0;border-top:2px solid var(--ink)}
.module h3{margin-bottom:8px}
.module p{color:var(--muted);margin:0}
.module .soon{display:inline-block;font-family:var(--body);font-size:13px;font-weight:600;color:var(--red-dark);background:#FBE9E7;border-radius:6px;padding:2px 8px;margin:6px 0 0;width:fit-content;display:block}

.modules.compact{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:32px}
.modules.compact .module{padding:18px 0 22px}
.modules.compact h3{font-size:22px}
.modules.compact p{font-size:15px}
.modules.three{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:40px}
.modules.three p{font-size:16px}
.more{margin:28px 0 0;font-weight:600}

/* One record, many modules */
.flow{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:start}
.chain{list-style:none;margin:0;padding:0;border-left:3px solid var(--red)}
.chain li{position:relative;padding:0 0 22px 24px}
.chain li:last-child{padding-bottom:0}
.chain li::before{content:"";position:absolute;left:-9px;top:6px;width:15px;height:15px;border-radius:50%;background:var(--paper);border:3px solid var(--red)}
.chain strong{display:block;font-family:var(--head);font-size:22px;line-height:1.1}
.chain span{color:var(--muted)}

/* Facts in two columns */
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 56px}
.fact h3{font-size:22px;margin-bottom:6px}
.fact p{color:var(--muted);margin:0}

/* Steps (a real sequence) */
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;counter-reset:step;list-style:none;padding:0;margin:0}
.steps li{counter-increment:step;border-top:2px solid var(--ink);padding-top:16px}
.steps li::before{content:counter(step);display:block;font-family:var(--head);font-weight:700;font-size:44px;line-height:1;color:var(--red);margin-bottom:8px}
.steps h3{font-size:22px;margin-bottom:6px}
.steps p{color:var(--muted);margin:0;font-size:16px}

/* Call to action band */
.cta{background:var(--navy);color:#fff;padding:64px 0}
.cta .wrap{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.cta h2{max-width:14em}
.cta p{color:var(--navy-text);margin:10px 0 0}

/* Page header for inner pages */
.page-head{background:var(--navy);color:#fff;padding:56px 0 60px}
.page-head .lede{margin-top:18px}

/* Prose pages (legal, about) */
.prose{max-width:720px}
.prose h2{font-size:30px;margin:40px 0 10px}
.prose h2:first-child{margin-top:0}
.prose .updated{color:var(--muted);font-size:15px}

/* NERIS V1 compatibility badge (shown at its own proportions only — NERIS's badge terms) */
.compat{padding-top:0}
.compat-row{display:flex;gap:28px;align-items:center;border-top:2px solid var(--ink);padding-top:32px}
.compat-row img{flex:none;width:132px;height:132px}
.compat-row h2{font-size:30px;margin-bottom:6px}
.compat-row p{color:var(--muted);margin:0;max-width:640px}
.module .compat-note{display:flex;gap:12px;align-items:center;margin-top:12px;font-size:15px}
.module .compat-note img{flex:none;width:56px;height:56px}
@media (max-width:600px){.compat-row{flex-direction:column;align-items:flex-start;gap:16px}.compat-row img{width:104px;height:104px}}

/* Footer */
.site-foot{border-top:1px solid var(--line);padding:32px 0;color:var(--muted);font-size:15px}
.site-foot .row-f{display:flex;flex-wrap:wrap;gap:16px 32px;justify-content:space-between;align-items:flex-start}
.site-foot nav{display:flex;flex-wrap:wrap;gap:8px 20px}
.site-foot a{color:var(--muted)}
.site-foot a:hover{color:var(--ink)}

@media (max-width:900px){
  .hero .grid,.flow{grid-template-columns:1fr;gap:40px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modules.compact,.modules.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  body{font-size:16px}
  .modules,.modules.compact,.modules.three,.facts{grid-template-columns:1fr}
  .modules.compact .module{padding:14px 0 16px}
  .steps{grid-template-columns:1fr}
  .section{padding:60px 0}
  .nav{margin-left:0;width:100%;padding-bottom:10px}
  .nav a{padding:8px 10px}
  .row{grid-template-columns:64px minmax(0,1fr)}
  .row .st{grid-column:2}
}
