:root {
  --navy: #0b1f44;
  --navy-2: #16315f;
  --coral: #f04d46;
  --lagoon: #35c7c8;
  --lagoon-soft: #82ddd8;
  --aurora-pink: #f27db3;
  --cream: #f7f4ee;
  --white: #fffdfa;
  --ink-muted: #657083;
  --line: #dedfdc;
  --shadow: 0 18px 50px rgba(11, 31, 68, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: "DM Sans", sans-serif; }
button, textarea { font: inherit; }
button { cursor: pointer; }

.site-header { min-height: 76px; max-width: 1380px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font: 800 21px "Manrope", sans-serif; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: white; font-size: 17px; }
.brand-mark span { position: absolute; right: -4px; bottom: -5px; color: var(--coral); font-size: 16px; }
.method-link { color: var(--navy); font-weight: 600; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.ranking-picker { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; color: var(--ink-muted); }
.ranking-picker select { appearance: none; width: clamp(310px, 31vw, 410px); border: 1px solid #cfd3d8; border-radius: 999px; padding: 12px 48px 12px 17px; color: var(--navy); background: var(--white); font-weight: 700; text-overflow: ellipsis; box-shadow: 0 3px 12px rgba(11,31,68,.05); cursor: pointer; }
.ranking-picker::after { content: "▾"; position: absolute; right: 8px; top: 50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--navy); font-size: 16px; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.ranking-picker select:hover, .ranking-picker select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(11,31,68,.09); }
.account-button { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--navy); color: white; font-weight: 700; }

main { overflow: hidden; }
.hero { position: relative; max-width: 1180px; margin: 25px auto 0; padding: 80px 8% 65px; border-radius: 34px; color: white; background: var(--navy); }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; border: 70px solid rgba(240,77,70,.9); border-radius: 50%; right: -175px; top: -190px; }
.eyebrow, .step { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #cfd7e5; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { max-width: 800px; margin: 25px 0 20px; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--coral); font-style: normal; }
.hero-copy { max-width: 610px; color: #cfd7e5; font-size: 19px; line-height: 1.6; }
.hero-meta { display: flex; gap: 55px; margin-top: 55px; }
.hero-meta div { display: grid; gap: 4px; }
.hero-meta strong { font: 700 26px "Manrope"; }
.hero-meta span { color: #9dabc1; font-size: 13px; }

.ranking-mode-switcher { max-width: 760px; margin: 55px auto 0; padding: 0 28px; text-align: center; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 22px; background: #eceae5; }
.mode-tab { display: grid; gap: 3px; padding: 14px 20px; border: 0; border-radius: 16px; color: var(--ink-muted); background: transparent; }
.mode-tab span { font: 800 17px "Manrope"; }
.mode-tab small { font-size: 11px; }
.mode-tab.active { color: white; background: var(--navy); box-shadow: 0 8px 22px rgba(11,31,68,.15); }
.mode-tab[data-vote-mode="expert"].active { background: linear-gradient(135deg, #44205f, #17684d); }
.ranking-mode-switcher > p { margin: 13px 0 0; color: var(--ink-muted); font-size: 13px; }
.expert-gate { max-width: 940px; margin: 50px auto 10px; padding: 30px 34px; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 23px; border: 1px solid #c9dcd3; border-radius: 24px; background: #f0f8f4; }
.expert-gate[hidden] { display: none; }
.expert-gate h2 { font-size: 30px; }
.expert-gate p:not(.step) { margin-bottom: 0; color: var(--ink-muted); line-height: 1.55; }
.expert-gate .secondary-button { margin: 0; text-decoration: none; white-space: nowrap; background: #17684d; }
.verified-symbol { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: white; background: #17684d; font-size: 24px; font-weight: 800; }
.expert-mode .step, .expert-mode .selection-counter strong { color: #258a66; }
.expert-mode .fragrance-card.selected { border-color: #258a66; background: #f3fbf7; }
.expert-mode .fragrance-card.selected .check { border-color: #258a66; background: #258a66; }
.expert-mode #submitVote, .expert-mode .bar span { background: #258a66; }
.expert-mode .result-celebration { background: #258a66; }
.expert-mode .result-row.my-choice { border-color: #258a66; }
.ranking-section[hidden], .vote-panel[hidden] { display: none; }

.ranking-section, .results-section, .methodology { max-width: 1080px; margin: 100px auto; padding: 0 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.step { color: var(--coral); margin: 0 0 10px; }
h2 { margin: 0; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.04em; }
.section-intro { color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.image-notice { color: #8b92a0; font-size: 12px; margin-top: 8px; }
.selection-counter { padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.selection-counter strong { color: var(--coral); }
.fragrance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 35px; }
.fragrance-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--white); padding: 20px; text-align: left; color: var(--navy); transition: .2s ease; min-height: 210px; }
.fragrance-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fragrance-card.selected { border: 2px solid var(--coral); padding: 19px; background: #fff8f5; }
.fragrance-card .check { position: absolute; display: grid; place-items: center; right: 14px; top: 14px; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--line); color: transparent; }
.fragrance-card.selected .check { background: var(--coral); border-color: var(--coral); color: white; }
.choice-rank { position: absolute; top: 14px; left: 14px; min-width: 31px; height: 27px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: white; font: 700 12px "Manrope"; opacity: 0; transform: scale(.8); transition: .2s ease; }
.fragrance-card.selected .choice-rank { opacity: 1; transform: scale(1); }
.bottle { position: relative; isolation: isolate; height: 118px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bottle::before, .bottle::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(76%, 154px); height: 102px; pointer-events: none; transition: opacity .25s ease, transform .35s ease; }
.bottle::before { z-index: -2; border-radius: 48% 52% 45% 55% / 55% 43% 57% 45%; background: linear-gradient(135deg, rgba(53,199,200,.55), rgba(130,221,216,.16) 43%, rgba(242,125,179,.52) 78%, rgba(229,82,151,.38)); filter: blur(13px); opacity: .42; transform: translate(-50%, -50%) rotate(-7deg) scale(.94); }
.bottle::after { z-index: -1; padding: 2px; border-radius: 45% 55% 49% 51% / 54% 44% 56% 46%; background: conic-gradient(from 215deg, var(--lagoon), var(--lagoon-soft) 31%, #b5afe0 52%, var(--aurora-pink) 73%, #e8569a 86%, var(--lagoon)); opacity: .78; transform: translate(-50%, -50%) rotate(-4deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.fragrance-card:hover .bottle::before { opacity: .62; transform: translate(-50%, -50%) rotate(3deg) scale(1.02); }
.fragrance-card:hover .bottle::after, .fragrance-card.selected .bottle::after { opacity: 1; transform: translate(-50%, -50%) rotate(2deg) scale(1.035); }
.bottle img { position: relative; z-index: 1; display: block; width: 100%; height: 112px; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 8px 10px rgba(11,31,68,.08)); }
.bottle img.image-error { display: none; }
.bottle-shape { position: relative; z-index: 1; width: 54px; height: 70px; border-radius: 7px 7px 12px 12px; background: linear-gradient(145deg, var(--bottle), color-mix(in srgb, var(--bottle), #000 25%)); box-shadow: inset 7px 0 12px rgba(255,255,255,.16); }
.bottle-shape::before { content: ""; position: absolute; width: 26px; height: 15px; left: 14px; top: -15px; background: var(--cap); border-radius: 3px 3px 0 0; }
.bottle-shape::after { content: ""; position: absolute; width: 30px; height: 18px; left: 12px; top: 28px; background: rgba(255,255,255,.72); border-radius: 2px; }
.fragrance-card strong { display: block; font: 700 15px/1.3 "Manrope"; }
.fragrance-card small { color: var(--ink-muted); display: block; margin-top: 6px; }

.vote-panel { max-width: 1024px; margin: 40px auto 100px; padding: 48px; border-radius: 28px; background: var(--navy); color: white; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.vote-panel p:not(.step) { color: #aeb9ca; line-height: 1.6; }
label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
label span { color: #8e9db4; font-weight: 400; }
#reasonLabel { color: inherit; font-weight: 600; }
textarea { width: 100%; min-height: 125px; resize: vertical; border: 1px solid #405373; outline: none; border-radius: 14px; padding: 15px; color: white; background: #152e58; }
textarea:focus { border-color: var(--coral); }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.form-footer small { color: #8e9db4; }
#submitVote, .secondary-button { border: 0; border-radius: 999px; padding: 14px 22px; background: var(--coral); color: white; font-weight: 700; }
#submitVote:disabled { opacity: .35; cursor: not-allowed; }
#submitVote span { padding-left: 10px; }

.results-section { text-align: center; padding-top: 25px; }
.result-celebration { width: 58px; height: 58px; margin: 0 auto 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-size: 26px; }
.result-celebration[hidden] { display: none; }
.results-list { max-width: 750px; margin: 40px auto 30px; display: grid; gap: 12px; text-align: left; }
.result-row { display: grid; grid-template-columns: 42px 1fr 110px; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.result-row.my-choice { border-color: var(--coral); }
.rank-number { font: 700 20px "Manrope"; }
.result-name strong { display: block; }.result-name small { color: var(--ink-muted); }
.bar-wrap { text-align: right; font-weight: 700; }
.bar-wrap small { display: block; color: var(--ink-muted); font-weight: 500; margin-bottom: 4px; }
.bar { height: 5px; margin-top: 5px; background: #e4e6e8; border-radius: 9px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--coral); }
.secondary-button { margin: 10px; }.text-button { border: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.comparison-section { max-width: 1180px; margin: 115px auto; padding: 0 28px; }
.comparison-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 38px; }
.comparison-heading > p { max-width: 430px; margin: 0; color: var(--ink-muted); line-height: 1.6; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.perspective-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.perspective-panel > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.perspective-panel > header > div { display: flex; align-items: center; gap: 10px; }
.perspective-panel > header strong { font: 800 17px "Manrope"; }
.perspective-panel > header small { padding: 7px 10px; border-radius: 999px; color: var(--ink-muted); background: #eeefef; white-space: nowrap; font-size: 11px; font-weight: 700; }
.perspective-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(240,77,70,.12); }
.expert-perspective { border-color: #c9dcd3; }
.expert-perspective > header { background: #f3f9f6; }
.expert-perspective .perspective-dot { background: #258a66; box-shadow: 0 0 0 5px rgba(37,138,102,.12); }
.expert-perspective > header small { color: #17684d; background: #dff2e9; }
.perspective-list { display: grid; }
.perspective-item { min-height: 74px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 13px 22px; border-bottom: 1px solid #ececea; }
.perspective-item:last-child { border-bottom: 0; }
.perspective-rank { font: 800 18px "Manrope"; }
.perspective-product strong, .perspective-product small { display: block; }
.perspective-product small { margin-top: 3px; color: var(--ink-muted); }
.perspective-score { text-align: right; }
.perspective-score strong { display: block; font-size: 13px; }
.rank-difference { display: inline-block; margin-top: 4px; padding: 4px 7px; border-radius: 999px; color: var(--ink-muted); background: #f0f1f2; font-size: 10px; font-weight: 700; }
.rank-difference.higher { color: #17684d; background: #e2f4eb; }
.rank-difference.lower { color: #9a4c32; background: #f9e9e2; }
.rank-difference.same { color: #526174; }
.comparison-empty { margin: 0; padding: 45px 25px; color: var(--ink-muted); text-align: center; line-height: 1.55; }
.comparison-note { margin: 17px 0 0; color: var(--ink-muted); text-align: center; font-size: 12px; }

.expert-voices-section { max-width: 1080px; margin: 120px auto; padding: 75px 65px; border-radius: 30px; color: white; background: linear-gradient(145deg, #10264c, #0b1f44 55%, #123f3c); }
.expert-voices-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; }
.expert-voices-heading h2 { max-width: 680px; }
.expert-voices-heading > p { max-width: 285px; margin: 0; color: #b9c7d8; line-height: 1.55; }
.expert-voices-heading > p strong { color: white; font-size: 21px; }
.expert-voice-cards { display: grid; gap: 16px; margin-top: 42px; }
.expert-voice-card { padding: 27px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.07); }
.expert-voice-header { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 15px; }
.expert-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #103f35; background: #bfe6d3; font: 800 16px "Manrope"; }
.expert-identity strong, .expert-identity span { display: block; }
.expert-identity strong { font: 800 17px "Manrope"; }
.expert-identity span { margin-top: 4px; color: #b9c7d8; font-size: 13px; }
.verified-expert-badge { padding: 7px 10px; border-radius: 999px; color: #c8f1dd; background: rgba(37,138,102,.28); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.expert-ballot { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 23px 0 0; padding: 0; list-style: none; }
.expert-ballot li { min-height: 69px; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.08); }
.expert-ballot b { color: #7ed7ae; font-size: 12px; }
.expert-ballot span { font-size: 12px; font-weight: 700; line-height: 1.3; }
.expert-ballot small { display: block; margin-top: 3px; color: #aebdce; font-size: 10px; font-weight: 500; }
.expert-reason { margin: 20px 0 0; padding: 17px 19px; border-left: 3px solid #45ae7f; border-radius: 0 12px 12px 0; color: #d4dde8; background: rgba(0,0,0,.12); line-height: 1.6; }
.expert-profile-link { display: inline-block; margin-top: 17px; color: #9de3c2; font-size: 12px; font-weight: 800; text-underline-offset: 4px; }
.expert-voices-empty { margin: 0; padding: 45px; border: 1px dashed rgba(255,255,255,.25); border-radius: 18px; color: #b9c7d8; text-align: center; line-height: 1.6; }

.methodology { padding-top: 90px; border-top: 1px solid var(--line); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.principles article { padding: 27px; background: var(--white); border-radius: 20px; }
.principles article > span { color: var(--coral); font-weight: 700; }.principles h3 { font-size: 19px; }.principles p { color: var(--ink-muted); line-height: 1.6; }
footer { max-width: 1180px; margin: auto; padding: 50px 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--ink-muted); }
footer p { font-weight: 600; } footer small { text-align: right; }
.footer-link { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }
.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--navy); color: white; padding: 13px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 16, 38, .66); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(460px, 100%); padding: 38px; border-radius: 25px; background: var(--white); box-shadow: 0 28px 80px rgba(5, 16, 38, .3); }
.modal-card h2 { font-size: 35px; }
.modal-card > p:not(.step) { color: var(--ink-muted); line-height: 1.55; }
.modal-close { position: absolute; right: 17px; top: 14px; border: 0; background: none; color: var(--ink-muted); font-size: 28px; }
.modal-card label { margin-top: 24px; }
.modal-card input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px; outline: none; }
.modal-card input:focus { border-color: var(--coral); }
.auth-submit, .google-button { width: 100%; margin-top: 12px; border: 0; border-radius: 999px; padding: 14px; font-weight: 700; }
.auth-submit { background: var(--coral); color: white; }
.google-button { margin-top: 0; border: 1px solid var(--line); background: white; color: var(--navy); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal-card > small { display: block; margin-top: 18px; color: var(--ink-muted); text-align: center; }

@media (max-width: 800px) {
  .ranking-picker span, .method-link { display: none; }
  .site-header { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .header-actions { gap: 9px; }
  .ranking-picker select { width: min(48vw, 300px); min-width: 190px; padding-left: 13px; }
  .hero { margin: 10px 14px 0; padding: 58px 28px 45px; border-radius: 25px; }
  .hero-meta { gap: 25px; flex-wrap: wrap; }.hero-meta span { max-width: 80px; }
  .fragrance-grid { grid-template-columns: repeat(2, 1fr); }
  .vote-panel { margin: 40px 14px 90px; padding: 30px 24px; grid-template-columns: 1fr; gap: 25px; }
  .principles { grid-template-columns: 1fr; }
  .comparison-heading { align-items: flex-start; flex-direction: column; gap: 13px; }.comparison-grid { grid-template-columns: 1fr; }
  .expert-voices-section { margin-left: 14px; margin-right: 14px; padding: 55px 35px; }.expert-voices-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  footer { flex-direction: column; align-items: flex-start; } footer small { text-align: left; }
  .expert-gate { margin-left: 14px; margin-right: 14px; grid-template-columns: 50px 1fr; }.expert-gate .secondary-button { grid-column: 1 / -1; width: fit-content; }
}
@media (max-width: 470px) {
  .site-header { height: 66px; padding: 0 18px; }.method-link { font-size: 13px; }
  .brand > span:last-child { display: none; }
  .ranking-picker select { width: 55vw; min-width: 0; font-size: 12px; }
  .account-button { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  h1 { font-size: 43px; }.hero-copy { font-size: 16px; }
  .ranking-section, .results-section, .methodology { margin: 75px auto; padding-left: 18px; padding-right: 18px; }
  .comparison-section { margin: 80px auto; padding: 0 14px; }.perspective-panel > header { align-items: flex-start; flex-direction: column; }.perspective-item { padding-left: 16px; padding-right: 16px; }
  .expert-voices-section { padding: 45px 22px; }.expert-voice-header { grid-template-columns: 46px 1fr; }.expert-avatar { width: 46px; height: 46px; }.verified-expert-badge { grid-column: 1 / -1; width: fit-content; }.expert-ballot { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }.selection-counter { font-size: 13px; }
  .fragrance-grid { gap: 10px; }.fragrance-card { padding: 15px; min-height: 196px; }.fragrance-card.selected { padding: 14px; }
  .ranking-mode-switcher { padding: 0 14px; }.mode-tab { padding: 12px 8px; }.mode-tab span { font-size: 14px; }.mode-tab small { font-size: 10px; }
  .result-row { grid-template-columns: 32px 1fr 64px; padding: 12px; }
}
