:root {
  --gold: #c5a16f;
  --gold-light: #dfbf8c;
  --black: #0a0a0a;
  --panel: #10100f;
  --soft-white: #e5e2da;
  --muted: #99958d;
  --dim: #706c65;
  --line: rgba(197,161,111,.24);
  --line-strong: rgba(197,161,111,.55);
  --shell: 1480px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--soft-white);
  background:
    radial-gradient(circle at 50% -12%, rgba(197,161,111,.08), transparent 30%),
    linear-gradient(180deg, #090909 0%, #0a0a0a 58%, #080808 100%);
  font-family: "Tenor Sans", sans-serif;
  overflow-x: hidden;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.shell {
  width: min(92%, var(--shell));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: -2;
}

.ambient-left {
  left: -330px;
  top: 24%;
  background: rgba(197,161,111,.08);
}

.ambient-right {
  right: -340px;
  bottom: 2%;
  background: rgba(83,56,29,.12);
}

/* Header */

.site-header {
  min-height: 108px;
}

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

.back-home {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #aaa69d;
  font-size: .68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color .25s ease;
}

.back-home span:first-child {
  color: var(--gold);
  font-size: 1rem;
}

.back-home:hover { color: var(--gold-light); }

.brand-logo {
  display: block;
  height: 92px;
  width: auto;
  opacity: .9;
  filter: sepia(38%) saturate(650%) hue-rotate(5deg) brightness(88%) contrast(95%);
  mix-blend-mode: screen;
}

.lang-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(197,161,111,.45);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #77736c;
  cursor: pointer;
  padding: 8px 3px;
  font-size: .7rem;
  letter-spacing: 2px;
}

.lang-btn.active,
.lang-btn:hover { color: var(--gold-light); }

/* Intro */

.app-shell { padding-bottom: 80px; }

.intro {
  max-width: 980px;
  margin: 5vh auto 62px;
  text-align: center;
}

.eyebrow,
.mini-kicker {
  color: var(--gold);
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 19px;
  font-size: .7rem;
  letter-spacing: 7px;
}

.intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 300;
  letter-spacing: clamp(4px, 1vw, 12px);
}

.vine-divider {
  width: min(430px, 90%);
  margin: 26px auto 21px;
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  gap: 15px;
  color: var(--gold);
}

.vine-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: .45;
}

.vine-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.vine-divider svg {
  width: 58px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
}

.vine-divider circle {
  fill: currentColor;
  stroke: none;
}

.intro-copy {
  margin: 0;
  color: #aba79f;
  font-size: clamp(.92rem, 1.3vw, 1.08rem);
  letter-spacing: 1.5px;
}

/* App container */

.pairing-app {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(197,161,111,.18);
  background:
    radial-gradient(circle at 85% 0%, rgba(197,161,111,.055), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,.012), rgba(255,255,255,.003));
}

.progress-wrap {
  margin-bottom: 42px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--gold);
  font-size: .63rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.progress-line {
  height: 1px;
  margin-top: 13px;
  background: rgba(197,161,111,.13);
}

.progress-line i {
  display: block;
  width: 33.333%;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(197,161,111,.18);
  transition: width .45s ease;
}

.selection-trail {
  margin: -13px 0 39px;
  color: #7f7b74;
  font-size: .7rem;
  letter-spacing: 1.4px;
  text-align: right;
}

.selection-trail b {
  color: var(--gold-light);
  font-weight: 300;
}

.step-panel {
  display: none;
  animation: panelIn .55s ease both;
}

.step-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  text-align: center;
  margin-bottom: 34px;
}

.mini-kicker {
  margin: 0 0 12px;
  font-size: .62rem;
  letter-spacing: 5px;
}

.step-heading h2 {
  margin: 0;
  color: #f1eee7;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  font-weight: 300;
  letter-spacing: 2px;
}

/* Cards */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.category-card,
.choice-card,
.method-card {
  appearance: none;
  border: 1px solid rgba(197,161,111,.19);
  background: rgba(8,8,8,.45);
  color: var(--soft-white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform .35s ease,
    border-color .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.category-card::before,
.choice-card::before,
.method-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(197,161,111,.05), transparent 48%);
  transform: translateX(-110%);
  transition: transform .7s ease;
}

.category-card:hover::before,
.choice-card:hover::before,
.method-card:hover::before {
  transform: translateX(110%);
}

.category-card:hover,
.choice-card:hover,
.method-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197,161,111,.58);
  background: rgba(197,161,111,.025);
  box-shadow: 0 18px 36px rgba(0,0,0,.25);
}

