@font-face {
  font-display: swap;
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/bricolage-grotesque-regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/bricolage-grotesque-bold.ttf") format("truetype");
}

:root {
  --ink: #121214;
  --ink-soft: #252529;
  --ink-hover: #34343a;
  --paper: #f4f1ed;
  --paper-bright: #f7f3ef;
  --paper-deep: #e7e2dc;
  --muted: #b9b3b2;
  --text-on-dark: #d5cfcc;
  --rose: #d44e7a;
  --rose-hover: #e3638d;
  --rose-dark: #b72f5d;
  --rose-ink: #2d050e;
  --error: #7d1639;
  --line-dark: rgba(244, 241, 237, 0.18);
  --line-light: rgba(18, 18, 20, 0.16);
  --overlay: rgba(18, 18, 20, 0.76);
  --shadow: rgba(18, 18, 20, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Bricolage Grotesque", "Avenir Next", Avenir, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.cookie-modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  top: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 300;
}

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

.quiz-header {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  width: max-content;
}

.brand span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand small {
  color: var(--muted);
  font-size: 0.67rem;
}

.header-back,
.result-site-link,
.quiz-footer a,
.quiz-footer button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-on-dark);
  display: inline-flex;
  font-weight: 700;
  gap: 9px;
  min-height: 44px;
  padding: 0;
}

.header-back:hover,
.result-site-link:hover,
.quiz-footer a:hover,
.quiz-footer button:hover {
  color: var(--rose);
}

.quiz-page {
  display: grid;
  gap: clamp(48px, 7vw, 94px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(560px, 1.18fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100dvh - 76px);
  padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 140px);
  width: calc(100% - 40px);
}

.quiz-intro {
  align-self: start;
  padding-top: 34px;
  position: sticky;
  top: 28px;
}

