:root {
  /* Apple Dark Mode: pure obsidian ground, matte neutral surfaces, zero tinted washes */
  --bg: #000000;
  --bg-elevated: #0e0e10;
  --bg-card: #161618;
  --bg-card-hover: #1d1d20;
  --bg-input: #0a0a0c;

  /* Tactile paper receipt (softened white for Dark Mode) */
  --paper-bg: #ebeae4;
  --paper-ink: #161618;
  --paper-muted: #525257;
  --paper-rule: rgba(22, 22, 24, 0.2);
  --paper-danger: #b91c1c;

  /* Neutral hairlines only — never colored neon borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Apple Dark Mode typography hierarchy */
  --brand: #f5f5f7;
  --text: #f5f5f7;
  --text-soft: #d1d1d6;
  --text-muted: #a1a1a6;

  /* Surgical semantic text accents */
  --danger: #ff453a;
  --danger-btn: #cf221d;
  --danger-btn-hover: #b51c18;
  --danger-text: #ff6961;
  --warning: #ff9f0a;
  --success-text: #32d74b;
  --info: #409cff;

  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w: 1040px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--bg);
  scrollbar-width: thin;
}

::selection {
  background: rgba(255, 69, 58, 0.28);
  color: #ffffff;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  caret-color: var(--brand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.16s var(--ease), text-decoration-color 0.16s var(--ease);
}

a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  color: var(--brand);
}

/* TYPOGRAPHY (Apple optical scale & tight display tracking) */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
}

p {
  margin: 0 0 1.05rem;
  color: var(--text-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

strong {
  color: var(--brand);
  font-weight: 600;
}

ul,
ol {
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
  max-width: 62ch;
}

li {
  margin-bottom: 0.55rem;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #000000;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  z-index: 999;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* LAYOUT */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* APPLE-STYLE MINIMAL GLASS NAVIGATION BAR */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  flex-shrink: 0;
}

.brand .highlight {
  color: var(--danger);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.84rem;
  font-weight: 400;
}

.nav a {
  text-decoration: none;
  color: rgba(245, 245, 247, 0.72);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

/* MINIMAL TEXT LANGUAGE SWITCH (no pill box) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  flex-shrink: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-switch a,
.lang-switch span {
  min-height: 44px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.16s var(--ease);
}

.lang-switch .active {
  color: #ffffff;
  font-weight: 700;
}

.lang-switch a:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--brand);
  padding: 0 0.25rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 14, 16, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.15rem;
    font-size: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .sep {
  opacity: 0.4;
}

/* HERO */
.hero {
  min-height: calc(92svh - 53px);
  max-height: 820px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.hero-content {
  padding: 4.5rem 3rem 4.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
  margin-left: auto;
}

.hero-lead {
  font-size: 1.22rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.hero-fact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hero-media {
  position: relative;
  min-height: 380px;
  background: #060f11;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, rgba(0, 0, 0, 0.35) 14%, transparent 32%, transparent 88%, var(--bg) 100%);
}

/* SUBPAGE HERO */
.page-hero {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-hero-inner {
  max-width: 760px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }

  .hero-media {
    height: 40vh;
    min-height: 240px;
    max-height: 340px;
    order: -1;
  }

  .hero-media::after {
    background: linear-gradient(to top, var(--bg) 0%, rgba(0, 0, 0, 0.25) 35%, transparent 65%);
  }

  .hero-content {
    padding: 2.5rem 1.5rem 3.5rem;
    margin-left: 0;
    max-width: 100%;
  }
}

/* UNBOXED EDITORIAL STATUS LINE (Apple-style: pure typography, ZERO pill box/border) */
.status-pill {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--danger-text);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.status-pill.neutral {
  color: var(--text-muted);
}

.status-pill.success {
  color: var(--success-text);
}

.status-pill.warning {
  color: var(--warning);
}

.status-pill.info {
  color: var(--info);
}

/* BUTTONS (clean Apple pill actions, crisp monochrome + single high-contrast primary) */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: var(--brand);
  color: #000000;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), opacity 0.16s var(--ease);
}

.btn:hover {
  background: #ffffff;
  color: #000000;
  opacity: 0.92;
}

.btn.danger {
  background: var(--danger-btn);
  color: #ffffff;
}

.btn.danger:hover {
  background: var(--danger-btn-hover);
  color: #ffffff;
  opacity: 1;
}

.btn.outline {
  background: transparent;
  color: var(--brand);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  opacity: 1;
}

.btn.small {
  min-height: 44px;
  padding: 0.52rem 1.15rem;
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .hero-buttons .btn {
    width: 100%;
  }
}

/* SECTIONS (generous Apple breathing room, quiet alternating obsidian & near-black) */
section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

section:nth-of-type(even) {
  background: var(--bg-elevated);
}

.section-header {
  max-width: 680px;
  margin-bottom: 3rem;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 0;
  }
}

/* MATTE NEUTRAL CARDS (Apple.com style: solid dark matte surface, zero colored washes or neon outlines) */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
}

.card.tone-success h4,
.card.tone-success h3 {
  color: var(--brand);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card-link:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-cta {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--info);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.price-tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--danger-text);
  font-size: 0.94em;
  font-weight: 600;
}

/* CALLOUTS (architectural matte dark surface, zero muddy gradient wash or colored outline) */
.callout {
  padding: 2.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 1.75rem;
}

.callout.danger h3 {
  color: var(--danger-text);
  font-size: 1.45rem;
  line-height: 1.22;
  margin-bottom: 1rem;
}

.callout.warning strong {
  color: var(--warning);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* TOC (clean horizontal jump links, no noisy gray chips) */
.toc {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.toc-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  font-size: 0.9rem;
}

.toc-links li {
  margin: 0;
}

.toc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--info);
  text-decoration: none;
}

