:root {
  --navy: #14213d;
  --navy-deep: #0d1730;
  --brass: #c9a227;
  --brass-soft: #f3e7bf;
  --paper: #f6f7f9;
  --white: #ffffff;
  --ink: #1b1f27;
  --muted: #5b6472;
  --rule: #dde1e7;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #000; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-stretch: 85%;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--white); }
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: #c9d1e0;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

/* Headings */
h1, h2, h3 {
  font-stretch: 75%;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; font-stretch: 85%; }

p { margin: 0 0 1em; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--brass); color: var(--navy-deep); }
.btn-primary:hover { background: #d9b33a; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }

/* Hero */
.hero {
  background: var(--navy);
  color: #dfe5ef;
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lede { font-size: 19px; max-width: 34em; color: #c9d1e0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { font-size: 14px; color: #93a0b8; margin-top: 16px; }

/* Logo watermark behind the estimate card */
.hero { overflow: hidden; }
.hero-visual {
  position: relative;
  padding: 40px 0;
}
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  pointer-events: none;
}
.hero-visual .ledger { position: relative; }

/* Ledger: the signature element */
.ledger {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.55);
  border-top: 6px solid var(--brass);
}
.ledger-title {
  font-weight: 700;
  font-stretch: 85%;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 4px;
}
.ledger-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.ledger dl { margin: 0; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
}
.ledger-row dt { color: var(--muted); }
.ledger-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
}
.ledger-total span { font-size: 15px; color: var(--navy); font-weight: 600; }
.ledger-total strong {
  font-size: 34px;
  font-stretch: 75%;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ledger-foot { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* Sections */
.section { padding: 72px 0; }
.section-intro { max-width: 40em; margin-bottom: 36px; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.feature {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.feature p { color: var(--muted); margin: 0; }

.privacy-band {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 0 0 18px 34px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2314213d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checklist strong { color: var(--navy); }

.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip p { color: var(--muted); margin: 0; max-width: 36em; }

/* Inner pages */
.page-head {
  background: var(--navy);
  padding: 48px 0 44px;
}
.page-head h1 { color: var(--white); margin: 0; font-size: clamp(34px, 5vw, 50px); }
.page-head p { color: #c9d1e0; margin: 10px 0 0; }

.prose {
  max-width: 44em;
  padding: 56px 20px 72px;
  margin: 0 auto;
}
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #333a46; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 40px;
}
.contact-card h2 { margin-top: 0; font-size: 24px; }
.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 650;
  word-break: break-all;
  margin: 4px 0 16px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #93a0b8;
  padding: 40px 0;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #c9d1e0; }
.disclaimer { max-width: 46em; margin: 0 0 8px; }

@media (max-width: 820px) {
  .hero-grid, .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .ledger { animation: rise 0.7s ease-out both 0.15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 820px) {
  .hero-logo { width: 105%; }
  .hero-visual { padding: 90px 0 70px; }
}
