:root {
  color-scheme: dark;
  --ink: #fff3df;
  --muted: #dacba7;
  --soft: #f4e5c8;
  --paper: #30253d;
  --panel: #271f32;
  --panel-solid: #332942;
  --line: rgba(232, 185, 94, 0.3);
  --line-strong: rgba(232, 185, 94, 0.68);
  --gold: #e8b95e;
  --gold-bright: #ffd98a;
  --deep: #1b1422;
  --rose: #d69aa0;
  --sage: #a7b58d;
  --lavender: #9d8faf;
  --slider-low: #a7b58d;
  --slider-high: #e8b95e;
  --shadow: 0 22px 54px rgba(8, 4, 13, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  background: var(--deep);
}

html::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left 12px top 12px / 68px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left 12px top 12px / 1px 66px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right 12px top 12px / 68px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right 12px top 12px / 1px 66px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left 12px bottom 12px / 68px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left 12px bottom 12px / 1px 66px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right 12px bottom 12px / 68px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right 12px bottom 12px / 1px 66px no-repeat;
  opacity: 0.7;
}

body {
  min-height: 100vh;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 28px 62px;
  color: var(--ink);
  font-family: Optima, Candara, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(232, 185, 94, 0.14), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(214, 154, 160, 0.08), transparent 28%),
    linear-gradient(rgba(255, 243, 223, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 243, 223, 0.016) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
}

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

h1 {
  margin-bottom: 28px;
  width: fit-content;
  color: #ffe7b0;
  font-family: Impact, "Arial Narrow Bold", "Franklin Gothic Heavy", "Aptos Display", sans-serif;
  font-size: clamp(66px, 13vw, 142px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: scaleX(0.82);
  transform-origin: left center;
  -webkit-text-stroke: 3px rgba(239, 164, 59, 0.7);
  text-shadow:
    0 0 4px rgba(255, 235, 181, 0.95),
    0 0 10px rgba(255, 197, 91, 0.85),
    0 0 26px rgba(238, 151, 42, 0.66),
    0 0 46px rgba(238, 151, 42, 0.4),
    0 7px 0 rgba(99, 57, 15, 0.32);
}

h1::after {
  content: "THE DRINK YOU'LL LOVE";
  display: block;
  width: fit-content;
  margin-top: 22px;
  padding: 13px 18px 0 0;
  border-top: 1px solid rgba(232, 185, 94, 0.72);
  color: var(--soft);
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(232, 185, 94, 0.26),
    0 1px 0 rgba(0, 0, 0, 0.38);
}

form {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(232, 185, 94, 0.14), transparent 30%),
    var(--paper);
  box-shadow: var(--shadow);
}

#slider-container {
  display: grid;
  gap: 14px;
}

.slider-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 18px;
  align-items: stretch;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 243, 223, 0.05), rgba(30, 24, 38, 0.04)),
    var(--panel);
}

.slider-content {
  display: grid;
  gap: 9px;
  align-content: center;
  min-width: 0;
}

.question-prompt {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.slider-labels {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 0;
  margin: 0 9px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.25;
}

.slider-labels span:first-child {
  grid-column: 1;
  text-align: left;
}

.slider-labels span:last-child {
  grid-column: 3;
  text-align: right;
}

.number-labels {
  position: relative;
  display: block;
  height: 14px;
  margin: 0 9px;
  color: rgba(255, 243, 223, 0.74);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(232, 185, 94, 0.22);
}

.number-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
}

.number-labels span:nth-child(1) {
  left: 0;
}

.number-labels span:nth-child(2) {
  left: 16.6667%;
}

.number-labels span:nth-child(3) {
  left: 33.3333%;
}

.number-labels span:nth-child(4) {
  left: 50%;
}

.number-labels span:nth-child(5) {
  left: 66.6667%;
}

.number-labels span:nth-child(6) {
  left: 83.3333%;
}

.number-labels span:nth-child(7) {
  left: 100%;
}

