:root {
  color-scheme: light;
  --ink: #2d211b;
  --muted: #6f6259;
  --background: #fff8ed;
  --band: #fbedd8;
  --surface: #ffffff;
  --primary: #f28c55;
  --primary-dark: #dc7442;
  --accent: #f5d897;
  --sage: #dbe8cf;
  --line: #eadfce;
  --soft-line: rgba(45, 33, 27, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 15px -3px rgba(118, 79, 42, 0.14), 0 4px 6px -4px rgba(118, 79, 42, 0.16);
  --shadow-lg: 0 24px 70px rgba(170, 106, 48, 0.18);
  --radius: 24px;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --brand: Fraunces, Georgia, "Times New Roman", serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-1.5deg);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.46;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.05);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-in {
  from {
    opacity: 0;
    transform: translateX(24px) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.animate-float-soft {
  animation: float-soft 4.8s ease-in-out infinite;
}

.animate-glow-pulse::before {
  animation: glow-pulse 4.8s ease-in-out infinite;
}

.animate-rise-in,
.animate-drift-in {
  animation-duration: 700ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-rise-in {
  animation-name: rise-in;
}

.animate-drift-in {
  animation-name: drift-in;
}

.landing-page .hero-copy.animate-rise-in,
.landing-page .hero-copy .animate-rise-in {
  opacity: 1;
  transform: none;
  animation: none;
}

.stagger-1 {
  animation-delay: 80ms;
}

.stagger-2 {
  animation-delay: 160ms;
}

.stagger-3 {
  animation-delay: 240ms;
}

.stagger-4 {
  animation-delay: 320ms;
}

.stagger-5 {
  animation-delay: 400ms;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

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

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

img {
  max-width: 100%;
}

.shell {
  width: 100%;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
  padding: 10px clamp(20px, 4.2vw, 56px);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 248, 237, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.hero-actions,
.trust-strip,
.results-head,
.quiz-controls,
.hero-badge,
.center-action {
  display: flex;
  align-items: center;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f3d35;
  font-family: var(--brand);
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 500ms ease;
}

.brand:hover .brand-logo {
  transform: scale(1.08) rotate(2deg);
}

.nav-actions {
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-button,
.primary-button,
.ghost-button,
.text-link,
.back-link {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--primary);
  color: #fffaf4;
  box-shadow: var(--shadow-sm);
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  box-shadow: var(--shadow);
}

.nav-button:hover,
.primary-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 16px 34px rgba(220, 116, 66, 0.24);
  transform: translateY(-2px) scale(1.035);
}

.ghost-button {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: #fff6e8;
  color: var(--ink);
}

.ghost-button:hover {
  border-color: rgba(242, 140, 85, 0.42);
  box-shadow: 0 12px 28px rgba(118, 79, 42, 0.12);
  transform: translateY(-2px) scale(1.025);
}

.nav-button:active,
.primary-button:active,
.ghost-button:active,
.gold-button:active,
.discount-button:active {
  transform: translateY(0) scale(0.99);
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--muted);
}

.back-link {
  min-height: 44px;
  padding: 0;
  font-size: 1.06rem;
}

.back-link:disabled {
  opacity: 0.35;
  cursor: default;
}

.page {
  display: none;
  scroll-margin-top: 96px;
}

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

.page.is-active {
  display: block;
}

.landing-page {
  display: none;
  padding-top: 16px;
}

.landing-page.is-active {
  display: block;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5.2vw, 58px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 104px);
  padding: clamp(8px, 1.4vw, 18px) 0 clamp(18px, 3vw, 34px);
  transform: translateY(-6px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-badge {
  gap: 10px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--band);
  color: #7a4a2e;
  font-size: 0.92rem;
  font-weight: 700;
}

.badge-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #fff7df;
  color: #d68b2c;
}

h1,
h2,
legend,
.result-title,
.section-heading h2,
.split-heading h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.25rem, 4.65vw, 3.9rem);
  line-height: 1.03;
}

#landing-title {
  max-width: 760px;
}

