/* weatherheadache.com — system fonts only, no external assets */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1d2a3a;
  --ink-soft: #4c5a6b;
  --ink-faint: #7b8696;
  --line: #e3e1da;
  --brand: #2f6f73;
  --brand-dark: #23565a;
  --brand-tint: #e6f0ef;
  --alert: #c0533a;
  --alert-tint: #fbebe6;
  --watch: #b7801a;
  --watch-tint: #fbf3e2;
  --calm: #4f8a5b;
  --calm-tint: #eaf3ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 42, 58, .05), 0 6px 24px rgba(29, 42, 58, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand-dark); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 750; }
h2 { font-size: clamp(23px, 3.6vw, 31px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(247, 246, 242, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.2) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* hero */
.hero { padding: 56px 0 28px; }
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 40ch; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (max-width: 520px) { .card { padding: 18px; } }

/* search */
.search { margin-top: 24px; max-width: 640px; }
.search form { display: flex; gap: 10px; flex-wrap: wrap; }
.field { position: relative; flex: 1 1 260px; min-width: 0; }
.input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 13px 14px; border: 1px solid #cfd3d9; border-radius: 10px; background: #fff;
}
.input:focus { outline: 3px solid rgba(47, 111, 115, .25); border-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 16px; line-height: 1.2;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: #c4d6d5; }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.search-row2 { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; gap: 6px; align-items: center; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 4px; z-index: 5; }
.suggest li button { width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.suggest li button:hover, .suggest li button:focus { background: var(--brand-tint); outline: none; }
.suggest .sub { color: var(--ink-faint); font-size: 14px; }
.status { min-height: 1.6em; margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.status.error { color: var(--alert); }

/* result */
.result { margin-top: 28px; scroll-margin-top: 76px; }
.result[hidden] { display: none; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.result-head h2 { margin: 0; font-size: 22px; }
.headline { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.headline .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 7px; }
.lvl-alert.headline { background: var(--alert-tint); }
.lvl-alert .dot { background: var(--alert); }
.lvl-watch.headline { background: var(--watch-tint); }
.lvl-watch .dot { background: var(--watch); }
.lvl-calm.headline { background: var(--calm-tint); }
.lvl-calm .dot { background: var(--calm); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin: 8px 0 18px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.day .d { font-weight: 650; }
.day .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; margin: 6px 0 4px; }
.day.lvl-alert { border-color: #efc5b9; }
.day.lvl-alert .tag { background: var(--alert-tint); color: var(--alert); }
.day.lvl-watch .tag { background: var(--watch-tint); color: #8a5f10; }
.day.lvl-calm .tag { background: var(--calm-tint); color: var(--calm); }
.day p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.fineprint { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

/* sections */
section { padding: 44px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

.offer { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }
.price-card { text-align: center; }
.price { font-size: 44px; font-weight: 750; letter-spacing: -.02em; }
.price small { font-size: 17px; font-weight: 500; color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

/* pricing table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: #fbfaf7; font-size: 15px; }
.compare thead th.prem { background: var(--brand-tint); }
.compare td.prem { background: #f6faf9; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--brand); font-weight: 700; }
.compare .no { color: #a8afb9; }
.plan-name { font-size: 18px; font-weight: 700; display: block; }
.plan-price { font-size: 14px; font-weight: 500; color: var(--ink-soft); display: block; }
@media (max-width: 560px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 11px 8px; }
  .plan-name { font-size: 16px; }
}

/* forms */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; cursor: pointer; font-size: 16px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice input { width: 18px; height: 18px; flex: none; margin: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; }

/* prose pages */
.prose { padding: 44px 0 56px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose li { margin: .35em 0; }
.prose .updated { color: var(--ink-faint); font-size: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 10px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); }
.attribution a { color: var(--ink-soft); }
.disclaimer { color: var(--ink-faint); }

/* features inside the offer: one compact column next to the price card */
.offer .grid3 { grid-template-columns: 1fr; gap: 12px; }
.offer .feature { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 18px; }
.offer .feature .ic { grid-row: span 2; margin: 2px 0 0; }
.offer .feature h3 { margin: 0 0 2px; font-size: 17px; }
.form-row label.check { font-weight: 400; }
.status.error:empty { display: none; }
@media (max-width: 560px) {
  .compare th:first-child, .compare td:first-child { width: 50%; }
  .compare .btn { padding: 10px 10px; font-size: 14px; }
}

/* sticky Premium bar on phones (added by app.js after a forecast is shown) */
.sticky-cta { display: none; }
@media (max-width: 767.98px) {
  .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .sticky-cta {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    min-height: 68px;
    padding: 10px max(8px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(29, 42, 58, .10);
  }
  .sticky-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .sticky-txt b { font-size: 14px; letter-spacing: -0.01em; }
  .sticky-txt span { font-size: 13px; color: var(--ink-soft); }
  .sticky-cta .btn { padding: 11px 12px; font-size: 14px; white-space: nowrap; flex: none; }
  .sticky-x { flex: none; width: 32px; height: 40px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-faint); cursor: pointer; border-radius: 8px; }
  .sticky-x:hover { background: var(--bg); color: var(--ink); }
  /* room at the bottom so the bar never covers the footer, notes or forms */
  body.has-sticky { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* 2026-12-01: answers for each kind of visitor */
.why-short { max-width: 60ch; color: var(--ink-soft); font-size: 15px; margin: 4px 0 18px; }
.now-line { font-size: 15px; margin: -4px 0 12px; color: var(--ink-soft); }
.now-line b { color: var(--ink); font-size: 18px; }
.tips { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); }
.tips h3 { margin: 0 0 6px; font-size: 16px; }
.tips ul { margin: 0 0 6px; padding-left: 20px; }
.tips li { margin: 2px 0; }
.free-vs-paid { margin: 16px 0 0; font-size: 15px; }
/* 2026-12-01: free 24h + locked Premium days, "right now" box, value section */
.now-box { border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; background: #f3f4f1; }
.now-box.trend-falling { background: #fbece7; }
.now-box .now-line { margin: 0 0 4px; }
.now-meaning { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.chart-wrap { position: relative; }
.lock { position: absolute; top: 18%; right: 2%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; text-align: center; }
.lock-t { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink); display: flex; gap: 6px; align-items: center; }
.lock .btn { font-size: 14px; padding: 10px 14px; white-space: normal; }
.day.locked { background: #f3f4f1; border-style: dashed; color: var(--ink-faint); }
.day.locked p { margin: 6px 0 0; font-weight: 600; }
.why { margin-top: 28px; max-width: 62ch; }
.why h2 { font-size: 20px; margin-bottom: 6px; }
.value { max-width: 62ch; margin-bottom: 24px; }
.value .lede { max-width: 56ch; }
.offer .grid3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.free-vs-paid { margin: 22px 0 0; }
