:root {
  --midnight: #0f1624;
  --slate: #44596a;
  --sage: #9daa8a;
  --bone: #ebe4da;
  --stone: #c7cbc2;
  --terracotta: #c9684a;
  --paper: #f8f5ef;
  --line: rgba(15, 22, 36, 0.14);
  --ink-soft: #66727d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--midnight);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 68px);
  background: rgba(248, 245, 239, 0.9);
  border-bottom: 1px solid rgba(15, 22, 36, 0.1);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 22, 36, 0.12);
  border-radius: 8px;
  background: #fffaf3;
}
.brand-logo { width: 31px; height: 32px; object-fit: contain; }
.brand-text { display: grid; gap: 1px; }
.brand-name { font-weight: 800; }
.brand-legal {
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--slate); font-size: 14px; }
.nav-links a { padding: 8px 0; }
.nav-links .active { color: var(--midnight); font-weight: 800; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 22, 36, 0.18);
  border-radius: 7px;
  background: rgba(255, 250, 243, 0.72);
}
.nav-toggle span { display: block; height: 2px; background: var(--midnight); }
.mobile-menu { display: none; }

.home-hero {
  min-height: min(720px, calc(100vh - 75px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 5vw, 70px) 0;
}
.hero-copy-block h1, .page-head h1 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
}
.eyebrow, .section-kicker {
  margin-bottom: 14px;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hero-copy, .lead {
  max-width: 720px;
  color: var(--slate);
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
}
.button-primary { background: var(--terracotta); color: #fff; }
.button-secondary { border-color: rgba(15, 22, 36, 0.18); background: rgba(255, 250, 243, 0.7); color: var(--midnight); }

.snapshot-card {
  border: 1px solid rgba(15, 22, 36, 0.13);
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 0 18px 48px rgba(15, 22, 36, 0.12);
}
.snapshot-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--midnight);
  color: var(--paper);
}
.snapshot-top strong, .snapshot-top span { display: block; }
.snapshot-top span { color: rgba(248, 245, 239, 0.68); font-size: 13px; }
.snapshot-card a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--slate);
}
.snapshot-card a b { color: var(--midnight); }

.section { padding: clamp(30px, 4vw, 48px) clamp(20px, 5vw, 68px); }
.compact { padding-top: clamp(20px, 3vw, 34px); padding-bottom: clamp(24px, 3vw, 38px); }
.section-inner { width: min(1080px, 100%); margin: 0 auto; }
.band { background: var(--bone); }
h2 {
  max-width: 700px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.06;
}
.card-grid { display: grid; gap: 16px; margin-top: 20px; }
.section-inner.card-grid { margin-top: 0; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
}
.card.featured { border-color: rgba(201, 104, 74, 0.42); box-shadow: 0 18px 44px rgba(15, 22, 36, 0.08); }
.card-label {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(157, 170, 138, 0.22);
  color: #526044;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.card h3 { font-size: 23px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.text-link { display: inline-flex; margin-top: 10px; color: var(--terracotta); font-weight: 800; }
.price { color: var(--midnight) !important; font-family: var(--serif); font-size: 30px; line-height: 1; }

.split, .split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}
.list-panel {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}
.list-panel p {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}

.page-head {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 4vw, 52px) 0 clamp(16px, 3vw, 28px);
}
.contact-page .page-head {
  padding-bottom: clamp(8px, 1.5vw, 18px);
}
.contact-page .section.compact {
  padding-top: clamp(12px, 2vw, 22px);
}
.dark-note {
  margin-top: 22px;
  padding: 24px;
  border-radius: 8px;
  background: var(--midnight);
  color: var(--paper);
}
.dark-note b { display: block; margin-bottom: 14px; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.dark-note p { color: rgba(248, 245, 239, 0.72); margin-bottom: 0; }

.service-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 22px 24px;
  background: #fffaf3;
}
.service-row b { color: var(--terracotta); font-family: var(--serif); font-size: 34px; font-weight: 500; }
.service-row h2 { font-family: var(--sans); font-size: 24px; font-weight: 800; }
.service-row p { color: var(--slate); max-width: 760px; margin-bottom: 0; }

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.question-grid label { display: grid; gap: 8px; font-size: 14px; font-weight: 800; }
.question-grid select, .contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 22, 36, 0.16);
  border-radius: 7px;
  background: #fffaf3;
  color: var(--midnight);
  font-family: var(--sans);
}
.score-output {
  padding: 22px;
  border: 1px solid rgba(15, 22, 36, 0.12);
  border-radius: 8px;
  background: #fffaf3;
}
.score-output strong { color: var(--slate); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.score-value { margin: 10px 0; font-family: var(--serif); font-size: 64px; line-height: 0.95; }
.score-band {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(201, 104, 74, 0.14);
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
}
.score-output p, .score-output li { color: var(--slate); }
.score-output ul { padding-left: 18px; }

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { width: fit-content; }
.form-status { min-height: 20px; margin: 0; color: var(--slate); font-size: 14px; }
.form-status a, .card h3 a { color: var(--terracotta); }

.closing {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 7vw, 110px);
  padding: clamp(38px, 5vw, 62px) clamp(20px, 5vw, 68px);
  background: var(--midnight);
  color: var(--paper);
}
.closing h2 { margin-bottom: 0; }
.closing .section-kicker { color: var(--stone); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 24px clamp(20px, 5vw, 68px);
  background: #0a101a;
  color: rgba(248, 245, 239, 0.58);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open {
    display: grid;
    position: fixed;
    inset: 75px 0 auto 0;
    z-index: 19;
    background: rgba(248, 245, 239, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a { padding: 16px 24px; border-top: 1px solid rgba(15, 22, 36, 0.08); font-weight: 800; }
  .home-hero, .split, .split-head, .tool-panel { grid-template-columns: 1fr; }
  .card-grid.three, .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing, footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .brand-legal { display: none; }
  .hero-copy-block h1, .page-head h1 { font-size: 44px; }
  .hero-actions, .hero-actions .button, .closing .button { width: 100%; }
  .card-grid.two, .card-grid.three, .card-grid.four, .question-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}
