:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --fg: #111827;
  --muted: #5b6472;
  --card: #ffffff;
  --line: #dfe4ea;
  --accent: #0f766e;
  --accent-strong: #0b4f49;
  --shadow: 0 16px 48px rgba(17, 24, 39, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1017;
    --fg: #f5f7fb;
    --muted: #a7b0bf;
    --card: #121a24;
    --line: #273241;
    --accent: #5eead4;
    --accent-strong: #99f6e4;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a {
  color: var(--accent-strong);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0b1220, #0f766e);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.links a:hover {
  color: var(--fg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -18px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--fg);
}

.breadcrumb [aria-current="page"] {
  color: var(--fg);
  font-weight: 700;
}

.hero,
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 36px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 750;
  text-decoration: none;
}

.button:hover { opacity: 0.86; }
.text-link { font-weight: 700; text-decoration: none; }
.fine-print { margin-top: 13px; color: var(--muted); font-size: 13px; }
.feature-grid { margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.feature h3 { margin-top: 8px; }
.feature p { color: var(--muted); }
.number { color: var(--accent-strong); font-size: 13px; font-weight: 850; }
.audience-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; }
.audience-card p { color: var(--muted); }
.split-hero { display: grid; grid-template-columns: 1.45fr 0.8fr; align-items: center; gap: 36px; }
.terminal-card, .recovery-card { transform: rotate(1.5deg); border-radius: 14px; box-shadow: 0 22px 50px rgba(0,0,0,.16); }
.terminal-card { overflow: hidden; background: #0b1220; color: #d8e2f0; font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-top { display: flex; gap: 6px; padding: 12px; background: #172033; }
.terminal-top i { width: 9px; height: 9px; border-radius: 50%; background: #62708a; }
.terminal-card code { display: block; padding: 24px 18px 28px; }
.terminal-card mark { background: #7f1d1d; color: #fecaca; padding: 2px 4px; }
.terminal-card span { color: #fda4af; }
.terminal-card strong { color: #fff; }
.recovery-card { display: grid; gap: 9px; padding: 26px; background: #e9f5f2; border: 1px solid #b6dcd4; color: #163c36; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.recovery-card > span { font: 800 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .08em; }
.recovery-card > strong { padding: 8px 10px; border-radius: 5px; background: rgba(255,255,255,.8); }
.recovery-card small { margin-top: 8px; font: 700 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.checklist h2 { font-size: 21px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; counter-increment: steps; }
.steps li::before { grid-row: 1 / 3; content: counter(steps); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.steps span { color: var(--muted); }
.cta { text-align: center; border-left-width: 1px; }
.cta .button { margin-top: 8px; }
.mac-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.mac-strip p { max-width: 640px; color: var(--muted); }
.article-hero h1 { max-width: 760px; }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 30px; }
.article h3 { margin-top: 24px; }
.article p, .article li { color: var(--muted); }
.article strong { color: var(--fg); }
.source-note { padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.source-note a { overflow-wrap: anywhere; }

.press-icon {
  width: min(190px, 56vw);
  height: auto;
  justify-self: center;
  border-radius: 40px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.press-assets {
  align-items: stretch;
  margin-top: 20px;
}

.asset-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-card h3 { margin-top: 16px; }
.asset-card p { color: var(--muted); }
.asset-icon { width: 132px; height: 132px; border-radius: 28px; }
.asset-preview { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }

.tool-intro {
  border-left: 4px solid var(--accent);
}

.triage-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.triage-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.triage-form legend {
  max-width: 100%;
  padding: 0 6px;
  color: var(--fg);
  font-weight: 800;
  line-height: 1.35;
}

.field-help {
  color: var(--muted);
  font-size: 14px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
}

.choice-row label:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.choice-row input { accent-color: var(--accent); }

button.button,
.secondary-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.secondary-button {
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font-weight: 750;
}

.share-fallback {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.share-fallback[hidden] {
  display: none;
}

.share-fallback label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.share-fallback input {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.share-status {
  min-height: 1.6em;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.result-panel {
  scroll-margin-top: 18px;
  outline: none;
}

.result-panel[data-level="urgent"] { border-left: 4px solid #b91c1c; }
.result-panel[data-level="review"] { border-left: 4px solid #b45309; }
.result-panel[data-level="caution"] { border-left: 4px solid var(--accent); }

.result-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: result-steps;
}

.result-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: result-steps;
}

.result-steps li::before {
  grid-row: 1 / 3;
  content: counter(result-steps);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.result-steps span { color: var(--muted); }

.meta {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 28px;
  margin-top: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 6px;
}

.footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 920px);
    padding-top: 24px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .links {
    justify-content: flex-start;
  }

  .hero,
  .section {
    padding: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .feature-grid, .split-hero, .steps { grid-template-columns: 1fr; }
  .split-hero { gap: 24px; }
  .terminal-card, .recovery-card { transform: none; }
  .mac-strip { align-items: flex-start; flex-direction: column; }
}

/* Homepage example uses only fictional data and requires no scripts. */
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.example-image { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow-wrap: anywhere; }
.example-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.example-secret { padding: 12px; border: 2px solid var(--accent); border-radius: 8px; font-family: ui-monospace, monospace; font-size: 14px; }
.example-match { color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.example-result summary { cursor: pointer; color: var(--accent-strong); font-weight: 700; padding: 12px 0; }
.example-copy { margin-top: 10px; }
.redacted-text { background: var(--fg); color: var(--fg); border-radius: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 650px) { .example-grid { grid-template-columns: 1fr; } }
