:root {
  --night: #0b1422;
  --navy: #12243a;
  --navy-2: #1d3651;
  --ink: #162435;
  --muted: #667483;
  --paper: #f8f7f3;
  --white: #ffffff;
  --line: #dfe5e6;
  --gold: #c7a768;
  --gold-dark: #8f7139;
  --aqua: #6faeb0;
  --success: #39745e;
  --danger: #a14949;
  --shadow: 0 34px 90px rgba(1, 9, 20, .38);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(111, 174, 176, .17), transparent 29rem),
    radial-gradient(circle at 86% 76%, rgba(199, 167, 104, .16), transparent 31rem),
    linear-gradient(135deg, #0b1422 0%, #14263a 52%, #0d1929 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: .9;
}
.ambient-one {
  width: 18rem;
  height: 18rem;
  left: -8rem;
  bottom: 9%;
  border: 1px solid rgba(255,255,255,.07);
}
.ambient-two {
  width: 29rem;
  height: 29rem;
  right: -14rem;
  top: -12rem;
  border: 1px solid rgba(199,167,104,.13);
}

.study-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
}

.study-context { color: #eef3f5; max-width: 560px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 72px;
}
.brand img { border-radius: 50%; box-shadow: 0 10px 32px rgba(0,0,0,.18); }
.brand span, .app-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.test-label, .consent-kicker, .screen-kicker {
  display: inline-block;
  color: #d8bf8d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.study-context h1 {
  margin: 20px 0 20px;
  max-width: 600px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.045em;
}
.study-context > p {
  max-width: 540px;
  margin: 0;
  color: #bdc9d1;
  font-size: 1.08rem;
  line-height: 1.7;
}
.context-note {
  margin-top: 34px;
  padding: 17px 19px;
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
}
.context-note span { color: var(--gold); margin-top: 2px; }
.context-note p { margin: 0; color: #d2dce2; font-size: .91rem; line-height: 1.55; }

.device-area { display: flex; flex-direction: column; align-items: center; }
.phone-device {
  position: relative;
  width: min(410px, 100%);
  height: min(820px, calc(100vh - 48px));
  min-height: 650px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 48px;
  background: linear-gradient(155deg, #273342, #05090e 38%, #131c26);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.09);
}
.phone-frame-top {
  position: absolute;
  z-index: 6;
  top: 17px;
  left: 50%;
  width: 102px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: #080d13;
}
.phone-frame-top span {
  position: absolute;
  top: 10px;
  left: 44px;
  width: 34px;
  height: 5px;
  border-radius: 6px;
  background: #202a35;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background:
    radial-gradient(circle at 90% 1%, rgba(111,174,176,.14), transparent 16rem),
    var(--paper);
}
.app-header {
  height: 76px;
  padding: 31px 25px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18,36,58,.07);
}
.app-wordmark { color: var(--navy); font-size: .95rem; font-weight: 700; }
.app-mode {
  padding: 6px 10px;
  color: var(--gold-dark);
  border: 1px solid rgba(143,113,57,.26);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.progress-wrap { padding: 12px 25px 0; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.progress-track { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 9px; background: #e1e5e4; }
.progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), var(--gold)); transition: width .35s ease; }
.app-content {
  height: calc(100% - 76px);
  overflow: hidden;
}
.progress-wrap:not([hidden]) + .app-content { height: calc(100% - 112px); }
.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: screenIn .28s ease both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 25px 25px 18px;
  scrollbar-width: thin;
  scrollbar-color: #ccd4d5 transparent;
}
.screen-body::-webkit-scrollbar { width: 4px; }
.screen-body::-webkit-scrollbar-thumb { background: #ccd4d5; border-radius: 9px; }
.screen-actions {
  padding: 13px 25px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(18,36,58,.08);
  background: rgba(248,247,243,.96);
  box-shadow: 0 -13px 30px rgba(18,36,58,.04);
}
.screen-kicker { color: var(--gold-dark); margin-bottom: 11px; }
.screen h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.screen-copy { margin: 0 0 22px; color: var(--muted); font-size: .94rem; line-height: 1.58; }
.fine-print { margin: 14px 0 0; color: #7b8790; font-size: .76rem; line-height: 1.45; }

.button {
  min-height: 50px;
  padding: 13px 17px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .option-button:focus-visible, .experience-option:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid rgba(111,174,176,.34);
  outline-offset: 2px;
}
.button:disabled { cursor: not-allowed; opacity: .42; transform: none; box-shadow: none; }
.button-primary {
  flex: 1;
  color: #fff;
  background: linear-gradient(135deg, #16324b, #234c67);
  box-shadow: 0 13px 25px rgba(18,36,58,.22);
}
.button-secondary { color: var(--navy); background: #e8eceb; }
.button-quiet { color: var(--navy); background: transparent; border: 1px solid #d4dcdd; }
.back-button {
  width: 50px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 1px solid #d6ddde;
  font-size: 1.2rem;
}
.full-width { width: 100%; }

.intro-visual {
  height: 144px;
  margin: -2px 0 22px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(18,36,58,.04), rgba(111,174,176,.22)),
    url("assets/experience-venice.webp") center 45%/cover;
}
.intro-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(9,21,34,.42));
}
.role-definitions { display: grid; gap: 10px; }
.role-definition {
  padding: 15px;
  border: 1px solid #dde3e2;
  border-radius: 17px;
  background: rgba(255,255,255,.72);
}
.role-definition strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: .92rem; }
.role-definition p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.48; }
.role-definition b { color: var(--gold-dark); }

