@font-face { font-family: 'Bitter'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/bitter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bitter'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/bitter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/public-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --sand: #F4EDE1;
  --sand-light: #FBF7F0;
  --line: #E2D6C2;
  --green: #1F4D3A;
  --green-mid: #6E9A80;
  --sage: #A9C4B2;
  --terracotta: #C2603A;
  --terracotta-dark: #A84E2C;
  --gold: #F0C79A;
  --ink: #1F3B2E;
  --muted: #5B6B61;
  --white: #FFFFFF;
  --warn-bg: #FFF4E5;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: 'Public Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
}
h1, h2, h3, .wordmark, .big-number { font-family: 'Bitter', Georgia, serif; color: var(--green); }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--green); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--sand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.wordmark { font-size: 24px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { display: block; border-radius: 7px; }
.tagline { font-size: 13px; color: var(--muted); }

/* hero */
.hero { padding: 40px 0 24px; }
.hero .lead { font-size: 18px; max-width: 680px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 14px 0 0; padding: 0; list-style: none; }
.trust li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* cards & steps */
.card { background: var(--sand-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.step { display: none; padding: 8px 0 40px; }
.step.active { display: block; }
.step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.step-num { font-family: 'Bitter', serif; font-weight: 700; color: var(--terracotta); }

/* drop zone */
.drop {
  border: 2px dashed var(--green-mid); border-radius: 14px; background: var(--sand-light);
  padding: 36px 20px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.drop:hover, .drop.drag { background: #EEF4EF; border-color: var(--green); }
.drop strong { font-size: 18px; color: var(--green); display: block; margin-bottom: 4px; }
.drop small { color: var(--muted); }
.drop input { display: none; }

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 11px 18px; font: 700 15px 'Public Sans', sans-serif; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--terracotta); color: #FFF8F0; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-secondary { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-link { background: none; border: 0; color: var(--green); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* forms */
label { font-weight: 600; font-size: 14px; }
select, input[type=text], input[type=email], input[type=date], input[type=number] {
  font: 15px 'Public Sans', sans-serif; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); max-width: 100%;
}
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 20px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.req { color: var(--terracotta); }
.radio-row { display: flex; flex-direction: column; gap: 8px; }
.radio-row label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.note { font-size: 14px; color: var(--muted); }
.warn { background: var(--warn-bg); border: 1px solid #F1D3A8; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.error { background: #FCE9E4; border: 1px solid #E7B4A3; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0; color: #7A2E16; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: var(--sand-light); }
td.num, th.num { text-align: right; }
td.wrap-cell { white-space: normal; min-width: 200px; }
tr:last-child td { border-bottom: 0; }

/* results */
.headline { background: var(--green); color: var(--sand); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.headline .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; opacity: .85; }
.headline .big-number { color: var(--gold); font-size: clamp(36px, 7vw, 54px); font-weight: 700; line-height: 1.1; margin: 6px 0; }
.headline p { margin: 0; font-size: 16px; }
.headline .sub { opacity: .85; font-size: 14px; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--sand-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .n { font-family: 'Bitter', serif; font-size: 24px; font-weight: 700; color: var(--green); }
.tile .t { font-size: 13px; color: var(--muted); }
.tile.alert { border-left: 4px solid var(--terracotta); }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 120px; gap: 10px; align-items: center; font-size: 14px; }
.bar-track { background: #EDE5D6; border-radius: 4px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; }
.c-active { background: var(--sage); } .c-slow { background: var(--green-mid); } .c-nonmoving { background: var(--green); } .c-dead { background: var(--terracotta); } .c-never { background: #B8A98F; }

.gate { border: 2px solid var(--terracotta); }
.gate .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.consent { font-weight: 400; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }

.preview-badge { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.hidden { display: none !important; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-row .val { text-align: left; }
  .card { padding: 16px; }
  .headline { padding: 18px; }
}

.choice-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: stretch; }
.choice { display: flex; flex-direction: column; margin-bottom: 0; }
.choice .drop { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.choice .btn { align-self: flex-start; margin-top: auto; }
.preview-bar { background: var(--gold); color: var(--ink); font-size: 14px; padding: 8px 0; }
.preview-bar .preview-badge { background: var(--ink); color: var(--gold); margin-right: 6px; }
@media (max-width: 700px) { .choice-grid { grid-template-columns: 1fr; } }

.needs h4 { font-family: 'Bitter', Georgia, serif; color: var(--green); font-size: 16px; margin: 0 0 8px; }
.needs-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-top: 12px; }
.needs-col { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.needs-col.must { border-top: 4px solid var(--terracotta); }
.needs-col.nice { border-top: 4px solid var(--sage); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.checklist.two-col { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 700; }
.must .checklist li::before { color: var(--terracotta); }
.nice .checklist li::before { color: var(--green-mid); }
.tip { margin: 14px 0 0; padding: 10px 12px; background: var(--sand); border-radius: 8px; font-size: 14px; }
@media (max-width: 700px) { .needs-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .checklist.two-col { grid-template-columns: 1fr; } }

/* privacy and other text pages */
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 40px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 18px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
