:root {
  --coral: #fa725c;
  --coral-dark: #d85240;
  --coral-soft: #fff0eb;
  --cream: #fbf8f2;
  --beige: #f2ede5;
  --paper: #ffffff;
  --sage: #dfe9db;
  --sage-dark: #49634d;
  --ink: #282520;
  --muted: #716d65;
  --line: #e6dfd5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 52px rgba(54, 43, 32, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid #176b75; outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(60, 35, 29, .22);
  background: var(--coral);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand-link { justify-self: start; }
.brand-logo { width: 108px; height: auto; }
.header-title { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.header-reset { justify-self: end; padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; }

.hero {
  min-height: 500px;
  padding-block: 82px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
}

.eyebrow { margin: 0 0 10px; color: var(--coral-dark); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h1 { margin-bottom: 24px; font-size: clamp(52px, 6vw, 84px); letter-spacing: -.055em; }
h1 em { color: var(--coral); font-weight: 500; }
h2 { margin-bottom: 14px; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.04em; }
h3 { letter-spacing: -.025em; }

.hero-intro { max-width: 600px; margin: 0 0 28px; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); }
.begin-link { color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 7px; text-transform: uppercase; }
.begin-link span { margin-left: 7px; color: var(--coral); }

.hero-note {
  position: relative;
  min-height: 245px;
  padding: 38px;
  display: flex;
  align-items: end;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50% 50% 22px 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero-note::before { content: ""; position: absolute; width: 150px; height: 150px; right: 36px; top: 22px; border: 1px solid var(--line); border-radius: 50%; }
.hero-note::after { content: ""; position: absolute; width: 74px; height: 74px; right: 74px; top: 60px; border-radius: 50%; background: var(--coral-soft); }
.hero-note-number { position: relative; z-index: 2; color: var(--coral); font-family: var(--serif); font-size: 62px; line-height: .85; }
.hero-note strong { display: block; font-family: var(--serif); font-size: 20px; }
.hero-note p { max-width: 240px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.finder-section { padding-block: 82px 96px; border-block: 1px solid var(--line); background: var(--beige); }
.finder-heading-row { margin-bottom: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .4fr); align-items: end; gap: 40px; }
.finder-heading-row h2 { margin-bottom: 0; }
.finder-heading-row > p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(310px, .85fr) minmax(420px, 1.35fr) minmax(270px, .72fr);
  align-items: start;
  gap: 18px;
}

.card { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 10px 36px rgba(54, 43, 32, .05); }
.profile-panel { position: sticky; top: 98px; max-height: calc(100vh - 120px); padding: 26px; overflow-y: auto; scrollbar-width: thin; }
.best-panel { min-height: 670px; overflow: hidden; }
.matches-panel { padding: 26px; }

.card-heading { display: flex; align-items: center; gap: 13px; }
.card-heading .eyebrow { margin-bottom: 3px; }
.card-heading h3 { margin: 0; font-size: 22px; }
.compact-heading h3 { font-size: 21px; }
.section-number { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-family: var(--serif); font-size: 12px; }

.customer-type-block { padding: 24px 0 21px; border-bottom: 1px solid var(--line); }
.question-block { padding: 21px 0; border-bottom: 1px solid var(--line); }
.question-label-row { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-label-row h4 { margin: 0; font-size: 12px; font-weight: 900; }
.question-label-row span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.question-index { margin-right: 5px; color: var(--coral-dark); }

.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #f0ece5; }
.segment-button { padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.segment-button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 9px rgba(30, 25, 20, .08); }

.choice-stack { display: grid; gap: 7px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.choice-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.choice-button:hover { border-color: #cec3b7; transform: translateY(-1px); }
.choice-button[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-soft); }
.choice-check { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #c7c0b8; border-radius: 50%; color: transparent; font-size: 10px; font-weight: 900; }
[data-multiple="true"] .choice-check { border-radius: 5px; }
.choice-button[aria-pressed="true"] .choice-check { border-color: var(--coral); background: var(--coral); color: white; }
.choice-name { display: block; font-size: 11px; font-weight: 800; line-height: 1.25; }
.choice-hint { display: none; }

.best-empty { min-height: 670px; padding: 64px 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-symbol { width: 82px; height: 82px; margin-bottom: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--coral); font-size: 23px; }
.best-empty h3 { max-width: 520px; margin-bottom: 16px; font-size: clamp(34px, 3.6vw, 47px); }
.best-empty > p:not(.eyebrow) { max-width: 500px; margin: 0; color: var(--muted); }
.answer-progress { margin-top: 26px; padding: 8px 13px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: 10px; font-weight: 800; }

.best-content { padding: 28px; }
.result-topline { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.result-topline .eyebrow { margin-bottom: 2px; }
.result-subtitle { margin: 0; color: var(--muted); font-size: 11px; }
.match-pill { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #f3a395; border-radius: 999px; background: var(--coral-soft); color: var(--coral-dark); font-size: 12px; font-weight: 900; }
.best-image-wrap { height: 340px; overflow: hidden; display: grid; place-items: center; border-radius: 17px; background: var(--coral-soft); }
.best-image-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.best-copy { padding: 28px 4px 4px; }
.best-rank { margin: 0 0 10px; color: var(--sage-dark); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.best-copy h3 { margin-bottom: 7px; font-size: clamp(40px, 4vw, 58px); }
.descriptor { margin: 0 0 12px; color: var(--coral-dark); font-family: var(--serif); font-size: 17px; font-style: italic; }
.intensity { margin: 0 0 20px; color: var(--muted); font-size: 11px; font-weight: 800; }
.explanation { margin: 0; color: #5f5a53; font-size: 14px; }
.best-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.primary-button, .dark-button { min-height: 44px; padding: 12px 19px; border: 1px solid transparent; border-radius: 999px; background: var(--coral); color: white; font-size: 11px; font-weight: 900; text-decoration: none; }
.primary-button:hover { background: var(--coral-dark); }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }

.matches-empty { margin: 24px 0 0; padding: 22px 12px; border-radius: 12px; background: var(--cream); color: var(--muted); font-size: 12px; text-align: center; }
.matches-list { margin: 20px 0 0; padding: 0; list-style: none; }
.match-option {
  width: 100%;
  padding: 14px 2px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.matches-list li:first-child .match-option { border-top: 0; }
.match-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.match-name { display: block; font-family: var(--serif); font-size: 16px; }
.match-descriptor { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.match-score { padding: 5px 7px; border-radius: 999px; background: var(--cream); color: var(--coral-dark); font-size: 10px; font-weight: 900; }
.match-option:hover .match-name { color: var(--coral-dark); }

.compare-section { padding-block: 105px; }
.section-intro { margin-bottom: 38px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); align-items: end; gap: 50px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.scent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.scent-card { min-width: 0; }
.scent-card-button { width: 100%; height: 100%; padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); text-align: left; transition: transform 170ms ease, box-shadow 170ms ease; }
.scent-card-button:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scent-card-image { position: relative; aspect-ratio: 1 / 1.03; overflow: hidden; background: #f7f2eb; }
.scent-card-image img { width: 100%; height: 100%; object-fit: contain; }
.comparison-score { position: absolute; right: 9px; top: 9px; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--coral-dark); font-size: 9px; font-weight: 900; }
.scent-card-copy { flex: 1; padding: 17px 15px 18px; }
.scent-card-copy h3 { margin-bottom: 6px; font-size: 22px; }
.scent-card-copy .descriptor { display: block; margin-bottom: 11px; font-size: 12px; }
.card-intensity { display: block; margin-bottom: 15px; color: var(--muted); font-size: 10px; font-weight: 800; }
.notes-preview { padding-top: 13px; display: grid; gap: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.4; }
.notes-preview b { margin-right: 4px; color: var(--ink); }
.open-story { display: block; margin-top: 15px; color: var(--ink); font-size: 10px; font-weight: 900; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }

.discovery { margin-bottom: 105px; overflow: hidden; display: grid; grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr); align-items: stretch; border-radius: 27px; background: var(--coral); color: white; }
.discovery-image { min-height: 430px; overflow: hidden; background: #eadfd2; }
.discovery-image img { width: 100%; height: 100%; object-fit: cover; }
.discovery-copy { align-self: center; max-width: 650px; padding: 58px 64px; }
.discovery .eyebrow { color: #572a23; }
.discovery h2 { margin-bottom: 16px; font-size: clamp(38px, 4vw, 52px); }
.discovery-copy > p:not(.eyebrow) { max-width: 510px; margin: 0 0 27px; color: rgba(255,255,255,.88); }
.dark-button { display: inline-block; background: var(--ink); }
.dark-button:hover { background: #000; }
.dark-button span { margin-left: 7px; }

.site-footer { border-top: 1px solid rgba(60, 35, 29, .22); background: var(--coral); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-logo { width: 122px; }
.footer-inner p { margin: 0; color: var(--ink); font-size: 11px; }
.mobile-wizard { display: none; }

.scent-dialog { width: min(880px, calc(100% - 30px)); max-height: min(750px, calc(100vh - 30px)); padding: 0; overflow: auto; border: 0; border-radius: 23px; box-shadow: 0 28px 90px rgba(32, 27, 22, .3); }
.scent-dialog::backdrop { background: rgba(39, 35, 31, .6); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; float: right; right: 15px; top: 15px; z-index: 3; width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.93); color: var(--ink); font-size: 25px; box-shadow: 0 4px 15px rgba(0,0,0,.13); }
.dialog-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); }
.dialog-image { min-height: 590px; background: var(--coral-soft); }
.dialog-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dialog-copy { padding: 62px 45px 42px; }
.dialog-copy h2 { margin-bottom: 7px; font-size: 46px; }
.dialog-summary { margin: 20px 0; color: var(--muted); }
.dialog-fit { margin: 22px 0; padding: 17px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: #574c45; font-size: 13px; }
.dialog-fit strong { display: block; margin-bottom: 5px; color: var(--coral-dark); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.notes-heading { margin: 24px 0 11px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.note-row { padding: 9px 0; display: grid; grid-template-columns: 50px 1fr; gap: 10px; border-bottom: 1px solid var(--line); font-size: 11px; }
.note-row span:first-child { color: var(--muted); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; max-width: calc(100% - 30px); padding: 11px 17px; border-radius: 999px; background: var(--ink); color: white; font-size: 11px; box-shadow: 0 8px 28px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 170ms ease, transform 170ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .shell { width: min(100% - 34px, 930px); }
  .dashboard-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .matches-panel { grid-column: 2; }
  .scent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discovery { grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 26px, 650px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-title { display: none; }
  .hero { min-height: auto; padding-block: 62px; grid-template-columns: 1fr; gap: 42px; }
  .hero-note { min-height: 215px; }
  .finder-section { padding-block: 66px; }
  .finder-heading-row { grid-template-columns: 1fr; gap: 8px; }
  .desktop-profile { display: none; }
  .mobile-wizard { width: min(100% - 26px, 650px); margin: 0 auto 18px; padding: 24px; display: block; }
  .mobile-progress-row { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; font-weight: 800; }
  .mobile-progress-track { height: 4px; margin: 12px 0 25px; overflow: hidden; border-radius: 999px; background: var(--line); }
  .mobile-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
  .mobile-type { margin-bottom: 24px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
  .mobile-type p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
  .mobile-question h3 { margin-bottom: 9px; font-size: 33px; }
  .mobile-question > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
  .mobile-question .choice-stack { gap: 9px; }
  .mobile-question .choice-button { min-height: 59px; }
  .mobile-question .choice-name { font-size: 13px; }
  .mobile-question .choice-hint { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
  .mobile-nav { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-back { min-width: 70px; padding: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 800; }
  .mobile-back:disabled { opacity: .35; cursor: default; }
  .mobile-next:disabled { opacity: .42; cursor: not-allowed; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid:not(.mobile-ready) .best-panel,
  .dashboard-grid:not(.mobile-ready) .matches-panel { display: none; }
  .best-panel { min-height: 0; }
  .best-empty { min-height: 400px; }
  .best-content { padding: 23px; }
  .matches-panel { grid-column: auto; }
  .compare-section { padding-block: 82px; }
  .section-intro { grid-template-columns: 1fr; gap: 9px; }
  .scent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery { grid-template-columns: 1fr; }
  .discovery-image { min-height: 400px; }
  .discovery-copy { padding: 45px 32px 50px; }
  .footer-inner { min-height: 135px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image { min-height: 350px; max-height: 410px; }
  .dialog-copy { padding: 38px 25px; }
}

@media (max-width: 510px) {
  .shell { width: min(100% - 22px, 460px); }
  .brand-logo { width: 94px; }
  .header-inner { min-height: 68px; }
  .hero { padding-block: 50px 58px; }
  h1 { font-size: clamp(46px, 14vw, 62px); }
  .hero-note { padding: 28px; }
  .finder-heading-row h2 { font-size: 37px; }
  .mobile-wizard { width: min(100% - 22px, 460px); padding: 21px 17px; }
  .best-image-wrap { height: 300px; }
  .best-copy { padding-top: 23px; }
  .best-actions { align-items: flex-start; flex-direction: column; }
  .matches-panel { padding: 22px; }
  .scent-grid { grid-template-columns: 1fr; }
  .scent-card-image { aspect-ratio: 1.12 / 1; }
  .discovery { margin-bottom: 70px; border-radius: 21px; }
  .discovery-image { min-height: 335px; }
  .discovery-copy { padding: 37px 23px 42px; }
  .discovery h2 { font-size: 36px; }
  .dialog-copy h2 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
