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

:root {
  --ink: #15312c;
  --ink-soft: #415c56;
  --forest: #173a33;
  --forest-deep: #0f2924;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #dbe2dc;
  --sage: #dbe7d8;
  --gold: #e8a83f;
  --gold-pale: #fff2d7;
  --green: #1d6b4f;
  --green-pale: #e4f3eb;
  --red: #8a3f38;
  --red-pale: #f8e9e6;
  --gray-pale: #edf0ee;
  --shadow: 0 16px 48px rgba(19, 49, 43, 0.09);
  --radius: 20px;
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--white);
  color: var(--forest);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 36px), var(--shell));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background:
    radial-gradient(circle at 84% 18%, rgba(232, 168, 63, 0.2) 0 1px, transparent 2px) 0 0 / 22px 22px,
    linear-gradient(142deg, var(--forest-deep), var(--forest) 66%, #245147);
  color: var(--white);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  right: -140px;
  bottom: -220px;
  width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
}

.hero::after {
  right: 4%;
  top: 30%;
  width: 230px;
  height: 120px;
  opacity: 0.17;
  background: repeating-linear-gradient(90deg, transparent 0 22px, var(--gold) 23px 25px);
  transform: rotate(-8deg);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 27px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  background: var(--gold);
}

.brand-mark::before {
  top: 8px;
}

.brand-mark::after {
  top: 15px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:not(.nav-cta):hover {
  color: #f8dba5;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 9px 16px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 92px 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #87550c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: #f5c673;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  max-width: 860px;
  font-size: clamp(3rem, 10vw, 6.8rem);
}

h1 em {
  color: #f4c46f;
  font-weight: inherit;
}

h2 {
  font-size: clamp(2.25rem, 6vw, 4.2rem);
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.lede {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--gold);
  color: #1b2f2b;
}

.button-primary:hover {
  background: #f1b855;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 770px;
  margin-top: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.hero-note svg {
  flex: 0 0 20px;
  width: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-note strong {
  color: var(--white);
}

.section {
  padding-block: 86px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.snapshot-grid {
  display: grid;
  gap: 14px;
}

.snapshot-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px;
}

.snapshot-number {
  display: block;
  margin-bottom: 30px;
  color: #b27719;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
}

.snapshot-card h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.snapshot-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-tint {
  background: var(--cream);
}

.bid-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 340px);
  align-items: stretch;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 2px 18px 14px 2px;
}

.bid-scroll,
.comparison-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #9eaca7 #e7e9e5;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
  -webkit-overflow-scrolling: touch;
}

.bid-scroll {
  border-radius: var(--radius);
}

.bid-scroll:focus-visible,
.comparison-scroll:focus-visible {
  outline: 3px solid #b97918;
  outline-offset: 4px;
}

.bid-scroll::-webkit-scrollbar,
.comparison-scroll::-webkit-scrollbar {
  height: 10px;
}

.bid-scroll::-webkit-scrollbar-track,
.comparison-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e7e9e5;
}

.bid-scroll::-webkit-scrollbar-thumb,
.comparison-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #e7e9e5;
  border-radius: 999px;
  background: #72817c;
}

.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -10px 0 10px;
  color: #5b6d68;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.scroll-cue-arrow {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 1rem;
}

.bid-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d8ddd6;
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(21, 49, 44, 0.04);
  scroll-snap-align: start;
}

.bid-card.featured {
  border-color: #b68739;
  box-shadow: var(--shadow);
}

.bid-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.bid-card-header h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
}

.bid-type {
  margin: 0 0 4px;
  color: #61716c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.scope-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.scope-renovation {
  background: var(--gold-pale);
  color: #744b0e;
}

.scope-rebuild {
  background: var(--green-pale);
  color: #15573f;
}

.price {
  margin: 25px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price span {
  font-size: 0.58em;
}

.price-caption {
  margin: 6px 0 0;
  color: #61716c;
  font-size: 0.77rem;
  font-weight: 600;
}

.split-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.split-prices > div + div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.split-prices .price {
  font-size: clamp(1.45rem, 6vw, 2.15rem);
  white-space: nowrap;
}

.three-prices {
  grid-template-columns: 1fr;
  gap: 0;
}

.three-prices > div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
}

.three-prices > div + div {
  border-top: 1px solid var(--line);
  border-left: 0;
  padding-left: 0;
}

.three-prices .price {
  margin-top: 0;
}

.three-prices .price-caption {
  margin-top: 0;
}

.alt-price {
  color: #47615b;
}

.cash-line {
  margin: 13px 0 0;
  border-radius: 9px;
  background: var(--gray-pale);
  padding: 9px 11px;
  color: #536762;
  font-size: 0.77rem;
}

.scope-summary {
  margin-top: 24px;
  border-radius: 12px;
  background: #f5f6f3;
  padding: 16px;
}

.scope-summary strong,
.caveat strong {
  display: block;
  margin-bottom: 5px;
  color: #5d706a;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.scope-summary p,
.caveat p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.status-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-block: 11px;
  font-size: 0.79rem;
}

