* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: #ffffff;
  font-size: 15px;
  color: #111111;
  overflow-x: hidden;
}

.top-nav {
  --nav-bar: 56px;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: calc(var(--nav-bar) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.top-nav.scrolled {
  box-shadow: none;
}

.top-nav-inner {
  max-width: 1120px;
  height: var(--nav-bar);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
}

.nav-logo:hover {
  background-color: transparent;
  color: #111111;
}

.nav-logo span {
  color: #1d9e75;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #6b7280;
}

.nav-links a:hover {
  color: #085041;
  background-color: #e1f5ee;
}

body:has(#calculators:target) .nav-links a[href="#calculators"],
body:has(#how-it-works:target) .nav-links a[href="#how-it-works"],
body:has(#bias-free:target) .nav-links a[href="#bias-free"] {
  color: #1d9e75;
  font-weight: 600;
}

.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-backdrop {
  display: none;
}

.hamburger-btn:hover {
  background-color: #e1f5ee;
}

.hamburger-btn span {
  width: 20px;
  height: 2px;
  background: #111111;
  display: block;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.section-block {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero {
  background: transparent;
  text-align: center;
  margin-bottom: 0;
}

.hero-kicker {
  margin: 0;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e1f5ee;
  color: #085041;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.hero-kicker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d9e75;
  flex-shrink: 0;
}

.hero-title {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #111111;
  max-width: 780px;
}

.hero-subtitle {
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.hero-cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta-btn,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  min-height: 42px;
}

.cta-btn {
  background: #1d9e75;
  color: #ffffff;
}

.cta-btn:hover {
  background: #e1f5ee;
  color: #085041;
}

.cta-secondary {
  background: transparent;
  border: 1px solid #1d9e75;
  color: #1d9e75;
}

.cta-secondary:hover {
  background: #e1f5ee;
  color: #085041;
}

.hero-trust-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #9ca3af;
}

.hero-trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d9e75;
  flex-shrink: 0;
}

.stat-strip {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-cell {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid #e5e7eb;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-number {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #111111;
}

.stat-label {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 400;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d9e75;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #111111;
}

.section-head p,
.section-sub {
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 400;
  max-width: 640px;
}

.section-block > .section-head + * {
  margin-top: 36px;
}

.calc-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calc-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #111111;
  cursor: pointer;
}

.calc-card:hover {
  background: #e1f5ee;
  border-color: #1d9e75;
}

.calc-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

.calc-card svg {
  width: 20px;
  height: 20px;
  stroke: #1d9e75;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.calc-card p {
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 400;
}

.miss-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.miss-card {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  border: none;
}

.miss-card--teal {
  border-left: 3px solid #1d9e75;
}

.miss-card--amber {
  border-left: 3px solid #ef9f27;
}

.miss-card--red {
  border-left: 3px solid #e24b4a;
}

.miss-card--violet {
  border-left: 3px solid #1d9e75;
}

.miss-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.miss-tag--teal {
  color: #1d9e75;
}

.miss-tag--amber {
  color: #ef9f27;
}

.miss-tag--red {
  color: #e24b4a;
}

.miss-tag--violet {
  color: #085041;
}

.miss-card-title {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
}

.miss-card-body {
  margin: 8px 0 0;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 400;
}

.steps-panel {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.step {
  position: relative;
  padding: 20px;
  margin: 0;
  border-right: 1px solid #e5e7eb;
}

.step-last {
  border-right: none;
}

.step::after,
.step::before {
  display: none;
}

.step-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d9e75;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  margin: 8px 0 0;
  font-size: 15px;
  color: #111111;
  font-weight: 600;
  line-height: 1.35;
}

.step-body {
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 400;
}

.trust-card-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.trust-card:hover {
  background: #e1f5ee;
}

.trust-card-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e1f5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-card-icon-wrap svg {
  width: 16px;
  height: 16px;
  display: block;
}

.trust-card-text {
  min-width: 0;
}

.trust-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
}

.trust-card-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  font-weight: 400;
}

.testimonials-section .section-head h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.testimonial-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.testimonial-card {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.testimonial-quote {
  margin: 0 0 8px;
  font-size: 15px;
  color: #6b7280;
  font-style: italic;
  line-height: 1.6;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d9e75;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial-name {
  font-size: 12px;
  font-weight: 600;
  color: #111111;
}

.testimonial-loc {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: #1d9e75;
  background-color: #e1f5ee;
}

body.nav-mobile-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .miss-grid,
  .trust-card-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .steps-panel {
    grid-template-columns: 1fr;
  }

  .steps-panel .step {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .steps-panel .step-last {
    border-bottom: none;
  }

  .stat-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-cell:nth-child(2n) {
    border-right: none;
  }

  .stat-cell:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e7eb;
  }

  .stat-cell:nth-child(3),
  .stat-cell:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 0 16px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .top-nav-inner {
    padding: 0 16px;
  }

  .section-block {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-bar) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
    z-index: 1001;
    display: none;
    max-height: min(75vh, calc(100dvh - var(--nav-bar) - env(safe-area-inset-top, 0px)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    padding: 14px 12px;
    border-radius: 8px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .top-nav.is-open .nav-links {
    display: flex;
  }

  .top-nav.is-open .nav-backdrop {
    display: block;
    position: fixed;
    top: calc(var(--nav-bar) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 17, 0.4);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.75rem);
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .section-head h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .testimonials-section .section-head h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .stat-number {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn,
  .cta-secondary {
    width: 100%;
    min-height: 44px;
  }

  .calc-grid,
  .miss-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .steps-panel {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .step {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .step-last {
    border-bottom: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .stat-strip-inner {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .stat-cell:last-child {
    border-bottom: none;
  }

  .trust-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-trust-chips {
    gap: 8px;
  }

  .hero-trust-chip {
    font-size: 11px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
