:root {
  color-scheme: light;
  --ink: #07111f;
  --ink-soft: #344154;
  --muted: #667085;
  --line: #d7dde5;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --navy: #0b1f38;
  --blue: #2563eb;
  --blue-dark: #1747ad;
  --mint: #42d6bd;
  --focus: #f59e0b;
  --shadow: 0 22px 70px rgba(7, 17, 31, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(66, 214, 189, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
  font-size: 1rem;
  line-height: 1.6;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong {
  color: var(--blue);
}

.brand-mark {
  display: grid;
  width: 1.8rem;
  gap: 0.18rem;
}

.brand-mark i {
  display: block;
  height: 0.28rem;
  border-radius: 1rem;
  background: var(--navy);
}

.brand-mark i:nth-child(2) {
  width: 75%;
  background: var(--blue);
}

.brand-mark i:nth-child(3) {
  width: 52%;
  background: var(--mint);
}

.header-link,
.site-footer a {
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7.5rem) 0 4rem;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-lede {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #9ba8b8;
  background: var(--surface-soft);
}

.button-large {
  min-height: 3.65rem;
  padding-inline: 1.4rem;
}

.microcopy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack-preview {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(11, 31, 56, 0.12);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.stack-preview::before {
  position: absolute;
  z-index: -1;
  right: -1.1rem;
  bottom: -1.1rem;
  width: 72%;
  height: 66%;
  border-radius: 1.4rem;
  background: var(--mint);
  content: "";
}

.preview-head,
.preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-head {
  padding: 0.25rem 0.2rem 1rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.preview-count {
  color: var(--muted);
  font-weight: 650;
}

.preview-card {
  justify-content: flex-start;
  gap: 0.85rem;
  margin-top: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.preview-card-featured {
  border-color: #aabff5;
  background: #f3f7ff;
}

.preview-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.65rem;
  color: #fff;
  background: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-card span:last-child {
  display: flex;
  flex-direction: column;
}

.preview-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.trust-strip,
.audiences {
  grid-column: 1 / -1;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
}

.trust-strip div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 1.25rem 0;
}

.trust-strip strong {
  font-size: 1.6rem;
}

.trust-strip span {
  color: var(--muted);
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--line);
}

.audiences article {
  min-height: 210px;
  padding: 1.6rem;
  background: var(--surface);
}

.audience-number {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.audiences h2 {
  margin: 2.6rem 0 0.65rem;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.audiences p {
  margin-bottom: 0;
  color: var(--muted);
}

.builder,
.results,
.legal-page,
.not-found {
  max-width: 920px;
  min-height: calc(100vh - 10rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.builder-topline,
.builder-actions,
.results-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.builder-topline {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.text-button {
  min-height: 2.75rem;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

progress {
  width: 100%;
  height: 0.45rem;
  margin-top: 0.8rem;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #dfe5ec;
}

progress::-webkit-progress-bar {
  background: #dfe5ec;
}

progress::-webkit-progress-value {
  background: var(--blue);
}

progress::-moz-progress-bar {
  background: var(--blue);
}

.step-content {
  padding: clamp(3rem, 8vw, 6rem) 0 2.5rem;
}

.step-kicker {
  margin-bottom: 0.75rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-content h1 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.06;
}

.step-description {
  max-width: 55ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.choice-button {
  min-height: 6.2rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.choice-button:hover,
.choice-button[aria-pressed="true"] {
  border-color: var(--blue);
  background: #f4f7ff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
}

.choice-button strong,
.choice-button span {
  display: block;
}

.choice-button strong {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.choice-button span {
  color: var(--muted);
  font-size: 0.9rem;
}

.builder-actions {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.results-heading h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.results-heading > p:last-child {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.affiliate-disclosure {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin: 2rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #bddbd5;
  border-radius: 0.8rem;
  color: #153f38;
  background: #ecfbf8;
  font-size: 0.9rem;
}

.recommendations {
  display: grid;
  gap: 0.85rem;
}

.recommendation-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.recommendation-rank {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.7rem;
  color: #fff;
  background: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.recommendation-copy h2 {
  margin-bottom: 0.1rem;
  font-size: 1.15rem;
}

.recommendation-category {
  margin-bottom: 0.45rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recommendation-reason {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.recommendation-link {
  white-space: nowrap;
}

.results-actions {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.site-footer {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.legal-page,
.not-found {
  max-width: 760px;
}

.legal-page h1,
.not-found h1 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-page h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.legal-meta {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.contact-placeholder {
  padding: 1rem;
  border-left: 4px solid var(--focus);
  background: #fff8e7;
}

.not-found {
  display: grid;
  align-content: center;
  text-align: center;
}

.not-found h1 {
  margin-inline: auto;
}

.not-found p {
  color: var(--muted);
}

.not-found .button {
  justify-self: center;
}

.noscript {
  padding: 1rem;
  border: 1px solid #f2c2c2;
  color: #7f1d1d;
  background: #fff1f2;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 1.5rem, 680px);
  }

  .landing {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
  }

  h1 {
    letter-spacing: -0.045em;
  }

  .stack-preview {
    max-width: 520px;
  }

  .trust-strip,
  .audiences,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
  }

  .audiences article {
    min-height: auto;
  }

  .audiences h2 {
    margin-top: 1.5rem;
  }

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

  .recommendation-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .affiliate-disclosure,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    justify-content: center;
    padding: 1.2rem 0;
  }
}

@media (max-width: 460px) {
  .site-header {
    min-height: 4.4rem;
  }

  .brand {
    font-size: 0.94rem;
  }

  .header-link {
    font-size: 0.9rem;
  }

  .landing,
  .builder,
  .results,
  .legal-page,
  .not-found {
    padding-top: 2.5rem;
  }

  .button,
  .results-actions .button {
    width: 100%;
  }

  .results-actions,
  .builder-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

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