.category-card {
  min-height: 225px;
  padding: 25px 20px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(197,161,111,.36);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 34px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.category-card strong,
.choice-card strong,
.method-card strong {
  color: var(--gold-light);
  font-weight: 300;
}

.category-card strong {
  font-size: 1.02rem;
  letter-spacing: 1px;
}

.category-card small {
  margin-top: 10px;
  color: #77736c;
  line-height: 1.55;
  font-size: .72rem;
}

.category-card .arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--gold);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.choice-card {
  min-height: 130px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.choice-card strong {
  font-size: 1.15rem;
}

.choice-card span {
  color: #757169;
  font-size: .7rem;
  letter-spacing: 1px;
}

.method-grid {
  max-width: 930px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.method-card {
  min-height: 116px;
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  text-align: left;
}

.method-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.method-card span {
  color: var(--gold);
  font-size: 1.1rem;
}

.step-back {
  display: flex;
  gap: 12px;
  margin: 35px auto 0;
  padding: 11px 4px;
  border: 0;
  background: transparent;
  color: #77736c;
  cursor: pointer;
  font-size: .67rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.step-back span:first-child { color: var(--gold); }
.step-back:hover { color: #c5c1b8; }

/* Result */

.result-panel { padding-top: 4px; }

.result-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(197,161,111,.17);
  color: var(--gold);
  font-size: .64rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#resultScore {
  letter-spacing: 5px;
  color: var(--gold-light);
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(34px, 6vw, 80px);
  padding-top: 45px;
}

.hero-result {
  position: relative;
  padding-left: 84px;
}

.result-ornament {
  position: absolute;
  left: 0;
  top: 3px;
  width: 55px;
  color: var(--gold);
  opacity: .86;
}

.result-ornament svg {
  width: 55px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
}

.product-type {
  margin: 0 0 12px;
  color: #756f67;
  font-size: .62rem;
  letter-spacing: 4px;
}

.hero-result > h2 {
  max-width: 720px;
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
}

.product-tagline {
  margin: 15px 0 33px;
  color: #aaa69d;
  font-size: .85rem;
  letter-spacing: 1.2px;
  font-style: italic;
}

.reason-block,
.use-block {
  padding: 23px 0;
  border-top: 1px solid rgba(197,161,111,.14);
}

.reason-block h3,
.use-block h3 {
  margin: 0 0 10px;
  color: #d9d5cc;
  font-size: .67rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.reason-block p,
.use-block p {
  margin: 0;
  max-width: 740px;
  color: #98948c;
  line-height: 1.78;
}

.chef-note {
  margin-top: 14px;
  padding: 20px 23px;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(197,161,111,.06), transparent);
}

.chef-note > span {
  color: var(--gold);
  font-size: .6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.chef-note p {
  margin: 10px 0 0;
  color: #b0aca3;
  line-height: 1.72;
  font-size: .82rem;
}

.alternatives {
  padding-left: 30px;
  border-left: 1px solid rgba(197,161,111,.16);
}

.alternatives-head {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 13px;
}

.alternatives-head span {
  color: var(--gold);
  font-size: .65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.alternatives-head small {
  color: #6f6b64;
  font-size: .67rem;
}

.alt-product {
  padding: 24px 0;
  border-top: 1px solid rgba(197,161,111,.12);
}

.alt-product:first-child { border-top: 0; }

.alt-rank {
  color: #6f6b64;
  font-size: .6rem;
  letter-spacing: 2px;
}

.alt-product h3 {
  margin: 9px 0 9px;
  color: #d4d0c7;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

.alt-score {
  display: flex;
  gap: 6px;
}

.alt-score i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(197,161,111,.16);
}

.alt-score i.on { background: var(--gold); }

.alt-product p {
  margin: 12px 0 0;
  color: #7d7972;
  line-height: 1.55;
  font-size: .75rem;
}

.result-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(197,161,111,.14);
}

.primary-action,
.secondary-action {
  min-height: 51px;
  padding: 14px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(197,161,111,.3);
  cursor: pointer;
  background: transparent;
  font-size: .64rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease;
}

.primary-action {
  color: #eeeae2;
  background: rgba(197,161,111,.045);
}

.primary-action:hover,
.secondary-action:hover {
  border-color: var(--gold);
  background: rgba(197,161,111,.07);
}

.primary-action span:last-child,
.secondary-action span:first-child { color: var(--gold); }

/* Methodology */

.philosophy-note {
  max-width: 920px;
  margin: 46px auto 0;
  text-align: center;
}

.philosophy-note span {
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.philosophy-note p {
  margin: 14px 0 0;
  color: #747069;
  line-height: 1.75;
  font-size: .8rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(197,161,111,.1);
  padding: 35px 0 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #66625c;
  font-size: .61rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-inner span:first-child { color: var(--gold); }

/* Responsive */

@media (max-width: 1060px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .result-layout { grid-template-columns: 1fr; }
  .alternatives {
    padding: 30px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(197,161,111,.16);
  }
  .alternative-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header,
  .header-inner { min-height: 86px; }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-link { display: none; }

  .back-home { font-size: .61rem; }

  .intro { margin-top: 3vh; margin-bottom: 42px; }

  .intro h1 {
    font-size: clamp(2rem, 11vw, 3.5rem);
    letter-spacing: 4px;
  }

  .pairing-app { padding: 24px 18px 28px; }

  .category-grid,
  .choice-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 160px;
  }

  .card-icon {
    margin-bottom: 24px;
  }

  .selection-trail {
    text-align: left;
    line-height: 1.7;
  }

  .hero-result {
    padding-left: 0;
    padding-top: 65px;
  }

  .result-ornament {
    top: 0;
  }

  .result-kicker {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