.status-list li > span:last-child {
  max-width: 50%;
  color: #536762;
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.status > span:first-child {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
}

.included {
  background: var(--green-pale);
  color: #15573f;
}

.included > span:first-child {
  background: var(--green);
  color: var(--white);
}

.excluded {
  background: var(--gray-pale);
  color: #495d58;
}

.excluded > span:first-child {
  background: #667873;
  color: var(--white);
}

.unclear,
.partial {
  background: var(--gold-pale);
  color: #744b0e;
}

.unclear > span:first-child,
.partial > span:first-child {
  background: #a86c0f;
  color: var(--white);
}

.caveat {
  margin-top: auto;
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}

.detailed-comparison {
  display: block;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.comparison-grid {
  display: block;
  width: 1080px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.comparison-scroll {
  border-radius: var(--radius);
}

.grid-row {
  display: grid;
  grid-template-columns: 1.05fr repeat(5, minmax(0, 1fr));
}

.grid-row + .grid-row {
  border-top: 1px solid var(--line);
}

.grid-row > div {
  min-width: 0;
  padding: 16px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.grid-row > div + div {
  border-left: 1px solid var(--line);
}

.grid-row > div[role="rowheader"] {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f4f5f2;
  box-shadow: 5px 0 9px -8px rgba(15, 41, 36, 0.7);
  font-weight: 700;
}

.grid-row strong,
.grid-row small {
  display: block;
}

.grid-row small {
  margin-top: 4px;
  color: #63746f;
  font-size: 0.68rem;
}

.grid-header {
  background: var(--forest);
  color: var(--white);
}

.grid-header > div:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--forest-deep);
  box-shadow: 5px 0 9px -8px rgba(0, 0, 0, 0.9);
}

.grid-header > div {
  padding-block: 20px;
}

.grid-header small {
  color: rgba(255, 255, 255, 0.67);
}

.mobile-grid-note {
  margin: 12px 0 0;
  border-radius: 12px;
  background: var(--cream);
  padding: 15px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
}

.section-dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.question-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: none;
  list-style: none;
}

.question-grid li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 22px;
}

.question-grid li > span {
  color: #f0bd65;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

.question-grid h3 {
  margin-bottom: 6px;
  color: var(--white);
}

.question-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  line-height: 1.55;
}

.recommendation {
  padding-bottom: 100px;
}

.recommendation-lead {
  display: grid;
  gap: 20px;
  border-radius: var(--radius);
  background: var(--cream);
  padding: 26px;
}

.recommendation-badge,
.recommendation-options article > span {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  place-items: center;
  background: var(--forest);
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}

.recommendation-kicker {
  margin: 0 0 5px;
  color: #87550c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.recommendation-lead h3,
.recommendation-options h3,
.decision-callout h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.recommendation-lead > div:last-child > p:last-child,
.recommendation-options article > p:last-child {
  margin: 13px 0 0;
  color: var(--ink-soft);
}

.recommendation-options {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.recommendation-options article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.recommendation-options article > span {
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  background: var(--sage);
  color: var(--forest);
  font-size: 0.83rem;
}

.decision-callout {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--forest);
  padding: 28px;
  color: var(--white);
}

.decision-callout .eyebrow {
  color: #f5c673;
}

.decision-callout > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

footer {
  background: #0b221e;
  color: rgba(255, 255, 255, 0.67);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-block: 26px;
  font-size: 0.76rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--white);
}

@media (min-width: 640px) {
  .shell {
    width: min(calc(100% - 64px), var(--shell));
  }

  .nav-links {
    display: flex;
  }

  .snapshot-grid,
  .snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recommendation-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bid-card {
    padding: 28px;
  }

  .recommendation-lead {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 34px;
  }

  .decision-callout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    padding: 36px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 760px) {
  .bid-cards {
    grid-auto-columns: min(42vw, 360px);
  }

  .question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-block: 112px 86px;
  }

  .section {
    padding-block: 112px;
  }

  .question-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 46px;
  }

  .recommendation-options article {
    padding: 28px;
  }
}

@media (min-width: 1180px) {
  .bid-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: row;
    width: 100%;
    padding: 2px 2px 14px;
  }

  .bid-card {
    padding: 20px;
  }

  .split-prices .price {
    font-size: 1.32rem;
  }

  .bid-card > .price {
    font-size: 2.25rem;
  }

  .bid-card-header {
    display: block;
  }

  .scope-pill {
    display: inline-flex;
    margin-top: 10px;
  }

  .status-list li {
    display: grid;
  }

  .status-list li > span:last-child {
    max-width: none;
    text-align: left;
  }

  .comparison-grid {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .mobile-grid-note {
    display: none;
  }
}

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

@media print {
  .hero {
    min-height: auto;
    background: var(--white);
    color: var(--ink);
  }

  .hero .eyebrow,
  .section-dark .eyebrow,
  h1 em {
    color: #835615;
  }

  .nav-links,
  .hero-actions {
    display: none;
  }

  .lede,
  .hero-note {
    color: var(--ink-soft);
  }

  .section-dark {
    background: var(--white);
    color: var(--ink);
  }

  .section-dark .section-heading > p:last-child,
  .question-grid p {
    color: var(--ink-soft);
  }

  .question-grid h3 {
    color: var(--ink);
  }
}
