@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");
/* Decideish styles. Colors come from the logo. */

:root {
  --orange: #F26B1D;
  --orange-dark: #C9520D;
  --orange-wash: #FFF1E7;
  --navy: #1B2A55;
  --navy-2: #4B587A;   /* secondary text */
  --blue: #2F86D6;     /* keyboard focus only */
  --green: #3F9B48;    /* success only */
  --bg: #FBF7EF;
  --surface: #FFFFFF;
  --paper: #FFFCF2;    /* the order ticket */
  --line: #DCDFE6;
  --error: #B42318;

  --font: "DM Sans", "Segoe UI", Arial, sans-serif;
  --font-head: "DM Sans", "Segoe UI", Arial, sans-serif;
  --font-ticket: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--navy);
  background: var(--bg);
}

h1, h2, h3 {
  margin: 0 0 0.4em;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

img { display: block; max-width: 100%; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
}

.muted { color: var(--navy-2); }
.small { font-size: 0.9rem; }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand .word span { color: var(--orange); }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--bg); color: var(--navy); }

.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

.btn-big { min-height: 56px; padding: 14px 28px; font-size: 1.15rem; }
.btn-full { width: 100%; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--orange); border-color: var(--orange); }

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Panels: plain white boxes for forms and lists */
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

/* The order ticket */
.ticket {
  position: relative;
  padding: 26px 24px 30px;
  background: var(--paper);
  font-family: var(--font-ticket);
  font-size: 1rem;
  color: #24262B;
  box-shadow: 0 1px 2px rgba(27, 42, 85, 0.12), 0 14px 30px rgba(27, 42, 85, 0.10);
  transform: rotate(-1.5deg);
}

/* the clip holding the ticket */
.ticket::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 64px;
  height: 22px;
  border-radius: 4px;
  background: var(--navy);
  transform: translateX(-50%);
}

/* torn zigzag edge at the bottom */
.ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 0) 0 0 / 20px 10px repeat-x;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px dashed #B9B6AA;
  font-weight: 700;
}

.ticket-lines { margin: 0; }

.ticket-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
}

.ticket-line dt { white-space: nowrap; }

/* dotted leader between the label and the answer */
.ticket-line .dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted #B9B6AA;
  transform: translateY(-4px);
}

.ticket-line dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.ticket-line dd:empty::before { content: "?"; color: #B9B6AA; }

.ticket-result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed #B9B6AA;
}

.ticket-result .label { margin: 0; }

.ticket-result .place {
  margin: 4px 0 2px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

.ticket-result .addr { margin: 0; }

/* the one animation: the result prints onto the ticket */
.printing { animation: print 0.7s steps(7) both; }

@keyframes print {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0 72px;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.home-hero .lead {
  max-width: 34em;
  font-size: 1.2rem;
  color: var(--navy-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-ticket { padding: 0 12px; }

.home-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.home-steps h2 { font-size: 1.6rem; }

.home-steps ol {
  margin: 0;
  padding-left: 1.3em;
  font-size: 1.1rem;
}

.home-steps li { margin-bottom: 10px; padding-left: 4px; }
.home-steps li::marker { font-weight: 800; color: var(--orange); }

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--navy-2);
}

/* Forms */
.form-page {
  width: min(480px, 100% - 40px);
  margin: 24px auto 72px;
}

.form-page.wide { width: min(680px, 100% - 40px); }

.form-page h1 { font-size: 2.2rem; }
.form-page > .muted { margin-bottom: 24px; }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label { font-weight: 600; margin-bottom: 6px; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.label-row a { font-size: 0.9rem; }

.hint {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--navy-2);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #B8BECC;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(47, 134, 214, 0.35);
  outline-offset: 0;
}

textarea { min-height: 110px; resize: vertical; }
textarea:disabled { background: var(--bg); cursor: not-allowed; }

.error {
  margin: 4px 0 14px;
  color: var(--error);
  font-weight: 600;
}

.success {
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 700;
}

.switch { margin: 20px 0 0; }

fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

legend .hint { font-size: 0.95rem; font-weight: 400; }

/* checkbox chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip { position: relative; margin: 0; cursor: pointer; }

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  padding: 8px 14px;
  border: 1.5px solid #B8BECC;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}

.chip:hover span { border-color: var(--navy); }

.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.other-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.other-row textarea { flex: 1; min-height: 64px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

/* Quiz */
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  padding: 24px 0 72px;
}

.progress {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--navy-2);
}

