/*
  Fenix EM: shared look for every page.
  Loaded after each page's own <style>, so anything here wins.
  Run scripts/apply-refresh.py after changing the menu or footer.
*/

/* ---------- tokens ---------- */
:root {
  --ash: #1c1a18;
  --ash-deep: #121110;
  --ash-soft: #272421;
  --ash-mid: #2b2825;
  --ember: #e07a45;
  --ember-deep: #b5562b;
  --ember-glow: #f0996b;
  --bone: #fbfaf8;
  --bone-soft: #f4f2ee;
  --bone-warm: #e6e2db;
  --bone-dim: #b3ada5;
  --slate: #46413b;
  --slate-soft: #6b655e;
  --line: rgba(251, 250, 248, 0.12);
  --line-mid: rgba(251, 250, 248, 0.22);
  --line-light: rgba(28, 26, 24, 0.10);
  --line-strong: rgba(251, 250, 248, 0.28);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-card: 20px;
  --r-ctl: 12px;
  --r-pill: 980px;
  --shadow-card: 0 1px 2px rgba(28,26,24,.04), 0 8px 28px rgba(28,26,24,.06);
  --nav-h: 60px;
}
/* option: keep the serif headlines (add class="fx-serif" to <html>) */
html.fx-serif { --font-display: "Fraunces", Georgia, serif; }

