@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f0e6;
  --paper: #fffdf8;
  --ink: #1c2420;
  --ink-2: #4a544e;
  --ink-3: #6f7872;
  --line: #e2d9c8;
  --lake: #1f4b4a;
  --lake-2: #2c6664;
  --lake-soft: #e3eeec;
  --cedar: #b4532a;
  --cedar-soft: #f6e4da;
  --sage: #6f8a6a;
  --warn: #8a5100;
  --warn-soft: #fbefd9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28,36,32,.06), 0 8px 24px rgba(28,36,32,.06);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Public Sans', system-ui, sans-serif;
  /* tokens the hosted login page reads */
  --brand: var(--lake);
  --on-brand: #fff;
  --text: var(--ink);
  --text-dim: var(--ink-2);
  --border: var(--line);
  --surface: var(--paper);
  --sans: var(--body);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lake); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 19px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--ink-3); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--lake); display: grid; place-items: center; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.topbar .call { font-weight: 600; text-decoration: none; white-space: nowrap; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.pad { padding: 24px; }
@media (max-width: 640px) { .pad { padding: 18px; } }

label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lake-2); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px var(--body); border: 0; border-radius: var(--radius); padding: 13px 20px; cursor: pointer;
  background: var(--lake); color: #fff; text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--lake-2); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.cedar { background: var(--cedar); }
.btn.cedar:hover { background: #9c4621; }
.btn.ghost { background: transparent; color: var(--lake); border: 1px solid var(--line); }
.btn.block { width: 100%; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge.high { background: var(--lake-soft); color: var(--lake); }
.badge.medium { background: var(--cedar-soft); color: #9c4621; }
.badge.low { background: var(--warn-soft); color: var(--warn); }

.note { background: var(--warn-soft); border-left: 3px solid var(--warn); padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.error { color: #a12d1c; font-size: 14px; margin-top: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; font-size: 13px; color: var(--ink-2); background: var(--paper); }

.reveal { opacity: 0; transform: translateY(8px); animation: rv .5s ease forwards; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; }
@keyframes rv { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

@media print {
  .topbar, footer.site, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}