.progress-bar {
  height: 6px;
  margin-bottom: 28px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar div {
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 0.25s ease;
}

.question {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.question:focus { outline: none; }

.answers {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.answers.two-col { grid-template-columns: 1fr 1fr; }

/* an odd last option (like "Surprise me") stretches across both columns */
.answers.two-col .answer:last-child:nth-child(odd) { grid-column: span 2; }

.answer { position: relative; display: block; margin: 0; cursor: pointer; }

.answer input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.answer span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid #B8BECC;
  border-radius: 10px;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

/* radio circle */
.answer span::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid #8A93A8;
  border-radius: 50%;
  background: #fff;
}

.answer:hover span { border-color: var(--navy); }

.answer input:checked + span {
  border-color: var(--orange);
  background: var(--orange-wash);
}

.answer input:checked + span::before {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px #fff;
}

.answer input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.quiz-nav {
  display: flex;
  gap: 12px;
}

.quiz-nav .btn-primary { flex: 1; }

.quiz-ticket { position: sticky; top: 24px; }

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

/* Dashboard */
.dash {
  padding: 16px 0 72px;
}

.dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.dash-top h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.dash-top p { margin: 6px 0 0; }

.dash-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.dash h2 { font-size: 1.35rem; margin-bottom: 18px; }

#latest .ticket { margin-top: 28px; }

.dash-main { display: grid; gap: 40px; }

.history { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.history li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.history .when { color: var(--navy-2); white-space: nowrap; }

.empty {
  padding: 20px;
  border: 1.5px dashed #B8BECC;
  border-radius: 10px;
  color: var(--navy-2);
}

.empty p { margin: 0 0 12px; }

/* journal looks like lined notepaper */
.journal textarea {
  min-height: 220px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 32px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, #D9E3F2 31px 32px) 0 6px / 100% 32px,
    #fff;
}

.save-note { min-height: 1.5em; margin: 6px 0 0; font-size: 0.9rem; color: var(--navy-2); }

/* Feedback stars */
.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.stars label {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: #C9CDD6;
  cursor: pointer;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label { color: var(--orange); }

.stars input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 4px; }

/* Phones and tablets */
@media (max-width: 860px) {
  .home-hero,
  .home-steps,
  .quiz-layout,
  .dash-grid { grid-template-columns: 1fr; gap: 40px; }

  .home-hero { padding-top: 24px; }
  .hero-ticket { max-width: 360px; }
  .quiz-ticket { position: static; max-width: 380px; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .answers.two-col { grid-template-columns: 1fr 1fr; }
  .other-row { flex-direction: column; align-items: stretch; }
  .nav { gap: 14px; }
  .panel { padding: 20px; }
  .hero-actions .btn-big { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .printing { animation: none; }
  .progress-bar div { transition: none; }
}

/* Info pages: About, FAQ, Privacy, Terms */
.page {
  width: min(720px, 100% - 40px);
  margin: 24px auto 80px;
}

.page h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page .intro {
  font-size: 1.2rem;
  color: var(--navy-2);
  margin-bottom: 40px;
}

.page h2 {
  margin-top: 44px;
  font-size: 1.5rem;
}

.page ul,
.page ol { padding-left: 1.3em; }

.page li { margin-bottom: 8px; }

.page .updated { color: var(--navy-2); font-size: 0.95rem; }

/* FAQ questions open and close */
.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange);
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p { margin: 0 0 18px; max-width: 62ch; }

.team-note {
  margin-top: 44px;
  padding: 24px;
  border-left: 4px solid var(--orange);
  background: var(--surface);
}

.team-note p:last-child { margin-bottom: 0; }

/* footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 10px;
}

.footer-links a { color: var(--navy); font-weight: 600; }


/* ---------- Homepage polish ---------- */
:root {
  --teal: #1F7A8C;
  --yellow: #F3A712;
  --cream-2: #F6EEDD;
}

.site-header { background: transparent; position: relative; z-index: 2; }

.hero-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFF3E2 0%, var(--bg) 100%);
}

.hero-band::before,
.hero-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-band::before { width: 520px; height: 520px; right: -180px; top: -200px; background: var(--orange); opacity: 0.16; }
.hero-band::after { width: 300px; height: 300px; left: -120px; bottom: -150px; background: var(--yellow); opacity: 0.22; }

.hero-band .home-hero { position: relative; z-index: 1; padding: 36px 0 84px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #F0D9B8;
  color: var(--orange-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-hero h1 em { font-style: normal; color: var(--orange); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--navy-2);
  font-weight: 600;
  font-size: 0.98rem;
}

.hero-points li::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 800; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EEE3CF;
  box-shadow: 0 10px 28px rgba(27, 42, 85, 0.08);
}

.stat strong { display: block; font-size: 3rem; line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.stat:nth-child(1) strong { color: var(--orange); }
.stat:nth-child(2) strong { color: var(--teal); }
.stat:nth-child(3) strong { color: #C98700; }
.stat span { display: block; margin-top: 8px; color: var(--navy-2); font-weight: 600; }
.stats-note { margin: 12px 4px 0; font-size: 0.85rem; color: var(--navy-2); }

/* sections */
.section { padding: 64px 0 8px; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.section .sub { max-width: 40em; color: var(--navy-2); font-size: 1.1rem; margin-bottom: 28px; }

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

.step {
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EEE3CF;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.step:nth-child(2) .num { background: var(--teal); }
.step:nth-child(3) .num { background: var(--yellow); color: var(--navy); }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--navy-2); }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature {
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--cream-2);
}

.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--navy-2); }

/* photo strip */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.place-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EEE3CF;
  box-shadow: 0 6px 18px rgba(27, 42, 85, 0.06);
}