/* ---------- base ---------- */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.55; letter-spacing: -0.005em; }
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.022em; }
h1, h2, .display { font-weight: 600; line-height: 1.07; }
h3, h4 { font-weight: 600; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em, .display em { font-style: normal; }
html.fx-serif h1, html.fx-serif h2, html.fx-serif .display { font-weight: 400; }
html.fx-serif h3, html.fx-serif h4 { font-weight: 500; }
html.fx-serif h1 em, html.fx-serif h2 em, html.fx-serif h3 em, html.fx-serif .display em { font-style: italic; }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; font-weight: 600; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
img { border-radius: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(224, 122, 69, 0.28); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- nav ---------- */
nav.fx-nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); padding: 0; background: rgba(22, 20, 18, 0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(251,250,248,.08); }
.fx-nav-inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.fx-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.fx-brand img { height: 34px; width: 34px; object-fit: contain; border-radius: 0; }
.fx-brand em { font-style: normal; color: var(--ember); }
.fx-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fx-links > a, .fx-drop-btn { font: inherit; font-size: 14.5px; font-weight: 500; color: rgba(251,250,248,.82); text-decoration: none; background: none; border: 0; padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer; transition: background .2s, color .2s; }
.fx-links > a:hover, .fx-drop-btn:hover, .fx-drop.is-open .fx-drop-btn { color: #fff; background: rgba(251,250,248,.10); }
.fx-links .is-current { color: #fff; background: rgba(251,250,248,.12); }
.fx-drop { position: relative; }
.fx-drop-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.fx-drop.is-open .fx-drop-btn::after { transform: translateY(0) rotate(225deg); }
.fx-drop-panel { position: absolute; top: calc(100% + 12px); left: 50%; width: 600px; transform: translate(-50%, -6px); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; background: rgba(32, 29, 27, 0.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid rgba(251,250,248,.10); border-radius: var(--r-card); box-shadow: 0 24px 60px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.fx-drop.is-open .fx-drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fx-drop-panel a { display: block; padding: 12px 14px; border-radius: var(--r-ctl); text-decoration: none; transition: background .15s; }
.fx-drop-panel a:hover, .fx-drop-panel a.is-current { background: rgba(251,250,248,.08); }
.fx-drop-panel strong { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.fx-drop-panel span { display: block; font-size: 13px; color: var(--bone-dim); margin-top: 2px; }
.fx-drop-panel .fx-drop-all { grid-column: 1 / -1; text-align: center; font-size: 14px; font-weight: 600; color: var(--ember-glow); border-top: 1px solid rgba(251,250,248,.08); border-radius: 0 0 var(--r-ctl) var(--r-ctl); margin-top: 4px; }
.fx-cta { font-size: 14.5px; font-weight: 600; color: var(--ash-deep) !important; background: var(--ember); padding: 9px 18px; border-radius: var(--r-pill); text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.fx-cta:hover { background: var(--ember-glow); }
.fx-links + .fx-cta { margin-left: 0; }
.fx-nav-inner > .fx-brand + .fx-cta { margin-left: auto; }
.fx-burger { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.fx-burger span { width: 20px; height: 1.5px; background: var(--bone); border-radius: 1px; transition: transform .25s, opacity .25s; }
.fx-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.fx-burger.open span:nth-child(2) { opacity: 0; }
.fx-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu.fx-menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; flex-direction: column; padding: 12px 24px 40px; overflow-y: auto; background: rgba(18, 17, 16, 0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 0; }
.fx-menu > a, .fx-menu summary { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--bone); text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(251,250,248,.10); cursor: pointer; list-style: none; }
.fx-menu summary::-webkit-details-marker { display: none; }
.fx-menu summary::after { content: "+"; float: right; font-weight: 400; color: var(--bone-dim); }
.fx-menu details[open] summary::after { content: "\2212"; }
.fx-menu details a { display: block; font-size: 17px; color: var(--bone-warm); text-decoration: none; padding: 12px 0 12px 4px; border: 0; }
.fx-menu details[open] { border-bottom: 1px solid rgba(251,250,248,.10); padding-bottom: 8px; }
.fx-menu details[open] summary { border-bottom: 0; }
.fx-menu > a.fx-menu-cta { margin-top: 28px; text-align: center; font-family: var(--font-body); font-size: 17px; background: var(--ember); color: var(--ash-deep); border: 0; border-radius: var(--r-pill); padding: 16px; }
@media (max-width: 900px) {
  .fx-links, .fx-nav-inner > .fx-links + .fx-cta { display: none; }
  .fx-burger { display: flex; }
}

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-buy, .btn-buy-sm, .btn-ember, .btn-outline, .nav-cta,
form button[type="submit"], .download-btn {
  border-radius: var(--r-pill) !important; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; min-height: 48px; padding-left: 26px; padding-right: 26px; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover, .btn-buy:hover, .btn-buy-sm:hover, form button[type="submit"]:hover { transform: none; box-shadow: 0 6px 20px rgba(224,122,69,.35); }
.btn-secondary { border: 1px solid var(--line-mid); }
.btn-primary, .btn-buy, .btn-buy-sm { border: 0; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  border-radius: var(--r-ctl) !important; font-family: var(--font-body); font-size: 16px !important; min-height: 50px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember) !important; box-shadow: 0 0 0 4px rgba(224,122,69,.22); }

/* ---------- cards: one soft, rounded treatment ---------- */
.cap-card, .how-step, .perf-card, .coming-card, .addon, .ess-card, .audience-card, .engage-card, .ex-card, .role-card,
.grant-card, .feed-card, .next-card, .download-card, .full-card, .hero-stat-card, .phase-deliv, .included-card, .hero-card,
.assess-form-card, .inquire-form-wrap, .guide-card, .dash-mock, .flag-visual img, .flag-visual, .book, .faq-list, .tier, .card, .tile, .dm-tile, .chip, .free-row, .note {
  border-radius: var(--r-card);
}
.chip { border-radius: var(--r-pill); min-height: 40px; }
.free-row, .note { border-radius: var(--r-ctl); border-left: 0; }
.coming-card, .addon, .ess-card { border: 0; background: #fff; box-shadow: var(--shadow-card); padding: 32px; }
.alt .addon, .alt .ess-card { background: #fff; }
.coming-tag, .cost, .essential, .flag-badge, .tier, .ex-card-tier, .engage-tier { border-radius: var(--r-pill); }
.cost { padding: 3px 10px; }
.essential { padding: 4px 10px; }

/* ---------- footer ---------- */
footer.fx-footer { background: var(--ash-deep); color: var(--bone-dim); padding: 72px 0 36px; border-top: 0; font-size: 14.5px; }
.fx-foot-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: block; }
.fx-foot-note { font-size: 13px; line-height: 1.6; color: var(--bone-dim); padding-bottom: 28px; margin-bottom: 44px; border-bottom: 1px solid rgba(251,250,248,.10); max-width: none; }
.fx-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.fx-foot-about p { margin: 16px 0 20px; max-width: 300px; line-height: 1.6; color: var(--bone-dim); font-size: 14.5px; }
.fx-foot-cta { display: inline-block; font-weight: 600; color: var(--ember-glow); text-decoration: none; }
.fx-foot-cta::after { content: "\00a0\203a"; }
.fx-foot-cta:hover { text-decoration: underline; }
.fx-footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--bone); margin: 0 0 14px; }
.fx-footer ul { list-style: none; margin: 0; padding: 0; }
.fx-footer li { margin: 0 0 10px; }
.fx-footer li a { color: var(--bone-dim); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.fx-footer li a:hover { color: #fff; }
.fx-foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(251,250,248,.10); font-size: 12.5px; color: #8b857d; }
@media (max-width: 900px) { .fx-foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .fx-foot-about { grid-column: 1 / -1; } }
@media print { nav.fx-nav, .fx-menu { display: none !important; } footer.fx-footer { background: #fff; color: #444; padding: 12px 0 0; } .fx-foot-grid { display: none; } .fx-foot-legal { margin: 0; border: 0; padding: 0; } }

/* ---------- headings: win over page-level rules ---------- */
h1, h2, .display { font-weight: 600 !important; }
h3, h4 { font-weight: 600 !important; }
h1 em, h2 em, h3 em, h4 em, .display em { font-style: normal !important; }
html.fx-serif h1, html.fx-serif h2, html.fx-serif .display { font-weight: 400 !important; }
html.fx-serif h3, html.fx-serif h4 { font-weight: 500 !important; }
html.fx-serif h1 em, html.fx-serif h2 em, html.fx-serif h3 em, html.fx-serif .display em { font-style: italic !important; }
.section-head { margin-bottom: 48px; }
.section-head p, .hero-sub, .lede { font-size: 19px; line-height: 1.5; }

/* ---------- homepage ---------- */
.hero-stats { border-top: 0; gap: 12px; display: flex; flex-wrap: wrap; }
.hero-stat { border: 0 !important; margin: 0 !important; padding: 16px 22px !important; background: rgba(251,250,248,.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 16px; min-width: 132px; }
.hero-stat-num { font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.hero-stat-label { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.flag-badge { padding: 7px 14px; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.flag-points li, .assess-points li, .product-points li, .kit-points li, .actions li, .checks li { padding-top: 11px; padding-bottom: 11px; }
.uas-photo, .uas-photo img { border-radius: var(--r-card); overflow: hidden; }
.uas-photo-caption { border-radius: var(--r-pill); }
.creds { border: 0; }
.cred { text-transform: none; letter-spacing: 0; font-size: 14px; background: rgba(251,250,248,.07); padding: 7px 14px; border-radius: var(--r-pill); }
.creds-inner { gap: 10px; }

.cap-grid { border: 0; gap: 16px; }
.cap { border: 0 !important; border-radius: var(--r-card); background: var(--bone-soft); padding: 30px 28px; transition: background .2s, transform .2s, box-shadow .2s; }
.cap:hover { background: #fff; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cap-num, .how-num, .deploy-year { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.cap h3 { font-size: 21px; }
.cap-go { font-weight: 600; }

.how { border-top: 0; }
.how-grid { gap: 16px; }
.how-step { border: 0; background: #fff; padding: 30px 28px; box-shadow: var(--shadow-card); }
.how-section .how-step { background: #fff; }

.deploy-grid { gap: 12px; }
.deploy { border: 0; border-radius: var(--r-card); background: rgba(251,250,248,.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 26px; }

.guide-band, .alt, .coming { border-top: 0; border-bottom: 0; }
.guide-card, .assess-form-card, .inquire-form-wrap { border: 0; border-radius: 24px; box-shadow: 0 24px 60px rgba(28,26,24,.18); }
.inquire-form-wrap { background: var(--ash-soft); border-top: 0; }
.inquire-row-label { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ---------- store ---------- */
.coming-tag { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 5px 12px; border: 0; }
.faq-item { padding: 26px 0; }
.price-note, .kit-price-note, .delivery-note { font-size: 14px; }

/* ---------- capability + about pages ---------- */
.breadcrumb, .crumbs { font-size: 14px; }
.hero-card, .included-card { border: 0 !important; border-radius: 24px; background: rgba(251,250,248,.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.engage-card, .ex-card { border: 1px solid rgba(251,250,248,.10); border-radius: 24px; }
.engage-tier, .ex-card-tier { text-transform: none; letter-spacing: 0; }
.audience-card { border-radius: var(--r-card); }
.phase { border-radius: 0; }
.hero-stat-card { border: 0 !important; border-radius: 24px; background: rgba(251,250,248,.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.phase-deliverables { border: 0 !important; border-radius: var(--r-card); }
.phase-deliverables-label, .audience-column-label, .phase-meta, .engage-price-note { text-transform: none; letter-spacing: 0; }
.audience-card { background: #fff; border: 0 !important; padding: 26px; box-shadow: var(--shadow-card); margin-bottom: 14px; }
.engage-card { padding: 32px 28px; }
.service-hero-sub { font-size: 19px; line-height: 1.55; }
h1 em, h2 em, h3 em, .display em { font-weight: inherit !important; }

/* ---------- fixes after review ---------- */
.fx-drop-panel { background: #211e1c; -webkit-backdrop-filter: none; backdrop-filter: none; }
.engage-card.featured::before { border-radius: var(--r-pill); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; padding: 4px 12px; top: -13px; content: 'Most common'; }

/* preparedness guide */
.roadmap { top: var(--nav-h); background: rgba(251,250,248,.94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.step-extra { background: transparent; }
.steps { gap: 6px; padding: 8px 0; }
.step { border: 0 !important; border-radius: 14px; padding: 10px 16px; }
.step:hover, .step-extra:hover { background: var(--bone-soft); }
.step-num.step-label, .row > strong, .addon h4, .tier, .chip-label, .cost, .essential, .ess-card .eyebrow { text-transform: none; letter-spacing: 0; font-size: 13px; }
.step:has(.step-label) .step-text strong { font-family: var(--font-display); font-weight: 600; }
.name { font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.item { padding: 22px 0; }
.item-head input { width: 22px; height: 22px; margin-top: 3px; }
summary { font-weight: 600; }
.ess-stat { font-weight: 600; letter-spacing: -0.025em; }
.buy li { padding: 12px 0; }
.store { font-size: 14px; }
.guide-hero .eyebrow::before, .store-hero .eyebrow::before, .hero .eyebrow::before, .service-hero .eyebrow::before { display: none; }
.cta { border-radius: 0; }
.dash-header { padding-top: calc(var(--nav-h) + 44px) !important; }
.btn-refresh, .refresh-btn { border-radius: var(--r-pill) !important; }

/* ---------- live dashboard ---------- */
.dash-header .container, .tiles-wrap .container, .cta-section .container, body > .container, main > .container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
.dash-header { border-bottom: 0; padding-bottom: 36px; }
.dash-header p { font-size: 17px; line-height: 1.55; max-width: 680px; }
.meta-row { gap: 14px; font-size: 14px; }
.tile-grid { gap: 12px; margin-bottom: 36px; }
.tile { border: 0; border-top: 3px solid var(--slate); border-radius: 16px; padding: 16px 10px 14px; }
.tile-label, .alert-cat-name, .kp-label, .mon-cat-label, .heat-day-name, .cisa-stat-lbl, .fire-acres-lbl, .section-label, .card-title, .volcano-code { text-transform: none; letter-spacing: 0; }
.tile-label, .alert-cat-name { font-size: 13px; }
.tile-val { font-size: 19px; letter-spacing: -0.01em; }
.section-label { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--bone); border-bottom: 0; padding: 0; margin: 12px 0 16px; }
.grid-2, .grid-3 { gap: 20px; margin-bottom: 20px; }
.full-card { margin-bottom: 20px; }
.card { border: 0; background: var(--ash-soft); display: flex; flex-direction: column; }
.card-head { background: transparent; border-bottom: 0; padding: 20px 22px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card-src { font-size: 13px; white-space: nowrap; }
.card-body { padding: 14px 22px 22px; flex: 1; }
#quakeCard, #fireCard, #volcanoCard, #cyberCard { max-height: 470px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(251,250,248,.18) transparent; }
.alert-cats { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.alert-cat, .cisa-stat, .heat-day, .cta-cap, .mon-link { border: 0; border-radius: 14px; }
.alert-cat { padding: 14px 8px; }
.heat-today, .kp-meter { border-radius: 16px; }
.volcano-item, .fire-item { gap: 14px; padding: 12px 0; }
.volcano-code { width: auto; min-width: 74px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; }
.fire-acres-box { min-width: 78px; max-width: 96px; border-radius: 12px; padding: 8px 6px; }
.fire-acres-lbl { font-size: 11.5px; overflow: visible; text-overflow: clip; }
.mon-link { padding: 12px 14px; }
.mon-link-name { font-size: 14px; }
.mon-cat-label { font-size: 13.5px; font-weight: 600; color: var(--bone-dim); border-bottom: 0; padding-bottom: 0; }
.mon-link-grid { gap: 8px; }
.heat-strip { flex-wrap: wrap; }
.heat-day { flex: 1 0 58px; min-width: 0; padding: 10px 4px; }
.cta-section { border: 0; margin-top: 56px; padding: 64px 0; }
.cta-cap { padding: 18px; }
.cta-cap-name { font-size: 15px; }
.cta-cap-desc { font-size: 13.5px; }
.btn-ember { color: var(--ash-deep); padding: 13px 24px; display: inline-flex; align-items: center; }
.btn-outline { padding: 13px 24px; display: inline-flex; align-items: center; }
.btn-refresh { padding: 9px 18px; font-weight: 600; }
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  #quakeCard, #fireCard, #volcanoCard, #cyberCard { max-height: 440px; }
  .card-head { padding: 18px 18px 2px; }
  .card-body { padding: 12px 18px 18px; }
  .mon-link-grid { grid-template-columns: 1fr; }
}
.dash-header ~ .container, .dash-header ~ div > .container, .dash-header ~ section > .container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