.hero-ending {
  display: inline-block;
  min-height: 1.96em;
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
  transition:
    color 720ms ease,
    text-shadow 720ms ease,
    opacity 360ms ease,
    transform 720ms ease;
}

.hero-ending.is-primary {
  color: var(--primary);
  text-shadow: 0 12px 36px rgba(242, 140, 85, 0.16);
}

.hero-ending.is-dark {
  color: var(--primary-dark);
  text-shadow: 0 12px 36px rgba(220, 116, 66, 0.14);
}

.hero-ending.is-sage {
  color: #7a8f63;
  text-shadow: 0 12px 36px rgba(219, 232, 207, 0.42);
}

.hero-ending.is-accent {
  color: #c9862f;
  text-shadow: 0 12px 36px rgba(245, 216, 151, 0.36);
}

.hero-ending.is-swapping {
  opacity: 0.35;
  transform: translateY(0.08em);
}

.lede {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.45vw, 1.05rem);
  line-height: 1.55;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.trust-strip {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: -34px;
  z-index: -1;
  content: "";
  border-radius: 36px;
  background: radial-gradient(circle at 50% 42%, rgba(245, 216, 151, 0.55), rgba(242, 140, 85, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: clamp(330px, 45vw, 430px);
  min-height: 0;
  object-fit: cover;
  object-position: 56% center;
}

.hero-photo-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(45, 33, 27, 0.42) 100%);
  pointer-events: none;
}

.hero-image-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 360px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: 0 18px 40px rgba(45, 33, 27, 0.16);
  backdrop-filter: blur(16px);
}

.hero-image-note span,
.panel-kicker {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-image-note strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.content-band {
  padding: clamp(58px, 8vw, 84px) max(24px, calc((100vw - 1180px) / 2));
}

.highlight-band {
  background: var(--band);
}

.section-heading {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.split-heading h2,
.final-cta h2,
.results-head h1,
.results-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.08;
}

.section-heading p,
.split-heading > p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.step-card,
.featured-card,
.question-card,
.profile-summary,
.result-card {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fffaf4;
  font-weight: 900;
}

.step-card h3,
.featured-card h3,
.profile-summary h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.step-card p,
.featured-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.step-icon {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: rgba(242, 140, 85, 0.55);
  font-size: 2.35rem;
}

.featured-band {
  background: var(--background);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: end;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.featured-card {
  overflow: hidden;
}

.featured-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.featured-card > div {
  padding: 22px;
}

.featured-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.card-title-row h3 {
  margin: 0;
}

.card-title-row span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--band);
  color: #7a4a2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.location {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.featured-card-body .location {
  margin-bottom: 0;
}

.why-love-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.why-love-toggle:hover {
  color: var(--primary);
}

.why-love-toggle span {
  color: var(--primary);
  font-weight: 900;
  transform: translateY(1px);
}

.why-love-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 280ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}

.featured-card.is-expanded .why-love-panel {
  max-height: 180px;
  opacity: 1;
  margin-top: 2px;
}

.why-love-panel p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--band);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.center-action {
  justify-content: center;
  margin-top: 34px;
}

.final-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(58px, 8vw, 82px) 24px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.final-cta p {
  max-width: 580px;
}

.cta-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: #fff8e9;
  color: var(--primary-dark);
  font-size: 1.6rem;
}

.quiz-page,
.results-page {
  width: min(948px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.results-page {
  width: min(1060px, calc(100% - 48px));
}

.operators-page {
  padding-bottom: 0;
}

.policy-page {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.policy-card {
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-card h1 {
  max-width: 760px;
  margin-bottom: 16px;
}

.policy-content {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.policy-content h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.operator-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.58fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 48px) 0 clamp(8px, 1.8vw, 18px);
}

.operator-hero > div {
  max-width: 860px;
}

.operator-hero .lede {
  margin: 18px 0 0;
}

.operator-hero .hero-actions {
  margin-top: 24px;
}

.operator-match-preview {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--soft-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 14%, rgba(245, 216, 151, 0.72), transparent 9rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.operator-match-preview h2 {
  margin: 10px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.operator-match-preview > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.operator-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff6e8;
}

.operator-score-row span {
  color: var(--muted);
  font-weight: 700;
}

.operator-score-row strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6a91a;
  color: var(--ink);
}

.operator-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.operator-preview-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff1dc;
  color: #895026;
  font-size: 0.85rem;
  font-weight: 800;
}

.operator-panel {
  min-height: 390px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 216, 151, 0.65), transparent 14rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.operator-panel h2 {
  max-width: 360px;
  margin: 14px 0 24px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.08;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signal-list span {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ink);
  font-weight: 750;
}

.operator-band {
  background: var(--band);
}

.operator-form-section {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) 0 clamp(58px, 8vw, 84px);
}

.operator-form-copy {
  position: sticky;
  top: 106px;
}

.operator-form-copy h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.08;
}