.place-card .photo {
  height: 170px;
  background: linear-gradient(135deg, #FFE3C6, #F6EEDD);
}

.place-card img { width: 100%; height: 170px; object-fit: cover; }
.place-card .info { padding: 14px 18px 18px; }
.place-card h3 { margin: 0 0 6px; font-size: 1.1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange-wash);
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.tag.teal { background: #E3F1F4; color: #145867; }

/* about + CTA */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 64px 0 24px; align-items: start; }
.about-row h2 { font-size: 1.8rem; }

.cta-band {
  margin: 56px 0 72px;
  padding: 44px 36px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { max-width: 34em; margin: 0 auto 22px; color: #D3D9EA; }

.site-footer { background: #fff; }

/* quiz and result touches */
.answer { transition: border-color .12s, box-shadow .12s; }
.answer:hover { border-color: var(--orange); }
.result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
#results #rest-name { font-size: clamp(2rem, 4vw, 2.8rem); }
#why { padding: 14px 16px; border-radius: 12px; background: var(--orange-wash); }

@media (max-width: 800px) {
  .stats, .steps3, .features, .places, .about-row { grid-template-columns: 1fr; }
  .stats { margin-top: -30px; }
  .hero-band::before { width: 360px; height: 360px; }
}


/* ---------- Round 2: imagery, quiz cards, picking moment, motion ---------- */
.hero-visual { position: relative; padding: 36px 0 44px; }
.hero-visual .hero-ticket { position: relative; z-index: 2; }

.photo-tile {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFD9B0, #F6EEDD);
  box-shadow: 0 12px 28px rgba(27, 42, 85, 0.18);
}

.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile.t1 { top: -6px; left: -34px; width: 190px; height: 150px; transform: rotate(-7deg); }
.photo-tile.t2 { bottom: -10px; right: -18px; width: 210px; height: 160px; transform: rotate(6deg); }
.photo-tile.t3 { bottom: 40px; left: -54px; width: 150px; height: 150px; transform: rotate(4deg); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease, box-shadow .2s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.in:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27, 42, 85, 0.12); }

/* quiz answer cards with icons */
.answer.has-ico span { gap: 14px; min-height: 66px; border-radius: 14px; border-color: #E2D8C3; transition: transform .12s, border-color .12s, box-shadow .12s; }
.answer.has-ico span::before { display: none; }
.answer.has-ico:hover span { border-color: var(--orange); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 42, 85, 0.08); }
.answer.has-ico input:checked + span { border-color: var(--orange); background: var(--orange-wash); }
.answer.has-ico input:checked + span::after { content: "\2713"; margin-left: auto; color: var(--orange-dark); font-weight: 800; font-size: 1.2rem; }

.ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream-2);
  font-style: normal;
  font-size: 1.55rem;
  line-height: 1;
}

.ico.txt { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.answer input:checked + span .ico { background: var(--orange); color: #fff; }
.atext { font-weight: 600; }

/* "picking" moment */
.picking { text-align: center; padding: 72px 0 96px; }
.picking img { width: 84px; height: 84px; margin: 0 auto 22px; object-fit: contain; animation: bob .8s ease-in-out infinite alternate; }
.picking h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.picking .muted { min-height: 1.6em; }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14px) rotate(4deg); } }

