:root {
  --bg: #f6f4f1;
  --ink: #1f1d1b;
  --muted: #4a4642;
  --gold-deep: #7a6418;
  --line: #e4dfd8;
  --surface: #fffcfa;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header, main { max-width: 880px; margin: 0 auto; padding: 32px 24px; }
.site-nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
[data-site-search] {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
}
.site-search {
  position: relative;
  display: block;
  width: 100%;
}
.site-search input[type="search"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
}
.search-drop {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 29, 27, 0.08);
  max-height: 320px;
  overflow: auto;
}
.search-drop a {
  display: block;
  padding: 8px 12px;
  font-weight: 600;
}
.search-drop a span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.search-drop a.is-active,
.search-drop a:hover {
  background: #efece8;
}
.search-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
footer h2 {
  font-family: Georgia, serif;
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--ink);
}
.site-footer {
  margin-top: 48px;
  padding: 0;
  max-width: none;
  width: 100%;
  background: #ece8e1;
  border-top: 1px solid var(--gold-deep);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px 28px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.footer-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.footer-grid li { margin: 0; min-width: 0; }
.footer-grid a {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: block;
  line-height: 1.25;
}
.footer-grid a:hover { text-decoration: underline; }
.footer-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-product {
  margin: 0 0 16px;
  font-size: 13px;
}
.footer-legal {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #c4b89a;
  font-size: 12px;
}
.site-footer a { color: var(--ink); }
@media (max-width: 800px) {
  .footer-cols,
  .footer-grid { grid-template-columns: 1fr; }
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav .nav-brand {
  font-family: Georgia, "Iowan Old Style", serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-size: 18px;
}
.site-nav .nav-install {
  font-size: 14px;
  background: #2a2724;
  color: #fff8e7;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.page-links { list-style: none; padding: 0; margin: 0; }
.page-links li { margin: 0 0 10px; }
.page-links a { color: var(--ink); font-weight: 600; }
.page-links span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.cta-secondary { color: var(--ink); font-weight: 600; font-size: 14px; }
.hero {
  padding: 64px 24px 40px;
  text-align: center;
}
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-deep);
}
h1.brand {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 8px 0 12px;
  line-height: 0.95;
}
.slogan {
  margin: 0 auto 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.related-checks {
  columns: 2;
  gap: 8px 24px;
  margin: 0;
  padding-left: 1.2em;
}
.related-checks li {
  break-inside: avoid;
  margin: 0 0 8px;
}
.headline {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 720px;
  line-height: 1.3;
}
.page-title {
  font-size: clamp(26px, 5vw, 34px);
  max-width: 760px;
}
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0 auto 28px; }
body[data-tool] .hero,
body.tool-page .hero {
  padding: 18px 24px 6px;
}
body[data-tool] .lede,
body.tool-page .lede {
  margin-bottom: 6px;
  font-size: 15px;
}
body[data-tool] main,
body.tool-page main {
  padding-top: 4px;
  padding-bottom: 24px;
}
.price { font-size: 15px; color: var(--gold-deep); font-weight: 700; margin-bottom: 20px; }
.cta {
  display: inline-block;
  color: #fff8e7;
  background: #2a2724;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
}
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }
main section + section { margin-top: 56px; padding-top: 8px; }
section h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 0 0 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
article h3 a { color: var(--ink); }
article p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
ol { color: var(--muted); line-height: 1.7; padding-left: 22px; }
ol li { margin: 8px 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.legal-wrap h1 { font-size: 36px; }
.legal-wrap .meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.legal-wrap h2 { font-family: Georgia, serif; font-size: 20px; margin: 28px 0 10px; }
.legal-wrap p, .legal-wrap li { color: var(--ink); line-height: 1.65; font-size: 15px; }
.legal-wrap ul { padding-left: 22px; }
.legal-nav { margin-bottom: 24px; font-size: 14px; }
.legal-nav a { color: var(--ink); }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.tool-card textarea,
.tool-card input:not([type="file"]) {
  width: 100%;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.file-field {
  margin: 4px 0 16px;
}
.file-field__label {
  margin: 0 0 8px;
  font-weight: 600;
}
.file-field__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-field__btn {
  display: inline-block;
  cursor: pointer;
  margin: 0 10px 0 0;
  padding: 10px 18px;
  border: 1px solid #2a2724;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.file-field__btn:hover,
.file-field__input:focus + .file-field__btn {
  background: #efece8;
}
.file-field__name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.tool-card label { display: block; font-weight: 600; }
.opp-stats { list-style: none; padding: 0; margin: 12px 0; }
.opp-stats li { margin: 8px 0; }
.pill {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
.pill-green { background: #2f6a3f; }
.pill-yellow { background: #b9973a; }
.pill-red { background: #9b3b32; }
#opp-report { margin-top: 24px; }
.param-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.tool-out.is-error { color: #9b3b32; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -10000px;
  top: 8px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
}
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