.operator-form-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.form-heading {
  max-width: 720px;
}

.form-heading h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.form-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.operator-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.operator-form label,
.full-field {
  display: grid;
  gap: 8px;
}

.operator-form label span,
.checkbox-fieldset legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.operator-form input,
.operator-form select,
.operator-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  color: var(--ink);
  font-family: var(--sans);
  padding: 10px 14px;
  outline: none;
}

.operator-form input:not([type="checkbox"]):not([type="file"]):not([type="range"]),
.operator-form select {
  min-height: 52px;
}

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

.custom-file-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  overflow: hidden;
}

.custom-file-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.custom-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fffaf4;
  font-weight: 800;
}

.custom-file-name {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-form textarea {
  resize: vertical;
}

.operator-form input:focus,
.operator-form select:focus,
.operator-form textarea:focus {
  border-color: rgba(242, 140, 85, 0.85);
  box-shadow: 0 0 0 4px rgba(242, 140, 85, 0.14);
}

.checkbox-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cover-preview {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf1;
}

.cover-preview[hidden] {
  display: none;
}

.cover-cropper {
  width: 100%;
  min-height: 240px;
  aspect-ratio: 1.65;
  border-radius: 14px;
  overflow: hidden;
  background: #fff4e5;
}

.cover-cropper .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

.cover-cropper .cropper-modal {
  background-color: rgba(45, 33, 27, 0.12);
}

.cover-cropper .cropper-view-box,
.cover-cropper .cropper-face {
  border-radius: 10px;
}

.cover-cropper .cropper-view-box {
  outline: 2px solid rgba(242, 140, 85, 0.95);
  outline-color: rgba(242, 140, 85, 0.95);
}

.cover-cropper .cropper-line,
.cover-cropper .cropper-point {
  background-color: var(--primary);
}

.cover-preview img {
  width: 100%;
  max-height: 420px;
  display: block;
}

.cover-preview span {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-preview strong {
  display: block;
  color: var(--ink);
  word-break: break-word;
}

.cover-preview-details {
  display: grid;
  gap: 10px;
}

.cover-preview-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-fieldset legend {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
}

.mini-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-chip-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.mini-chip-grid input {
  width: auto;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.form-actions p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.quiz-frame {
  display: block;
}

.quiz-meta {
  display: none;
}

.question-card {
  min-height: min(620px, calc(100vh - 126px));
  padding: clamp(24px, 3.3vw, 42px);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.question-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  margin-top: 2px;
  place-items: center;
  border-radius: 16px;
  background: var(--band);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.45rem;
}

.question-icon[hidden] {
  display: none;
}

legend {
  width: 100%;
  margin-bottom: 8px;
  color: #4f3d35;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.question-hint {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.5;
}

.question-note {
  display: block;
  max-width: 860px;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.progress-wrap {
  margin-top: 32px;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45, 33, 27, 0.08);
}

.progress-bar span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms ease;
}

#progress-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.options-grid[data-question="trip"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(142px, 1fr));
  gap: 12px;
}

.options-grid[data-question="trip"] .option-card {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
}

.options-grid[data-question="budget"] {
  gap: 12px;
}

.options-grid[data-question="budget"] .option-card {
  min-height: 56px;
  padding: 9px 18px;
}

.option-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 74px;
  padding: 14px 22px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: #fffaf1;
  color: #160e0b;
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 140, 85, 0.55);
}

