:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #17171a;
  --muted: #5d5c63;
  --line: #e4e1da;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --maxw: 1080px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111113;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --text: #ececef;
    --muted: #a1a1aa;
    --line: #2c2c31;
    --accent: #fb923c;
    --accent-ink: #1a0d05;
    --accent-soft: #2a1a10;
    --good: #4ade80;
    --bad: #f87171;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #111113;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --text: #ececef;
  --muted: #a1a1aa;
  --line: #2c2c31;
  --accent: #fb923c;
  --accent-ink: #1a0d05;
  --accent-soft: #2a1a10;
  --good: #4ade80;
  --bad: #f87171;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand small {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
}

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
}
.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.01em;
  margin: 22px 0 20px;
  max-width: 14ch;
}
.hero h1 em {
  color: var(--accent);
}
.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 46px);
  max-width: 22ch;
  margin-bottom: 18px;
}
.section-intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 40px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 14px;
}

/* Problem list */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problems div {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.problems strong {
  display: block;
  margin-bottom: 6px;
}
.problems p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Claude section */
.claude-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.claude-table th,
.claude-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.claude-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 600;
}
.claude-table tr:last-child td {
  border-bottom: 0;
}
.claude-table td:first-child {
  font-weight: 600;
  width: 28%;
}
.table-scroll {
  overflow-x: auto;
}

/* Example report */
.example {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 15px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.25);
}
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.sample-label {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
.kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kv div {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.kv span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.kv b {
  font-family: var(--mono);
  font-size: 17px;
}
.pos {
  color: var(--good);
}
.neg {
  color: var(--bad);
}
.report p {
  margin: 0 0 10px;
}
.report .ai-note {
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin: 14px 0 0;
}

/* Principles */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principles li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.principles strong {
  display: block;
  margin-bottom: 4px;
}
.principles span {
  color: var(--muted);
  font-size: 15.5px;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact {
  border-top: 2px solid var(--text);
  padding-top: 14px;
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.fact span {
  color: var(--muted);
  font-size: 15px;
}

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contact-box h2 {
  margin: 0 0 8px;
}
.contact-box p {
  margin: 0;
  color: var(--muted);
}
.mail {
  font-family: var(--mono);
  font-size: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  gap: 18px;
}
.disclaimer {
  flex-basis: 100%;
  font-size: 13px;
  margin: 8px 0 0;
  max-width: 80ch;
}

/* Legal pages */
.legal {
  padding: 56px 0 80px;
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 20px;
  margin: 36px 0 10px;
}
.legal p,
.legal li {
  color: var(--text);
}
.legal ul {
  padding-left: 22px;
}

@media (max-width: 860px) {
  .grid,
  .problems,
  .principles,
  .example {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  section {
    padding: 56px 0;
  }
  .kv {
    grid-template-columns: 1fr 1fr;
  }
  .contact-box {
    padding: 26px 20px;
  }
  .claude-table td:first-child {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
