/* ---------- Tokens ---------- */
:root {
  --grape: #2A1A5E;
  --grape-2: #574A86;
  --lilac: #F1ECFF;
  --lilac-2: #E4DAFF;
  --paper: #FFFFFF;
  --cherry: #E8234F;
  --cherry-2: #FF5C7F;
  --cherry-tint: #FFE3EA;
  --sun: #FFC83D;
  --sun-tint: #FFF4D1;
  --mint: #2FCB95;
  --mint-ink: #0E7A55;
  --mint-tint: #DDF7EC;
  --sky: #4AA3FF;

  /* Mona Sans, wide and heavy, for headlines like a party poster. Radio Canada for clear, friendly text. */
  --display: 'Mona Sans', 'Arial Black', system-ui, sans-serif;
  --sans: 'Radio Canada', system-ui, -apple-system, sans-serif;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --line: 2.5px solid var(--grape);
  --shadow-lg: 6px 6px 0 var(--grape);
  --shadow: 4px 4px 0 var(--grape);
  --shadow-sm: 3px 3px 0 var(--grape);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --head-h: 64px;
  --tray-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lilac);
  color: var(--grape);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
/* Everything else set in the headline face gets the same wide, heavy cut. */
.logo, .demo-count, .num, .pick-rank, .age-out, .big-count output, .stage .banner-text, .stage .age-num { font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; }
h3, h4 { font-weight: 800; line-height: 1.2; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 16px; border: var(--line); border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: var(--line); border-radius: 999px;
  background: var(--paper); color: var(--grape);
  font-weight: 800; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer; user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, opacity .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--grape); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--grape); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--cherry); color: #fff; }
.btn-sun { background: var(--sun); }
.btn-ghost { background: var(--paper); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 16px; }
.btn-lg { min-height: 58px; padding: 16px 28px; font-size: 19px; }

.link-btn {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link-btn:hover { color: var(--cherry); }

.round-btn {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  border: var(--line); border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--grape); stroke-width: 3; stroke-linecap: round; }
.round-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--grape); }
.round-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--grape); }
.round-btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.round-btn.sm { width: 38px; height: 38px; box-shadow: 2px 2px 0 var(--grape); }
.round-btn.sm svg { width: 18px; height: 18px; }

/* ---------- Form bits ---------- */
.field { margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label, .field .label, .b-field label, .b-field .label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 15.5px; }
.opt { font-weight: 500; color: var(--grape-2); margin-left: 4px; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: var(--line); border-radius: var(--r-md); background: var(--paper);
  font-size: 17px; transition: box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 4px rgba(74, 163, 255, .5); }
input::placeholder, textarea::placeholder { color: #9A90BD; }
input[aria-invalid="true"] { border-color: var(--cherry); box-shadow: 0 0 0 4px rgba(232, 35, 79, .18); }
.error { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--cherry); }
.error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 13px;
  border: 2px solid var(--grape); border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: 14.5px; line-height: 1.2; cursor: pointer;
  transition: background-color .15s, color .15s, transform .2s var(--spring);
}
.chip:hover { background: var(--lilac-2); }
.chip[aria-pressed="true"] { background: var(--grape); color: #fff; }
.chip[aria-pressed="true"]::before {
  content: ''; width: 12px; height: 12px; margin-left: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 2px solid var(--grape); border-radius: 999px; }
.seg label { position: relative; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14.5px; line-height: 1.2; transition: background-color .15s, color .15s; margin: 0; }
.seg label:hover { background: var(--lilac); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--grape); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }

.range {
  --p: 30%;
  width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; border: 2px solid var(--grape); background: linear-gradient(to right, var(--cherry) var(--p), var(--paper) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 999px; border: 2px solid var(--grape); background: linear-gradient(to right, var(--cherry) var(--p), var(--paper) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--sun); border: 3px solid var(--grape); box-shadow: 2px 2px 0 var(--grape); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--grape); }
.range:focus { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(74, 163, 255, .6); }