.options { display: grid; gap: 9px; }
.option-button {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink);
  border: 1px solid #dbe1e1;
  border-radius: 15px;
  background: rgba(255,255,255,.78);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.option-button:hover { transform: translateY(-1px); border-color: #aebcbc; box-shadow: 0 8px 19px rgba(18,36,58,.07); }
.option-button.selected {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(18,36,58,.17);
}
.option-marker {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #bcc7c9;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  font-size: .72rem;
}
.selected .option-marker { color: var(--navy); border-color: #fff; }
.option-copy { display: block; flex: 1; font-size: .88rem; font-weight: 720; line-height: 1.34; }
.option-copy small { display: block; margin-top: 3px; color: #74818a; font-size: .75rem; font-weight: 500; line-height: 1.35; }
.selected .option-copy small { color: #cbd7df; }

.experience-list { display: grid; gap: 12px; }
.experience-option {
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18,36,58,.08);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.experience-option:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(18,36,58,.13); }
.experience-option.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,167,104,.15), 0 13px 28px rgba(18,36,58,.13); }
.experience-image { position: relative; height: 126px; background-position: center; background-size: cover; }
.experience-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,19,30,.55)); }
.experience-image[data-image="sup"] { background-image: url("assets/experience-kayak.webp"); }
.experience-image[data-image="venice"] { background-image: url("assets/experience-venice.webp"); }
.experience-image[data-image="symphony"] { background-image: url("assets/experience-symphony.webp"); }
.experience-image[data-image="taste"] { background-image: url("assets/experience-tasting.webp"); }
.experience-tag {
  position: absolute;
  z-index: 1;
  left: 11px;
  bottom: 10px;
  padding: 5px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(10,22,34,.58);
  backdrop-filter: blur(7px);
  font-size: .68rem;
  font-weight: 700;
}
.experience-choice-mark {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
}
.experience-option.selected .experience-choice-mark { color: #fff; border-color: var(--gold); background: var(--gold-dark); }
.experience-info { padding: 12px 13px 14px; }
.experience-info strong { display: block; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.25; }
.experience-info span { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }

.scenario-card {
  padding: 17px;
  margin-bottom: 17px;
  border: 1px solid rgba(199,167,104,.34);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff, #f5f1e8);
}
.scenario-card .scenario-title { margin: 0 0 7px; color: var(--navy); font-weight: 800; font-size: .9rem; }
.scenario-card p { margin: 0; color: #5f6b73; font-size: .83rem; line-height: 1.52; }
.scenario-card strong { color: var(--navy); }
.scenario-flow {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
}
.scenario-flow span {
  padding: 10px 8px;
  text-align: center;
  color: var(--navy);
  border: 1px solid #dde3e2;
  border-radius: 12px;
  background: #fff;
  font-size: .73rem;
  font-weight: 750;
}
.scenario-flow b { color: var(--gold-dark); font-size: .9rem; }
.price-chip {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  color: var(--navy);
  border-radius: 999px;
  background: #e6eeee;
  font-size: .76rem;
  font-weight: 800;
}

.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 8px; }
.rating-button {
  aspect-ratio: 1;
  min-height: 48px;
  padding: 0;
  color: var(--navy);
  border: 1px solid #d6dede;
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.rating-button.selected { color: #fff; border-color: var(--navy); background: var(--navy); }
.rating-labels { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; }

.final-question { margin-bottom: 22px; }
.final-question h3 { margin: 0 0 10px; color: var(--navy); font-size: .92rem; line-height: 1.35; }
textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
  border: 1px solid #d6dede;
  border-radius: 15px;
  background: #fff;
  line-height: 1.5;
}
.success-icon {
  width: 66px;
  height: 66px;
  margin: 8px 0 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 15px 32px rgba(57,116,94,.24);
  font-size: 1.7rem;
}
.error-message { margin: 10px 0 0; color: var(--danger); font-size: .81rem; line-height: 1.4; }

.desktop-hint { margin: 12px 0 0; color: rgba(255,255,255,.5); font-size: .76rem; }

.consent-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3,10,18,.72);
  backdrop-filter: blur(16px);
}
.consent-card {
  width: min(560px, 100%);
  padding: clamp(27px, 5vw, 46px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 28px;
  background: #fbfaf7;
  box-shadow: 0 36px 100px rgba(0,0,0,.34);
}
.consent-card h2 {
  margin: 14px 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.consent-card > p { color: var(--muted); line-height: 1.58; }
.privacy-summary {
  margin: 22px 0 14px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dce4e2;
  border-radius: 17px;
  background: #f1f6f4;
}
.privacy-summary span {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--success);
  font-size: .76rem;
}
.privacy-summary p { margin: 0; color: #40564e; font-size: .9rem; line-height: 1.5; }
.consent-detail { font-size: .8rem; }
.consent-actions { margin-top: 25px; display: flex; gap: 10px; }

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  padding: 11px 16px;
  transform: translate(-50%, 18px);
  opacity: 0;
  color: #fff;
  border-radius: 999px;
  background: #102338;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: .83rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.results-view {
  min-height: 100vh;
  padding: 36px clamp(18px, 4vw, 58px) 70px;
  color: var(--ink);
  background: #f3f5f4;
}
.results-shell { width: min(1180px, 100%); margin: 0 auto; }
.results-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.results-header h1 { margin: 8px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 400; }
.results-header p { margin: 8px 0 0; color: var(--muted); }
.results-login {
  width: min(480px, calc(100% - 32px));
  margin: 14vh auto 0;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18,36,58,.13);
}
.results-login h1 { margin: 10px 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 2.3rem; font-weight: 400; }
.results-login p { color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 7px; margin: 22px 0 12px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.field input {
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #d4dcdd;
  border-radius: 14px;
  background: #fff;
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { padding: 19px; border: 1px solid #e0e5e4; border-radius: 18px; background: #fff; }
.metric-card span { display: block; min-height: 34px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.metric-card strong { display: block; margin-top: 8px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.results-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.results-card { padding: 22px; border: 1px solid #e0e5e4; border-radius: 20px; background: #fff; }
.results-card.full { grid-column: 1 / -1; }
.results-card h2 { margin: 0 0 17px; color: var(--navy); font-size: 1.05rem; }
.distribution-list { display: grid; gap: 11px; }
.distribution-row { display: grid; grid-template-columns: minmax(130px, 1.4fr) 2fr 38px; align-items: center; gap: 10px; font-size: .78rem; }
.distribution-row span:first-child { color: #4e5d68; }
.distribution-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0ef; }
.distribution-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), var(--gold)); }
.distribution-row strong { color: var(--navy); text-align: right; }
.response-list { display: grid; gap: 9px; }
.response-item { padding: 14px; border: 1px solid #e3e7e6; border-radius: 14px; background: #fafbfa; }
.response-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: .72rem; }
.response-item p { margin: 9px 0 0; color: #354755; line-height: 1.5; }
.results-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.empty-note { color: var(--muted); font-size: .87rem; }

@media (max-width: 900px) {
  .study-layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 38px; padding-inline: 25px; }
  .study-context h1 { font-size: 3.3rem; }
  .brand { margin-bottom: 44px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { background: var(--paper); }
  .ambient, .study-context, .desktop-hint { display: none; }
  .study-layout { display: block; width: 100%; min-height: 100svh; padding: 0; }
  .device-area { width: 100%; }
  .phone-device {
    width: 100%;
    height: 100svh;
    min-height: 600px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
  }
  .phone-frame-top { display: none; }
  .phone-screen { border-radius: 0; }
  .app-header { height: 66px; padding: 18px 20px 12px; }
  .app-content { height: calc(100% - 66px); }
  .progress-wrap:not([hidden]) + .app-content { height: calc(100% - 102px); }
  .progress-wrap { padding-inline: 20px; }
  .screen-body { padding: 23px 20px 16px; }
  .screen-actions { padding: 12px 20px max(18px, env(safe-area-inset-bottom)); }
  .screen h2 { font-size: 1.7rem; }
  .consent-layer { padding: 14px; align-items: end; }
  .consent-card { padding: 27px 22px max(24px, env(safe-area-inset-bottom)); border-radius: 25px; }
  .consent-card h2 { font-size: 2.15rem; }
  .consent-actions { flex-direction: column; }
  .results-view { padding: 24px 15px 50px; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .metrics-grid, .results-grid { grid-template-columns: 1fr; }
  .results-card.full { grid-column: auto; }
  .distribution-row { grid-template-columns: 1fr 1.2fr 30px; }
}

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