/* NAP brand site — shared stylesheet.
 *
 * Palette mirrors the app's DARK theme in constants/theme.ts so the
 * site and the app read as one product: background #0A0F1C, surface
 * #141B2D, brand red #DC2626 (the canonical brand red) with #EF4444 as
 * the on-dark variant the app uses for text/icons, because pure DC2626
 * reads muddy on deep navy.
 *
 * Type: Archivo Black from Google Fonts for display (the app's
 * FONT_FAMILY.heading), system sans for body. We deliberately do NOT
 * embed the app's font files — one Google Fonts link is the only
 * external asset on the whole site.
 */

:root {
  --bg: #0a0f1c;
  --surface: #141b2d;
  --surface-light: #1f2940;
  --text: #f1f5f9;
  --text-secondary: #aab6cb;
  --text-light: #7e8ca8;
  --border: #2a3550;
  --border-strong: #3f4d6f;
  --brand: #dc2626;
  --brand-on-dark: #ef4444;
  --brand-soft: #2e1015;
  --warning: #fbbf24;
  --max: 720px;
  --font-display: 'Archivo Black', 'Helvetica Neue', Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

a {
  color: var(--brand-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 68, 68, 0.4);
}

a:hover,
a:focus-visible {
  color: #f87171;
  border-bottom-color: #f87171;
}

/* ── Hero ─────────────────────────────────────────────────────────
 * The Practice Rink wallpaper sits behind the hero ONLY, at low
 * opacity under a dark gradient. The image is portrait (1024x1536),
 * so background-size: cover crops it; the gradient keeps every pixel
 * of text above ~12:1 contrast regardless of what the crop lands on.
 */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-wallpaper.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0.72) 0%,
    rgba(10, 15, 28, 0.86) 55%,
    rgba(10, 15, 28, 1) 100%
  );
  z-index: -1;
}

.hero-inner {
  padding: 56px 20px 60px;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  display: block;
  margin: 0 auto 18px;
  border: 1px solid var(--border-strong);
}

.wordmark {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.6px;
  color: var(--text-secondary);
  margin: 0 0 26px;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is fixed-weight — never bold it */
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.lede {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 auto;
  max-width: 30em;
}

/* ── Proof points ────────────────────────────────────────────── */
.proof {
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
  text-align: left;
}

.proof-card {
  background: linear-gradient(180deg, var(--surface) 0%, #111829 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
}

.proof-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
}

.proof-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── Store line ─────────────────────────────────────────────── */
.store {
  margin: 40px auto 0;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand-on-dark);
  background: var(--brand-soft);
  border: 1px solid rgba(239, 68, 68, 0.38);
  border-radius: 999px;
  padding: 7px 16px;
}

.store p {
  color: var(--text-light);
  font-size: 13px;
  margin: 14px 0 0;
}

/* ── Interior pages ─────────────────────────────────────────── */
/* padding-top/bottom ONLY — a `padding` shorthand here would reset the
 * 20px side gutters .wrap sets, and interior text ends up flush against
 * the edge of the phone screen. */
.page {
  padding-top: 40px;
  padding-bottom: 8px;
}

.page-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(26px, 7vw, 36px);
  margin-bottom: 8px;
}

.page-head .sub {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

.back {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  border: 0;
  margin-bottom: 22px;
}

.back:hover {
  color: var(--text);
  border: 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.2px;
  margin: 38px 0 10px;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 22px 0 6px;
  color: var(--text);
}

p,
li {
  color: var(--text-secondary);
}

.page p,
.page li {
  font-size: 15px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Callout cards ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card-brand {
  background: var(--brand-soft);
  border-color: rgba(239, 68, 68, 0.45);
}

.card-brand h2,
.card-brand h3 {
  color: var(--text);
}

.banner {
  background: #3a2a05;
  border: 1px solid var(--warning);
  border-radius: 12px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 16px;
  margin: 24px 0 6px;
  text-align: center;
}

.banner span {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 12.5px;
  color: #f5e0a3;
  margin-top: 6px;
}

/* Crisis contact rows — mirror the in-app red buttons at Profile →
 * About & Safety. Kept as plain links (tel:/sms:) so they work on a
 * phone the same way the app's buttons do. */
/* Darker than the app's COLORS.primary fill on purpose: the small
 * sub-label is white at 90% alpha, which lands under 4.5:1 over
 * #DC2626. #B91C1C (the app's primaryDark) keeps both lines above
 * AA, and safety copy is the last place to accept "close enough". */
.crisis-row {
  display: block;
  background: #b91c1c;
  border: 0;
  border-radius: 12px;
  color: #fff;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
}

.crisis-row:hover,
.crisis-row:focus-visible {
  background: #dc2626;
  color: #fff;
  border: 0;
}

.crisis-row .t {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.crisis-row .s {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1px;
}

/* The support address is 36 characters with no natural break point —
 * at 375px it runs past the card edge unless it's allowed to break
 * mid-word. */
.email-lead {
  margin: 0;
}

.email-lead a {
  font-size: clamp(14px, 4.4vw, 17px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footnote {
  font-size: 12.5px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 28px 20px 48px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 0;
}

.footer-links a:hover {
  color: var(--text);
}

/* The Apple 1.4.1 sentence. Verbatim from app/(onboarding)/intro.tsx
 * and repeated on every page — never reword, never remove. */
.footer-disclaimer {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 34em;
  margin: 0 auto 14px;
}

.copyright {
  color: var(--text-light);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  margin: 0;
}

@media (min-width: 640px) {
  .hero-inner {
    padding: 76px 20px 80px;
  }
  .logo {
    width: 120px;
    height: 120px;
    border-radius: 26px;
  }
  .proof {
    margin-top: 48px;
  }
}