/* ---------- Logo / site header ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; }
.logo-mark { width: 24px; height: 30px; }
.logo-sm { font-size: 20px; }
.site-head { display: flex; align-items: center; gap: 28px; height: 84px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 2.5px solid transparent; }
.site-nav a:hover { border-color: var(--cherry); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-top: 24px; padding-bottom: 96px;
}
.hero h1 { font-size: clamp(40px, 4.9vw, 66px); max-width: 11em; }
.lede { font-size: 19px; line-height: 1.5; max-width: 32em; margin-top: 20px; color: var(--grape-2); }


/* Hero demo: a miniature of the results, re-sorting as the brief changes */
.hero-visual { position: relative; }
.demo {
  padding: 20px; background: var(--paper); border: 3px solid var(--grape); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); transform: rotate(1.2deg);
}
.demo-brief { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-brief span { padding: 4px 11px; border-radius: 999px; background: var(--lilac); font-weight: 700; font-size: 14px; transition: background-color .3s; }
.demo-brief span.changed { background: var(--sun); }
.demo-count { margin: 14px 0 12px; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.demo-list { position: relative; display: flex; flex-direction: column; gap: 10px; }
.demo-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 2px solid var(--grape); border-radius: var(--r-md); background: var(--paper);
}
.demo-row:first-child { background: var(--sun-tint); }
.demo-row .v-art { width: 48px; height: 48px; border-radius: 12px; }
.demo-row .v-art svg { width: 30px; height: 30px; }
.demo-row strong { display: block; font-size: 16px; line-height: 1.2; }
.demo-row small { font-size: 13px; color: var(--grape-2); }
.demo-row .d-price { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }

/* ---------- How it works ---------- */
.how { padding-bottom: 96px; }
.how h2, .section-head h2, .faq h2 { font-size: clamp(34px, 4.2vw, 52px); max-width: 16em; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border: var(--line); border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm);
  font-family: var(--display); font-size: 24px; line-height: 1;
}
.how-steps li:nth-child(1) .num, .done-steps li:nth-child(1) .num { background: var(--sun); }
.how-steps li:nth-child(2) .num, .done-steps li:nth-child(2) .num { background: var(--cherry-2); }
.how-steps li:nth-child(3) .num, .done-steps li:nth-child(3) .num { background: var(--mint); }
.how-steps h3 { font-size: 22px; margin-bottom: 8px; }
.how-steps p { color: var(--grape-2); max-width: 30em; }

/* ---------- Kinds of places ---------- */
.kinds { padding-bottom: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head p { max-width: 26em; color: var(--grape-2); }
.kinds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.kinds-grid a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; text-decoration: none;
  background: var(--paper); border: 2px solid var(--grape); border-radius: var(--r-md);
  transition: transform .15s, box-shadow .15s;
}
.kinds-grid a:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.kinds-grid .v-art { width: 52px; height: 52px; border-radius: 14px; }
.kinds-grid strong { display: block; font-size: 16.5px; line-height: 1.25; }
.kinds-grid span { font-size: 14px; color: var(--grape-2); }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 96px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.faq-list { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 800; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border: 2px solid var(--grape); border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10M12 7v10' stroke='%232A1A5E' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .25s var(--spring);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.faq details p { padding: 0 44px 22px 0; color: var(--grape-2); max-width: 36em; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--grape); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cta-inner h2 { font-size: clamp(36px, 5vw, 60px); }
.cta-inner p { color: #D9D0FF; flex: 1 1 200px; }
.cta-band .btn { border-color: #fff; box-shadow: 4px 4px 0 #fff; }
.site-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-top: 28px; padding-bottom: 36px; font-size: 15px; color: var(--grape-2); }
.site-foot .logo { color: var(--grape); }
.site-foot a { margin-left: auto; font-weight: 700; color: var(--grape); }

/* ============ PLANNER ============ */
/* Step progress (from the original builder) */
.progress { flex: 1; display: flex; justify-content: center; min-width: 0; }
.progress ol { display: flex; gap: 6px; }
.progress button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px 0 5px; border-radius: 999px;
  border: 2px solid transparent; background: none; cursor: pointer;
  font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--grape-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.progress .dot {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid currentColor; font-size: 12px; font-weight: 800;
}
.progress button[disabled] { cursor: default; opacity: .55; }
.progress button.done { color: var(--grape); }
.progress button.done .dot { background: var(--mint); border-color: var(--grape); color: transparent; position: relative; }
.progress button.done .dot::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232A1A5E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.progress button.done:not([disabled]):hover { border-color: var(--grape); }
.progress button[aria-current="step"] { background: var(--grape); color: #fff; }
.progress button[aria-current="step"] .dot { background: var(--sun); border-color: var(--sun); color: var(--grape); }
.progress button[aria-current="step"] .dot::after { display: none; }
.progress-sm { display: none; }

/* Venue cards (from the finder) */
.venues { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.venue {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 18px;
  padding: 18px; background: var(--paper); border: 2.5px solid var(--grape); border-radius: var(--r-lg);
  transition: box-shadow .2s, opacity .3s, background-color .2s;
}
.venue:hover { box-shadow: var(--shadow); }
.venue.top { box-shadow: var(--shadow); }
.venue.entering { opacity: 0; }
.venue.leaving { opacity: 0; transform: scale(.97); transition: opacity .2s, transform .2s; }
.venue.is-close { background: rgba(255, 255, 255, .6); border-style: dashed; }
.venue.is-close:hover { box-shadow: none; }
.v-tag {
  position: absolute; top: -13px; left: 16px; padding: 3px 11px; border: 2px solid var(--grape); border-radius: 999px;
  background: var(--sun); font-weight: 800; font-size: 13px;
}
.v-art {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px;
  background: var(--vc, var(--lilac)); border: 2px solid var(--grape); color: var(--grape);
}
.v-art svg { width: 44px; height: 44px; }
.v-main { min-width: 0; }
.v-name { font-size: 21px; font-weight: 800; line-height: 1.2; }
.v-kind { margin-top: 2px; font-size: 14.5px; font-weight: 600; color: var(--grape-2); }
.v-blurb { margin-top: 6px; font-size: 15.5px; max-width: 46em; }
.v-fits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v-fits li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.v-fits li svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.v-fits .ok { background: var(--mint-tint); color: var(--mint-ink); }
.v-fits .miss { background: var(--cherry-tint); color: #B0153A; }
.v-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.v-price { font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.v-for { font-size: 13.5px; color: var(--grape-2); }
.v-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.heart {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px 8px 11px;
  border: var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .12s, box-shadow .12s, background-color .2s, color .2s;
}
.heart svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; transition: fill .2s; }
.heart:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--grape); }
.heart:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--grape); }
.heart[aria-pressed="true"] { background: var(--cherry); color: #fff; }
.heart[aria-pressed="true"] svg { fill: #fff; }
.heart.pulse svg { animation: pop .4s var(--spring); }
.v-more { grid-column: 2 / -1; justify-self: start; padding: 4px 0; font-size: 15px; }
.v-details { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 8px; padding-top: 14px; border-top: 2px dashed var(--lilac-2); }
.v-details h4 { font-size: 14.5px; margin-bottom: 6px; }
.v-details li { font-size: 14.5px; padding: 2px 0; }
.v-incl li { position: relative; padding-left: 20px; }
.v-incl li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--grape); }
.v-cost li { display: flex; justify-content: space-between; gap: 12px; }
.v-cost li span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.v-cost li.total { margin-top: 4px; padding-top: 6px; border-top: 1.5px solid var(--lilac-2); font-weight: 800; }
.v-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--grape-2); }