input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--slider-low), var(--slider-high));
  box-shadow: 0 0 0 1px rgba(232, 185, 94, 0.2), 0 0 18px rgba(232, 185, 94, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid #fff7df;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff7df, var(--gold) 56%, #8d6b38);
  box-shadow: 0 0 0 5px rgba(232, 185, 94, 0.16), 0 0 18px rgba(232, 185, 94, 0.2);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--slider-low), var(--slider-high));
  box-shadow: 0 0 0 1px rgba(232, 185, 94, 0.2), 0 0 18px rgba(232, 185, 94, 0.1);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #fff7df;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff7df, var(--gold) 56%, #8d6b38);
  box-shadow: 0 0 0 5px rgba(232, 185, 94, 0.16), 0 0 18px rgba(232, 185, 94, 0.2);
}

.importance-control {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  min-width: 0;
}

.importance-label {
  max-width: 108px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-family: Optima, Candara, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}

.importance-label:focus {
  outline: none;
}

.importance-label:hover,
.importance-label:focus-visible {
  color: var(--gold-bright);
}

.importance-label:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.importance-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(30, 24, 38, 0.78);
  color: var(--gold);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.importance-button::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.38;
  transition: inset 160ms ease, opacity 160ms ease, border-radius 160ms ease, clip-path 160ms ease;
}

.importance-button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(232, 185, 94, 0.1);
}

.importance-button[aria-pressed="true"] {
  border-color: var(--gold-bright);
  background: radial-gradient(circle, rgba(232, 185, 94, 0.3), rgba(214, 154, 160, 0.14) 66%, rgba(51, 41, 66, 0.72));
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(232, 185, 94, 0.26);
}

.importance-button[aria-pressed="true"]::before {
  inset: 8px;
  border-radius: 0;
  background: linear-gradient(145deg, var(--ink), var(--gold) 56%, #8a6126);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 56%,
    79% 92%,
    50% 70%,
    21% 92%,
    32% 56%,
    2% 35%,
    39% 35%
  );
  opacity: 1;
}

.qualitative-section {
  display: grid;
  gap: 10px;
  margin: 0;
}

.qualitative-section label {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.qualitative-section textarea {
  width: 100%;
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: rgba(30, 24, 38, 0.72);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.qualitative-section textarea:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(232, 185, 94, 0.12);
}

button[type="submit"] {
  justify-self: start;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(242, 212, 138, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), var(--gold) 46%, #98713a);
  color: var(--deep);
  font-family: Optima, Candara, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

button[type="submit"]:hover {
  filter: brightness(1.06);
}

h2 {
  margin: 34px 0 16px;
  color: var(--gold);
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
}

.ai-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 212, 138, 0.4);
  border-radius: 8px;
  background: rgba(232, 185, 94, 0.12);
  color: #f6ddb1;
  font-size: 14px;
}

.persona-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
  gap: 46px;
  align-items: stretch;
  margin-bottom: 34px;
}

.persona-summary,
.taste-profile-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.persona-summary {
  display: grid;
  align-content: center;
  min-height: 430px;
  padding: 30px 42px;
  border-radius: 12px;
}

.taste-profile-card {
  display: grid;
  align-content: center;
  min-height: 430px;
  padding: 40px 44px;
  border-radius: 12px;
}

.eyebrow {
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.persona-summary h2 {
  margin: 0 0 16px;
  color: #f5df9a;
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 60px;
  font-weight: 800;
  line-height: 0.95;
}

.persona-intro,
.persona-avoidance {
  max-width: 600px;
  color: var(--soft);
  font-size: 19px;
  font-weight: 760;
  line-height: 1.34;
}

.persona-intro {
  margin-bottom: 20px;
  color: #fff7df;
}

.persona-avoidance {
  margin-bottom: 20px;
  color: var(--muted);
}

.persona-closing {
  margin: 0;
  color: #f0a1a8;
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
}

.taste-profile-bars {
  display: grid;
  gap: 39px;
}

.taste-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.taste-row > span {
  color: #fff7df;
  font-size: 17px;
  line-height: 1.2;
}

.taste-meter {
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(27, 20, 34, 0.42);
}

.taste-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d1b06d;
}