.toc-links a:hover {
  text-decoration: underline;
}

/* 2-COLUMN TIMELINE GRID (clean typographic grid, zero decorative dots) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3rem;
  margin-bottom: 3.5rem;
}

.timeline-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin-bottom: 0.45rem;
}

.timeline-cost {
  color: var(--danger-text);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.88em;
  font-weight: 600;
  margin-left: 0.35rem;
}

.timeline-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 56ch;
}

/* CALCULATOR & ARCHIVAL PAPER RECEIPT */
.calc-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}

.field input[type="number"],
.field select {
  width: 100%;
  min-height: 46px;
  background: var(--bg-input);
  color: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.16s var(--ease);
}

.field input[type="number"]:hover,
.field select:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 0.92rem;
  color: var(--text-soft);
  cursor: pointer;
}

.field-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--danger);
  flex-shrink: 0;
}

.invoice {
  background: var(--paper-bg);
  color: var(--paper-ink);
  padding: 2rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}

.invoice h3 {
  font-family: var(--font-display);
  color: var(--paper-ink);
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--paper-rule);
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: #2e2e32;
}

.invoice-row strong {
  color: var(--paper-ink);
  font-weight: 700;
}

.invoice-row.muted {
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.invoice-row.total {
  border-top: 1.5px solid var(--paper-ink);
  padding-top: 0.85rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper-danger);
}

.invoice-sub {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--paper-muted);
  margin-top: 0.9rem;
  border-top: 1px solid var(--paper-rule);
  padding-top: 0.85rem;
}

.invoice-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.invoice-btn {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  background: var(--paper-ink);
  color: #ffffff;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background-color 0.16s var(--ease);
}

.invoice-btn:hover {
  background: #000000;
  color: #ffffff;
}

/* POLICE SCENARIO COLUMNS (ZERO nested boxes, ZERO colored borders — pure typography + hairlines) */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
  }

  .script-item + .script-item {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
  }
}

.script-role {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.cop .script-role {
  color: var(--danger-text);
}

.reality .script-role {
  color: var(--info);
}

.you .script-role {
  color: var(--success-text);
}

.script-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--brand);
  line-height: 1.55;
}

.script-text.plain {
  font-style: normal;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* EDITORIAL SPLIT (intro left + comic right) */
.editorial-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.editorial-split .section-header {
  margin-bottom: 0;
}

.comic-frame {
  margin: 0 0 2.5rem;
  max-width: 680px;
}

.editorial-split .comic-frame {
  margin: 0;
  max-width: 100%;
}

.comic-frame img {
  width: 100%;
  border-radius: var(--radius);
  filter: brightness(0.92) contrast(1.02);
}

/* DECISION FORK GRID */
.decision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.decision-grid .callout {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .editorial-split,
  .timeline-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

/* RULES LIST */
.rule-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.rule-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
  font-size: 0.96rem;
}

.rule-list li:first-child {
  border-top: none;
  padding-top: 0;
}

/* DATA TABLES */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin: 1.5rem 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

table.data-table th,
table.data-table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table td {
  color: var(--text-muted);
}

/* FAQ ACCORDION (clean horizontal Apple rows, no boxed card stack) */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  min-height: 60px;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--brand);
}

.faq-answer {
  padding: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* SURVIVAL CARD (clean matte dark card, zero green gradient wash) */
.survival-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.survival-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

/* FOOTER */
.site-footer {
  padding: 4rem 0 4.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.footer-links li {
  margin-bottom: 0.2rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ACCESSIBILITY PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .nav {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.28);
    --border-strong: rgba(255, 255, 255, 0.5);
    --text-muted: #d8d8de;
    --text-soft: #f5f5f7;
  }

  .site-header {
    background: #000000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* PRINT STYLES */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .survival-card {
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    page-break-inside: avoid;
  }

  .survival-card h2,
  .survival-card h3,
  .survival-card strong,
  .survival-card p,
  .survival-card li {
    color: #000000 !important;
  }
}
