@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ecdf;
  --paper-2: #fffaf3;
  --ink: #1c1915;
  --ink-soft: #4e463d;
  --forest: #1e3d34;
  --forest-2: #2f6a57;
  --ochre: #a65324;
  --line: #e3d5c3;
  --good: #1d6b45;
  --good-bg: #e6f4ec;
  --mid: #8a5a12;
  --mid-bg: #f8efd4;
  --bad: #8c2f2a;
  --bad-bg: #f8e4e1;
  --muted: #5c564e;
  --muted-bg: #efe8dc;
  --shadow: 0 20px 50px rgba(48, 32, 14, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(166, 83, 36, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f1e6 0%, var(--paper) 28%, #efe4d4 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(28, 25, 21, 0.045) 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.top {
  position: relative;
  z-index: 1;
  padding: 1.1rem 0;
}

.top-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.mark { width: 48px; height: 48px; flex: none; }

.eyebrow,
.kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 650;
}

.wordmark {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.price-pill {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.8);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

h1, h2, h3, .headline {
  font-family: var(--serif);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); margin: 0.35rem 0 0.8rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0.2rem 0 0.6rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }

.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  padding: 0.6rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.questions {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.questions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.questions span {
  font-family: var(--serif);
  color: var(--forest);
  font-size: 1.2rem;
}

.questions p { margin: 0; font-size: 1.15rem; }

.sheet {
  background: var(--paper-2);
  border: 1px solid #e7dccb;
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.sheet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 8px;
  background: linear-gradient(180deg, var(--forest), var(--forest-2));
}

.sheet-pad { padding: 1.3rem 1.3rem 1.3rem 1.6rem; }

label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-weight: 650;
}

input {
  width: 100%;
  border: 1.5px solid #ddcfc0;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font: 500 1rem/1.3 var(--sans);
  min-height: 48px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

.hint, .fine { color: var(--ink-soft); font-size: 0.95rem; }
.hint { margin: 0.45rem 0 0; }

.form-error {
  margin: 0.7rem 0 0;
  background: var(--bad-bg);
  color: var(--bad);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.button {
  appearance: none;
  border: 1.5px solid var(--forest);
  background: var(--forest);
  color: #f7f3ea;
  font: 650 1rem/1 var(--sans);
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.button.secondary {
  background: transparent;
  color: var(--forest);
}

.button:disabled { opacity: 0.65; cursor: progress; }

.results { position: relative; z-index: 1; margin: 0.4rem 0 1.4rem; }

.result-block { display: grid; gap: 1rem; }

.banner {
  margin: 0 0 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f4e2c4;
  color: #5d3b12;
}

.headline { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0.4rem 0 0; }

.q-grid, .limit-grid, .offer {
  display: grid;
  gap: 0.9rem;
}

.q-grid { grid-template-columns: 1fr 1fr; }

.q-card, .finding, .limits article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: #fffdf9;
  min-width: 0;
}

.q-card p, .finding p, .limits p { margin: 0.35rem 0 0; }

.status {
  display: inline-flex;
  margin: 0 0 0.45rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.in_place { background: var(--good-bg); color: var(--good); }
.status.partial { background: var(--mid-bg); color: var(--mid); }
.status.needs_attention { background: var(--bad-bg); color: var(--bad); }
.status.not_checked { background: var(--muted-bg); color: var(--muted); }

.honesty {
  border-left: 4px solid var(--ochre);
  padding: 0.2rem 0 0.2rem 0.9rem;
  color: var(--ink-soft);
}

.findings { display: grid; gap: 0.7rem; }

.finding strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 620; display: block; }

.meta { color: var(--muted); font-size: 0.92rem; }

.technical {
  background: #fffdf9;
  border-radius: 16px;
  border: 1px dashed var(--line);
  padding: 0.8rem 1rem;
}

.technical dl { margin: 0.6rem 0 0; display: grid; gap: 0.55rem; }
.technical dt { font-weight: 700; }
.technical dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; color: var(--ink-soft); }

.forward { margin: 0; }

.offer {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  margin: 1rem 0 1.6rem;
  position: relative;
  z-index: 1;
}

.offer-points { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.offer-points li + li { margin-top: 0.4rem; }

.limits { position: relative; z-index: 1; margin-bottom: 2rem; }
.limit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.8rem; }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--ink-soft);
}

.footer-inner { align-items: start; }
.footer-inner p { margin: 0 0 0.45rem; max-width: 52ch; overflow-wrap: anywhere; }
.footer-inner p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--forest); font-weight: 650; }

.loading {
  padding: 1.2rem 1.3rem 1.2rem 1.6rem;
}

@media (max-width: 860px) {
  h1 { font-size: 2.05rem; }
  .lede, .questions p { font-size: 1.02rem; }
  .questions { margin-top: 0.85rem; gap: 0.45rem; }
  .hero, .q-grid, .offer, .limit-grid, .top-inner, .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .top-inner, .footer-inner { display: grid; }
  .price-pill { white-space: normal; justify-self: start; }
  .actions { display: grid; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: white; }
  body::before, .top, .hero-copy, .offer, .limits, .site-footer, .actions, .forward { display: none !important; }
  .sheet { box-shadow: none; }
}
