@font-face {
  font-family: "Alcubierre";
  src: url("assets/Alcubierre.otf") format("opentype");
  font-display: swap;
}

:root {
  --navy: #0B1F33;
  --purple: #9A258F;
  --white: #FFFFFF;
  --grey: #E6E7E8;
  --slate: #789FBB;
  --steel: #1E698D;
  --ink: #132a40;
  --shadow: 0 18px 48px rgba(11, 31, 51, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
button { font: inherit; }
button:focus-visible { outline: 4px solid rgba(154, 37, 143, .28); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--grey);
  background: rgba(255,255,255,.96);
}
.brand-logo { width: min(285px, 44vw); height: auto; display: block; }
.site-header p { margin: 0; color: var(--navy); font-family: "Alcubierre", Arial, sans-serif; letter-spacing: .08em; font-size: .95rem; }
main { flex: 1; width: 100%; }
footer {
  min-height: 58px;
  padding: 18px clamp(22px, 5vw, 72px);
  background: var(--navy);
  color: rgba(255,255,255,.72);
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: .82rem;
  letter-spacing: .04em;
}

h1, h2 { color: var(--navy); font-family: "Alcubierre", Arial, sans-serif; font-weight: 400; letter-spacing: .035em; }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-family: "Alcubierre", Arial, sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.82); }
.primary-button, .ghost-button {
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { background: var(--purple); color: var(--white); box-shadow: 0 10px 28px rgba(154,37,143,.24); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(154,37,143,.3); }
.primary-button span { margin-left: 12px; }

.start-screen {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(450px, 1.15fr);
  height: calc(100dvh - 190px);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0 54%, #f4f6f8 54%);
}
.start-copy { align-self: center; padding: clamp(42px, 7vw, 108px) clamp(30px, 7vw, 110px); max-width: 720px; }
.start-copy h1 { font-size: clamp(2.65rem, 5vw, 5.8rem); line-height: .98; margin: 0 0 26px; }
.intro { max-width: 540px; font-size: clamp(1.12rem, 1.8vw, 1.4rem); line-height: 1.55; margin: 0 0 32px; color: #45586a; }
.time-note { margin: 16px 0 0; color: #71808e; font-size: .85rem; }
.start-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  padding: 24px clamp(24px, 4vw, 64px) 24px 12px;
}
.mosaic-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.start-mosaic img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quiz-screen { max-width: 1180px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 54px) 62px; }
.quiz-topline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.question-count { margin: 0; color: #5b6c7b; font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-button { border: 0; background: transparent; color: var(--steel); min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 700; text-align: left; }
.restart-link { text-align: right; color: #6d7882; }
.progress-track { width: 100%; height: 5px; border-radius: 99px; background: var(--grey); overflow: hidden; margin: 8px 0 clamp(34px, 5vw, 58px); }
.progress-track span { display: block; height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--purple), #ba4bad); border-radius: inherit; transition: width .35s ease; }
.question-heading { text-align: center; max-width: 820px; margin: 0 auto clamp(28px, 4vw, 44px); }
.question-heading h1 { margin: 0; font-size: clamp(2.1rem, 4.2vw, 4.2rem); line-height: 1.08; }
.question-prompt { color: #647585; margin: 15px 0 0; }
.answer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.answer-card { position: relative; min-height: 365px; padding: 0; border: 0; border-radius: var(--radius); background: var(--navy); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); text-align: left; isolation: isolate; }
.answer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; z-index: -2; }
.answer-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,17,29,.92) 0%, rgba(5,17,29,.18) 62%, transparent 100%); z-index: -1; }
.answer-card:hover img, .answer-card:focus-visible img { transform: scale(1.055); }
.answer-copy { position: absolute; inset: auto 0 0; padding: 26px 22px; color: white; }
.answer-number { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 13px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-family: "Alcubierre", Arial, sans-serif; font-size: .82rem; }
.answer-copy strong { display: block; font-family: "Alcubierre", Arial, sans-serif; font-weight: 400; letter-spacing: .04em; font-size: 1.42rem; line-height: 1.18; }
.answer-copy small { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-size: .85rem; line-height: 1.4; }

