/* ============================================================
   CSS Variables — Design tokens
   ============================================================ */
:root {
  --color-black:         #1c1c1c;
  --color-green:         #03a06b;
  --color-blue:          #1d3480;
  --color-blue-hover:    #001662;
  --color-white:         #ffffff;
  --color-grey-bg:       #f3f3f3;
  --color-grey-border:   #ececec;
  --color-grey-border-2: #d8d8d8;
  --color-grey-text:     #979797;
  --color-grey-text-2:   #616161;
  --color-red:           #b43e41;

  --font: 'Manrope', sans-serif;
  --container: 1276px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-black);
  background: var(--color-white);
  min-width: 320px;
  overflow-x: clip;
}

img {
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

a {
  text-decoration: none;
}

/* ============================================================
   Container — shared
   ============================================================ */
.header__container,
.hero__container,
.quiz__container,
.features__container,
.sources__container,
.footer__container {
  /* Fluid container: clamps to design width on big screens, falls back to
     "viewport minus 32px gutters" on anything narrower so content never
     overflows on 13"-laptop widths (1280–1366px) or tablets. */
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

/* ============================================================
   Logo — shared between header & footer
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  width: 60px;
  height: 68px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-black);
}

.logo__subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  color: var(--color-grey-text-2);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  background: var(--color-white);
  height: 92px;
  display: flex;
  align-items: center;
}

/* ============================================================
   Block 1 — Hero
   ============================================================ */
.hero {
  background: linear-gradient(to bottom, var(--color-grey-bg), var(--color-white));
  padding: 91px 0 60px;
}

.hero__content {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.hero__main {
  width: 736px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 121px;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -1.2px;
  color: var(--color-black);
}

.hero__title--green {
  color: var(--color-green);
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--color-black);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Button */
.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 36px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.btn--primary:hover {
  background: var(--color-blue-hover);
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.social-proof__avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.social-proof__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.social-proof__avatar + .social-proof__avatar {
  margin-left: -8px;
}

.social-proof__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-grey-text-2);
}

.social-proof__count {
  font-weight: 700;
  color: var(--color-blue);
  white-space: nowrap;
}

/* Hero image */
.hero__image {
  width: 628px;
  height: 633px;
  flex-shrink: 0;
  margin-left: -88px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bullets */
.hero__bullets {
  display: flex;
  gap: 20px;
  margin-top: 0;
}

.hero__bullet {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--color-grey-bg);
  border-radius: 16px;
}

.hero__bullet-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.hero__bullet-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--color-black);
  white-space: nowrap;
}

/* ============================================================
   Block 2 — Quiz
   ============================================================ */
.quiz {
  background: var(--color-green);
  padding: 120px 0;
}

.quiz__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.quiz__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--color-white);
  text-align: center;
}

.quiz__card {
  width: 100%;
  max-width: 844px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.quiz__progress {
  width: 100%;
  height: 12px;
  background: var(--color-grey-border);
  border-radius: 6px;
  overflow: hidden;
}

.quiz__progress-fill {
  width: 0;
  height: 100%;
  background: var(--color-green);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.quiz__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.quiz__body--hidden {
  opacity: 0;
}

.quiz__question {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-black);
}

.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border: 1px solid var(--color-grey-border-2);
  border-radius: 8px;
  cursor: pointer;
}

.quiz__option--selected {
  border: 1px solid var(--color-green);
  box-shadow: inset 0 0 0 1px var(--color-green);
}

.quiz__option-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--color-black);
  white-space: nowrap;
}

.quiz__option-radio {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.quiz__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: opacity 0.2s ease;
}

.quiz__ctrl:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.quiz__ctrl img {
  width: 28px;
  height: 28px;
}

.quiz__step {
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: var(--color-grey-text);
}

/* Final step */
.quiz__card--final .quiz__controls,
.quiz__card--final .quiz__progress {
  display: none;
}

.quiz__final {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.quiz__final-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-black);
}

.quiz__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.quiz__form-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quiz__input {
  width: 100%;
  border: 1px solid var(--color-grey-border-2);
  border-radius: 8px;
  padding: 18px 20px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-black);
  background: var(--color-white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz__input::placeholder {
  color: var(--color-grey-text);
}

.quiz__input:focus {
  border-color: var(--color-blue);
  box-shadow: inset 0 0 0 1px var(--color-blue);
}

.quiz__submit {
  width: 100%;
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 22px 36px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quiz__submit:hover {
  background: var(--color-blue-hover);
}

.quiz__badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quiz__badge {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-bg);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-grey-text);
  white-space: nowrap;
}

