/* Why Weather · marketing + info site. Plain HTML/CSS, no build step.
   Brand accent #6FA8F5; light by default with a prefers-color-scheme dark. */

:root {
  --brand: #2f7fe0;
  --brand-soft: #6FA8F5;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --surface: #ffffff;
  --border: #e6e9ef;
  --text: #11161d;
  --text-2: #4a5563;
  --text-3: #8b95a3;
  --radius: 16px;
  --maxw: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6FA8F5;
    --brand-soft: #6FA8F5;
    --bg: #0e1116;
    --bg-2: #141a22;
    --surface: #161d26;
    --border: #232c38;
    --text: #eef2f7;
    --text-2: #aeb8c6;
    --text-3: #7c8696;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--brand); }
.nav a { color: var(--text-2); font-size: 15px; margin-left: 20px; }

/* Shared pill */
.pill {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 14px; font-weight: 600;
}

/* "Built for weather nerds" — understated brand stamp, "designed in California"
   style. */
.stamp {
  margin-top: 18px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}

/* Shared tag (eyebrow) */
.tag { color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Device + crop image treatments */
.phone {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(16, 22, 29, 0.20);
  background: var(--surface);
}
.crop {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(16, 22, 29, 0.12);
  background: #fff;
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); }
  .crop  { box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5); }
}

/* Hero */
.hero { padding: 72px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800;
}
.hero-copy h1 .accent { color: var(--brand); }
.hero-copy .lede {
  font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2);
  max-width: 520px; margin: 0 0 26px;
}
.hero-shot { display: flex; justify-content: center; }
.hero-shot .phone { max-width: 320px; }

/* Content blocks */
.block { padding: 66px 0; }
.block--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.block-head { max-width: 700px; margin: 0 0 8px; }
.block-head h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.02em; margin: 8px 0 12px; line-height: 1.1; }
.block-head p { font-size: 18px; color: var(--text-2); margin: 0; max-width: 620px; }

/* Showcase row: media + copy */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 44px;
}
.showcase--reverse .showcase-media { order: -1; }   /* media on the left */
.showcase-copy h3 { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.01em; margin: 8px 0 12px; line-height: 1.18; }
.showcase-copy p { font-size: 17px; color: var(--text-2); margin: 0; }
.showcase-media { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.showcase-media--pair .phone { max-width: 218px; }
.showcase-media--trio { gap: 14px; }
.showcase-media--trio .phone { max-width: 172px; }

/* Stacked showcase (copy on top, full-width media) — for wide crops */
.showcase--stack { grid-template-columns: 1fr; gap: 24px; }
.showcase--stack .showcase-copy { max-width: 640px; }
.showcase--stack .crop { max-width: 760px; margin: 0 auto; }

/* Trio of cards (the Sky family) */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px;
  align-items: start;   /* cards keep their natural height (full screenshots) */
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column;
}
/* Framed screenshot — a distinct card-within-the-card, set apart from the
   caption below it so the shot reads as a screenshot rather than merging into
   one image with the text. Full image height so the whole feature shows
   (Learn's factoid + chips, Flux's quote down to "Ask Sky to explain"). */
.card-shot {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(16, 22, 29, 0.10);
  background: #fff;
  margin-bottom: 16px;
}
.card-shot img { display: block; width: 100%; height: auto; }
.card .tag { font-size: 12px; }
.card h3 { font-size: 18px; letter-spacing: -0.01em; margin: 6px 0 8px; line-height: 1.25; }
.card p { font-size: 15px; color: var(--text-2); margin: 0; }

/* Adaptive Glance — a row of state phones with captions. */
.glance-row {
  display: flex; gap: 18px; margin-top: 34px;
  justify-content: center; flex-wrap: wrap;
}
.glance-row figure { margin: 0; flex: 1 1 0; min-width: 150px; max-width: 208px; text-align: center; }
.glance-row .phone { width: 100%; max-width: none; }
.glance-row figcaption { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--text-2); }

/* Beautifully visualized — tall 7-day phone beside the wide hourly-chart crop. */
.viz-row {
  display: flex; gap: 30px; align-items: center; justify-content: center;
  margin-top: 30px; flex-wrap: wrap;
}
.viz-row .phone { flex: 0 0 auto; max-width: 264px; }
.viz-row .crop { flex: 1 1 360px; max-width: 620px; }

/* Duo (foundation, text-only) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.feature h3 { margin: 6px 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Closing CTA */
.cta { padding: 78px 0; text-align: center; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 20px; }

/* Legal / content pages */
.page { padding: 56px 0 40px; }
.page .wrap { max-width: 740px; }
.page h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 6px; }
.page .updated { color: var(--text-3); font-size: 14px; margin: 0 0 28px; }
.page h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--text-2); font-size: 16px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page strong { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 50px; margin-top: 0;
  color: var(--text-3); font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.site-footer nav a { color: var(--text-2); margin-right: 18px; }
.site-footer .made { color: var(--text-3); }

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 52px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .block { padding: 52px 0; }
  .showcase { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .showcase--reverse .showcase-media { order: 0; }
  .showcase-copy { text-align: center; }
  .trio { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .glance-row figure { max-width: 240px; }
  .viz-row { flex-direction: column; }
  .viz-row .crop { max-width: 100%; }
}
@media (max-width: 540px) {
  /* Keep multi-phone rows legible: let them scroll instead of squishing. */
  .showcase-media--pair,
  .showcase-media--trio {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .showcase-media--pair .phone { flex: 0 0 auto; max-width: 200px; }
  .showcase-media--trio .phone { flex: 0 0 auto; max-width: 168px; }
}
