:root {
  color-scheme: light;
  --ink: #1d2924;
  --muted: #53625a;
  --paper: #f7f7f1;
  --surface: #fff;
  --line: #d9dfd6;
  --green: #17493c;
  --green-dark: #0f372d;
  --soft-green: #e9f2eb;
  --red: #991b1b;
  --soft-red: #fee2e2;
  --gold: #fbf3dc;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #367c63; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; translate: 0 -150%; padding: .6rem; background: white; }
.skip:focus { translate: 0; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .results-header, .paywall, .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-inner { justify-content: space-between; min-height: 4.5rem; padding-block: .75rem; }
.wordmark { font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(2.25rem, 7vw, 5rem);
}
h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 13ch;
  font: 500 clamp(2.7rem, 6.2vw, 5rem)/1.02 Georgia, serif;
  letter-spacing: -.06em;
  text-wrap: balance;
}
h2 { font: 500 clamp(1.55rem, 3.2vw, 2.2rem)/1.14 Georgia, serif; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 1.15rem; max-width: 36rem; }
.benefits { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding: 0; margin: 1.45rem 0 0; list-style: none; font-size: .86rem; font-weight: 620; }
.benefits li::before { content: "✓"; margin-right: .38rem; color: var(--green); }
.converter, .results {
  padding: clamp(1.15rem, 3.1vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.converter { box-shadow: 0 12px 34px #1d29240c; }
.converter h2 { margin-bottom: 1rem; }
form { display: grid; gap: .55rem; }
label { font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; }
input, select {
  padding: .6rem .72rem;
  border: 1px solid #a9b6ad;
  border-radius: .42rem;
  width: 100%;
  min-width: 0;
  background: white;
  color: var(--ink);
}
input[type="file"] { background: var(--paper); }
input::file-selector-button {
  padding: .35rem .55rem;
  margin-inline-end: .6rem;
  border: 1px solid var(--line);
  border-radius: .32rem;
  background: white;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}
button {
  border: 1px solid var(--green);
  border-radius: .42rem;
  background: var(--green);
  color: white;
  padding: .62rem .95rem;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: var(--green-dark); }
button:disabled { opacity: .65; cursor: wait; }
.secondary { background: white; color: var(--green); }
.secondary:hover { background: var(--soft-green); }
.converter button { margin-top: .4rem; }
.help, .independence { font-size: .88rem; color: var(--muted); }
.help:empty { display: none; }
.converter .help + label { margin-top: .38rem; }
#work-status, #upload-error { margin-top: .65rem; }
.independence { margin: 1.15rem 0 0; }
.results { margin-top: 1.8rem; }
.results-header, .paywall { justify-content: space-between; }
.results-header { margin: 1.35rem 0 .75rem; }
.results-header .help, #export-status { margin-top: .25rem; }
.actions { gap: .55rem; }
.message { padding: .78rem .95rem; border-radius: .5rem; background: var(--soft-green); color: var(--green-dark); }
.message p { margin-top: .15rem; }
.message-error, .row-mismatch { color: var(--red); background: var(--soft-red); }
.message-partial { background: var(--gold); color: #503b17; }
.scroll-table { overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; }
table { border-collapse: collapse; width: 100%; min-width: 41rem; font-size: .88rem; }
th, td { text-align: left; padding: .65rem .78rem; border-bottom: 1px solid var(--line); }
thead { background: var(--soft-green); color: var(--green-dark); }
tbody tr:last-child > * { border-bottom: 0; }
#rows td:not(:nth-child(3)) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-mismatch td:nth-child(6) { font-weight: 750; }
.paywall { margin-top: 1.25rem; padding: 1rem; background: var(--gold); border-radius: .6rem; }
.paywall p { font-size: .9rem; }
.paywall h3 { margin-block: .15rem; }
dialog {
  width: min(30rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.45rem;
  color: var(--ink);
}
dialog::backdrop { background: #13231fd0; }
dialog h2 { margin-bottom: .9rem; }
dialog .actions { margin-top: .45rem; }
.details { margin-top: 2.8rem; }
.details h2 { margin-bottom: .85rem; }
.comparison tbody { background: white; }
.faq { max-width: 52rem; }
.faq h3 { margin-top: 1.05rem; }
.faq p { margin-top: .2rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1rem 2rem; color: var(--muted); font-size: .85rem; }

@media (max-width: 730px) {
  .wrap { width: min(100% - 2rem, 36rem); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .header-inner { gap: .35rem 1rem; }
  h1 { max-width: 15ch; }
  .results-header { align-items: flex-start; }
}
