:root {
  --ink: #17211b;
  --ink-soft: #506057;
  --paper: #f3f0e6;
  --white: #fffdf7;
  --line: #c9c5b8;
  --lime: #cbff4c;
  --rust: #c84f31;
  --mint: #d7f5e4;
  --amber: #ffe8a3;
  --red-soft: #fbe1da;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(23, 33, 27, .13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
code {
  border: 1px solid rgba(23, 33, 27, .15);
  border-radius: 5px;
  background: rgba(255, 255, 255, .56);
  padding: .08rem .3rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .88em;
}

.site-header,
.site-footer,
main > section {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.03em; }
.brand small { color: var(--ink-soft); font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  font-size: .78rem;
  letter-spacing: -.06em;
}
nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 750; }
nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { border: 1px solid var(--ink); border-radius: 99px; padding: 8px 16px; }
.nav-cta:hover { background: var(--ink); color: var(--white); }

.hero { padding: 88px 0 54px; text-align: center; }
.eyebrow,
.step-label,
.card-label {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font: 800 .72rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--lime);
  padding: 7px 13px;
  color: var(--ink);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  font-weight: 880;
  line-height: .9;
  letter-spacing: -.075em;
}
h1 span { color: var(--rust); }
.hero-copy { max-width: 800px; margin: 30px auto 0; color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.trust-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: .85rem;
  list-style: none;
}
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--rust); font-weight: 900; }

.compare-shell,
.results {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 54px);
}
.compare-heading,
.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.055em; }
.text-button { border: 0; border-bottom: 1px solid; background: none; padding: 4px 0; cursor: pointer; font-weight: 800; }
.text-button:hover { color: var(--rust); }
.file-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 38px; }
.file-zone {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 28px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms, transform 140ms;
}
.file-zone:hover,
.file-zone.is-dragging { border-color: var(--rust); background: #fff8ed; transform: translateY(-2px); }
.file-zone.has-file { border-style: solid; border-color: var(--ink); background: var(--mint); }
.file-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-zone:focus-within { outline: 3px solid var(--rust); outline-offset: 3px; }
.file-number { margin-bottom: 24px; color: var(--rust); font: 800 .73rem ui-monospace, monospace; }
.file-title { margin-bottom: 4px; color: var(--ink-soft); font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.file-zone strong { overflow-wrap: anywhere; font-size: 1.1rem; }
.file-zone strong + span { margin-top: 5px; color: var(--ink-soft); font-size: .82rem; }
.versus { font-size: 1.7rem; font-weight: 900; }
.compare-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 310px); gap: 34px; margin-top: 30px; }
.field label { display: block; margin-bottom: 8px; font-weight: 800; }
.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: white;
  padding: 10px 14px;
}
.field p { max-width: 720px; margin: 8px 0 0; color: var(--ink-soft); font-size: .82rem; }
.action-stack { display: grid; align-content: start; gap: 10px; padding-top: 32px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  padding: 12px 19px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 140ms, box-shadow 140ms;
}
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(23, 33, 27, .13); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary span { color: var(--lime); }
.button-secondary { background: transparent; }
.button:focus-visible,
.text-button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.status { margin: 25px 0 0; border-top: 1px solid var(--line); padding: 18px 0 0; color: var(--ink-soft); font-size: .85rem; }
.status[data-kind="busy"]::before { content: "◌"; display: inline-block; margin-right: 8px; animation: spin 800ms linear infinite; }
.status[data-kind="error"] { color: #9d2c21; font-weight: 700; }
.status[data-kind="success"] { color: #17693b; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .status[data-kind="busy"]::before { animation: none; } }

.results { margin-top: 34px; box-shadow: none; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 18px; }
.result-badge { border-radius: 99px; padding: 5px 10px; font-size: .82rem; font-weight: 800; }
.is-added { background: var(--mint); }.is-removed { background: var(--red-soft); }.is-changed { background: var(--amber); }
.result-sheet { overflow-x: auto; border-top: 1px solid var(--line); padding: 22px 0; }
.result-sheet h3 { margin-bottom: 12px; font-size: 1.05rem; }
.result-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.result-table th,
.result-table td { min-width: 120px; border-bottom: 1px solid #ebe7dc; padding: 8px; text-align: left; vertical-align: top; }
.result-table th { color: var(--ink-soft); font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
.result-table td:first-child { min-width: 80px; font-family: ui-monospace, monospace; }
.row-added td { background: #f0fbf3; }.row-removed td { background: #fff3f0; }.row-changed td { background: #fffaf0; }
.muted { color: var(--ink-soft); }.added-text { color: #17693b; }.removed-text { color: #9d2c21; }
.result-note,
.result-warning { border-radius: 10px; background: var(--amber); padding: 14px 16px; font-size: .85rem; }
.warning-title { margin-bottom: 5px; font-weight: 850; }.result-warning ul { margin: 0; padding-left: 20px; }

.explanation-grid,
.coverage { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 8vw, 110px); padding: 110px 0; }
.explanation-copy { color: var(--ink-soft); font-size: 1.04rem; }
.explanation-copy p:last-of-type { margin-bottom: 0; }
.privacy-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 26px; color: var(--ink); font: 750 .8rem ui-monospace, monospace; }
.privacy-flow span { border: 1px solid var(--ink); border-radius: 7px; background: var(--white); padding: 8px 10px; }
.privacy-flow b { color: var(--rust); }
.coverage { border-top: 1px solid var(--line); }
.coverage-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.coverage-columns > div { border: 1px solid var(--line); border-radius: 13px; padding: 23px; background: rgba(255,255,255,.35); }
.coverage h3 { margin-bottom: 12px; font-size: 1.05rem; }
.coverage ul,
.choice-cards ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.coverage li + li,
.choice-cards li + li { margin-top: 7px; }

.product-choice { border-radius: var(--radius); background: var(--ink); color: var(--white); padding: clamp(36px, 6vw, 72px); }
.choice-heading { max-width: 900px; }
.choice-heading .step-label { color: var(--lime); }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; color: var(--ink); }
.choice-cards article { display: flex; flex-direction: column; border-radius: 13px; background: var(--paper); padding: clamp(23px, 4vw, 38px); }
.choice-cards .paid-card { background: var(--lime); }
.choice-cards h3 { margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.choice-cards p:not(.card-label),
.choice-cards li { color: #45534b; }
.choice-cards ul { margin-bottom: 27px; }
.choice-cards a { margin-top: auto; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.choice-cards .button { text-decoration: none; }

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 8vw, 100px); padding: 110px 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 19px 0; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; color: var(--ink-soft); }
.site-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem; }
.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand small { display: none; }
  .file-grid { grid-template-columns: 1fr; }
  .versus { transform: rotate(90deg); text-align: center; }
  .compare-options,
  .explanation-grid,
  .coverage,
  .faq { grid-template-columns: 1fr; }
  .explanation-grid,
  .coverage,
  .faq { gap: 32px; padding: 78px 0; }
  .choice-cards,
  .coverage-columns { grid-template-columns: 1fr; }
  .compare-heading,
  .results-header { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main > section { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  nav { gap: 8px; }
  .nav-cta { padding: 7px 10px; }
  .hero { padding-top: 60px; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .compare-shell,
  .results { padding: 21px; }
  .download-actions { width: 100%; }
  .download-actions .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}
