/* MediPass public site. Brand tokens mirror apps/web/src/app/globals.css. */
:root {
  color-scheme: light dark;
  --bg: #f8f7f2;
  --surface: #ffffff;
  --text: #233c34;
  --heading: #0a392e;
  --muted: #58685e;
  --border: #e2e6df;
  --brand: #103e33;
  --brand-deep: #0a392e;
  --on-brand: #e9f1eb;
  --on-brand-muted: #a4c0b1;
  --accent: #ba4034;
  --accent-soft: #f28f7c;
  --focus: #b34932;
  --radius: 14px;
  --max: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #111f1a;
    --text: #d5e1da;
    --heading: #eef4f0;
    --muted: #9db0a5;
    --border: #22362f;
    --brand: #0f3a30;
    --brand-deep: #082a22;
    --accent: #f28f7c;
    --focus: #ffb5a3;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 650;
}
h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 640;
}
h3 {
  font-size: 1.15rem;
  font-weight: 620;
}
p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--surface);
  color: var(--heading);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--heading);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand .dot {
  color: var(--accent);
  margin-left: -0.35em;
}
.nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 2px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--heading);
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  background: var(--brand-deep);
  color: var(--on-brand);
  padding: 64px 0 72px;
}
.hero h1 {
  color: #fff;
  max-width: 16ch;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--on-brand-muted);
  max-width: 38rem;
  margin-bottom: 1.8em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: #fff;
  color: var(--brand-deep);
}
.btn-primary:hover {
  background: #e9f1eb;
}
.btn-ghost {
  color: #fff;
  border-color: #ffffff55;
}
.btn-ghost:hover {
  border-color: #fff;
}
.hero :focus-visible {
  outline-color: #ffb5a3;
}

/* Sections */
section {
  padding: 64px 0;
}
.section-intro {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.steps p,
.card p {
  margin: 0;
  color: var(--muted);
}

.callout {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout svg {
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}
.callout p {
  margin: 0;
}

.split {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 760px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}
.card li + li {
  margin-top: 6px;
}
.tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tint .card {
  background: var(--bg);
}

.cta {
  text-align: left;
}
.cta .btn-primary {
  background: var(--brand-deep);
  color: #fff;
}
.cta .btn-primary:hover {
  background: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .cta .btn-primary {
    background: #fff;
    color: var(--brand-deep);
  }
}

/* Prose pages */
.page {
  padding: 48px 0 64px;
}
.prose {
  max-width: 44rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 6px;
}
.meta {
  color: var(--muted);
  font-size: 0.95rem;
}
.email {
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  font-weight: 620;
  color: var(--heading);
  word-break: break-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.site-footer nav a {
  color: var(--text);
}
.legal {
  max-width: 48rem;
  margin: 0;
}
