:root {
  --navy: #07182d;
  --navy-2: #102945;
  --ink: #152237;
  --muted: #667085;
  --gold: #c7a35a;
  --gold-soft: #eee2c9;
  --ivory: #f7f4ed;
  --paper: #fffdfa;
  --line: #ded9ce;
  --success: #246b50;
  --success-bg: #eaf5ef;
  --warning: #8a5a14;
  --warning-bg: #fff4df;
  --danger: #9e3f3f;
  --danger-bg: #fff0f0;
  --shadow: 0 30px 80px rgba(7, 24, 45, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ivory); }
button, select, input { font: inherit; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; }
.brand-logo-horizontal { display: block; width: 156px; height: auto; }
.brand-logo-vertical { display: block; width: 72px; height: auto; opacity: .96; }
.privacy-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d6d0c5;
  border-radius: 999px; padding: 9px 14px; color: #5c6470; font-size: 12px; background: rgba(255,255,255,.5);
}
.privacy-pill span { color: var(--success); font-size: 9px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  gap: 72px;
  width: min(1180px, calc(100% - 48px));
  margin: 32px auto 110px;
  align-items: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 480px; height: 480px;
  top: -40px; left: -260px; border-radius: 50%; border: 1px solid rgba(199,163,90,.35);
}
.eyebrow, .card-kicker { margin: 0 0 16px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.hero h1 {
  margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 78px); font-weight: 500; line-height: .99; letter-spacing: -.04em;
}
.hero h1 em { color: var(--gold); font-weight: 400; }
.intro { max-width: 510px; margin: 28px 0; color: #5d6876; font-size: 17px; line-height: 1.75; }
.confidence-note { display: flex; gap: 13px; max-width: 460px; padding-top: 22px; border-top: 1px solid var(--line); color: #646c78; font-size: 12px; line-height: 1.55; }
.confidence-note strong { color: var(--navy); }
.lock-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: var(--gold); border: 1px solid var(--gold); transform: rotate(45deg); }

.fitter-card { background: var(--paper); border: 1px solid rgba(213,206,192,.8); border-radius: 4px; padding: 42px; box-shadow: var(--shadow); }
.card-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 30px; }
.step-number { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: Georgia, serif; font-size: 17px; }
.card-kicker { margin-bottom: 5px; font-size: 9px; }
.card-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; color: var(--navy); }
.field-label { display: block; margin: 0 0 8px; color: #4e5968; font-size: 12px; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; pointer-events: none; position: absolute; right: 17px; top: 13px; color: var(--gold); font-size: 20px; }
select, input {
  width: 100%; min-height: 50px; border: 1px solid #d6d1c7; border-radius: 2px;
  background: white; color: var(--navy); outline: none; transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; padding: 0 45px 0 15px; cursor: pointer; }
input { padding: 0 56px 0 15px; }
select:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,163,90,.15); }
.measure-guide { margin: 18px 0; padding: 13px 15px; border-left: 2px solid var(--gold); background: #faf5ea; color: #5f5a50; font-size: 12px; line-height: 1.55; }
.measure-guide strong { color: var(--navy); }
.measure-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.measure-field { position: relative; }
.measure-field.wide { grid-column: 1 / -1; }
.measure-field label { display: block; margin-bottom: 7px; color: #4e5968; font-size: 12px; font-weight: 700; }
.measure-field .unit { position: absolute; right: 14px; bottom: 15px; color: #9298a1; font-size: 12px; }
.field-help { display: block; margin-top: 5px; color: #8a909a; font-size: 10px; line-height: 1.4; }
.input-error { margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.primary-button {
  width: 100%; min-height: 54px; margin-top: 22px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between;
  border: 0; border-radius: 2px; background: var(--navy); color: white; cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  transition: transform .18s, background .18s;
}
.primary-button:hover { background: var(--navy-2); transform: translateY(-1px); }
.primary-button span { color: var(--gold); font-size: 20px; }

.result-panel { margin-top: 24px; padding: 22px; border: 1px solid #d9d4ca; border-radius: 2px; background: #f9f7f2; }
.result-panel.success { border-color: #b8d9c9; background: var(--success-bg); }
.result-panel.warning { border-color: #ead09f; background: var(--warning-bg); }
.result-panel.danger { border-color: #edc4c4; background: var(--danger-bg); }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.result-kicker { margin: 0 0 5px; color: #667085; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.result-panel h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.result-size { color: var(--success); font-size: 38px; font-weight: 800; line-height: 1; }
.result-panel p { margin: 12px 0 0; color: #53606c; font-size: 13px; line-height: 1.55; }
.confidence-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.68); color: #4f5b65; font-size: 10px; font-weight: 800; letter-spacing: .06em; }

.comparison-section { padding: 100px max(24px, calc((100vw - 1180px) / 2)); background: var(--navy); color: white; }
.section-heading { display: flex; justify-content: space-between; gap: 70px; align-items: end; margin-bottom: 32px; }
.section-heading h2, .method-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 49px); font-weight: 500; letter-spacing: -.025em; }
.section-heading > p { max-width: 430px; margin: 0; color: #b7c0cb; font-size: 14px; line-height: 1.65; }
.table-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045); }
.table-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; border-bottom: 1px solid rgba(255,255,255,.13); color: #d9dee4; font-size: 11px; }
.data-status { display: inline-flex; align-items: center; gap: 7px; }
.data-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 18px 22px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
th { color: var(--gold-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
td { color: #f6f7f8; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-match { background: rgba(199,163,90,.18); }
.size-cell { color: var(--gold); font-family: Georgia, serif; font-size: 20px; }
.estimated-mark { display: block; margin-top: 3px; color: #aeb8c4; font-family: Inter, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.missing-value { color: #8d9aac; }
.table-footnote { padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.1); color: #aab4c0; font-size: 11px; line-height: 1.6; }

.method-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.method-copy h2 { color: var(--navy); }
.method-copy > p:last-child { color: #66717e; font-size: 14px; line-height: 1.75; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method-grid article { min-height: 220px; padding: 28px 23px; background: var(--paper); border: 1px solid var(--line); }
.method-grid article > span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: Georgia, serif; }
.method-grid h3 { margin: 46px 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.method-grid p { margin: 0; color: #727b87; font-size: 12px; line-height: 1.6; }

footer { display: grid; grid-template-columns: auto 1fr 1.5fr; align-items: center; gap: 40px; padding: 36px max(24px, calc((100vw - 1180px) / 2)); background: #eee9df; color: var(--navy); border-top: 1px solid #d8d1c5; }
.footer-brand { color: var(--navy); align-self: center; }
footer > p { margin: 0; color: #3f4d5f; font-family: Georgia, serif; font-style: italic; }
footer .disclaimer { color: #747d88; font-family: inherit; font-style: normal; font-size: 10px; line-height: 1.5; text-align: right; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; max-width: 720px; }
  .hero-copy { text-align: center; }
  .intro, .confidence-note { margin-left: auto; margin-right: auto; }
  .confidence-note { text-align: left; }
  .method-section { grid-template-columns: 1fr; gap: 45px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer .disclaimer { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 32px); min-height: 76px; }
  .privacy-pill { padding: 8px 10px; font-size: 10px; }
  .brand-logo-horizontal { width: 132px; }
  .brand-logo-vertical { width: 64px; }
  .hero { width: calc(100% - 28px); margin-top: 20px; margin-bottom: 72px; gap: 34px; }
  .hero h1 { font-size: 47px; }
  .intro { margin: 20px auto; font-size: 14px; line-height: 1.65; }
  .fitter-card { padding: 25px 18px; }
  .card-heading { align-items: flex-start; }
  .card-heading h2 { font-size: 21px; }
  .measure-fields { grid-template-columns: 1fr; }
  .measure-field.wide { grid-column: auto; }
  .comparison-section { padding: 72px 14px; }
  .section-heading { display: block; margin: 0 10px 26px; }
  .section-heading > p { margin-top: 16px; }
  .table-meta { align-items: flex-start; flex-direction: column; }
  th, td { padding: 15px 16px; }
  .method-section { width: calc(100% - 28px); padding: 72px 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: auto; }
  .method-grid h3 { margin-top: 25px; }
  footer { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  footer .disclaimer { grid-column: auto; }
}

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