/* result page */
#rest-photo { aspect-ratio: 16 / 9; max-height: 320px !important; box-shadow: 0 10px 26px rgba(27, 42, 85, 0.14); }
.rate { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--navy-2); font-weight: 600; }
.rate button { min-height: 40px; padding: 6px 14px; border: 1.5px solid #E2D8C3; border-radius: 999px; background: #fff; font: inherit; font-size: 1.05rem; cursor: pointer; }
.rate button:hover { border-color: var(--orange); }

@media (max-width: 860px) {
  .photo-tile.t3 { display: none; }
  .photo-tile.t1 { left: -10px; width: 150px; height: 120px; }
  .photo-tile.t2 { right: -6px; width: 160px; height: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .picking img { animation: none; }
  .answer.has-ico:hover span { transform: none; }
}

/* keep the invisible radio on top so the whole card stays clickable */
.answer input { z-index: 1; }


/* ---------- Round 3: result page details ---------- */
.where { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 16px; }
.where .pin { flex: none; color: var(--orange); }
.where a { font-size: 1.1rem; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid #F3C9A8; }
.where a:hover { border-color: var(--orange); color: var(--orange-dark); }
.hood { padding: 3px 12px; border-radius: 999px; background: #D4EBF0; color: #145867; font-size: 0.88rem; font-weight: 700; }

.why-box { padding: 16px 20px 14px; }
.why-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-dark); }
#why-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#why-list li { position: relative; padding-left: 30px; font-weight: 600; }
#why-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.rate-thanks {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #D4EBF0;
  color: #145867;
  font-weight: 700;
  animation: pop .25s ease;
}

@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }

#another { border-color: #E2D8C3; background: #fff; }
#another:hover { border-color: var(--orange); }
#another.nudge { animation: nudge .7s ease 2; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 107, 29, 0); } 50% { box-shadow: 0 0 0 6px rgba(242, 107, 29, 0.28); } }

.tag { padding: 4px 12px; background: #FFE4D1; font-size: 0.9rem; }
.tag.teal { background: #D4EBF0; }

@media (prefers-reduced-motion: reduce) {
  .rate-thanks, #another.nudge { animation: none; }
}

#note { margin-top: 12px; }


/* ---------- Round 4: start the quiz from the homepage ---------- */
.hero-quiz { margin-top: 26px; max-width: 540px; }
.hq-label { margin: 0 0 12px; font-weight: 800; font-size: 1.05rem; }
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hq-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1.5px solid #E2D8C3;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.hq-card i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--cream-2); font-style: normal; font-size: 1.4rem; }
.hq-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27, 42, 85, 0.1); color: var(--navy); }
.hq-note { margin: 12px 2px 0; font-size: 0.92rem; color: var(--navy-2); }

