/* Mobile-only-first. No breakpoints added for desktop layouts on purpose —
   this just stays a centered single column at any width. No webfonts:
   system stack only, so there is nothing to download before text renders.

   Color system: --brand (warm terracotta) drives urgency/CTA; --accent
   (deep teal) drives structure/trust (h2s, section rules, footer). --ink
   is a slightly blue-black, not a neutral gray, so body copy reads as
   branded rather than default.

   Above-the-fold contract (375px): h1 -> CTA block -> short disclosure,
   nothing else. Everything from the emergency banner down is deliberately
   pushed below that block — see renderPage() in src/generate.mjs. */

:root {
  --ink: #131c24;
  --ink-soft: #526070;
  --bg: #ffffff;
  --bg-soft: #f2f6f7;
  --brand: #c0442c;      /* warm, "heat" accent — CTA, urgency */
  --brand-dark: #96331f;
  --brand-tint: #fbeae6;
  --accent: #105166;     /* deep teal — structure, trust */
  --accent-tint: #e8f1f3;
  --line: #e2e5e7;
  --focus: #1a6fb0;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--brand-dark); }
a:focus, .cta-btn:focus, details.faq summary:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* Header: a real identity lockup (mark + name + locality line), not a
   flat colored strip — bottom rule in the brand color bookends the page
   against the footer's matching top rule. */
header.site-header {
  background: var(--ink);
  border-bottom: 4px solid var(--brand);
}
header.site-header .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: #aebdc7; }

main { padding: 24px 0 12px; }

/* Type scale: headlines read as headlines, not upsized body text. */
h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--accent);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
main > h2:first-of-type { margin-top: 32px; }
.related h2 { border-left: none; padding-left: 0; margin: 0 0 8px; font-size: 1.05rem; }
p { margin: 0 0 14px; }

/* The one call-to-action component. Same markup shape renders either
   state: click-to-call once tracking.trackingNumber goes active, or a
   short, button-shaped fallback label while it's pending — never a
   fake/placeholder number, and never a sentence of explanation. Both
   states share size, radius, and weight; only fill and tappability
   differ, so the block is unmistakably a button in both cases. */
.cta-block { margin: 16px 0 0; }
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  text-align: center;
  text-decoration: none;
  padding: 18px 16px;
  border: 2px solid transparent;
}
.cta-btn--active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 0 var(--brand-dark);
}
.cta-btn--active:active { transform: translateY(4px); box-shadow: none; }
.cta-btn--pending {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
  cursor: default;
}
.cta-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 8px 0 0;
}

.emergency-banner {
  display: block;
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 28px 0 0;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 22px 0 4px;
}

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details.faq p { margin: 8px 0 0; color: var(--ink-soft); }

.related {
  background: var(--accent-tint);
  padding: 16px;
  border-radius: 8px;
  margin: 28px 0;
}
.related ul { margin: 0; padding-left: 20px; }
.related li { margin-bottom: 6px; }

footer.site-footer {
  border-top: 4px solid var(--accent);
  padding: 24px 0 32px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
footer.site-footer .lang-switch { font-weight: 700; color: var(--accent); }
footer.site-footer .disclaimer { margin-top: 12px; }