.option-card.is-selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fffaf4;
}

.option-prefix {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
}

.option-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.option-title {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.92rem, 1.35vw, 1rem);
  font-weight: 600;
  white-space: nowrap;
}

.option-copy {
  display: none;
}

.region-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 4px;
  position: relative;
}

.region-picker span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.region-picker input,
.region-picker select {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
  color: var(--ink);
  font-family: var(--sans);
  padding: 13px 16px;
  outline: none;
}

.region-picker input:focus,
.region-picker select:focus {
  border-color: rgba(242, 140, 85, 0.85);
  box-shadow: 0 0 0 4px rgba(242, 140, 85, 0.14);
}

.typeahead-list {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.typeahead-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  padding: 10px 12px;
  text-align: left;
}

.typeahead-option:hover {
  border-color: rgba(242, 140, 85, 0.65);
  background: var(--band);
}

.typeahead-option span {
  font-weight: 800;
}

.typeahead-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-message {
  max-width: 520px;
  margin: 2px 0 0;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.45;
}

.non-negotiable-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: -8px 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.non-negotiable-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.quiz-controls {
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.quiz-controls .primary-button {
  min-width: min(304px, 60vw);
}

.results-head {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.results-head .eyebrow {
  margin-bottom: 8px;
}

.results-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.profile-summary {
  position: static;
  padding: 24px;
  order: 2;
}

.profile-summary h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.profile-summary dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.profile-summary dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-summary dd {
  margin: 4px 0 0;
  font-weight: 750;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  order: 1;
}

.results-list.is-reviewing-all {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.results-list.is-reviewing-all .result-top {
  display: none;
}

.destination-divider {
  grid-column: 1 / -1;
  margin: 8px 0 -2px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
}

.result-card.is-muted {
  opacity: 0.7;
  filter: grayscale(0.55);
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.result-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--band);
  object-fit: cover;
  object-position: center;
}

.result-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.rank-label {
  color: var(--muted);
  font-weight: 900;
}

.result-title {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.12;
}

.result-title a {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.result-title a:hover {
  color: var(--primary-dark);
  text-decoration-color: currentColor;
}

.result-score {
  display: inline-grid;
  min-width: 104px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: #f3a51d;
  color: var(--ink);
  font-weight: 900;
}

.why {
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.why-box {
  margin: 8px 0 16px;
  padding: 18px;
  border-radius: 18px;
  background: #f0ebe4;
}

.result-badges {
  margin: 0 0 14px;
}

.why-box strong {
  color: var(--muted);
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  min-height: 86px;
  align-content: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

.tags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--band);
  color: #7a4a2e;
  font-size: 0.84rem;
  font-weight: 750;
}

.result-link {
  width: max-content;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discount-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fffaf4;
  padding: 0 18px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 180ms ease;
}

.discount-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 30px rgba(220, 116, 66, 0.22);
  transform: translateY(-2px) scale(1.025);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(45, 33, 27, 0.38);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.discount-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 4vw, 34px);
}

.discount-modal h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 2.45rem);
  line-height: 1.08;
}

.discount-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--band);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.discount-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.discount-form label {
  display: grid;
  gap: 8px;
}

.discount-form > label > span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.consent-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 10px !important;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.consent-check span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.discount-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  color: var(--ink);
  font-family: var(--sans);
  padding: 12px 14px;
  outline: none;
}

.discount-form input:focus {
  border-color: rgba(242, 140, 85, 0.85);
  box-shadow: 0 0 0 4px rgba(242, 140, 85, 0.14);
}

.discount-confirmation {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 22px;
  border-radius: 22px;
  background: var(--band);
  text-align: center;
}

.discount-confirmation[hidden] {
  display: none;
}

.celebration-icons {
  font-size: 2rem;
  line-height: 1;
}