.quiz__badge img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.quiz__disclaimer {
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-grey-text);
  text-align: center;
}

.quiz__disclaimer a {
  color: #1d3480;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Block 3 — Features
   ============================================================ */
.features {
  background: var(--color-grey-bg);
  padding: 120px 0;
}

.features__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.features__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--color-black);
}

.features__title-accent {
  color: var(--color-green);
  white-space: nowrap;
}

.features__cards {
  display: flex;
  gap: 20px;
}

.features__card {
  flex: 1;
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features__icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.features__icon {
  width: 44px;
  height: 44px;
}

.features__card-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-black);
}

.features__card-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-grey-text-2);
}

/* ============================================================
   Block 4 — Sources
   ============================================================ */
.sources {
  background: var(--color-white);
  padding: 120px 0;
}

.sources__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.sources__heading {
  display: flex;
  align-items: center;
  gap: 40px;
}

.sources__title {
  flex: 1;
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--color-black);
}

.sources__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.sources__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-grey-bg);
  border-radius: 8px;
}

.sources__ctrl img {
  width: 24px;
  height: 24px;
}


.sources__cards {
  overflow: hidden;
}

.sources__track {
  display: flex;
  gap: 20px;
  width: 100%;
  will-change: transform;
}

.sources__card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--color-grey-border-2);
  border-radius: 16px;
}

.sources__logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
}

.sources__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sources__card-text {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--color-black);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-grey-bg);
  padding: 60px 0;
}

.footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 412px;
}

.footer__link {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-grey-text-2);
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.5;
}

/* ============================================================
   Tablet — max-width: 1100px
   Narrow laptops (1280–1366px also use this once the fluid container
   shrinks the layout). Keeps the desktop structure but scales the hero
   image and stacks the footer so 412px-wide link column doesn't push
   the layout sideways.
   ============================================================ */
@media (max-width: 1100px) {

  .hero {
    padding: 60px 0 40px;
  }

  .hero__main {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding-top: 60px;
    gap: 32px;
  }

  .hero__title {
    font-size: 44px;
    line-height: 48px;
  }

  .hero__image {
    width: 380px;
    height: auto;
    aspect-ratio: 628 / 633;
    margin-left: 0;
    flex-shrink: 1;
  }

  .quiz__title,
  .features__title,
  .sources__title {
    font-size: 36px;
    line-height: 40px;
  }

  .features__card {
    padding: 32px;
  }

  .features__card-title {
    font-size: 24px;
    line-height: 28px;
  }

  /* Footer stacks vertically and centers — the 412px-wide link column
     would otherwise force the logo off-screen on narrow laptops. */
  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .footer__links {
    width: 100%;
    align-items: center;
  }
}

/* ============================================================
   Small tablet — max-width: 900px
   Hero stacks; features cards still fit in 3 columns horizontally
   on most devices in this range, but quiz options become 1 col below
   640px (handled in the mobile block).
   ============================================================ */
