/*
 * UpstreamWX landing page — apex (upstreamwx.com) static marketing/about page.
 *
 * The app itself lives at app.upstreamwx.com; this page exists to explain what
 * UpstreamWX is, carry the reference-only disclaimer, and send people to the app.
 * Component rules (.card / .eyebrow / .disclaimer / .about-* / .posture-chip) are
 * lifted from frontend/styles/app.css so the landing matches the PWA's About view;
 * the hero and install card are landing-only. Tokens come from tokens.css.
 */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

a { color: var(--color-brand); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) 0 var(--space-2);
}
.hero__logo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.hero__name {
  font-size: var(--text-display);
  line-height: var(--lh-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero__tagline {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 36rem;
}

/* Primary call to action — open the app on its subdomain. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-h2);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.cta:hover { background: var(--color-brand-strong); }

/* ── Install / Add to Home Screen card ─────────────────────────────── */
.install { border-color: rgba(56, 189, 248, 0.30); }
.install__lead { font-size: var(--text-label); line-height: var(--lh-body); color: var(--color-text-secondary); margin: var(--space-2) 0 0; }
.install__steps { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.install__steps li { font-size: var(--text-label); line-height: var(--lh-body); color: var(--color-text-secondary); }
.install__plat { display: block; font-weight: 650; color: var(--color-text); font-size: var(--text-caption); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-bottom: 2px; }
.install__steps kbd {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  white-space: nowrap;
}

/* ── Lifted from app.css so the about content matches the PWA ───────── */
.eyebrow {
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}
.about-p { font-size: var(--text-label); line-height: var(--lh-body); color: var(--color-text-secondary); margin: var(--space-2) 0 0; overflow-wrap: break-word; }
.about-list { margin: var(--space-2) 0 0; padding-left: var(--space-4); }
.about-list li { font-size: var(--text-label); line-height: var(--lh-body); color: var(--color-text-secondary); margin: var(--space-2) 0; }

.about-contact { display: inline-block; margin-top: var(--space-2); font-size: var(--text-label); font-weight: 600; color: var(--color-brand); }
.about-support { border-color: rgba(56, 189, 248, 0.30); }
.about-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-label);
  font-weight: 650;
  text-decoration: none;
}
.about-donate:hover { background: var(--color-brand-strong); }
.about-support__note { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--color-text-muted); margin: var(--space-2) 0 0; }

.about-section-head { font-size: var(--text-h2); line-height: var(--lh-h2); font-weight: 620; margin-top: var(--space-2); }

/* Collapsible methodology cards (native <details>) — mirrors the About view. */
.about-fold { padding: 0; }
.about-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
}
.about-fold__summary::-webkit-details-marker { display: none; }
.about-fold__head { display: flex; flex-direction: column; gap: 2px; }
.about-fold__teaser { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--color-text-secondary); }
.about-fold__chev { color: var(--color-text-muted); flex-shrink: 0; font-size: 18px; transition: transform var(--dur) var(--ease); }
.about-fold[open] .about-fold__chev { transform: rotate(180deg); }
.about-fold__body { padding: 0 var(--space-4) var(--space-4); }
.about-fold__body > .about-p:first-child { margin-top: 0; }

.about-sources { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.about-source__name { font-size: var(--text-label); font-weight: 650; }
.about-source__access { font-weight: 500; color: var(--color-text-muted); font-size: var(--text-caption); }
.about-source__desc { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--color-text-secondary); margin-top: 1px; }

/* ── Disclaimer footer (non-negotiable #1: reference-only, every artifact) ── */
.disclaimer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  color: var(--color-text-secondary);
}

.foot {
  text-align: center;
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.foot a { color: var(--color-text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .about-fold__chev, .cta { transition: none; }
}
