.iv-selector {
  --iv-ink: #2b2b2b;
  --iv-muted: #67585a;
  --iv-paper: #fdf6ec;
  --iv-line: #d8c6b7;
  --iv-accent: #5b0d11;
  --iv-accent-dark: #3f080b;
  --iv-highlight: #fff0cf;
  color: var(--iv-ink);
  background: var(--iv-paper);
  border: 1px solid var(--iv-line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgb(23 32 42 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 2rem auto;
  max-width: 1080px;
  overflow: hidden;
}

.iv-selector *,
.iv-selector *::before,
.iv-selector *::after {
  box-sizing: border-box;
}

.iv-selector__intro,
.iv-selector__progress,
.iv-selector__form,
.iv-selector__waiting,
.iv-selector__results,
.iv-selector__method {
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.iv-selector__intro {
  background:
    radial-gradient(circle at 90% 10%, rgb(245 166 35 / 24%), transparent 28%),
    linear-gradient(135deg, #fff0d8, var(--iv-paper) 58%);
  padding-block: clamp(2.5rem, 6vw, 5.25rem) clamp(2rem, 5vw, 3.75rem);
}

.iv-selector__eyebrow {
  color: var(--iv-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.iv-selector h2,
.iv-selector h3,
.iv-selector h4,
.iv-selector p {
  margin-top: 0;
}

.iv-selector h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
  max-width: 800px;
}

.iv-selector__intro > p:last-child {
  color: var(--iv-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 0;
  max-width: 700px;
}

.iv-selector__progress {
  background: #fff;
  border-block: 1px solid var(--iv-line);
  padding-block: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 2;
}

.iv-selector__progress-copy {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.iv-selector__progress-track {
  background: #eadfd5;
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.iv-selector__progress-track span {
  background: linear-gradient(90deg, var(--iv-accent), #f5a623);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 240ms ease;
  width: 0;
}

.iv-selector__form {
  counter-reset: question;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.iv-selector__question {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.iv-selector__question + .iv-selector__question {
  border-top: 1px solid var(--iv-line);
  margin-top: clamp(2.25rem, 5vw, 4rem);
  padding-top: clamp(2.25rem, 5vw, 4rem);
}

.iv-selector__question legend {
  align-items: flex-start;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  gap: 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  padding: 0;
}

.iv-selector__question legend span {
  color: var(--iv-accent);
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0;
  padding-top: 0.4rem;
}

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

.iv-selector__option {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--iv-line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.iv-selector__option:hover {
  border-color: #b77879;
  transform: translateY(-1px);
}

.iv-selector__option:has(input:checked) {
  background: #fff0d8;
  border-color: var(--iv-accent);
  box-shadow: 0 0 0 2px rgb(91 13 17 / 12%);
}

.iv-selector__option:has(input:focus-visible) {
  outline: 3px solid rgb(91 13 17 / 28%);
  outline-offset: 2px;
}

.iv-selector__option input {
  accent-color: var(--iv-accent);
  flex: 0 0 auto;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  width: 1.1rem;
}

.iv-selector__option span {
  min-width: 0;
}

.iv-selector__waiting {
  background: #f5eadf;
  border-block: 1px solid var(--iv-line);
  padding-block: 1.4rem;
  text-align: center;
}

.iv-selector__waiting p {
  margin: 0;
}

.iv-selector__results {
  background: #5b0d11;
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 6rem;
}

.iv-selector__results-heading {
  margin-bottom: 2rem;
  max-width: 780px;
}

.iv-selector__results-heading .iv-selector__eyebrow {
  color: #f5a623;
}

.iv-selector__results-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.iv-selector__results-heading p:not(.iv-selector__eyebrow) {
  color: #f3dfd7;
  margin-bottom: 0.55rem;
}

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

.iv-selector__result {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 14px;
  color: var(--iv-ink);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.35rem;
}

.iv-selector__result--primary {
  border-color: #f5a623;
  box-shadow: inset 0 5px 0 #f5a623;
}

.iv-selector__result-topline {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.iv-selector__rank {
  color: var(--iv-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iv-selector__score {
  background: var(--iv-highlight);
  border-radius: 99px;
  color: #5b0d11;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem;
}

.iv-selector__result h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.iv-selector__result h4 {
  font-size: 0.82rem;
  margin: 1rem 0 0.45rem;
}

.iv-selector__difference,
.iv-selector__result li,
.iv-selector__result > p {
  color: var(--iv-muted);
  font-size: 0.88rem;
}

.iv-selector__result ul {
  margin: 0;
  padding-left: 1.1rem;
}

.iv-selector__result li + li {
  margin-top: 0.4rem;
}

.iv-selector__commercial {
  border-top: 1px solid var(--iv-line);
  margin: auto 0 0;
  padding-top: 1rem;
}

.iv-selector__commercial span {
  color: var(--iv-ink);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.iv-selector__actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.iv-selector__cta {
  background: var(--iv-accent);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  padding: 0.72rem 1rem;
  text-decoration: none;
  width: 100%;
}

.iv-selector__cta:hover,
.iv-selector__cta:focus-visible {
  background: var(--iv-accent-dark);
  color: #fff;
}

.iv-selector__text-link {
  color: var(--iv-accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.iv-selector__route-note {
  color: var(--iv-accent-dark) !important;
  font-weight: 700;
  margin: 0.8rem 0 0;
}

.iv-selector__method {
  background: #f5eadf;
  color: var(--iv-muted);
  font-size: 0.78rem;
  margin: 0;
  padding-block: 1.2rem;
}

.iv-selector [hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .iv-selector__result-grid {
    grid-template-columns: 1fr;
  }

  .iv-selector__result {
    padding: 1.2rem;
  }
}

@media (max-width: 620px) {
  .iv-selector {
    border-radius: 16px;
  }

  .iv-selector__options {
    grid-template-columns: 1fr;
  }

  .iv-selector__progress-copy {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iv-selector__option,
  .iv-selector__progress-track span {
    transition: none;
  }
}

body { margin: 0; background: #fdf6ec; color: #2b2b2b; }
main { padding: 1rem; }
.iv-editorial { max-width: 850px; margin: 2rem auto; font: 1.13rem/1.8 Georgia, serif; overflow-wrap: anywhere; }
.iv-editorial h1, .iv-editorial h2, .iv-editorial h3 { font-family: system-ui, sans-serif; line-height: 1.25; color: #5b0d11; }
.iv-editorial h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.iv-editorial h2 { margin-top: 2.5rem; }
.iv-editorial a { color: #5b0d11; text-underline-offset: .2em; }
.iv-editorial p, .iv-editorial li { max-width: 75ch; }
.iv-editorial li { margin-block: .5rem; }
.iv-editorial table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.iv-editorial th, .iv-editorial td { padding: .7rem; border: 1px solid #d8c6b7; text-align: left; }
.iv-editorial img { max-width: 100%; height: auto; }
.iv-editorial small, .iv-date { font-size: .85rem; color: #67585a; }