/* Booking */
.book, .done { grid-column: 1 / -1; width: 100%; max-width: 720px; margin: 0 auto; }
.back-link { padding-left: 0; }
.book h1, .done h1 { margin-top: 8px; font-size: clamp(36px, 4.6vw, 54px); outline: none; }
.book-lede, .done-lede { margin-top: 12px; font-size: 18px; color: var(--grape-2); max-width: 36em; }
.done-lede strong { color: var(--grape); }
.book-sub { margin-top: 30px; font-family: var(--sans); font-weight: 800; font-size: 18px; }
.picks { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pick {
  display: grid; grid-template-columns: 40px 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--paper); border: 2.5px solid var(--grape); border-radius: var(--r-md);
}
.pick:first-child { background: var(--sun-tint); box-shadow: var(--shadow-sm); }
.pick-rank { font-family: var(--display); font-size: 26px; line-height: 1; text-align: center; }
.pick .v-art { width: 52px; height: 52px; border-radius: 14px; }
.pick .v-art svg { width: 32px; height: 32px; }
.pick strong { display: block; font-size: 17px; line-height: 1.2; }
.pick small { font-size: 14px; color: var(--grape-2); }
.pick-price { font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; }
.pick-ctrl { display: flex; gap: 4px; }
.pick-ctrl button {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--grape); background: var(--paper); cursor: pointer;
}
.pick-ctrl button:hover { background: var(--lilac-2); }
.pick-ctrl button[disabled] { opacity: .3; cursor: default; background: var(--paper); }
.pick-ctrl svg { width: 16px; height: 16px; fill: none; stroke: var(--grape); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
#bookForm { margin-top: 8px; }
#bookBtn { margin-top: 24px; }

.done-steps { margin-top: 30px; display: grid; gap: 16px; }
.done-steps li { display: flex; gap: 16px; align-items: center; }
.done-steps .num { margin: 0; flex: none; width: 44px; height: 44px; font-size: 20px; }
.done-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Stage ---------- */
.stage svg { width: 100%; height: 100%; }
.stage .f1 { fill: var(--c1); }
.stage .f2 { fill: var(--c2); }
.stage .f3 { fill: var(--c3); }
.stage .fw { fill: var(--wall); }
.stage .fwd { fill: var(--wall-dot); }
.stage .tassel { stroke: var(--c1); }
.stage .banner-text { font-family: var(--display); fill: var(--ink); }
.stage .age-num { font-family: var(--display); }
.stage .f1, .stage .f2, .stage .f3, .stage .fw, .stage .fwd, .stage .banner-text, .stage .tassel { transition: fill .6s ease, stroke .6s ease; }
.stage .item {
  transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform .6s var(--spring), opacity .25s ease;
}
.stage .item:not(.on) { opacity: 0; transform: translateY(18px) scale(.4); }
.stage .guest { transition-duration: .45s, .2s; }
.stage .booting, .stage .booting * { transition: none !important; }
.stage .bubbles circle { fill: rgba(255, 255, 255, .45); stroke: var(--sky); stroke-width: 1.6; animation: bubble 3.6s ease-in-out infinite alternate; }
.stage .bubbles circle:nth-child(2n) { animation-duration: 4.4s; animation-delay: -1.2s; }
.stage .bubbles circle:nth-child(3n) { animation-duration: 5s; animation-delay: -2.4s; }
.stage .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .9s ease-in-out infinite alternate; }
.stage .bob { transform-box: fill-box; transform-origin: 50% 100%; animation: squash 2.6s ease-in-out infinite; }
.stage .bob-slow { animation: floaty 4s ease-in-out infinite; }
.stage .swing { transform-box: view-box; transform-origin: 522px 0; animation: swing 3.4s ease-in-out infinite; }
.stage .twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite; }
.stage .twinkle:nth-of-type(2n) { animation-delay: -.8s; }
.stage .bulb { opacity: 0; }
.stage .photo-on .bulb { animation: bulb 5s infinite; }
.stage .photo-on .flash { animation: flash 5s infinite; }