.eyebrow {
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.quiz-intro h1 {
  font-size: clamp(3.25rem, 5.5vw, 5.8rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0 0 30px;
  text-wrap: balance;
}

.quiz-intro h1 em {
  color: var(--rose);
  display: block;
  font-style: normal;
}

.quiz-intro-copy {
  color: var(--text-on-dark);
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.quiz-promises {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 40px 0 0;
  padding: 28px 0 0;
}

.quiz-promises li {
  padding-left: 25px;
  position: relative;
}

.quiz-promises li::before {
  background: var(--rose);
  content: "";
  height: 9px;
  left: 2px;
  position: absolute;
  top: 0.45em;
  transform: rotate(45deg);
  width: 9px;
}

.quiz-shell {
  align-self: start;
  background: var(--paper);
  color: var(--ink);
  min-height: 680px;
}

.quiz-progress {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-light);
  padding: 24px clamp(24px, 5vw, 52px);
}

.quiz-progress > div:first-child {
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: space-between;
}

.quiz-progress p {
  margin: 0;
}

.quiz-progress-track {
  background: rgba(18, 18, 20, 0.12);
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
}

.quiz-progress-track span {
  background: var(--rose);
  display: block;
  height: 100%;
  transform: scaleX(0.16667);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.quiz-form,
.quiz-result {
  padding: clamp(34px, 6vw, 62px);
}

.quiz-step {
  border: 0;
  margin: 0;
  padding: 0;
}

.quiz-step legend,
.quiz-result > h2 {
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
  padding: 0;
  text-wrap: balance;
}

.question-help {
  color: #534e4c;
  line-height: 1.55;
  margin: 18px 0 30px;
  max-width: 65ch;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-card {
  align-items: flex-start;
  border: 2px solid rgba(18, 18, 20, 0.18);
  cursor: pointer;
  display: grid;
  gap: 15px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 76px;
  padding: 16px 18px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.answer-card:hover {
  background: var(--paper-bright);
  border-color: var(--rose-dark);
}

.answer-card:active {
  transform: translateY(1px);
}

.answer-card:has(input:checked) {
  background: rgba(212, 78, 122, 0.12);
  border-color: var(--rose-dark);
}

.answer-card input {
  accent-color: var(--rose-dark);
  height: 20px;
  margin: 2px 0 0;
  width: 20px;
}

.answer-card strong,
.answer-card small {
  display: block;
}

.answer-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.answer-card small {
  color: #5a5552;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 4px;
}

.step-error {
  background: #f7dce4;
  border: 2px solid var(--error);
  color: var(--error);
  font-weight: 700;
  margin: 20px 0 0;
  padding: 12px 14px;
}

.quiz-navigation {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
}

.quiz-next,
.quiz-submit {
  align-items: center;
  background: var(--rose);
  border: 2px solid var(--rose);
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.quiz-next:hover,
.quiz-submit:hover {
  background: var(--rose-hover);
  border-color: var(--rose-hover);
}

.quiz-next:active,
.quiz-submit:active {
  transform: translateY(1px);
}

.quiz-next:disabled {
  background: var(--paper-deep);
  border-color: var(--paper-deep);
  color: #77716e;
  cursor: not-allowed;
}

.quiz-back,
.quiz-restart {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 700;
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(18, 18, 20, 0.25);
  text-underline-offset: 5px;
}

.quiz-back:hover,
.quiz-restart:hover {
  color: var(--rose-dark);
}

.result-kicker {
  color: var(--rose-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.result-copy {
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 24px 0;
  max-width: 65ch;
}

.result-recommendation {
  background: var(--ink);
  color: var(--paper);
  margin: 32px 0;
  padding: 24px 26px;
}

.result-recommendation strong {
  color: var(--rose);
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.result-recommendation p {
  color: var(--text-on-dark);
  line-height: 1.55;
  margin: 0;
}

.lead-form {
  border-top: 1px solid var(--line-light);
  display: grid;
  gap: 20px;
  margin-top: 38px;
  padding-top: 38px;
}

.lead-form-heading {
  margin-bottom: 6px;
}

.lead-form-heading h3 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 10px;
}

.lead-form-heading p {
  line-height: 1.55;
  margin: 0;
}

.lead-field {
  display: grid;
  gap: 8px;
}

.lead-field label {
  font-weight: 700;
}

.lead-field label span {
  color: #5a5552;
  font-size: 0.76rem;
  font-weight: 400;
  margin-left: 5px;
}

.lead-field input,
.lead-field textarea {
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  min-height: 52px;
  padding: 13px 15px;
  width: 100%;
}

.lead-field textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-privacy {
  color: #534e4c;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: -4px 0 0;
}

.quiz-submit {
  width: max-content;
}

.lead-error {
  background: #f7dce4;
  border: 2px solid var(--error);
  color: var(--error);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px;
}

.lead-error a {
  text-decoration: underline;
}

.lead-success {
  background: var(--rose);
  color: var(--ink);
  margin-top: 34px;
  padding: 28px;
}

.lead-success strong {
  display: block;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
}

.lead-success p {
  line-height: 1.55;
}

.lead-success a {
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.result-actions {
  align-items: center;
  display: flex;
  gap: 26px;
  margin-top: 34px;
}

.no-script {
  padding: 30px;
}

.no-script a {
  text-decoration: underline;
}

.quiz-footer {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 150px;
  padding: 30px 0;
  width: calc(100% - 40px);
}

.quiz-footer > div:first-child > p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 14px 0 0;
}

.quiz-footer-links {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.quiz-footer-links a,
.quiz-footer-links button {
  font-size: 0.78rem;
}

.cookie-banner {
  align-items: center;
  background: var(--ink-soft);
  bottom: 18px;
  box-shadow: 0 20px 52px -18px var(--shadow);
  color: var(--paper);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  margin: 0 auto;
  max-width: 920px;
  padding: 24px;
  position: fixed;
  right: 18px;
  z-index: 100;
}

.cookie-banner h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.cookie-banner p {
  color: var(--text-on-dark);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  max-width: 66ch;
}

.cookie-banner p a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
}

.cookie-button:hover {
  background: var(--ink-hover);
}

.cookie-button-primary {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--ink);
}

.cookie-button-primary:hover {
  background: var(--rose-hover);
  border-color: var(--rose-hover);
}

.cookie-modal {
  align-items: center;
  background: var(--overlay);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 200;
}

.cookie-sheet {
  background: var(--paper);
  color: var(--ink);
  max-height: min(760px, calc(100dvh - 40px));
  max-width: 620px;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  width: 100%;
}

.cookie-sheet > h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 16px;
  padding-right: 48px;
}

.cookie-intro {
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 60ch;
}

.cookie-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--ink);
  display: inline-flex;
  font-size: 1.8rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
}

.cookie-close:hover {
  background: var(--paper-deep);
}

.cookie-option {
  align-items: flex-start;
  border-top: 1px solid var(--line-light);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 20px 0;
}

.cookie-option:last-of-type {
  border-bottom: 1px solid var(--line-light);
}

.cookie-option h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}

.cookie-option p {
  line-height: 1.5;
  margin: 0;
  max-width: 46ch;
}

.cookie-option span {
  color: var(--rose-dark);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 7px;
}

.cookie-toggle {
  appearance: none;
  cursor: pointer;
  flex: 0 0 44px;
  height: 44px;
  margin: -3px 0 0;
  position: relative;
  width: 44px;
}

.cookie-toggle::before {
  background: #e5dfd8;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  content: "";
  height: 24px;
  left: 1px;
  position: absolute;
  top: 10px;
  width: 42px;
}

.cookie-toggle::after {
  background: var(--ink);
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 5px;
  position: absolute;
  top: 13px;
  transition: transform 180ms ease;
  width: 18px;
}

.cookie-toggle:checked::before {
  background: var(--rose);
  border-color: var(--rose);
}

.cookie-toggle:checked::after {
  transform: translateX(16px);
}

.cookie-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.cookie-modal-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.cookie-button-light {
  border-color: var(--line-light);
  color: var(--ink);
}

.cookie-button-light:hover {
  background: var(--paper-deep);
}

.answer-card input:focus-visible,
.quiz-next:focus-visible,
.quiz-back:focus-visible,
.quiz-submit:focus-visible,
.quiz-restart:focus-visible,
.header-back:focus-visible,
.result-site-link:focus-visible,
.lead-field input:focus-visible,
.lead-field textarea:focus-visible,
.quiz-footer a:focus-visible,
.quiz-footer button:focus-visible,
.cookie-button:focus-visible,
.cookie-close:focus-visible,
.cookie-toggle:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}

.quiz-shell .answer-card:has(input:focus-visible) {
  outline: 3px solid var(--rose-dark);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .quiz-page {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .quiz-intro {
    padding-top: 0;
    position: static;
  }

  .quiz-intro h1 {
    max-width: 760px;
  }

  .quiz-promises {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .quiz-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand span {
    font-size: 0.84rem;
  }

  .header-back {
    font-size: 0.78rem;
  }

  .quiz-page {
    gap: 42px;
    padding: 50px 0 82px;
    width: calc(100% - 32px);
  }

  .quiz-intro h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .quiz-intro-copy {
    font-size: 1rem;
  }

  .quiz-promises {
    grid-template-columns: 1fr;
  }

  .quiz-shell {
    margin: 0 -16px;
    min-height: 0;
  }

  .quiz-form,
  .quiz-result {
    padding: 34px 20px 38px;
  }

  .quiz-step legend,
  .quiz-result > h2 {
    font-size: clamp(2.2rem, 10.5vw, 3.15rem);
  }

  .answer-card {
    padding: 15px 14px;
  }

  .quiz-navigation {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .quiz-next,
  .quiz-submit {
    width: 100%;
  }

  .quiz-back {
    align-self: flex-start;
  }

  .result-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .quiz-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    min-height: 0;
    padding: 44px 0;
    width: calc(100% - 32px);
  }

  .quiz-footer-links {
    align-items: flex-start;
  }

  .cookie-banner {
    align-items: stretch;
    bottom: 10px;
    gap: 18px;
    grid-template-columns: 1fr;
    left: 10px;
    padding: 20px;
    right: 10px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-actions .cookie-button-primary {
    grid-column: 1 / -1;
  }

  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-sheet {
    padding: 28px 20px;
  }
}

@media (max-width: 380px) {
  .header-back span {
    display: none;
  }

  .cookie-banner {
    gap: 14px;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 16px;
  }

  .cookie-banner h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .cookie-banner p,
  .cookie-button {
    font-size: 0.82rem;
  }

  .cookie-button {
    min-height: 44px;
    padding: 8px 10px;
  }
}

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

  .quiz-progress-track span {
    transition: none;
  }
}
