:root {
  --brand: #1e3a8a; --brand-2: #2563eb; --ink: #111827; --muted: #6b7280; --line: #e5e7eb;
  --bg: #f6f7fb; --card: #fff; --warn-bg: #fff7e6; --warn-line: #f5c46b; --ok-bg: #ecfdf5; --ok-line: #6ee7b7;
  --err-bg: #fef2f2; --err-line: #fca5a5; --info-bg: #eef4ff; --info-line: #b6cdfb; --flag: #fff8eb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-2); }
h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 12px; }
h2 { font-size: 18px; margin: 18px 0 10px; }
h3 { font-size: 16px; margin: 0 0 4px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1240px; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a, .link { color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.nav a:hover, .link:hover { color: var(--brand-2); }
main { padding-top: 18px; padding-bottom: 40px; }
.foot { color: var(--muted); font-size: 13px; padding: 20px 0 40px; border-top: 1px solid var(--line); }
.inline { display: inline; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 520px; margin: 30px auto; }
.card.empty { text-align: center; padding: 34px 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--brand); }
.pill.warn { background: var(--warn-bg); color: #92400e; margin: 6px 0; }
.dev { background: var(--warn-bg); border: 1px dashed var(--warn-line); padding: 8px 10px; border-radius: 8px; font-size: 13px; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 9px 14px; font: 600 14px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: #172e6e; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: var(--info-bg); }
.btn.red { background: #b91c1c; border-color: #b91c1c; }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }

.flash { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--ok-line); background: var(--ok-bg); }
.flash.err { background: var(--err-bg); border-color: var(--err-line); }
.flash.info { background: var(--info-bg); border-color: var(--info-line); }
.flash.warn { background: var(--warn-bg); border-color: var(--warn-line); }

form.form label, .signin label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0; }
input, select { font: inherit; display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid #93c5fd; border-color: var(--brand-2); }
input:disabled { background: #f3f4f6; }
label.check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
label.check input { width: auto; margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
.danger { border-color: var(--err-line); }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; padding: 18px 0 8px; }
.hero h1 { font-size: 34px; }
.lead { font-size: 17px; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }

.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.site { color: var(--ink); text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s; }
.site:hover { border-color: #93c5fd; box-shadow: 0 2px 10px rgba(30, 58, 138, .08); }
.site-head { display: flex; justify-content: space-between; gap: 10px; }
.today { display: flex; gap: 6px; align-items: center; text-align: right; }
.today .ad-icon { margin: 0; }
.heads { margin-bottom: 14px; }
.head { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.head .ad-icon { margin: 0; flex: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.cards.two-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat .n { font-size: 24px; font-weight: 700; }
.stat .n small { font-size: 13px; font-weight: 400; color: var(--muted); }
.stat.hi { border-color: var(--warn-line); background: var(--warn-bg); }

.monthnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; }
.monthnav select { width: auto; margin: 0; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: middle; white-space: nowrap; }
.tbl th { background: #f8fafc; font-weight: 600; position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.flag td { background: var(--flag); }
.tbl.log select { width: 74px; margin: 0; padding: 4px 6px; }
.tbl.log input { min-width: 220px; margin: 0; padding: 4px 8px; }
.tbl td.small { white-space: normal; min-width: 140px; }
.notes ul { padding-left: 18px; color: var(--muted); font-size: 13px; }
.kind { font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.kind.hail { background: #ede9fe; color: #6d28d9; }
.kind.wind { background: #e0f2fe; color: #0369a1; }
.kind.torn { background: #fee2e2; color: #b91c1c; }

.plans { border-collapse: collapse; width: 100%; font-size: 14px; }
.plans th, .plans td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.plans td:first-child, .plans th:first-child { text-align: left; }
.price { font-size: 22px; font-weight: 700; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 22px; }

/* Shared weather pictures (see shopify-app/web/charts.js) */
.ad-week { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; overflow-x: auto; margin-block: 8px; }
.ad-day { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; background: linear-gradient(#f8fafc, #fff); }
.ad-dow { font-weight: 600; font-size: 13px; }
.ad-icon { display: block; margin: 4px auto; }
.ad-temps b { font-size: 16px; }
.ad-temps span { color: #64748b; }
.ad-pop { font-size: 12px; color: var(--brand-2); min-height: 16px; }
.ad-short { font-size: 11px; color: #64748b; line-height: 1.25; margin-top: 2px; }
.ad-chart { margin: 8px 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.ad-chart svg { width: 100%; height: auto; max-height: 260px; }
.ad-chart .g { stroke: #e5e7eb; stroke-width: 1; }
.ad-chart .ax { stroke: #9ca3af; stroke-width: 1; }
.ad-chart .t { fill: #6b7280; font-size: 11px; }
.ad-chart .b { fill: #93c5fd; }
.ad-chart .b.hit { fill: #2563eb; }
.ad-chart .m { fill: #9ca3af; }
.ad-chart .n { fill: #111827; }
.ad-chart .nl { fill: none; stroke: #111827; stroke-width: 1.5; }
.ad-chart .th { stroke: #d97706; stroke-width: 1.5; stroke-dasharray: 5 4; }
figcaption { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; }
figcaption .k { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: -8px; }
figcaption .k.b { background: #93c5fd; }
figcaption .k.hit { background: #2563eb; }
figcaption .k.n { background: #111827; width: 6px; height: 6px; border-radius: 50%; }
figcaption .k.th { background: none; border-top: 2px dashed #d97706; height: 0; }

@media (max-width: 760px) {
  .hero, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .two { grid-template-columns: 1fr; }
  .nav { gap: 10px; font-size: 14px; }
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
}
