/* =====================================================================
   SiteWarn® page family — shared stylesheet
   WeatherGuidance LLC
   ---------------------------------------------------------------------
   Typeface: Montserrat (Google Fonts). Gotham is reserved for the logo.
   Brand tokens are pulled from the WeatherGuidance logo:
     navy   #0F3F87   (wordmark, "G")
     sky    #70C0F0   (cloud, "guidance")
     signal #F8C000   (lightning bolt) — reserved for CTAs + "your site" dot
     red    #C6352A   — used ONLY for government warning polygons
   ===================================================================== */

/* ---- Fonts -----------------------------------------------------------
   Montserrat (Google Fonts) — a free geometric sans in the same family
   as the Gotham used in the WeatherGuidance logo. Loaded from Google's
   CDN; no font files need to be hosted. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0F3F87;
  --navy-deep: #0A2C5E;
  --sky: #70C0F0;
  --sky-wash: #EEF4FA;
  --sky-line: #C9DCEE;
  --signal: #F8C000;
  --signal-deep: #D9A800;
  --red: #C6352A;
  --ink: #16213A;
  --ink-soft: #364259;
  --paper: #FFFFFF;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

/* ---- Reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
strong { font-weight: 700; }
sup.reg { font-size: .5em; line-height: 0; vertical-align: .62em; margin-left: .03em; font-weight: 500; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: .35em; }

/* ---- Type scale (1.25 ratio) ---------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.small { font-size: .95rem; color: var(--ink-soft); }

/* ---- Layout ----------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--wash { background: var(--sky-wash); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }
.section--navy p, .section--navy li, .section--navy .lede { color: #fff; }
.section--navy .small, .section--navy .section-intro p { color: rgba(255,255,255,.94); }
.section-intro { max-width: var(--measure); margin-bottom: 2.5rem; }

.grid-2 { display: grid; gap: 2.5rem var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; gap: 2rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost { border-color: #fff; color: #fff; }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 1.5rem; }
.btn-row .small { margin: 0; }

/* ---- Header ----------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--sky-line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-header .logo { flex: 0 0 auto; }
.site-header .logo img { height: 40px; width: auto; flex-shrink: 0; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; max-width: none; }
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 1180px) { .site-nav ul { gap: 16px; } .header-cta .phone { display: none; } .site-header .container { gap: 16px; } }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .phone { text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; color: var(--ink); }
.header-cta .btn { padding: 12px 18px; font-size: .95rem; white-space: nowrap; }
.site-nav li.has-menu { position: relative; }
.site-nav .caret { font-size: .7em; margin-left: 2px; color: var(--ink-soft); }
.site-nav .submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -12px; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--sky-line); border-radius: 6px; box-shadow: 0 8px 24px rgba(22,33,58,.12); display: none; flex-direction: column; gap: 0; z-index: 60; }
.site-nav .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav .submenu li a { display: block; padding: 9px 16px; font-size: .93rem; white-space: nowrap; box-shadow: none; }
.site-nav .submenu li a:hover { background: var(--sky-wash); }
.site-nav li.has-menu:hover > .submenu, .site-nav li.has-menu:focus-within > .submenu, .site-nav li.has-menu.is-open > .submenu { display: flex; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--sky-line); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 500; color: var(--navy); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--sky-line); padding: 12px var(--gutter) 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 10px; }
  .site-nav .submenu { display: flex; position: static; border: 0; box-shadow: none; padding: 4px 0 4px 14px; min-width: 0; }
  .site-nav .submenu li a { padding: 6px 0; font-size: .9rem; color: var(--ink-soft); }
  .site-nav .caret { display: none; }
  .header-cta .phone { display: none; }
  .header-cta .btn { padding: 10px 14px; font-size: .9rem; }
  .site-header .container { gap: 12px; }
}

/* ---- Breadcrumb ------------------------------------------------------- */
.crumbs { font-size: .92rem; color: var(--ink-soft); padding-top: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sky-line); }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .6em; }
.hero .lede { margin-bottom: .5em; }
.hero .proof { margin-top: 1.4rem; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } }

/* The warning-polygon map — the one place the page spends its boldness. */
.polygon-map { width: 100%; aspect-ratio: 5 / 4; }
.polygon-map text { font-family: var(--font); }
.map-caption { font-size: .95rem; color: var(--ink-soft); margin-top: 10px; max-width: none; }

