/* Promise Health landing. Palette mirrors @promise-health/design-tokens (ivory, near-black buttons,
   taupe, charcoal dark mode; blush only for the logo, links, small accents and focus). */
:root {
  color-scheme: light;
  --background: #f9f5ef;
  --foreground: #282322;
  --card: #fffcf8;
  --muted: #f1eae3;
  --muted-foreground: #766a65;
  --primary: #0a0a0a;
  --primary-foreground: #fdf2e4;
  --primary-hover: #242020;
  --primary-border: #0a0a0a;
  --accent: #e9ded2;
  --accent-foreground: #493c32;
  --link: #9d4f58;
  --ring: #9d4f58;
  --border: #e3d8ce;
  --wordmark: #161515;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #161515;
    --foreground: #fdf2e4;
    --card: #211e1d;
    --muted: #2c2625;
    --muted-foreground: #bcaea5;
    --primary-border: #766a65;
    --accent: #3a302b;
    --accent-foreground: #f0dfce;
    --link: #f4b5b3;
    --ring: #f4b5b3;
    --border: #403634;
    --wordmark: #fdf2e4;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 17px/1.6 Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Manrope, ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
img { display: block; height: auto; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--card); color: var(--foreground); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; z-index: 10; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wordmark); font: 800 20px/1 Manrope, ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
.nav-link { color: var(--muted-foreground); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-link:hover { background: var(--muted); color: var(--foreground); }

.hero { padding-top: 56px; padding-bottom: 88px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: min(240px, 60vw); margin-bottom: 28px; }
h1 { font-size: clamp(40px, 8vw, 76px); line-height: 1.02; font-weight: 800; color: var(--wordmark); max-width: 14ch; }
.lead { margin-top: 20px; font-size: clamp(18px, 2.4vw, 21px); color: var(--muted-foreground); max-width: 34em; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 16px;
  background: var(--primary); color: var(--primary-foreground); border: 1px solid var(--primary-border);
  font-weight: 600; text-decoration: none;
}
a.btn:hover { background: var(--primary-hover); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.section { padding-top: 40px; padding-bottom: 56px; }
.section h2, .closing h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.steps li, .card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent); color: var(--accent-foreground); font-weight: 700; margin-bottom: 16px;
}
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; margin-bottom: 8px; }
.steps p, .card p { color: var(--muted-foreground); font-size: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps, .grid { grid-template-columns: repeat(3, 1fr); } }
.card h3::before { content: ''; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--link); margin-bottom: 14px; }

.closing { text-align: center; padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.closing img { width: 120px; margin-bottom: 8px; }
.closing .lead { margin-top: 0; }

.footer { border-top: 1px solid var(--border); padding-top: 24px; padding-bottom: 40px; color: var(--muted-foreground); font-size: 14px; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; font-weight: 800; color: var(--wordmark); }
.legal .updated { margin-top: 10px; color: var(--muted-foreground); font-size: 15px; }
.legal h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--foreground); font-size: 17px; }
.legal > p { margin-top: 16px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 10px; }
.footer a { color: var(--muted-foreground); }
.footer a:hover { color: var(--link); }