@media (max-width: 900px) {

  .hero__content {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hero__main {
    width: 100%;
    padding-top: 0;
  }

  .hero__image {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-left: 0;
  }

  .features__cards {
    flex-direction: column;
  }
}

/* ============================================================
   Mobile — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {

  /* Containers */
  .header__container,
  .hero__container,
  .quiz__container,
  .features__container,
  .sources__container,
  .footer__container {
    width: 100%;
  }

  /* ── Logo (shared) ───────────────────────────────────────── */
  .logo {
    gap: 16px;
  }

  .logo__img {
    width: 39px;
    height: 44px;
  }

  .logo__text {
    gap: 6px;
  }

  .logo__title {
    font-size: 14px;
    line-height: 14px;
  }

  .logo__subtitle {
    font-size: 12px;
    line-height: 12px;
  }

  /* ── Header ──────────────────────────────────────────────── */
  .header {
    height: 52px;
    padding-inline: 16px;
  }

  /* ── Block 1: Hero ───────────────────────────────────────── */
  .hero {
    padding: 32px 16px;
  }

  .hero__container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero__content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero__main {
    width: 100%;
    padding-top: 0;
    gap: 20px;
  }

  .hero__heading {
    gap: 16px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.56px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn--primary {
    width: 100%;
    padding: 18px 32px;
  }

  .social-proof {
    gap: 12px;
  }

  .social-proof__avatar {
    width: 28px;
    height: 28px;
  }

  .social-proof__avatar + .social-proof__avatar {
    margin-left: -6px;
  }

  .social-proof__text {
    font-size: 12px;
    line-height: 20px;
  }

  .hero__image {
    width: 218px;
    height: 220px;
    margin-left: 0;
    align-self: center;
  }

  .hero__bullets {
    flex-direction: column;
    gap: 8px;
  }

  .hero__bullet {
    padding: 14px 16px;
    border-radius: 8px;
  }

  .hero__bullet-icon {
    width: 24px;
    height: 24px;
  }

  .hero__bullet-text {
    font-size: 16px;
    line-height: 24px;
  }

  /* ── Block 2: Quiz ───────────────────────────────────────── */
  .quiz {
    padding: 52px 16px;
  }

  .quiz__container {
    gap: 28px;
  }

  .quiz__title {
    font-size: 24px;
    line-height: 28px;
  }

  .quiz__card {
    width: 100%;
    padding: 24px;
    border-radius: 12px;
    gap: 20px;
  }

  .quiz__body {
    gap: 20px;
  }

  .quiz__final {
    gap: 20px;
  }

  .quiz__final-title {
    font-size: 20px;
    line-height: 24px;
  }

  .quiz__form-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz__input {
    padding: 14px 20px;
    font-size: 16px;
  }

  .quiz__submit {
    padding: 18px 32px;
    font-size: 16px;
  }

  .quiz__badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz__badge {
    font-size: 14px;
    line-height: 14px;
    padding: 11px 20px;
  }

  .quiz__badge img {
    width: 14px;
    height: 14px;
  }

  .quiz__disclaimer {
    font-size: 10px;
    line-height: 18px;
  }

  .quiz__progress {
    height: 8px;
  }

  .quiz__progress-fill {
    border-radius: 4px;
  }

  .quiz__question {
    font-size: 20px;
    line-height: 24px;
  }

  .quiz__options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz__option {
    padding: 13px 20px;
  }

  .quiz__option-text {
    font-size: 14px;
    line-height: 14px;
  }

  .quiz__option-radio {
    width: 24px;
    height: 24px;
  }

  .quiz__step {
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0.48px;
  }

  /* ── Block 3: Features ───────────────────────────────────── */
  .features {
    padding: 52px 16px;
  }

  .features__container {
    gap: 28px;
  }

  .features__title {
    font-size: 24px;
    line-height: 28px;
  }

  .features__cards {
    flex-direction: column;
    gap: 16px;
  }

  .features__card {
    padding: 24px;
    border-radius: 12px;
    gap: 16px;
  }

  .features__icon-wrap {
    width: 60px;
    height: 60px;
    padding: 14px;
  }

  .features__icon {
    width: 32px;
    height: 32px;
  }

  .features__card-title {
    font-size: 20px;
    line-height: 24px;
  }

  .features__card-title br {
    display: none;
  }

  /* ── Block 4: Sources ────────────────────────────────────── */
  .sources {
    padding: 52px 16px;
  }

  .sources__container {
    gap: 28px;
  }

  .sources__title {
    font-size: 24px;
    line-height: 28px;
  }

  .sources__controls {
    display: none;
  }

  /* On mobile we drop the carousel and stack the four cards as a column.
     The slider JS clones each card to support seamless looping; those
     clones carry aria-hidden="true" and stay invisible here. */
  .sources__cards {
    overflow: visible;
    margin-inline: 0;
  }

  .sources__track {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    transform: none !important;
    transition: none !important;
  }

  .sources__card {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 16px;
    border-radius: 12px;
  }

  .sources__card[aria-hidden="true"] {
    display: none;
  }

  .sources__logo {
    width: 56px;
    height: 56px;
  }

  .sources__card-text {
    font-size: 14px;
    line-height: 20px;
  }

  /* ── Footer ──────────────────────────────────────────────── */
  .footer {
    padding: 32px 16px;
  }

  .footer__container {
    flex-direction: column;
    gap: 20px;
  }

  .footer__links {
    width: 100%;
    gap: 12px;
  }

  .footer__link {
    font-size: 14px;
    line-height: 14px;
  }
}