/* ---- Problem rows ----------------------------------------------------- */
.problem-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0; }
.problem-list li { margin: 0; padding: 28px 0; border-top: 1px solid var(--sky-line); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: 8px var(--gutter); align-items: baseline; }
.problem-list li:last-child { border-bottom: 1px solid var(--sky-line); }
.problem-list .figure { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.problem-list .figure small { display: block; font-size: .95rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; margin-top: 6px; line-height: 1.3; }
.problem-list h3 { margin-bottom: .3em; }
.problem-list p { margin-bottom: 0; }
@media (max-width: 640px) { .problem-list li { grid-template-columns: 1fr; } }

.example-figure { margin: 2.5rem 0 0; max-width: 640px; }
.annotated { position: relative; border: 1px solid var(--sky-line); border-radius: var(--radius); overflow: hidden; }
.annotated img { display: block; width: 100%; height: auto; border: 0; }
.annotated svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.callout { position: absolute; background: rgba(255,255,255,.93); color: var(--ink-soft); font-size: clamp(11px, 1.9vw, 14px); line-height: 1.3; padding: 5px 9px; border-radius: 3px; white-space: nowrap; max-width: 92%; }
.callout--right { left: auto !important; right: 3%; }
@media (max-width: 600px) { .callout { white-space: normal; max-width: 46%; font-size: 11px; padding: 4px 7px; } .callout--note { max-width: 80%; } }
.callout strong { color: var(--navy); font-weight: 700; }
.callout--note { font-size: clamp(10px, 1.7vw, 13px); }
@media (min-width: 700px) { .callout { font-size: 14px; } .callout--note { font-size: 13px; } }
.example-figure img { border: 1px solid var(--sky-line); }
.example-figure figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: 10px; }

