:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #65706b;
  --line: #dfe5e1;
  --soft: #f4f7f5;
  --paper: #ffffff;
  --accent: #116149;
  --accent-dark: #0b4937;
  --accent-soft: #e4f3ed;
  --added: #167458;
  --removed: #a44343;
  --changed: #a46016;
  --shadow: 0 24px 70px rgba(31, 54, 45, 0.09);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(202, 233, 220, 0.46), transparent 30rem),
    linear-gradient(180deg, #fbfcfb 0%, #f5f8f6 100%);
}

button,
select,
input {
  font: inherit;
}

button,
select,
.file-drop {
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease,
    background 140ms ease;
}

button:focus-visible,
select:focus-visible,
.file-drop:focus-within {
  outline: 3px solid rgba(17, 97, 73, 0.22);
  outline-offset: 2px;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--accent);
}

.brand-mark svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #425049;
  font-size: 13px;
  font-weight: 650;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #28a778;
  box-shadow: 0 0 0 4px rgba(40, 167, 120, 0.12);
}

.hero {
  max-width: 780px;
  padding: 72px 0 42px;
}

.eyebrow,
.step-label {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
  color: #4e5a55;
  font-size: 18px;
  line-height: 1.65;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  color: #48564f;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.trust-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
}

.workspace-card,
.results {
  border: 1px solid rgba(207, 218, 212, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.workspace-card {
  padding: clamp(22px, 4vw, 42px);
}

.section-heading,
.results-heading,
.key-row,
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.text-button,
.filter-button {
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.file-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 30px 0;
}

.file-drop {
  display: flex;
  min-height: 124px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1.5px dashed #b9c8c0;
  border-radius: 16px;
  background: #fafcfb;
  cursor: pointer;
}

.file-drop:hover,
.file-drop.loaded {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.file-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 48px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: #60746b;
  font-size: 14px;
  font-weight: 850;
}

.file-icon.after {
  background: var(--accent);
}

.file-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.file-copy strong {
  font-size: 15px;
}

.file-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-action {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.compare-arrow {
  color: #829088;
  font-size: 22px;
}

.key-row {
  padding: 22px;
  border-radius: 16px;
  background: var(--soft);
}

.key-row label {
  display: grid;
  min-width: 145px;
}

.key-row .step-label {
  margin-bottom: 4px;
}

.comparison-options {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfb;
}

.options-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.options-heading p:last-child {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.option-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.option-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.option-toggle input,
.column-option input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.option-toggle span,
.ignored-columns > div:first-child {
  display: grid;
  gap: 4px;
}

.option-toggle small,
.ignored-columns small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ignored-columns {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.column-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.column-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #d5ddd9;
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: 12px;
}

.column-option:has(input:checked) {
  border-color: #9bc8b8;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.column-option:has(input:disabled) {
  color: #929c97;
  background: #f1f3f2;
  cursor: not-allowed;
}

.column-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-placeholder {
  color: var(--muted);
  font-size: 12px;
  line-height: 32px;
}

select {
  width: min(300px, 100%);
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #cbd5d0;
  border-radius: 10px;
  color: var(--ink);
  background: white;
}

select:disabled {
  color: #8b9691;
  background: #f1f3f2;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 780;
}

.primary-button {
  border: 1px solid var(--accent);
  color: white;
  background: var(--accent);
}

.primary-button:hover:not(:disabled) {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  border-color: #9daba4;
  background: #9daba4;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid #c7d1cc;
  color: var(--ink);
  background: white;
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status-message {
  min-height: 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status-message.error {
  color: #9d3232;
}

.status-message.success {
  color: var(--accent);
}

.results {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 42px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 12px;
  background: #fbfcfb;
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.summary-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.summary-card.added {
  border-top-color: var(--added);
}

.summary-card.removed {
  border-top-color: var(--removed);
}

.summary-card.changed {
  border-top-color: var(--changed);
}

.summary-card.unchanged {
  border-top-color: #7f8d86;
}

.result-toolbar {
  margin-bottom: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-button {
  padding: 8px 12px;
  border-radius: 999px;
  color: #59665f;
}

.filter-button:hover,
.filter-button.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.visible-count {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #5e6a64;
  background: #f7f9f8;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  width: 120px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 22%;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pill.added {
  color: #0f684e;
  background: #ddf2e9;
}

.status-pill.removed {
  color: #913535;
  background: #f8e6e6;
}

.status-pill.changed {
  color: #8b5217;
  background: #faecd9;
}

.change-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.change-list li {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.field-name {
  color: #435049;
  font-weight: 750;
}

.old-value,
.new-value {
  overflow-wrap: anywhere;
}

.old-value {
  color: #954646;
  text-decoration: line-through;
}

.new-value {
  color: #126248;
}

.change-arrow {
  color: #8d9993;
}

.row-summary {
  color: var(--muted);
}

.empty-result {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  .section-heading,
  .results-heading,
  .result-toolbar,
  footer {
    align-items: flex-start;
  }

  .privacy-badge {
    max-width: 160px;
    justify-content: flex-end;
    text-align: right;
  }

  .hero {
    padding-top: 48px;
  }

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

  .compare-arrow {
    display: none;
  }

  .key-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .options-heading,
  .ignored-columns {
    grid-template-columns: 1fr;
  }

  .options-heading {
    display: grid;
  }

  .options-heading p:last-child {
    max-width: none;
    text-align: left;
  }

  .key-row select,
  .key-row button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  h1 {
    font-size: 46px;
  }

  .workspace-card,
  .results {
    border-radius: 18px;
  }

  .file-drop {
    min-height: 106px;
  }

  .table-wrap {
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    table-layout: auto;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfb;
  }

  td,
  td:first-child,
  td:nth-child(2) {
    width: auto;
    padding: 6px 0;
    border: 0;
  }

  td::before {
    display: block;
    margin-bottom: 5px;
    color: #748078;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .change-list li {
    grid-template-columns: 1fr auto 1fr;
    padding: 7px 0;
    border-top: 1px solid var(--line);
  }

  .change-list .field-name {
    grid-column: 1 / -1;
  }
}