.discount-confirmation h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.discount-confirmation p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.success-next-actions {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.success-next-actions p {
  color: var(--ink);
  font-size: 0.95rem;
}

.success-next-actions > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.success-next-actions .primary-button,
.success-next-actions .ghost-button {
  width: 100%;
  min-height: 42px;
}

.success-modal {
  width: min(500px, 100%);
  padding: 28px;
}

.success-preview-page {
  width: min(620px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(50px, 8vw, 84px) 0;
}

.success-preview-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.results-retake {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: clamp(44px, 7vw, 72px) 24px;
  border-radius: 30px;
  background: #f0ebe4;
  text-align: center;
}

.results-retake h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.1;
}

.results-retake p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.5;
}

.gold-button {
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #f3a51d;
  color: var(--ink);
  padding: 0 32px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 180ms ease;
}

.gold-button:hover {
  background: #e59612;
  box-shadow: 0 16px 34px rgba(229, 150, 18, 0.24);
  transform: translateY(-2px) scale(1.035);
}

.visa-note {
  max-width: 900px;
  margin: 36px auto 0;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 246, 232, 0.92);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.visa-note a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.popup-editions-section {
  margin-top: 42px;
}

.popup-editions-section .split-heading {
  width: 100%;
  margin-bottom: 20px;
}

.popup-editions-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.popup-edition-card {
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.popup-edition-card.is-muted {
  opacity: 0.58;
  filter: grayscale(0.85);
}

.popup-edition-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  background: var(--band);
  object-fit: cover;
}

.popup-edition-card > div {
  padding: 18px;
}

.popup-edition-top {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.popup-edition-top span {
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-edition-top strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.edition-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.edition-badges span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--band);
  color: #7a4a2e;
  font-size: 0.78rem;
  font-weight: 850;
}

.site-footer {
  margin-top: 0;
  padding: 56px max(24px, calc((100vw - 1180px) / 2)) 28px;
  border-top: 1px solid var(--line);
  background: #fff8ed;
  box-shadow: inset 0 18px 36px rgba(118, 79, 42, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) 0.55fr minmax(280px, 0.9fr);
  gap: 42px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
}

.site-footer p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--primary-dark);
  font-family: var(--sans);
  font-size: 1.05rem;
}

.site-footer a,
.site-footer button,
.inline-link {
  display: block;
  margin: 10px 0 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.inline-link {
  display: inline;
  margin: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  min-width: 176px;
  height: 40px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--background);
  color: var(--ink);
  padding: 10px 16px;
}

.newsletter-form button {
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fffaf4;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.84rem;
}

.footer-love span {
  color: var(--primary);
  font-size: 0.78rem;
}

@media (max-width: 920px) {
  .hero-section,
  .operator-hero,
  .operator-form-section,
  .results-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .results-list,
  .popup-editions-list {
    grid-template-columns: 1fr;
  }

  .profile-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 32px));
  }

  .split-heading,
  .hero-section,
  .operator-hero,
  .operator-form-section {
    width: min(680px, calc(100% - 32px));
  }

  .hero-section {
    min-height: auto;
    padding-top: 24px;
    transform: none;
  }

  .operator-form-copy {
    position: static;
  }

  .hero-visual img {
    min-height: 330px;
  }

  .results-head,
  .result-top {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    padding: 16px;
  }

  .nav-actions a {
    display: none;
  }

  .brand {
    font-size: 1.18rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-summary dl {
    grid-template-columns: 1fr;
  }

  .nav-button,
  .primary-button,
  .ghost-button {
    min-height: 44px;
    padding: 0 16px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .trust-strip {
    gap: 12px;
  }

  .quiz-page,
  .results-page {
    width: min(100% - 28px, 680px);
    padding-top: 28px;
  }

  .question-card {
    min-height: calc(100vh - 132px);
    padding: 32px 24px;
    border-radius: 30px;
  }

  legend {
    font-size: 1.75rem;
  }

  .question-hint {
    font-size: 0.95rem;
  }

  .options-grid[data-question="trip"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 52px;
    padding: 0 18px;
  }

  .option-title {
    white-space: normal;
  }

  .quiz-controls {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .quiz-controls .primary-button {
    width: 100%;
    min-width: 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cover-preview {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .why-love-panel {
    transition: none;
  }
}