.result-screen { max-width: 1260px; margin: 0 auto; padding: clamp(20px,4vw,52px); }
.result-hero { position: relative; min-height: 580px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); display: flex; align-items: flex-end; }
.result-image, .result-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.result-image { object-fit: cover; }
.result-overlay { background: linear-gradient(90deg, rgba(4,17,29,.94) 0%, rgba(4,17,29,.64) 48%, rgba(4,17,29,.05) 82%); }
.result-copy { position: relative; z-index: 1; width: min(660px, 70%); padding: clamp(34px, 6vw, 76px); color: white; }
.result-copy h1 { color: white; font-size: clamp(3rem, 6vw, 6rem); line-height: .95; margin: 0 0 20px; }
.match-score { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 22px; }
.match-score strong { font-family: "Alcubierre", Arial, sans-serif; font-size: 2.2rem; letter-spacing: .05em; }
.match-score span { color: rgba(255,255,255,.72); text-transform: uppercase; font-size: .75rem; letter-spacing: .14em; }
.result-summary { font-size: 1.1rem; line-height: 1.65; color: rgba(255,255,255,.88); margin: 0; }
.result-details { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin: 22px 0; }
.destinations-panel, .secondary-panel { border-radius: var(--radius); padding: clamp(28px,4vw,44px); }
.destinations-panel { background: #f4f6f8; }
.destination-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.destination { padding-top: 18px; border-top: 2px solid var(--purple); }
.destination .place { display: block; color: var(--navy); font-family: "Alcubierre", Arial, sans-serif; font-size: 1.35rem; line-height: 1.2; }
.destination .reason { display: block; color: #647585; margin-top: 8px; font-size: .86rem; line-height: 1.45; }
.secondary-panel { border: 1px solid var(--grey); background: white; }
.secondary-panel h2 { font-size: 2rem; margin: 0 0 18px; }
.secondary-score { height: 6px; background: var(--grey); border-radius: 99px; overflow: hidden; }
.secondary-score span { display: block; height: 100%; width: 70%; background: var(--slate); }
.secondary-match-value { margin: 8px 0 0; color: var(--slate); font-family: "Alcubierre", Arial, sans-serif; letter-spacing: .06em; }
.secondary-summary { color: #647585; line-height: 1.55; margin-bottom: 26px; }
.secondary-places-label { margin-top: 0; }
.secondary-destination-list { grid-template-columns: 1fr; }
.secondary-destination-list .destination { padding-top: 14px; }
.combined-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin: 22px 0;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #34204a 72%, var(--purple));
  box-shadow: var(--shadow);
}
.combined-panel[hidden] { display: none; }
.combined-panel h2 { margin: 0 0 16px; color: white; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.combined-summary { margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }
.combined-destination-list { grid-template-columns: repeat(2, 1fr); }
.combined-panel .destination { border-top-color: rgba(255,255,255,.72); }
.combined-panel .destination .place { color: white; }
.combined-panel .destination .reason { color: rgba(255,255,255,.72); }
.capture-panel {
  margin: 22px 0;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 30px;
  background: linear-gradient(145deg, #f4f6f8, #fff);
  border: 1px solid var(--grey);
}
.capture-heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.capture-heading h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; }
.capture-heading > p:not(.eyebrow) { color: #647585; line-height: 1.6; margin: 0; }
.form-frame-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 36px rgba(11,31,51,.1);
}
.cognito-frame { display: block; width: 100%; height: 1180px; border: 0; background: white; }
.cta-panel { text-align: center; background: var(--navy); color: white; border-radius: 30px; padding: clamp(42px,6vw,72px) 24px; }
.cta-panel h2 { color: white; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.18; margin: 0 auto 18px; }
.cta-panel > p:not(.eyebrow) { max-width: 650px; margin: 0 auto; color: rgba(255,255,255,.75); line-height: 1.6; }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.light-button { background: white; color: var(--navy); box-shadow: none; }
.ghost-button { background: transparent; color: white; border: 1px solid rgba(255,255,255,.35); }
.ghost-button:hover { background: rgba(255,255,255,.08); }
.screen-enter { animation: enter .42s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .site-header p { display: none; }
  .brand-logo { width: min(255px, 65vw); }
  .start-screen { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .start-copy { text-align: center; justify-self: center; padding-bottom: 36px; }
  .start-copy .intro { margin-left: auto; margin-right: auto; }
  .start-mosaic { height: 500px; padding: 12px 20px 32px; }
  .mosaic-tile { min-height: 0; }
  .answer-grid { grid-template-columns: repeat(2, 1fr); }
  .answer-card { min-height: 330px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 74px; justify-content: center; padding: 16px 20px; }
  .start-copy h1 { font-size: 3rem; }
  .start-mosaic { height: 390px; gap: 8px; }
  .answer-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .answer-card { min-height: 270px; border-radius: 18px; }
  .answer-copy { padding: 18px 15px; }
  .answer-copy strong { font-size: 1.08rem; }
  .answer-copy small { display: none; }
  .result-hero { min-height: 610px; }
  .result-overlay { background: linear-gradient(to top, rgba(4,17,29,.96) 0%, rgba(4,17,29,.6) 56%, rgba(4,17,29,.06) 100%); }
  .result-copy { width: 100%; padding: 34px 26px; }
  .result-details { grid-template-columns: 1fr; }
  .destination-list { grid-template-columns: 1fr; }
  .combined-panel { grid-template-columns: 1fr; }
  .capture-panel { padding: 28px 12px; }
  .capture-heading { padding: 0 12px; }
  .cognito-frame { height: 1320px; }
  footer { flex-wrap: wrap; }
}

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

@media print {
  .site-header, footer, .result-actions, .capture-panel { display: none; }
  .result-screen { padding: 0; }
  .result-hero, .cta-panel { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