.recommendations-section {
  margin-top: 8px;
}

.recommendations-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.recommendations-heading h2 {
  margin: 0;
}

.secondary-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(30, 24, 38, 0.72);
  color: var(--gold-bright);
  font-family: Optima, Candara, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--gold-bright);
  background: rgba(51, 41, 66, 0.92);
}

.customer-mode .recommendations-heading h2 {
  color: var(--gold);
}

.customer-results {
  display: grid;
  gap: 18px;
}

.customer-results .customer-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(232, 185, 94, 0.12), rgba(255, 243, 223, 0.02)),
    var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.customer-results h2 {
  margin: 0 0 14px;
}

.customer-results h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.customer-results p,
.customer-results li,
.customer-results label {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.customer-email-form,
.customer-feedback-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.customer-email-form input,
.customer-feedback-form input,
.customer-feedback-form select,
.customer-feedback-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(30, 24, 38, 0.72);
  color: var(--ink);
  font: inherit;
}

.customer-feedback-form .rating-field {
  display: grid;
  gap: 10px;
}

.customer-feedback-form .rating-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  color: rgba(255, 243, 223, 0.72);
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}

.customer-feedback-form .rating-scale span {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.customer-feedback-form .rating-scale b {
  color: var(--gold);
  font-size: 0.86rem;
}

.customer-feedback-form .rating-scale small {
  color: rgba(255, 243, 223, 0.78);
  font-size: 0.68rem;
}

.customer-email-form button,
.customer-feedback-form button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(242, 212, 138, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), var(--gold) 46%, #98713a);
  color: var(--deep);
  font-weight: 850;
  cursor: pointer;
}

.customer-unlocked-results {
  display: grid;
  gap: 18px;
}

.customer-drink-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-drink-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 20, 34, 0.42);
}

#customer-save-status {
  color: var(--muted);
  font-size: 14px;
}

#results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#results:empty {
  display: block;
  min-height: 74px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(51, 41, 66, 0.68);
}

#results:empty::before {
  content: "Awaiting response input.";
  display: block;
  padding: 26px;
  color: var(--muted);
  font-size: 14px;
}

#results > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(232, 185, 94, 0.14), rgba(255, 243, 223, 0.025)),
    var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

#results h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

#results p {
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.48;
}

#results strong {
  color: var(--gold);
  font-weight: 800;
}

#results hr {
  display: none;
}

#results.customer-results {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  body {
    padding: 30px 16px 42px;
  }

  form {
    padding: 18px;
  }

  .persona-profile {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .persona-summary,
  .taste-profile-card {
    min-height: 0;
    padding: 28px;
  }

  .persona-summary h2 {
    font-size: 50px;
  }

  .persona-intro,
  .persona-avoidance {
    font-size: 18px;
  }

  .persona-intro {
    margin-bottom: 34px;
  }

  .persona-avoidance {
    margin-bottom: 30px;
  }

  #results {
    grid-template-columns: 1fr;
  }

  .customer-email-row,
  .customer-drink-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html::before {
    display: none;
  }

  h1 {
    font-size: 68px;
  }

  h1::after {
    font-size: 12px;
    letter-spacing: 0.13em;
  }

  .slider-block {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 14px;
  }

  .importance-control {
    grid-template-columns: auto auto;
    gap: 10px;
    align-items: center;
    justify-content: end;
  }

  .importance-label {
    max-width: 146px;
    font-size: 10px;
    line-height: 1.25;
    text-align: right;
  }

  .importance-button {
    width: 38px;
    height: 38px;
  }

  .slider-labels {
    font-size: 11px;
  }

  button[type="submit"] {
    width: 100%;
  }

  .persona-summary,
  .taste-profile-card {
    padding: 22px;
  }

  .persona-summary h2 {
    font-size: 42px;
  }

  .taste-profile-bars {
    gap: 24px;
  }

  .taste-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
  }

  .recommendations-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
    font-size: 15px;
  }
}
