/* ============ Tokens ============ */
:root {
  --blue: #5E8FBE;
  --blue-dark: #487EB2;
  --green: #91A681;
  --green-dark: #7F976C;
  --terra: #D38A69;
  --terra-dark: #CA734C;
  --gold: #EAB54F;
  --gold-dark: #E6A72D;
  --charcoal: #233041;
  --charcoal-soft: #3B4A5F;
  --ink: #1B2634;
  --paper: #FBF9F6;
  --paper-2: #F3EFE8;
  --line: #E4DFD5;
  --white: #FFFFFF;

  --font-head: "Geist", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(35, 48, 65, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 48, 65, 0.10);
  --shadow-lg: 0 20px 48px rgba(35, 48, 65, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 26ch; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section-kicker.light { color: var(--gold); }
.section-lead {
  max-width: 62ch;
  color: var(--charcoal-soft);
  font-size: 1.08rem;
}
.section-lead.light { color: #C9D2DE; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terra-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal-soft);
}
.btn-ghost:hover { color: var(--charcoal); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 30px; width: auto; display: block; }

.main-nav {
  display: flex;
  gap: 28px;
  margin: 0 auto 0 40px;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--charcoal-soft);
}
.main-nav a:hover { color: var(--charcoal); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  display: block;
}

@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 16px 24px 8px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav a { padding: 10px 0; }
  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(76px + 190px);
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
}

/* ============ Hero ============ */
.hero { padding-top: 72px; padding-bottom: 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 52ch;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 28px 0 16px; }
.hero-form { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-form input {
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.98rem;
  font-family: var(--font-body);
  min-width: 260px;
}
.hero-form input::placeholder { color: var(--charcoal-soft); }
.hero-form input:focus { outline: none; border-color: var(--terra); }
.hero-form-status { font-size: 0.9rem; color: var(--terra-dark); margin: 0; min-height: 1.2em; }
.hero-secondary-link {
  display: inline-block;
  color: var(--charcoal-soft);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-note { font-size: 0.9rem; color: var(--charcoal-soft); }

.hero-photo {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1254 / 920;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

/* ============ Stats band ============ */
.stats-band {
  background: var(--charcoal);
  color: var(--white);
}
.stats-head {
  color: var(--white);
  max-width: 34ch;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 3px solid rgba(255,255,255,0.18);
}
.stat-head {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gold);
}
.stat-label { font-size: 0.92rem; color: #C9D2DE; }

.stat-blue  { border-top-color: var(--blue); }
.stat-green { border-top-color: var(--green); }
.stat-terra { border-top-color: var(--terra); }
.stat-gold  { border-top-color: var(--gold); }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============ Offerings ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.offer-card p { color: var(--charcoal-soft); font-size: 0.96rem; margin-bottom: 0; }
.offer-wide { grid-column: span 4; }
.offerings-note {
  margin-top: 32px;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  font-style: italic;
}

.offer-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.offer-icon svg { width: 24px; height: 24px; }

.offer-blue { border-top-color: var(--blue); }
.offer-blue .offer-icon { background: rgba(94,143,190,0.14); color: var(--blue-dark); }
.offer-green { border-top-color: var(--green); }
.offer-green .offer-icon { background: rgba(145,166,129,0.16); color: var(--green-dark); }
.offer-terra { border-top-color: var(--terra); }
.offer-terra .offer-icon { background: rgba(211,138,105,0.16); color: var(--terra-dark); }
.offer-gold { border-top-color: var(--gold); }
.offer-gold .offer-icon { background: rgba(234,181,79,0.2); color: var(--gold-dark); }
.offer-charcoal { border-top-color: var(--charcoal); }
.offer-charcoal .offer-icon { background: rgba(35,48,65,0.08); color: var(--charcoal); }

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .offer-wide { grid-column: span 1; }
}

/* ============ Marketplace ============ */
.marketplace { background: var(--paper-2); }
.marketplace-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 26px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--terra);
}
.feature-list li:nth-child(2)::before { background: var(--blue); }
.feature-list li:nth-child(3)::before { background: var(--green); }
.feature-list li:nth-child(4)::before { background: var(--gold); }
.feature-list strong { font-size: 1.02rem; color: var(--charcoal); }
.feature-list span { color: var(--charcoal-soft); font-size: 0.95rem; }

