:root {
  --ink: #20211d;
  --muted: #6d6e66;
  --paper: #f4f1e8;
  --card: #fffdf7;
  --line: #d9d4c7;
  --acid: #d9ff43;
  --orange: #ff7043;
  --green: #287857;
  --red: #c33f39;
  --shadow: 0 24px 80px rgba(50, 45, 32, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(32, 33, 29, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 33, 29, .025) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { max-width: 1180px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand span:last-child { color: var(--orange); }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: var(--acid) !important; font-size: 16px; }
.header-link { color: var(--ink); font-size: 14px; text-decoration: none; border-bottom: 1px solid; }

main { overflow: hidden; }
.hero { max-width: 1180px; min-height: 550px; margin: 0 auto; padding: 72px 28px 92px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; }
.hero-copy { animation: enter .55s ease-out both; }
.hero-visual { animation: enter .55s .12s ease-out both; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
h1 { max-width: 700px; margin: 0; font: 700 clamp(46px, 6.2vw, 78px)/.96 Georgia, serif; letter-spacing: -.055em; }
h1 em { color: var(--orange); font-weight: inherit; }
.lead { max-width: 610px; margin: 28px 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 48px; border: 1px solid var(--ink); border-radius: 7px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; color: var(--ink); background: transparent; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.button.primary { background: var(--acid); }
.button.ghost { border-color: var(--line); }
.button.wide { width: 100%; margin-top: 28px; }
.button.disabled { border-color: #b9b5aa; color: #77746b; background: #e9e6dd; cursor: not-allowed; }
.button[aria-busy="true"] { cursor: wait; opacity: .7; }
.button:focus-visible, select:focus-visible, .dropzone:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.trust-list { display: flex; gap: 24px; padding: 0; margin: 26px 0 0; list-style: none; color: var(--muted); font-size: 12px; }
.trust-list li::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 900; }

.hero-visual { position: relative; height: 390px; }
.sheet { position: absolute; width: 260px; min-height: 285px; padding: 22px; border: 1px solid var(--ink); border-radius: 5px; background: var(--card); box-shadow: 10px 10px 0 rgba(32, 33, 29, .12); display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0; transform: rotate(-5deg); }
.sheet span { grid-column: 1 / -1; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-weight: 800; }
.sheet b, .sheet i { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px; font-style: normal; }
.sheet i { text-align: right; }
.sheet-new { right: 2px; bottom: 0; transform: rotate(7deg); }
.sheet .up { color: var(--red); font-weight: 800; }
.sheet .new { color: var(--green); font-weight: 800; }
.delta-badge { position: absolute; z-index: 2; right: 15%; top: 42%; padding: 14px 18px; border: 1px solid var(--ink); border-radius: 100px; background: var(--orange); color: white; font-weight: 900; transform: rotate(-7deg); box-shadow: 5px 5px 0 var(--ink); }

.workspace, .results { max-width: 980px; margin: 0 auto 34px; padding: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
.step-number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--acid); font: 700 13px/1 monospace; }
h2 { margin: 0; font: 700 clamp(28px, 4vw, 42px)/1.05 Georgia, serif; letter-spacing: -.035em; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }
.upload-grid { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; }
.dropzone { min-height: 190px; padding: 28px; border: 1.5px dashed #aaa699; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; background: #fbfaf5; transition: border .16s, background .16s; }
.dropzone:hover, .dropzone.has-file { border: 1.5px solid var(--ink); background: #f5f8df; }
.dropzone.drag-active { border: 2px solid var(--ink); background: var(--acid); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.dropzone.drag-active small { color: var(--ink); font-weight: 700; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { margin: 16px 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dropzone small { color: var(--muted); }
.file-role { padding: 5px 9px; border-radius: 4px; background: #e4e0d6; font: 800 11px/1 monospace; text-transform: uppercase; }
.file-role.accent { background: var(--acid); }
.compare-arrow { text-align: center; font-size: 24px; }
.privacy { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.privacy span { color: var(--green); }
.sample-files { margin: 16px 0 0; display: flex; justify-content: center; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.sample-files strong { color: var(--ink); }
.sample-files a { color: var(--ink); text-underline-offset: 3px; }
.sample-files a:hover { color: var(--orange); }
.alert { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--red); background: #fff0ed; color: #7a2724; line-height: 1.45; }
.billing-banner { max-width: 1100px; margin: 16px auto 0; padding: 14px 18px; border: 1px solid var(--ink); border-radius: 7px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); font-size: 13px; }
.billing-banner.success { background: #dff5e9; }
.billing-banner.warning { background: #fff0cb; }
.billing-banner.pending { background: #e8edff; }

.mapping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
fieldset { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 8px; font-weight: 850; }
fieldset label { display: block; margin: 14px 0; font-size: 13px; font-weight: 700; }
fieldset label span { color: var(--muted); font-weight: 400; }
select { width: 100%; margin-top: 7px; padding: 11px 38px 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); }

.results { max-width: 1100px; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.summary-grid { margin: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 7px; }
.summary-card strong { display: block; margin-bottom: 6px; font: 700 30px/1 Georgia, serif; }
.summary-card span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #ece9df; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
.status { padding: 4px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.status.price_changed { background: #fff0cb; color: #7a4b00; }
.status.added { background: #dff5e9; color: #155f42; }
.status.removed { background: #ffe3df; color: #8b2d28; }
.positive { color: var(--red); }
.negative { color: var(--green); }
.empty-row { color: var(--muted); text-align: center; padding: 28px; }
.table-note { color: var(--muted); font-size: 12px; }
.offer { margin-top: 34px; padding: 28px; display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; border-radius: 9px; background: var(--ink); color: white; }
.offer h3 { margin: 0 0 8px; font: 700 25px/1.1 Georgia, serif; }
.offer p { margin: 0; color: #c9c7bf; font-size: 13px; }
.offer .eyebrow { margin-bottom: 10px; color: var(--acid); }
.offer-price strong { display: block; color: var(--acid); font: 700 30px/1 Georgia, serif; white-space: nowrap; }
.offer-price span { font-size: 11px; color: #aaa89f; }

.pricing-section { max-width: 1100px; margin: 110px auto 0; padding: 56px; display: grid; grid-template-columns: 1fr 300px; gap: 80px; align-items: center; border: 1px solid var(--ink); border-radius: 12px; background: var(--acid); box-shadow: 10px 10px 0 var(--ink); scroll-margin-top: 24px; }
.pricing-copy h2 { max-width: 620px; }
.pricing-copy > p:last-child { max-width: 650px; margin: 18px 0 0; line-height: 1.55; }
.pricing-ticket { padding: 28px; border: 1px solid var(--ink); border-radius: 7px; background: var(--card); transform: rotate(1.5deg); }
.pricing-ticket > span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.pricing-ticket strong { display: block; margin: 18px 0 5px; font: 700 48px/1 Georgia, serif; }
.pricing-ticket small { display: block; margin-bottom: 24px; color: var(--muted); }
.pricing-ticket .button { width: 100%; }

.how-it-works { max-width: 1100px; margin: 110px auto; padding: 0 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.feature-grid article { padding: 28px 28px 28px 0; }
.feature-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.feature-grid article span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--acid); font-size: 20px; }
.feature-grid h3 { margin: 35px 0 10px; font: 700 23px/1.1 Georgia, serif; }
.feature-grid p { color: var(--muted); line-height: 1.5; }
footer { max-width: 1180px; margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer nav { display: flex; gap: 16px; }
footer a { color: var(--ink); text-underline-offset: 3px; }

[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
  .hero { padding-top: 45px; grid-template-columns: 1fr; }
  .hero-visual { height: 330px; }
  .workspace, .results { margin-inline: 14px; padding: 25px 18px; }
  .upload-grid { grid-template-columns: 1fr; gap: 10px; }
  .compare-arrow { transform: rotate(90deg); }
  .mapping-grid, .summary-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article + article { padding-left: 0; border-left: 0; }
  .result-top { align-items: flex-start; flex-direction: column; }
  .offer { grid-template-columns: 1fr; }
  .pricing-section { margin: 70px 14px 0; padding: 34px 22px; grid-template-columns: 1fr; gap: 28px; }
  .pricing-ticket { transform: none; }
  .billing-banner { margin-inline: 14px; }
  footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  footer nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } .hero-copy, .hero-visual { animation: none; } }

.legal-page main { max-width: 820px; margin: 64px auto 100px; padding: 0 28px; }
.legal-page h1 { max-width: none; margin-bottom: 22px; font-size: clamp(42px, 7vw, 72px); }
.legal-page h2 { margin: 46px 0 12px; font-size: 28px; }
.legal-page p { color: var(--muted); line-height: 1.7; }
.legal-page .legal-lead { color: var(--ink); font-size: 20px; }
.legal-page a { color: var(--ink); text-underline-offset: 3px; }