.quiz-skips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.quiz-skips .text-btn { color: var(--navy-2); font-size: 0.95rem; }
.quiz-skips .text-btn:hover { color: var(--orange-dark); }

.save-cta { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #EEE3CF; }
.save-cta p { margin: 0 0 12px; }

@media (max-width: 520px) { .hq-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hq-card:hover { transform: none; } }


/* Round 5: headings in DM Sans, better "why", My places */
h1, h2, h3, .brand .word, .stat strong, .question { font-family: var(--font-head); letter-spacing: -0.025em; }
h1, .question { font-weight: 800; }
.stat strong { font-weight: 800; }
.why-headline { margin: 0 0 12px; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--navy); }
.why-known { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.95rem; color: var(--navy-2); font-style: italic; }

.myplaces h3 { font-size: 1rem; margin: 18px 0 8px; font-family: var(--font); font-weight: 800; letter-spacing: 0; }
.myplaces h3:first-of-type { margin-top: 4px; }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mp-item strong { display: block; }
.mp-item small { color: var(--navy-2); }
.mp-item button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--navy); cursor: pointer; white-space: nowrap; }
.mp-item button:hover { border-color: var(--orange); color: var(--orange-dark); }
.mp-empty { color: var(--navy-2); font-size: 0.95rem; margin: 0; }

/* Preferences page: plain, no card (only this form) */
#prefs-form { background: transparent; border: 0; box-shadow: none; padding: 0; }
#prefs-form fieldset { border: 0; border-top: 1px solid #E6DDCB; padding: 22px 0 20px; margin: 0; }
#prefs-form legend { padding: 0; font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; float: left; width: 100%; }
#prefs-form legend + * { clear: both; }
#prefs-form .chips { gap: 10px; }
#prefs-form .chip span { padding: 10px 16px; border: 1.5px solid #CFC6B2; border-radius: 10px; background: #fff; font-weight: 600; }
#prefs-form .chip:hover span { border-color: var(--navy); }
#prefs-form .chip input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
#prefs-form textarea { background: #fff; border: 1.5px solid #CFC6B2; border-radius: 10px; }
#prefs-form .form-actions { padding-top: 18px; border-top: 1px solid #E6DDCB; margin-top: 18px; }

