:root {
  --ink: #132037;
  --muted: #68758b;
  --paper: #f7f4ed;
  --surface: #fffefb;
  --line: #dcd7cc;
  --accent: #ef5a36;
  --accent-dark: #c94224;
  --blue: #1d4e89;
  --green: #147252;
  --amber: #9a6010;
  --red: #ae3e2b;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
  font-size: 1.12rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  display: inline-grid;
  place-items: center;
  font-size: .72rem;
  letter-spacing: -.02em;
  transform: rotate(-3deg);
}

.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { text-decoration: none; color: #40506a; font-size: .9rem; font-weight: 650; }
.site-header nav a:hover { color: var(--ink); }
.price-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  color: #46536a;
  font-size: .77rem;
  font-weight: 750;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px 28px 96px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 88px;
  align-items: center;
}

.eyebrow {
  color: #58657b;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span { width: 26px; height: 2px; background: var(--accent); display: inline-block; }

h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: .88;
  margin: 26px 0 30px;
  letter-spacing: -.065em;
  font-weight: 500;
}
h1 em { color: var(--accent); font-weight: 500; }
.hero-lede { font-size: 1.14rem; line-height: 1.7; color: #536078; max-width: 590px; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin: 34px 0 28px; }

.button {
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 8px 20px rgba(239,90,54,.22); }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 25px rgba(239,90,54,.28); }
.button-secondary { border: 1px solid #cbd2df; color: var(--blue); background: white; }
.text-link { font-weight: 750; font-size: .9rem; color: #34445d; text-decoration: none; }
.text-link span { color: var(--accent); margin-left: 4px; }

.trust-list { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; color: #68758b; font-size: .8rem; font-weight: 700; }
.trust-list li::before { content: "✓"; color: var(--green); margin-right: 7px; }

.hero-proof {
  background: var(--surface);
  border: 1px solid #ded9ce;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  position: relative;
}
.hero-proof::before {
  content: "";
  position: absolute;
  width: 84px;
  height: 28px;
  background: rgba(247, 204, 107, .5);
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}
.proof-topline, .proof-footer { display: flex; justify-content: space-between; gap: 12px; color: #7a8495; font-size: .67rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.status-dot { color: var(--green); }
.status-dot::before { content: ""; width: 7px; height: 7px; background: var(--green); display: inline-block; border-radius: 50%; margin-right: 6px; }
.ticket-stub { margin: 18px 0 12px; padding: 19px; border: 1px dashed #c7c1b5; background: #fbfaf6; }
.ticket-label { font-size: .64rem; font-weight: 850; letter-spacing: .12em; color: var(--accent); }
.ticket-stub strong { display: block; margin: 8px 0 17px; font-size: 1.05rem; }
.ticket-stub div { display: flex; justify-content: space-between; border-top: 1px solid #ebe6dc; padding: 10px 0 0; margin-top: 10px; color: #667188; font-size: .78rem; }
.ticket-stub b { color: var(--ink); }
.verdict { display: flex; align-items: flex-start; gap: 14px; padding: 17px; border-radius: 10px; background: #fff0ec; border: 1px solid #f1c0b4; }
.verdict-icon { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: white; background: var(--red); }
.verdict small, .result-kicker { font-size: .61rem; font-weight: 850; letter-spacing: .13em; color: #7b8495; }
.verdict strong { display: block; color: var(--red); margin: 4px 0; }
.verdict p { margin: 0; color: #6c5b5a; font-size: .77rem; line-height: 1.5; }
.proof-footer { margin-top: 16px; justify-content: space-around; letter-spacing: 0; text-transform: none; }

.boundary-band { background: var(--ink); color: white; padding: 18px 28px; text-align: center; }
.boundary-band p { margin: 0; font-size: .9rem; color: #d9e0ec; }
.boundary-band b { color: white; }

.audit-section { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
h2 { font-size: clamp(2.35rem, 5vw, 4.3rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; margin: 18px 0; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.audit-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(340px, .86fr); gap: 25px; align-items: start; }
.audit-card, .result-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 45px rgba(31,41,55,.06); }
.audit-card { padding: 28px; }
.result-panel { position: sticky; top: 20px; min-height: 620px; padding: 28px; overflow: hidden; }

.step-heading { display: flex; gap: 13px; align-items: flex-start; margin: 8px 0 20px; }
.step-heading:not(:first-child) { border-top: 1px solid #e9e5dc; padding-top: 27px; margin-top: 28px; }
.step-heading > span { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-size: .72rem; font-weight: 850; }
.step-heading h3 { margin: 1px 0 3px; font-size: 1rem; }
.step-heading p { margin: 0; color: var(--muted); font-size: .78rem; }

.upload-zone { min-height: 150px; border: 1.5px dashed #b9c1cf; border-radius: 10px; background: #f9fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; cursor: pointer; }
.upload-zone:hover { border-color: var(--blue); background: #f5f8fc; }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-icon { color: var(--blue); font-size: 1.6rem; line-height: 1; }
.upload-zone strong { margin: 7px 0 3px; font-size: .9rem; }
.upload-zone small, .field-note { color: var(--muted); font-size: .7rem; line-height: 1.5; }
.upload-status { margin-top: 9px; color: var(--blue); font-size: .7rem; font-weight: 800; }
.ocr-details { margin: 10px 0; color: #657087; font-size: .73rem; }
.ocr-details summary { cursor: pointer; }
.ocr-details textarea { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 10px; background: #f8f8f6; color: #4b566a; resize: vertical; }

.form-grid { display: grid; gap: 13px; margin-bottom: 14px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: .9fr 1.15fr .65fr; }
.prop-grid { grid-template-columns: .75fr .7fr 1.2fr .85fr 1fr; }
label { display: block; color: #45536a; font-size: .71rem; font-weight: 760; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  min-height: 41px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,137,.1); }
.lookup-row { display: grid; grid-template-columns: 1fr auto; gap: 13px; align-items: end; margin-bottom: 14px; }
.lookup-results { padding: 14px; margin: 0 0 14px; background: #f6f8fb; border: 1px solid #dbe1e9; border-radius: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lookup-results .field-note { grid-column: 1 / -1; margin: 0; }
.form-consent { display: flex; gap: 9px; align-items: flex-start; margin: 19px 0; }
.form-consent input { width: 17px; min-height: 17px; height: 17px; margin: 1px 0 0; }
.form-consent label { font-weight: 550; line-height: 1.45; }
.form-errors { background: #fff0ec; color: var(--red); border: 1px solid #edb8ad; padding: 11px 13px; border-radius: 7px; margin-bottom: 12px; font-size: .78rem; line-height: 1.5; }
.submit-button { width: 100%; }

.empty-result { text-align: center; min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.result-watermark { width: 72px; height: 72px; border: 1px dashed #bcc4d1; border-radius: 20px; transform: rotate(-4deg); display: grid; place-items: center; color: #aab3c1; font-weight: 900; letter-spacing: -.05em; font-size: 1.5rem; }
.empty-result h3 { margin: 22px 0 7px; }
.empty-result p { max-width: 330px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.result-kicker { margin: 3px 0 13px; }
.result-verdict { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; border-bottom: 1px solid #e8e4db; padding-bottom: 20px; }
.result-verdict span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--amber); font-weight: 900; }
.result-verdict h3 { margin: 0; line-height: 1.3; }
.result-verdict.consistent span { background: var(--green); }
.result-verdict.consistent h3 { color: var(--green); }
.result-verdict.mismatch span { background: var(--red); }
.result-verdict.mismatch h3 { color: var(--red); }
.result-facts { margin: 19px 0; }
.result-facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eeeae2; padding: 9px 0; font-size: .77rem; }
.result-facts dt { color: var(--muted); }
.result-facts dd { margin: 0; text-align: right; font-weight: 800; }
.rule-reference { padding: 13px; border-left: 3px solid var(--blue); background: #f3f7fb; }
.rule-reference small, .unlock-card small { display: block; color: #738098; font-size: .59rem; font-weight: 850; letter-spacing: .1em; }
.rule-reference a { display: inline-block; color: var(--blue); font-size: .8rem; font-weight: 800; margin: 5px 0; }
.rule-reference p { color: #657187; font-size: .71rem; margin: 2px 0; line-height: 1.5; }
.caveats { color: #667187; padding-left: 17px; font-size: .7rem; line-height: 1.5; }
.unlock-card { margin-top: 16px; border-radius: 10px; background: var(--ink); color: white; padding: 18px; }
.unlock-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.unlock-card small { color: #aeb8c8; }
.unlock-card strong { color: #ffb49f; }
.unlock-card ul { padding-left: 18px; color: #d8deea; font-size: .72rem; line-height: 1.6; }
.unlock-card .button { width: 100%; }
.unlock-card > p { text-align: center; color: #aeb8c8; font-size: .61rem; margin: 10px 0 0; }

.how-it-works { max-width: 1240px; margin: 0 auto; padding: 50px 28px 120px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: center; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boundary-grid article { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 23px; }
.boundary-grid article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 900; }
.boundary-grid .yes { background: #e5f5ee; color: var(--green); }
.boundary-grid .no { background: #fdebe7; color: var(--red); }
.boundary-grid h3 { margin: 15px 0 6px; }
.boundary-grid p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }

footer { border-top: 1px solid var(--line); max-width: 1240px; margin: 0 auto; padding: 35px 28px 45px; display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: center; color: var(--muted); }
footer p { font-size: .78rem; }
footer nav { display: flex; gap: 18px; font-size: .75rem; font-weight: 700; }
footer small { grid-column: 1 / -1; font-size: .63rem; color: #858e9e; }

.legal-page { max-width: 820px; margin: 60px auto 110px; padding: 0 28px; }
.legal-page h1 { font-size: clamp(3rem, 6vw, 5rem); }
.legal-page h2 { font-family: inherit; font-size: 1.2rem; letter-spacing: -.01em; margin-top: 35px; font-weight: 850; }
.legal-page p, .legal-page li { color: #536078; line-height: 1.75; font-size: .92rem; }
.legal-page .updated { color: #7c8799; font-size: .75rem; }
.notice { background: #fff4e4; border: 1px solid #e8cfaa; padding: 16px; border-radius: 9px; }
.success-card { max-width: 620px; margin: 100px auto; padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: center; box-shadow: var(--shadow); }
.success-card h1 { font-size: 3.7rem; }
.success-card p { color: var(--muted); line-height: 1.6; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 55px; }
  .hero-copy { max-width: 760px; }
  .hero-proof { max-width: 620px; }
  .audit-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: 520px; }
  .how-it-works { grid-template-columns: 1fr; gap: 30px; }
  .prop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .site-header { padding: 18px; }
  .site-header nav a, .price-pill { display: none; }
  .hero { padding: 55px 18px 70px; }
  h1 { font-size: 3.7rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .audit-section { padding: 80px 15px; }
  .audit-card, .result-panel { padding: 19px; }
  .form-grid-2, .form-grid-3, .prop-grid, .lookup-results { grid-template-columns: 1fr; }
  .lookup-row { grid-template-columns: 1fr; }
  .boundary-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 30px 18px 80px; }
  footer { margin: 0 18px; padding-inline: 0; grid-template-columns: 1fr; }
  footer nav, footer small { grid-column: 1; }
  .proof-footer { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
