/* ================================================================
   SAFETY PAGE — page-specific styles
   Layered on top of styles.css. Uses the same Toolbox tokens.
   ================================================================ */

/* Active nav state */
.primary-nav a.is-current {
  color: var(--tb-orange);
}
.primary-nav a.is-current::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--tb-orange);
  border-radius: 2px;
  margin-top: 4px;
}

/* ===== HERO ===== */
.sf-hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.sf-hero-blob {
  width: 720px; height: 720px;
  left: -240px; top: -260px;
}
.sf-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.sf-hero-headline {
  margin: 0 0 28px;
  font-size: clamp(48px, 6.8vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.sf-hero-headline .serif-italic {
  font-size: 1.02em;
}
.sf-hero-sub {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--tb-text-muted);
  max-width: 640px;
}

/* ===== TIERS ===== */
.sf-tiers {
  padding: 80px 0 96px;
}
.sf-tier {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  background: var(--tb-bg);
  border-radius: var(--tb-r-xl);
  padding: 40px 44px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(45, 55, 72, 0.04),
    0 24px 40px -28px rgba(45, 55, 72, 0.18);
}
.sf-tier-marker {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  border-right: 1px solid var(--tb-divider);
  padding-right: 32px;
  min-height: 200px;
}
.sf-tier-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--tb-r-pill);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}
.sf-tier-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}
.sf-tier-num {
  font-family: var(--tb-font-sans);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--tb-orange);
  opacity: 0.5;
}
.sf-tier-body {
  padding: 4px 0;
}
.sf-tier-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: inherit;
  text-wrap: balance;
}
.sf-tier-lede {
  margin: 0 0 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  opacity: 0.85;
  max-width: 640px;
}
.sf-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--tb-divider);
}
.sf-tier-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.sf-tier-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}

/* Tier color variants — semantic palette */
.sf-tier--safe {
  background: var(--tb-safe-bg);
  color: #1F4E2A;
}
.sf-tier--safe .sf-tier-chip { color: #1F4E2A; }
.sf-tier--safe .sf-tier-marker { border-right-color: rgba(31, 78, 42, 0.18); }
.sf-tier--safe .sf-tier-grid { border-top-color: rgba(31, 78, 42, 0.16); }

.sf-tier--amber {
  background: var(--tb-heat-bg);
  color: #5B3A0A;
}
.sf-tier--amber .sf-tier-chip { color: #5B3A0A; }
.sf-tier--amber .sf-tier-marker { border-right-color: rgba(91, 58, 10, 0.18); }
.sf-tier--amber .sf-tier-grid { border-top-color: rgba(91, 58, 10, 0.16); }

.sf-tier--danger {
  background: var(--tb-danger-bg);
  color: #6B1414;
}
.sf-tier--danger .sf-tier-chip { color: #6B1414; }
.sf-tier--danger .sf-tier-marker { border-right-color: rgba(107, 20, 20, 0.18); }
.sf-tier--danger .sf-tier-grid { border-top-color: rgba(107, 20, 20, 0.16); }

/* In every tier the serif-italic accent keeps the brand orange — even on
   dark amber/red surfaces it reads as a punch of warm contrast. */
.sf-tier .serif-italic { color: var(--tb-orange); }

/* ===== WHY THIS MATTERS ===== */
.sf-why {
  position: relative;
  padding: 112px 0;
  background: var(--tb-bg-warm);
  overflow: hidden;
}
.sf-why-blob {
  width: 640px; height: 640px;
  right: -200px; bottom: -200px;
  opacity: 0.7;
}
.sf-why-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.sf-why-headline {
  margin: 0 0 36px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}
.sf-why-body {
  margin: 0 0 20px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--tb-text);
  max-width: 720px;
}
.sf-why-body:last-child { margin-bottom: 0; }

/* ===== HOW THE RATING WORKS ===== */
.sf-rating {
  padding: 112px 0;
  background: var(--tb-bg);
}
.sf-rating-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sf-rating-card {
  background: var(--tb-bg-warm);
  border-radius: var(--tb-r-lg);
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.sf-rating-num {
  font-family: var(--tb-font-sans);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--tb-orange);
  margin-bottom: 18px;
}
.sf-rating-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tb-text-strong);
  text-wrap: balance;
}
.sf-rating-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tb-text-muted);
}

/* ===== CTA ===== */
.sf-cta {
  position: relative;
  padding: 128px 0 132px;
  overflow: hidden;
  text-align: center;
}
.sf-cta-blob {
  width: 760px; height: 760px;
  right: -240px; top: -260px;
}
.sf-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.sf-cta-headline {
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}
.sf-cta-sub {
  margin: 0 0 36px;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--tb-text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sf-tier { grid-template-columns: 240px 1fr; padding: 36px 36px; gap: 28px; }
  .sf-tier-marker { padding-right: 24px; }
  .sf-rating-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sf-hero { padding: 56px 0 48px; }
  .sf-hero-blob { width: 460px; height: 460px; left: -160px; top: -160px; }
  .sf-hero-sub { font-size: 16px; }

  .sf-tiers { padding: 48px 0 64px; }
  .sf-tier {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 0;
    margin-bottom: 16px;
  }
  .sf-tier-marker {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--tb-divider);
    padding: 0 0 20px;
    margin-bottom: 24px;
    min-height: 0;
  }
  .sf-tier--safe .sf-tier-marker   { border-bottom-color: rgba(31, 78, 42, 0.18); }
  .sf-tier--amber .sf-tier-marker  { border-bottom-color: rgba(91, 58, 10, 0.18); }
  .sf-tier--danger .sf-tier-marker { border-bottom-color: rgba(107, 20, 20, 0.18); }
  .sf-tier-num { font-size: 40px; }
  .sf-tier-title { font-size: 32px; }
  .sf-tier-lede { font-size: 16px; margin-bottom: 20px; }
  .sf-tier-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 20px;
  }

  .sf-why { padding: 72px 0; }
  .sf-why-headline { font-size: 40px; }
  .sf-why-body { font-size: 16px; }
  .sf-why-blob { width: 380px; height: 380px; right: -180px; }

  .sf-rating { padding: 64px 0; }
  .sf-rating-grid { grid-template-columns: 1fr; gap: 12px; }
  .sf-rating-card { min-height: 0; padding: 24px; }

  .sf-cta { padding: 72px 0 80px; }
  .sf-cta-headline { font-size: 40px; }
  .sf-cta-sub { font-size: 16px; margin-bottom: 28px; }
  .sf-cta-blob { width: 460px; height: 460px; right: -160px; top: -160px; }
}