/* ---- Steps (a real sequence, so numbering is earned) ------------------ */
.steps { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: step; display: grid; gap: 28px var(--gutter); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { margin: 0; counter-increment: step; padding-top: 18px; border-top: 3px solid var(--sky); }
.steps li::before { content: counter(step); display: inline-block; font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35em; }
.steps p { font-size: .98rem; margin-bottom: 0; }

/* ---- Hazard + delivery lists ------------------------------------------ */
.tags { list-style: none; padding: 0; margin: 0; max-width: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { margin: 0; padding: 9px 14px; border: 1px solid var(--sky-line); border-radius: 999px; font-size: .95rem; background: #fff; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: .6em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }

/* ---- Comparison table ------------------------------------------------- */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 14px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.18); vertical-align: top; }
.compare thead th { font-weight: 500; font-size: .92rem; color: rgba(255,255,255,.92); border-bottom-color: rgba(255,255,255,.4); }
.compare thead th:first-child { color: #fff; }
.compare tbody th { font-weight: 500; }
.compare td { text-align: center; font-weight: 700; width: 18%; }
.compare td.yes { color: var(--signal); }
.compare td.no { color: rgba(255,255,255,.6); font-weight: 400; }
.compare td.partial { color: rgba(255,255,255,.85); font-weight: 400; font-size: .9rem; }
.compare-note { font-size: .95rem; color: rgba(255,255,255,.9); margin-top: 1rem; max-width: var(--measure); }
@media (max-width: 640px) { .compare { font-size: .88rem; } .compare th, .compare td { padding: 10px 6px; } }

/* ---- Industries ------------------------------------------------------- */
.industry-groups { display: grid; gap: 2rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.industry-groups h3 { font-size: 1rem; color: var(--ink-soft); font-weight: 600; margin-bottom: .6em; padding-bottom: .4em; border-bottom: 1px solid var(--sky-line); }
.industry-groups ul { list-style: none; padding: 0; margin: 0; }
.industry-groups li { margin: 0; }
.industry-groups a { display: block; padding: 7px 0; text-decoration: none; font-weight: 500; }
.industry-groups a:hover { text-decoration: underline; }
.industry-groups span { display: block; padding: 7px 0; color: var(--ink); }

/* ---- Pricing / lead time ---------------------------------------------- */
.facts { display: grid; gap: 2rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.facts > div { border-left: 3px solid var(--signal); padding-left: 20px; }
.facts h3 { margin-bottom: .4em; }
.facts p:last-child { margin-bottom: 0; }

/* ---- Product screenshots (portal + app) ----------------------------- */
.shots { display: grid; grid-template-columns: 3fr 1fr 1fr; gap: 24px var(--gutter); align-items: end; }
.shot { margin: 0; }
.shot figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.45; }
.shot figcaption strong { color: var(--navy); font-weight: 600; display: block; margin-bottom: 2px; }
.frame-browser { border: 1px solid var(--sky-line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(22,33,58,.08); }
.frame-browser::before { content: ""; display: block; height: 14px; background: #EEF2F7; border-bottom: 1px solid var(--sky-line); background-image: radial-gradient(circle, #C9D3E0 2.2px, transparent 2.6px), radial-gradient(circle, #C9D3E0 2.2px, transparent 2.6px), radial-gradient(circle, #C9D3E0 2.2px, transparent 2.6px); background-size: 12px 12px; background-repeat: no-repeat; background-position: 6px 1px, 18px 1px, 30px 1px; }
.frame-browser img { display: block; width: 100%; height: auto; }
.frame-phone { border: 6px solid #1B2436; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 2px 8px rgba(22,33,58,.16); }
.frame-phone img { display: block; width: 100%; height: auto; }
.shots-more { margin-top: 1.6rem; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } .shots .shot:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .shots { grid-template-columns: 1fr; } .shots .frame-phone { max-width: 260px; } }

/* product page */
.walk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px var(--gutter); align-items: start; }
.walk--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.walk--flip > :first-child { order: 2; }
.walk .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.walk .phones .frame-phone { max-width: 300px; }
@media (max-width: 800px) { .walk, .walk--flip { grid-template-columns: 1fr; } .walk--flip > :first-child { order: 0; } .walk .phones .frame-phone { max-width: 220px; } }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 1rem; }
.store-badges a { display: inline-block; padding: 10px 16px; border: 1px solid var(--navy); border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: .95rem; }

/* ---- Downloadable overview sheet ------------------------------------- */
.sheet { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 28px var(--gutter); align-items: center; border: 1px solid var(--sky-line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); max-width: 880px; }
.sheet a.sheet-thumb { display: block; }
.sheet-thumb img { border: 1px solid var(--sky-line); box-shadow: 0 1px 2px rgba(22,33,58,.08); }
.sheet h2 { font-size: 1.4rem; margin-bottom: .4em; }
.sheet p { margin-bottom: .8em; }
.sheet .btn-row { margin-top: .6rem; }
.sheet .small { margin: .6rem 0 0; }
@media (max-width: 560px) { .sheet { grid-template-columns: 1fr; } .sheet-thumb img { max-width: 220px; } }

/* ---- Field report (solar) ------------------------------------------ */
.report { margin: 0; border-left: 3px solid var(--sky); padding-left: 22px; }
.report p { font-size: 1.02rem; line-height: 1.6; }
.report p:last-child { margin-bottom: 0; }
.report-outcome { margin: 0 0 1.2rem; }
.report-outcome p { font-size: 1.2rem; line-height: 1.45; font-weight: 500; color: var(--navy); margin-bottom: .5em; }
.report-outcome cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* ---- Testimonials ----------------------------------------------------- */
.quotes { display: grid; gap: 2rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quotes blockquote { margin: 0; }
.quotes p { font-size: 1.05rem; line-height: 1.5; margin-bottom: .6em; }
.quotes cite { font-style: normal; font-size: .95rem; color: var(--ink-soft); }
.epigraph { margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--sky-line); }
.epigraph p { font-style: italic; font-size: 1.15rem; margin-bottom: .3em; }
.epigraph cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* ---- Trial section + form --------------------------------------------- */
.trial .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .trial .container { grid-template-columns: 1fr; } }
.trial .check-list li::before { background: var(--signal); }
.trial-form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); }
.trial-form h3 { color: var(--navy); margin-bottom: .25em; }
.section--navy .trial-form p, .section--navy .trial-form label { color: var(--ink); }
.section--navy .trial-form .small, .section--navy .trial-form .form-fine { color: var(--ink-soft); }
.trial-form .small { margin-bottom: 1.4rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid #B8C7DA; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(112,192,240,.45); outline-offset: 0; }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.trial-form .btn { width: 100%; text-align: center; margin-top: 6px; }
.form-fine { font-size: .9rem; color: var(--ink-soft); margin: 14px 0 0; max-width: none; }
.hp { position: absolute; left: -9999px; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--sky-line); }
.faq details:last-child { border-bottom: 1px solid var(--sky-line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 500; font-size: 1.05rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 300; color: var(--sky); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- Cross-links (industry page → hub) -------------------------------- */
.hub-link { border: 1px solid var(--sky-line); border-radius: var(--radius); padding: 20px 24px; max-width: var(--measure); }
.hub-link p { margin: 0; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--sky-wash); border-top: 1px solid var(--sky-line); padding-block: 48px 32px; font-size: .93rem; }
.site-footer .container { display: grid; gap: 2rem 32px; grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1fr; }
@media (max-width: 1000px) { .site-footer .container { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 { margin-bottom: .6em; color: var(--navy); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.badges { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 10px; }
.badges img { max-height: 96px; max-width: 100%; height: auto; width: auto; object-fit: contain; }
.site-footer .badges { gap: 16px 18px; }
.site-footer .badges img { max-height: 80px; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--sky-line); padding-top: 18px; margin-top: 8px; color: var(--ink-soft); font-size: .85rem; }

/* ---- Utilities -------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; }
