/* ── Klar Access Denied — design tokens (matches klar.mx) ────────── */
:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f5f5f5;
  --c-text: #1a1a1a;
  --c-text-soft: #595959;
  --c-text-muted: #8a8a8a;
  --c-border: #e5e5e5;
  --c-accent: #007aff;            /* klar primary blue */
  --c-tier-1: #dc2626;            /* critical red */
  --c-tier-1-soft: #fee2e2;
  --c-tier-2: #f59e0b;            /* sensitive amber */
  --c-tier-2-soft: #fef3c7;
  --c-tier-3: #007aff;            /* standard klar blue */
  --c-tier-3-soft: #dbeafe;

  --radius-card: 16px;
  --radius-control: 10px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -8px rgba(0,0,0,0.08);
  --shadow-cta:  0 1px 2px rgba(0,0,0,0.04), 0 4px 12px -2px rgba(0,0,0,0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg-soft);
  color: var(--c-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

.logo-link { display: inline-flex; }
.logo {
  height: 28px;
  width: auto;
  display: block;
}

.topbar-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.page {
  max-width: 640px;
  margin: 48px auto 24px;
  padding: 0 20px;
}

.card {
  background: var(--c-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ── Hero (tier-colored) ─────────────────────────────────────────── */
.hero {
  padding: 40px 36px 28px;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 18px;
  background: var(--c-bg-soft);
  border: 4px solid var(--c-bg);
  outline: 2px solid var(--c-border);
}

.card[data-tier="1"] .badge {
  background: var(--c-tier-1-soft);
  outline-color: var(--c-tier-1);
}
.card[data-tier="2"] .badge {
  background: var(--c-tier-2-soft);
  outline-color: var(--c-tier-2);
}
.card[data-tier="3"] .badge {
  background: var(--c-tier-3-soft);
  outline-color: var(--c-tier-3);
}

.title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--c-text);
}

.subtitle {
  font-size: 15px;
  margin: 0;
  color: var(--c-text-soft);
  max-width: 460px;
  margin-inline: auto;
}

.subtitle strong { color: var(--c-text); }

/* ── Blocks (causes / steps / ctas) ──────────────────────────────── */
.block {
  padding: 24px 36px;
  border-bottom: 1px solid var(--c-border);
}
.block:last-child { border-bottom: none; }

.section-h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin: 0 0 14px;
}

.causes, .steps {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  color: var(--c-text-soft);
}
.causes li, .steps li {
  margin-bottom: 8px;
}
.causes li::marker { color: var(--c-tier-1); }
.card[data-tier="2"] .causes li::marker { color: var(--c-tier-2); }
.card[data-tier="3"] .causes li::marker { color: var(--c-tier-3); }

.steps li::marker { color: var(--c-text-muted); font-weight: 600; }

/* ── CTAs ────────────────────────────────────────────────────────── */
.ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  transition: all 150ms ease;
  cursor: pointer;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 180px;
}

.cta-primary {
  background: var(--c-text);
  color: var(--c-bg);
  box-shadow: var(--shadow-cta);
}
.cta-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.cta-secondary {
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.cta-secondary:hover {
  background: var(--c-bg-soft);
}

.cta-icon {
  font-size: 16px;
}

/* ── Meta strip (debug context for IT) ──────────────────────────── */
.meta {
  padding: 14px 36px;
  background: var(--c-bg-soft);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.meta b { color: var(--c-text-soft); font-weight: 600; }

/* ── Fineprint + footer ──────────────────────────────────────────── */
.fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-muted);
  margin: 24px auto 0;
  max-width: 520px;
  padding: 0 16px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px 36px;
  font-size: 12px;
  color: var(--c-text-muted);
}
.footer a { color: var(--c-accent); }
.footer .dot { opacity: 0.4; }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar { padding: 14px 18px; }
  .page { margin: 28px auto 16px; }
  .hero { padding: 32px 22px 22px; }
  .block { padding: 20px 22px; }
  .meta { padding: 14px 22px; }
  .title { font-size: 22px; }
}