@keyframes stepInF { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepInB { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes bubble { from { transform: translateY(6px); } to { transform: translateY(-14px); } }
@keyframes flicker { from { transform: scaleY(.85) scaleX(1.05); } to { transform: scaleY(1.15) scaleX(.9); } }
@keyframes squash { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.975) scaleX(1.01); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.6); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes flash { 0%, 90% { opacity: 0; } 92% { opacity: .6; } 100% { opacity: 0; } }
@keyframes bulb { 0%, 90% { opacity: 0; } 92% { opacity: 1; } 100% { opacity: 0; } }
/* Hero: one button instead of a form, since the onboarding asks the questions */
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.hero-ctas p { font-size: 15px; color: var(--grape-2); }

/* ---------- Planner shell ---------- */
body.in-planner #landing { display: none; }
.planner { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.p-head {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px;
  height: var(--head-h); padding: 0 28px; background: var(--lilac); border-bottom: 2.5px solid var(--grape);
}
.p-head .logo { font-size: 22px; }
.p-head > .link-btn { margin-left: auto; flex: none; }
.progress-sm { display: none; }

.p-body {
  flex: 1; width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 48px; padding: 36px 28px 0; align-items: start; overflow-x: clip;
}
.p-form { min-width: 0; display: flex; flex-direction: column; min-height: calc(100dvh - var(--head-h) - 36px); }
#wizard { flex: 1; }

.step { max-width: 680px; }
.step.enter-f { animation: stepInF .45s var(--ease-out); }
.step.enter-b { animation: stepInB .45s var(--ease-out); }
.step h2 { font-size: clamp(30px, 3.4vw, 42px); outline: none; }
.step-lede { margin-top: 10px; font-size: 18px; color: var(--grape-2); max-width: 34em; }
.tip { margin-top: 16px; font-size: 16px; color: var(--grape-2); max-width: 32em; }
.note { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--cherry); min-height: 1.5em; }
.note.shake { animation: shake .4s; }

.stepper { display: flex; align-items: center; gap: 22px; }
.round-btn.lg { width: 56px; height: 56px; }
.round-btn.lg svg { width: 24px; height: 24px; }
.age-out { min-width: 2.2ch; text-align: center; font-family: var(--display); font-size: 96px; line-height: 1; padding-top: 6px; }
.pop { animation: pop .35s var(--spring); }

.big-count { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.big-count output { font-family: var(--display); font-size: 104px; line-height: 1; min-width: 1.4ch; font-variant-numeric: tabular-nums; }
.big-count span { font-size: 24px; font-weight: 800; }
.slider-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; max-width: 620px; }
.slider-row .range { flex: 1; }
.quick-chips { margin-top: 18px; }

/* Interest tiles */
.vibe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.vibe-tile {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 100%;
  padding: 12px 14px; cursor: pointer; text-align: left;
  background: var(--paper); border: 2.5px solid var(--grape); border-radius: var(--r-md);
  font-weight: 800; font-size: 16px; line-height: 1.2;
  transition: transform .2s var(--spring), box-shadow .15s, background-color .2s;
}
.vibe-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.vibe-tile .v-art { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.vibe-tile .v-art svg { width: 28px; height: 28px; }
.vibe-tile[aria-pressed="true"] { background: var(--sun-tint); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.vibe-badge {
  position: absolute; top: -10px; right: -10px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--grape);
  background: var(--cherry); color: #fff; font-weight: 900; font-size: 14px;
  transform: scale(0); transition: transform .3s var(--spring);
}
.vibe-tile[aria-pressed="true"] .vibe-badge { transform: scale(1); }

/* Must-have tiles */
.must-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.must-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; cursor: pointer; text-align: left;
  background: var(--paper); border: 2.5px solid var(--grape); border-radius: var(--r-md);
  transition: transform .2s var(--spring), box-shadow .15s, background-color .2s;
}
.must-tile strong { font-size: 18px; }
.must-tile span { font-size: 14.5px; color: var(--grape-2); }
.must-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.must-tile[aria-pressed="true"] { background: var(--sun-tint); box-shadow: var(--shadow); transform: translate(-2px, -2px); }

/* Footer nav */
.p-foot {
  position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  margin-top: 40px; padding: 18px 0 22px;
  background: linear-gradient(to bottom, rgba(241, 236, 255, 0), var(--lilac) 28%);
}
#nextBtn { margin-left: auto; min-width: 150px; }

/* Side panel: the party scene and a summary of their answers */
.p-panel { position: sticky; top: calc(var(--head-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.stage-card {
  display: block; width: 100%; padding: 0; border: 3px solid var(--grape); border-radius: var(--r-xl);
  background: var(--lilac-2); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 640 / 440;
}
.stage { width: 100%; height: 100%; }

.book, .done { width: 100%; max-width: 720px; margin: 0 auto; padding: 36px 28px 64px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* ---------- Favorite + theme ---------- */
.fav-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fav-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 10px;
  border: 2.5px solid var(--grape); border-radius: 999px; background: var(--paper); cursor: pointer;
  font-weight: 800; font-size: 16px; transition: transform .2s var(--spring), box-shadow .15s, background-color .2s;
}
.fav-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fav-chip[aria-checked="true"] { background: var(--sun-tint); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.fav-dots { display: inline-flex; }
.fav-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--grape); margin-left: -4px; }
.fav-dots i:first-child { margin-left: 0; }

.theme-opts { display: grid; gap: 12px; margin-top: 28px; }
.theme-opt {
  display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
  background: var(--paper); border: 2.5px solid var(--grape); border-radius: var(--r-lg);
  transition: transform .2s var(--spring), box-shadow .15s, background-color .2s;
}
.theme-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.theme-opt[aria-checked="true"] { background: var(--sun-tint); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.to-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.to-head strong { font-size: 18px; }
.to-price { flex: none; font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.to-desc { font-size: 15px; color: var(--grape-2); }
.theme-opt .v-incl { margin-top: 6px; }
.theme-opt .v-incl li { font-size: 14.5px; }

/* ---------- 24-hour planner additions ---------- */
.progress-bar { flex: 1; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 800; min-width: 0; }
.progress-bar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-bar .bar { display: block; height: 8px; border-radius: 999px; border: 2px solid var(--grape); background: var(--paper); overflow: hidden; }
.progress-bar .bar span { display: block; height: 100%; width: 0; background: var(--cherry); transition: width .4s var(--spring); }
.p-head > .link-btn { margin-left: 0; }

.hero-stage { transform: rotate(-1.5deg); transition: transform .3s var(--spring); }
.hero-stage:hover { transform: rotate(-.5deg) scale(1.01); }
.hero-stage .stage { display: block; }

.brief-card { padding: 18px 20px 20px; background: var(--paper); border: 3px solid var(--grape); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.brief-card h2 { font-family: var(--sans); font-weight: 800; font-size: 18px; letter-spacing: 0; }
.brief-list { margin: 12px 0 0; display: grid; gap: 7px; }
.brief-list div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; animation: fadeUp .35s var(--ease-out); }
.brief-list dt { font-size: 14px; font-weight: 700; color: var(--grape-2); }
.brief-list dd { margin: 0; font-size: 15px; font-weight: 700; }
.brief-foot { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--lilac-2); font-size: 14px; color: var(--grape-2); }
.done { padding-top: 48px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .brief-card { display: none; }
  .progress-bar { max-width: none; }
}

.needs-chips { margin-top: 24px; gap: 8px; }
.needs-chips .chip { min-height: 44px; padding: 8px 16px; font-size: 15.5px; }

/* Theme step: three cards that tick off what each includes */
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.level-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; text-align: left; cursor: pointer;
  background: var(--paper); border: 2.5px solid var(--grape); border-radius: var(--r-lg);
  transition: transform .2s var(--spring), box-shadow .15s, background-color .2s;
}
.level-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.level-card[aria-checked="true"] { background: var(--sun-tint); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.level-card strong { font-size: 19px; line-height: 1.2; }
.level-card ul { display: grid; gap: 6px; }
.level-card li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.3; }
.level-card li::before { content: ''; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--grape); }
.level-card li.yes::before {
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232A1A5E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.level-card li.no { color: #A69CC6; text-decoration: line-through; }
.level-card li.no::before { border-color: #C9C0E6; }
.level-card li.plain { padding-left: 0; color: var(--grape-2); }
.level-card li.plain::before { display: none; }
.level-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.alt-opt {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; text-align: left; cursor: pointer;
  background: var(--paper); border: 2px dashed var(--grape-2); border-radius: var(--r-md);
  font-weight: 800; font-size: 15.5px; line-height: 1.3; transition: background-color .2s, border-color .2s;
}
.alt-opt::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--grape); background: var(--paper); }
.alt-opt:hover { background: var(--lilac); }
.alt-opt[aria-checked="true"] { background: var(--sun-tint); border-style: solid; border-color: var(--grape); }
.alt-opt[aria-checked="true"]::before { background: var(--grape); box-shadow: inset 0 0 0 3px var(--paper); }
@media (max-width: 760px) { .level-grid, .level-alts { grid-template-columns: 1fr; } }

/* ---------- Invitation card ---------- */
.invite {
  --c1: #FF4A6E; --c2: #FFC83D; --c3: #4AA3FF; --wall: #EEE7FF; --wall-dot: #E0D5FF; --ink: #2A1A5E;
  position: relative; overflow: hidden;
  background: #FFFDFA; border: 3px solid var(--grape); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.invite .fill-c1 { fill: var(--c1); }
.invite .fill-c2 { fill: var(--c2); }
.invite .fill-c3 { fill: var(--c3); }
.invite .stroke-c1 { stroke: var(--c1); }
.invite .stroke-c2 { stroke: var(--c2); }
.invite .stroke-c3 { stroke: var(--c3); }
.invite .stop-wall { stop-color: var(--wall); }
.invite .stop-wall-dot { stop-color: var(--wall-dot); }
.invite .fill-c1, .invite .fill-c2, .invite .fill-c3, .invite .stop-wall, .invite .stop-wall-dot,
.invite .stroke-c1, .invite .stroke-c2, .invite .stroke-c3 { transition: fill .7s ease, stroke .7s ease, stop-color .7s ease; }
.invite .ib-string { fill: none; stroke: var(--grape); stroke-opacity: .32; stroke-width: 1.1; }

.inv-art { position: relative; aspect-ratio: 460 / 250; border-bottom: 2px solid var(--grape); }
.inv-art svg { display: block; width: 100%; height: 100%; }
.inv-mtitle { display: none; }

/* Pieces pop in as answers arrive */
.invite .ib { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s var(--spring), opacity .3s ease; }
.invite .ib:not(.on) { opacity: 0; transform: translateY(10px) scale(.6); }
.invite .ib-balloon.on { animation: ivFloat 5s ease-in-out infinite alternate; }
.invite .ib-confetti { transform-origin: center; }
.invite .ib-confetti:not(.on) { transform: scale(0); }
.invite .ib-tier { transform-origin: 50% 100%; }
.invite .ib-bunting { transform-origin: 50% 0; }
.invite .ib-bunting:not(.on) { transform: translateY(-14px); }
.invite .ib-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: ivFlicker .8s ease-in-out infinite alternate; }
.invite .ib-glow { animation: ivGlow 1.6s ease-in-out infinite alternate; }
.invite.booting, .invite.booting * { transition: none !important; }

/* The invitation text */
.inv-body { padding: 18px 22px 18px; }
.inv-kicker { font-style: italic; font-size: 15px; color: var(--grape-2); }
.inv-title { margin-top: 2px; font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.05; color: var(--grape); text-wrap: balance; }
.inv-theme { margin-top: 6px; font-weight: 700; font-size: 16px; color: var(--grape); }
.inv-details { margin-top: 14px; display: grid; gap: 8px; }
.inv-details li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; }
.inv-details svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--grape); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.inv-details li.empty { color: #A79FC4; font-weight: 500; font-style: italic; }
.inv-details li.empty svg { stroke: #C3BBDF; }
.inv-details li.pop span { animation: ivIn .45s var(--ease-out); }

/* Perforated stub with the planning details */
.inv-stub { position: relative; padding: 14px 22px 18px; border-top: 2px dashed #CFC6EA; background: #FBF9FF; }
.inv-stub::before, .inv-stub::after {
  content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lilac); border: 3px solid var(--grape);
}
.inv-stub::before { left: -13px; }
.inv-stub::after { right: -13px; }
.inv-stub-h { font-size: 13.5px; font-weight: 700; color: var(--grape-2); }
.inv-notes { margin: 8px 0 0; display: grid; gap: 5px; }
.inv-notes div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; animation: ivIn .4s var(--ease-out); }
.inv-notes dt { font-size: 13.5px; color: var(--grape-2); }
.inv-notes dd { margin: 0; font-size: 14px; font-weight: 700; }

/* Hero: the card sits a little tilted, like it was just handed to you */
.hero-invite { display: block; max-width: 440px; margin: 0 auto; color: inherit; text-decoration: none; transform: rotate(-2deg); transition: transform .4s var(--spring); }
.hero-invite:hover { transform: rotate(-.5deg) translateY(-3px); }
.hero-invite .inv-body { padding-bottom: 20px; }
#heroInvite { transition: opacity .35s ease, transform .35s ease; }
#heroInvite.swap { opacity: 0; transform: translateY(8px); }

@keyframes ivFloat { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-5px) rotate(1deg); } }
@keyframes ivFlicker { from { transform: scaleY(.88) scaleX(1.04); } to { transform: scaleY(1.12) scaleX(.94); } }
@keyframes ivGlow { from { opacity: .22; } to { opacity: .42; } }
@keyframes ivIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  /* On phones only the illustration shows, with the name on it, so the form keeps the space */
  .p-panel .invite { border-width: 2.5px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .p-panel .inv-body, .p-panel .inv-stub { display: none; }
  .p-panel .inv-art { aspect-ratio: auto; height: clamp(140px, 24vh, 210px); border-bottom: 0; }
  .p-panel .inv-mtitle {
    display: block; position: absolute; left: 12px; bottom: 10px; margin: 0; padding: 5px 12px 4px;
    background: #FFFDFA; border: 2px solid var(--grape); border-radius: 999px;
    font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.01em; font-size: 16px; line-height: 1.2; color: var(--grape);
  }
  .hero-invite { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .invite .ib-balloon.on, .invite .ib-flame, .invite .ib-glow { animation: none; }
}

/* ---------- Keyframes ---------- */
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .stage .flash, .stage .bulb { display: none; }
}