/* Round 6: one button language everywhere (flat, ink outline, hard shadow) */
.btn-primary { border-color: var(--navy); box-shadow: 0 4px 0 var(--navy); }
.btn-primary:hover { border-color: var(--navy); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn-primary:disabled { box-shadow: none; }

/* stamp on the quiz ticket (also used on the homepage) */
.quiz-ticket .ticket-result { position: relative; padding-bottom: 34px; }
.quiz-ticket .ticket-result .stamp { position: absolute; right: 0; bottom: 0; padding: 3px 10px; transform: rotate(-9deg); border: 3px solid var(--orange-dark); border-radius: 6px; color: var(--orange-dark); font-family: var(--font-ticket); font-weight: 700; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(255, 252, 242, 0.55); mix-blend-mode: multiply; animation: thunk2 .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.quiz-ticket .ticket-result .stamp.nope { border-color: var(--navy-2); color: var(--navy-2); transform: rotate(7deg); }
@keyframes thunk2 { from { scale: 1.8; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .quiz-ticket .ticket-result .stamp { animation: none; } }

.result-actions { gap: 14px; }

/* Round 7: quiz answers use the same tactile ink style as the homepage buttons */
.answer span, .answer.has-ico span { border: 2px solid var(--navy); border-radius: 14px; box-shadow: 0 4px 0 var(--navy); transition: transform .1s, box-shadow .1s, background .1s; }
.answer:hover span, .answer.has-ico:hover span { border-color: var(--navy); background: var(--orange-wash); transform: none; box-shadow: 0 4px 0 var(--navy); }
.answer input:checked + span, .answer.has-ico input:checked + span { background: var(--orange-wash); border-color: var(--navy); transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.answers { gap: 14px; }
.progress { font-family: var(--font-ticket); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.progress-bar { height: 10px; background: #E6DDCB; border-radius: 99px; }
.progress-bar div { border-radius: 99px; }
.quiz-nav .btn:not(.btn-primary) { box-shadow: none; }

.rate button { display: inline-flex; align-items: center; gap: 8px; }
.rate > span { flex-basis: 100%; }

/* ---------- Footer (dark, columns) ---------- */
.site-footer { background: #121C3D; color: #B8C0D8; border-top: 0; padding: 56px 0 0; font-size: 0.95rem; margin-top: 40px; }
.site-footer a { color: #DDE2F1; font-weight: 500; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.foot-brand .word { font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .word img { width: 34px; height: 34px; }
.foot-brand .word span { color: var(--orange); }
.foot-brand p { margin: 14px 0 18px; max-width: 24em; line-height: 1.6; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #34426D; border-radius: 10px; }
.foot-social svg { width: 18px; height: 18px; }
.foot-col h3 { font-family: "Courier Prime", monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-bottom { border-top: 1px solid #263359; padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: #8C97B8; }
.foot-bottom nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot-bottom a { color: #8C97B8; font-weight: 400; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.3fr 1.7fr; gap: 60px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}

.foot-brand .word b { font-weight: 800; }
.foot-brand .word:hover { text-decoration: none; }

/* ---------- Floating feedback button ---------- */
.fb-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid #fff; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.25), 0 6px 18px rgba(18,28,61,.28); }
.fb-float svg { width: 18px; height: 18px; flex: none; }
.fb-float:hover { background: var(--orange); }
.fb-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.foot-bottom { padding-bottom: 76px; }
@media (max-width: 859px) { body.home .fb-float { display: none; } }
@media print { .fb-float { display: none; } }

/* ---------- Badges ---------- */
.badges-section { margin: 8px 0 36px; }
.badges-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.badges { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px 14px; background: #fff; border: 2px dashed var(--line); border-radius: 16px; color: var(--navy-2); }
.badge strong { color: var(--navy); font-size: 1rem; margin-top: 8px; }
.badge-desc { font-size: 0.84rem; line-height: 1.35; min-height: 2.7em; }
.badge-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #F1F2F6; color: #A7AEC2; border: 2px solid #D5D9E4; }
.badge-icon svg { width: 30px; height: 30px; }
.badge.earned { border: 2px solid var(--navy); box-shadow: 0 4px 0 var(--navy); color: var(--navy-2); }
.badge.earned .badge-icon { background: var(--orange); color: #fff; border-color: var(--navy); box-shadow: 0 3px 0 var(--navy); }
.badge-bar { width: 80%; height: 8px; border-radius: 99px; background: #E7E9F0; overflow: hidden; margin-top: 6px; }
.badge-bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.badge-state { font-family: var(--font-ticket); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.badge.earned .badge-state { color: var(--orange-dark); font-weight: 700; }
.badge-toast { margin: 14px 0 0; padding: 14px 16px; background: #fff; border: 2px solid var(--navy); border-radius: 14px; box-shadow: 0 4px 0 var(--navy); animation: toastIn .35s ease-out; }
.badge-toast .bt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.badge-toast .bt-row p { margin: 0; font-size: 0.92rem; line-height: 1.35; }
.badge-toast .bt-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; border: 2px solid var(--navy); }
.badge-toast .bt-icon svg { width: 24px; height: 24px; }
.badge-toast a { font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .badge-toast { animation: none; } }

.mp-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mp-dir { display: inline-block; background: var(--orange); color: #fff; border: 1px solid var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 var(--navy); }
.mp-dir:hover { background: var(--orange-dark); }

/* ---------- Save for later, no-match chips ---------- */
.save-later { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--navy); cursor: pointer; }
.save-later:hover { border-color: var(--orange); }
.save-later.on { background: var(--orange-wash); border-color: var(--orange); color: var(--orange-dark); }
.save-later.on svg { fill: currentColor; }
.try-label { margin: 22px 0 10px; font-family: var(--font-ticket); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-2); }
.try-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.try-chip { padding: 10px 18px; background: #fff; border: 2px solid var(--navy); border-radius: 999px; box-shadow: 0 3px 0 var(--navy); font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.try-chip:hover { background: var(--orange-wash); }
.try-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }

/* ---------- saved diet note and allergy reminder ---------- */
.diet-note { margin: 0 0 14px; font-size: 0.92rem; color: var(--navy-2); }
.diet-note b { color: var(--navy); }
.allergy-note { margin: 12px 0 0; padding: 10px 14px; background: var(--orange-wash); border-left: 4px solid var(--orange); border-radius: 8px; font-size: 0.92rem; line-height: 1.4; color: var(--navy); }

.osm-note { margin: 12px 0 0; font-size: 0.88rem; line-height: 1.45; color: var(--navy-2); }
.osm-note a { color: var(--navy); font-weight: 600; }

.fb-float { transition: opacity .2s, transform .2s; }
.fb-float.away { opacity: 0; transform: translateY(8px); pointer-events: none; }
.foot-bottom { padding-bottom: 26px; }
@media (prefers-reduced-motion: reduce) { .fb-float { transition: none; } }

/* about: team cards */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px 0 8px; }
.member { background: var(--surface); border: 2px solid var(--navy); border-radius: 18px; box-shadow: 0 5px 0 var(--navy); padding: 24px; display: flex; flex-direction: column; }
.member-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.member .avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--orange-wash); color: var(--orange-dark); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.member h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.member .role { color: var(--orange-dark); font-size: .88rem; font-weight: 700; margin-top: 3px; }
.member p { margin: 0 0 12px; font-size: .98rem; }
.profile-link { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.profile-link:hover { background: var(--orange); }
.profile-link svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

/* about page layout */
.ab-hero { background: linear-gradient(125deg, var(--navy), #2b437b); color: #fff; text-align: center; padding: 72px 24px 76px; }
.ab-eyebrow { font-family: var(--font-ticket); text-transform: uppercase; letter-spacing: .17em; font-size: .85rem; font-weight: 700; color: #FF9A5C; margin: 0; }
.ab-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.03em; margin: 10px 0 14px; line-height: 1.1; color: #fff; }
.ab-hero p:last-child { max-width: 660px; margin: 0 auto; color: #E3E8F6; font-size: 1.08rem; }
.ab-main { max-width: 1080px; margin: 0 auto; padding: 0 24px 72px; }
.ab-intro { max-width: 760px; margin: 52px auto 48px; text-align: center; }
.ab-intro h2, .ab-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 10px; }
.ab-intro p, .ab-heading p { color: var(--navy-2); margin: 0; }
.ab-heading { text-align: center; margin-bottom: 28px; }
.ab-accent { display: block; width: 55px; height: 5px; border-radius: 8px; background: var(--orange); margin: 13px auto 0; }
.ab-cta { text-align: center; margin-top: 56px; padding: 36px 24px; background: var(--paper); border: 2px solid var(--navy); border-radius: 20px; box-shadow: 0 6px 0 var(--navy); }
.ab-cta h2 { margin: 0 0 6px; font-size: 1.6rem; }
.ab-cta p { color: var(--navy-2); margin: 0 0 20px; }

/* compact team strip (about page) */
.team-strip { max-width: 1080px; margin: 0 auto; padding: 8px 24px 64px; text-align: center; }
.team-strip h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 6px; }
.strip-sub { color: var(--navy-2); margin: 0 0 28px; }
.mini-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.mini { flex: 1 1 210px; max-width: 250px; background: var(--surface); border: 2px solid var(--navy); border-radius: 18px; box-shadow: 0 5px 0 var(--navy); padding: 22px 18px; }
.mini h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.25; }
.mini p { margin: 0; color: var(--navy-2); font-size: .95rem; }
.mini .mini-track { color: var(--orange-dark); font-weight: 700; margin-top: 4px; }
.strip-link { margin: 28px 0 0; font-weight: 700; }
