/* chorusweather.app — one stylesheet for every page. No scripts, no web
   fonts. Assets are cached as immutable: change this file → rename it .v2
   and update the four pages' <link>. */

:root {
  color-scheme: light dark;

  --page: #FFFFFF;
  --text: #111214;
  --text-secondary: #4A4F57;
  --text-tertiary: #5F6670;
  --card: #F4F5F7;
  --card-text: #3A3F47;
  --hairline: #EEF0F2;
  --link-hover: #4A4F57;

  /* The dark brand surface (Theme.BrandSurface in the app), in both modes. */
  --brand: #121418;
  --brand-text: #FFFFFF;
  --brand-secondary: rgba(255, 255, 255, 0.75);
  --brand-tertiary: rgba(255, 255, 255, 0.6);
  --brand-edge: transparent;

  /* Confidence states: the label colour and the dot. */
  --agree: #3F9B7D;
  --mixed: #C47F2A;
  --split: #C9502F;
  --agree-dot: #8FD3BC;
  --mixed-dot: #E8B57E;
  --split-dot: #EE8468;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --gutter: 24px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0B0C0E;
    --text: #F4F5F7;
    --text-secondary: #A9AFB9;
    --text-tertiary: #969DA8;
    --card: #191B20;
    --card-text: #C9CDD4;
    --hairline: #23262C;
    --link-hover: #C9CDD4;
    --brand-edge: #23262C;
    --agree: #8FD3BC;
    --mixed: #E8B57E;
    --split: #EE8468;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: var(--text); }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand-text);
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Dark brand area: navigation (every page) and the hero ---------- */

.brand {
  background: var(--brand);
  color: var(--brand-text);
  border-bottom: 1px solid var(--brand-edge);
}
/* The nav bar directly above the hero: one continuous surface. */
.brand--joined { border-bottom: 0; }

.site-nav {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.wordmark:hover { color: var(--brand-text); }
.wordmark img { width: 32px; height: 32px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brand-text); }

.hero {
  padding-top: 56px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy,
.hero-art {
  flex: 1 1 420px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--brand-tertiary);
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1.6px;
}

.hero-lede {
  margin: 22px 0 0;
  max-width: 500px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--brand-secondary);
}

.download {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.download-note {
  font-size: 14px;
  color: var(--brand-tertiary);
}

.badge-link {
  display: inline-block;
  border-radius: 12px;
}
.badge-link img { height: 54px; width: auto; }

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-phones {
  position: relative;
  width: 520px;
  max-width: 100%;
  aspect-ratio: 520 / 600;
}

.hero-phones .phone-back {
  position: absolute;
  left: 0;
  top: 7%;
  width: 47%;
}

.hero-phones .phone-front {
  position: absolute;
  right: 0;
  top: 0;
  width: 51%;
}

/* A screenshot in a plain phone frame. */
.phone {
  padding: 3.2%;
  background: #0B0C0E;
  border-radius: 15% / 7%;
  border: 1px solid #2E3138;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone img {
  width: 100%;
  border-radius: 12% / 5.6%;
}

/* ---------- Landing sections ---------- */

.section {
  padding-top: 96px;
}

.section h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-lede {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.states {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.state {
  flex: 1 1 280px;
  min-width: 0;
  border-radius: 20px;
  background: var(--card);
  padding: 28px;
}

.state h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.state h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 6px;
  flex: none;
}
.state--agree h3 { color: var(--agree); }
.state--agree h3::before { background: var(--agree-dot); }
.state--mixed h3 { color: var(--mixed); }
.state--mixed h3::before { background: var(--mixed-dot); }
.state--split h3 { color: var(--split); }
.state--split h3::before { background: var(--split-dot); }

.state p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--card-text);
}

.screens {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 64px;
}

.screens figure {
  margin: 0;
  flex: 0 1 300px;
  min-width: 0;
}

.screens figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}
.screens figcaption strong { color: var(--text); }

.features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 32px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.feature p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.plus-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.plus {
  border-radius: 28px;
  background: var(--brand);
  color: var(--brand-text);
  border: 1px solid var(--brand-edge);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.plus-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.plus h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.plus p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--brand-secondary);
}

/* ---------- Text pages: privacy, support, 404 ---------- */

.prose {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 80px;
  font-size: 17px;
  line-height: 1.6;
}

.prose h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.prose h2 {
  margin: 48px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.prose h3 {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.prose p,
.prose ul {
  margin: 12px 0 0;
}

.prose h3 + p { margin-top: 6px; }

.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }

.prose .meta {
  margin-top: 10px;
  color: var(--text-tertiary);
  font-style: italic;
}

.prose .lede {
  margin-top: 24px;
  font-size: 19px;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-credit {
  flex: 1 1 420px;
  min-width: 0;
  line-height: 1.55;
}
.footer-credit p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- Narrow screens (the canvas's phone board, down to 320 px) ---------- */

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 32px; padding-bottom: 64px; gap: 40px; }
  .hero-lede { font-size: 17px; }
  .section { padding-top: 72px; }
  .plus-section { padding-top: 72px; padding-bottom: 72px; }
  .plus { padding: 32px 24px; border-radius: 24px; }
  .state { padding: 24px; }
  .nav-links { gap: 18px; }
}