/* ---------- Responsive ---------- */
/* With eight steps, only the current step shows its name until there's room for all of them. */
@media (max-width: 1440px) {
  .progress .p-label { display: none; }
  .progress button { padding: 0 5px; }
  .progress button[aria-current="step"] { padding-right: 12px; }
  .progress button[aria-current="step"] .p-label { display: inline; }
}

@media (max-width: 1100px) {
  .kinds-grid { grid-template-columns: repeat(2, 1fr); }
  .p-body { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 32px; }
}

@media (max-width: 900px) {
  :root { --head-h: 58px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-nav { display: none; }
  .site-head { height: 72px; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 8px; padding-bottom: 72px; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }

  .p-head { padding: 0 16px; gap: 12px; }
  .p-head .logo span { display: none; }
  .progress { display: none; }
  .progress-sm { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 800; min-width: 0; }
  .progress-sm .bar { display: block; height: 8px; border-radius: 999px; border: 2px solid var(--grape); background: var(--paper); overflow: hidden; }
  .progress-sm .bar span { display: block; height: 100%; background: var(--cherry); transition: width .4s var(--spring); }

  .p-body { display: flex; flex-direction: column; gap: 0; padding: 0 16px; }
  .p-panel { order: -1; position: sticky; top: var(--head-h); z-index: 15; width: 100%; padding: 12px 0 10px; background: var(--lilac); }
  .p-panel .stage-card { aspect-ratio: auto; height: clamp(150px, 26vh, 220px); border-width: 2.5px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .p-form { min-height: 0; padding-top: 14px; }
  .step h2 { font-size: 28px; }
  .step-lede { font-size: 16.5px; }

  .p-foot { gap: 10px; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 28px; }
  .p-foot #backBtn { padding: 12px 16px; }
  #nextBtn { min-width: 0; padding: 12px 20px; }
  #nextBtn .hide-sm { display: none; }

  .book, .done { padding: 24px 16px 48px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .demo { padding: 16px; transform: none; }
  .kinds-grid { grid-template-columns: 1fr; }
  .site-foot a { margin-left: 0; }
  .site-head .btn-sm { padding: 8px 14px; }
  .field-row { grid-template-columns: 1fr; }
  .vibe-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vibe-tile { padding: 10px; gap: 10px; font-size: 15px; }
  .must-grid { grid-template-columns: 1fr; }
  .age-out { font-size: 80px; }
  .big-count output { font-size: 84px; }
  .slider-row { gap: 10px; }
  .pick { grid-template-columns: 30px 44px minmax(0, 1fr) auto; gap: 10px; }
  .pick .v-art { width: 44px; height: 44px; }
  .pick-price { grid-column: 3; grid-row: 2; font-size: 16px; }
  .pick-ctrl { grid-column: 4; grid-row: 1 / span 2; flex-direction: column; }
}
.sample-note { margin-top: 18px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--sun-tint); border: 2px dashed #E9B21F; font-size: 14.5px; font-weight: 600; }

/* ============ Polish: same personality, a little more grown-up ============
   White is the base, lilac comes in as deliberate blocks, headlines run at normal
   width for easy reading, and the strong grape outline is saved for what's selected. */
:root { --soft-line: #DCD4F3; }
body { background: var(--paper); }

/* Headlines: normal width reads faster. The logo keeps the wide cut as a brand touch. */
h1, h2 { font-stretch: 100%; font-weight: 800; letter-spacing: -0.025em; }
.age-out, .big-count output, .num, .pick-rank, .demo-count { font-stretch: 100%; font-weight: 800; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); max-width: 12em; line-height: 1.04; }

/* Colour as blocks: a lilac hero panel and an inset call-to-action. */
.hero.wrap { background: var(--lilac); border-radius: 40px; padding: 56px 56px 64px; margin-bottom: 88px; max-width: 1180px; }
.how { padding-top: 0; }
.cta-band { max-width: 1180px; margin: 0 auto 28px; border-radius: 40px; padding: 64px 0; }

/* Calmer outlines: soft until hovered or chosen. */
.kinds-grid a, .vibe-tile, .must-tile, .fav-chip, .level-card, .alt-opt, .chip, .seg { border-color: var(--soft-line); }
.alt-opt { border-style: solid; }
.kinds-grid a:hover, .vibe-tile:hover, .must-tile:hover, .fav-chip:hover, .level-card:hover, .alt-opt:hover, .chip:hover { border-color: var(--grape); box-shadow: none; transform: none; }
.vibe-tile[aria-pressed="true"], .must-tile[aria-pressed="true"], .fav-chip[aria-checked="true"], .level-card[aria-checked="true"], .alt-opt[aria-checked="true"] {
  border-color: var(--grape); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px);
}
.chip[aria-pressed="true"] { border-color: var(--grape); }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea { border: 2px solid var(--soft-line); }
input:hover, textarea:hover { border-color: #B9AEE0; }
input:focus, textarea:focus { border-color: var(--grape); box-shadow: 0 0 0 4px rgba(74, 163, 255, .35); }

/* The planner: white page, quieter header and panel. */
.p-head { background: var(--paper); border-bottom: 2px solid var(--soft-line); }
.p-foot { background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 28%); }
.stage-card { box-shadow: var(--shadow); }
.brief-card { background: #FAF8FF; border: 2px solid var(--soft-line); box-shadow: none; }
.brief-foot { border-top-color: var(--soft-line); }
.faq-list, .faq details { border-color: var(--soft-line); }

@media (max-width: 900px) {
  .hero.wrap { border-radius: 28px; padding: 28px 20px 36px; margin: 4px 12px 56px; width: auto; }
  .cta-band { margin: 0 12px 20px; border-radius: 28px; padding: 44px 0; }
  .p-panel { background: var(--paper); }
}

/* Hero headline: keep each phrase on its own line, with room for the copy to breathe. */
.hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
.hero h1 { font-size: clamp(38px, 4.3vw, 56px); max-width: none; }
.hero h1 .h-line { display: inline-block; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Invitation offer on the "We're on it" screen */
.done-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding: 22px 24px; border-radius: var(--r-xl); background: var(--lilac); }
.done-invite div { flex: 1 1 280px; }
.done-invite h2 { font-family: var(--sans); font-size: 20px; font-weight: 800; letter-spacing: 0; }
.done-invite p { margin-top: 4px; color: var(--grape-2); }
.site-foot a[href="/invites"] { margin-left: auto; }
.site-foot a[href="/invites"] + a { margin-left: 0; }