.score-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 380px;
  margin: 0 auto;
}
.score-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.score-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-head);
  flex-shrink: 0;
}
.score-name { font-weight: 600; margin: 0; color: var(--charcoal); }
.score-badge { margin: 2px 0 0; font-size: 0.82rem; color: var(--green-dark); font-weight: 600; }

.score-bars { display: flex; flex-direction: column; gap: 14px; }
.score-row span { display: block; font-size: 0.85rem; color: var(--charcoal-soft); margin-bottom: 6px; }
.bar { background: var(--paper-2); border-radius: 999px; height: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }

.score-footnote {
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 900px) {
  .marketplace-inner { grid-template-columns: 1fr; }
}

/* ============ How it works ============ */
.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 16px;
}
.step p { color: var(--charcoal-soft); font-size: 0.96rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ Comparison ============ */
.table-scroll { overflow-x: auto; margin-top: 40px; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  table-layout: fixed;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.compare-table th:first-child, .compare-table td:first-child { width: 44%; }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) {
  width: 18.67%;
  text-align: center;
  border-left: 1px solid var(--line);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.compare-table thead th {
  background: var(--paper-2);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--charcoal);
}
.compare-table thead th:first-child { background: var(--paper-2); }
.compare-table tbody td:first-child { color: var(--charcoal-soft); }
.compare-table th:nth-child(2), .compare-table td:nth-child(2) {
  background: rgba(211,138,105,0.08);
  font-weight: 600;
}
.compare-table .yes { color: var(--green-dark); font-weight: 600; }
.compare-table .no { color: #A9394B; }
.compare-table .partial { color: var(--gold-dark); }

/* ============ Pricing ============ */
.pricing-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  margin-top: 12px;
}
.pricing-photo {
  display: block;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1448 / 1086;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .pricing-inner { grid-template-columns: 1fr; text-align: center; }
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.price-card-featured {
  background: var(--charcoal);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.price-card-featured h3, .price-card-featured .price-tag { color: var(--white); }
.price-card-featured .price-desc { color: #C9D2DE; }
.price-card-featured li { color: #DCE3EC; }
.price-ribbon {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.price-tag {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--terra-dark);
  margin-bottom: 6px;
}
.price-desc { color: var(--charcoal-soft); font-size: 0.94rem; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--charcoal-soft);
}
.price-card ul li { padding-left: 22px; position: relative; }
.price-card ul li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--green-dark);
  font-weight: 700;
}
.price-card-featured ul li::before { color: var(--gold); }

@media (max-width: 940px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
}

/* ============ Contractors band ============ */
.contractors {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2C3B4F 100%);
  color: var(--white);
}
.contractors-inner { max-width: 680px; }
.contractors h2 { color: var(--white); }

/* ============ Pilot ============ */
.how-it-works { background: var(--paper-2); }
.pricing { background: var(--paper-2); }
.pilot-inner { max-width: 720px; margin: 0 auto; }
.pilot .section-lead { margin-left: auto; margin-right: auto; }
.pilot .section-kicker { text-align: center; }

/* ============ Waitlist ============ */
.waitlist { background: var(--charcoal); color: var(--white); }
.waitlist-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.waitlist-copy h2 { color: var(--white); margin-bottom: 6px; max-width: none; }
.waitlist-copy p { color: #C9D2DE; margin: 0; }
.waitlist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.waitlist-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.98rem;
  min-width: 260px;
}
.waitlist-form input::placeholder { color: #9FAAB8; }
.waitlist-form input:focus { outline: none; border-color: var(--gold); }
.waitlist-form select {
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.98rem;
  min-width: 130px;
}
.waitlist-form select:focus { outline: none; border-color: var(--gold); }
.waitlist-form select option { color: var(--charcoal); }
.waitlist-status { width: 100%; font-size: 0.9rem; color: var(--gold); margin: 10px 0 0; }
.waitlist-privacy { width: 100%; font-size: 0.8rem; color: #9FAAB8; margin: 4px 0 0; }

/* ============ Honeypot (spam trap, hidden from real users) ============ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ Footer ============ */
.site-footer { background: var(--charcoal); color: #C9D2DE; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 40px;
}
.footer-logo { height: 26px; margin-bottom: 14px; }
.footer-brand p { color: #9FAAB8; font-size: 0.92rem; max-width: 30ch; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--white); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.footer-col a { color: #C9D2DE; font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: #8593A4;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}
