/* ==========================================================================
   Confetti Bots
   Direction: a party invitation that happens to be a booking engine. Loud,
   saturated, rounded — nothing like the industrial spec-sheet of the crewed
   brand or the pale library card of the lending one. A parent decides in about
   eight seconds whether this looks fun and whether it looks safe, so the page
   has to do both at once: bright colour, but real prices and a real calendar
   sitting right there rather than a "request a quote".
   Signature: the calendar. It is the one thing this brand does that the
   siblings do not, so it is the hero interaction rather than a footnote.
   Type: Fredoka (rounded display) / Figtree (body).
   ========================================================================== */

:root {
  --sky:    #2d6bff;   /* electric blue - primary */
  --pop:    #ff4d8d;   /* hot pink - the party accent */
  --zest:   #ffc531;   /* sunshine */
  --mint:   #22c7a9;
  --grape:  #2a1b4a;   /* deep purple-black, the ink */
  --cream:  #fff8f0;   /* page ground */
  --white:  #ffffff;
  --muted:  #6b6280;
  --rule:   #e8dfd4;
  --shadow: 0 4px 0 rgba(42, 27, 74, .16);

  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body:    'Figtree', system-ui, -apple-system, sans-serif;

  --shell: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .3, 1);
}

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--grape);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%); z-index: 200;
  background: var(--grape); color: var(--cream); padding: .7rem 1.2rem;
  text-decoration: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------- layout -- */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--grape { background: var(--grape); color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sky); background: rgba(45, 107, 255, .1);
  padding: .3rem .7rem; border-radius: 100px; margin: 0 0 1rem;
}
.eyebrow--pop { color: var(--pop); background: rgba(255, 77, 141, .12); }
.eyebrow--invert { color: var(--zest); background: rgba(255, 197, 49, .16); }

.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; margin: 0 0 1rem; }
.section-lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 58ch; margin: 0 0 2.5rem; }
.section--grape .section-lede { color: #b9aed0; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: none; border-radius: 100px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(42, 27, 74, .18); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(42, 27, 74, .18); }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--pop { background: var(--pop); color: #fff; }
.btn--pop:hover { background: #ef3d7d; }
.btn--sky { background: var(--sky); color: #fff; }
.btn--sky:hover { background: #1f5cf0; }
.btn--ghost { background: transparent; color: var(--grape); box-shadow: inset 0 0 0 2px var(--grape); }
.btn--ghost:hover { background: var(--grape); color: var(--cream); box-shadow: inset 0 0 0 2px var(--grape); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------- masthead -- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--rule);
}
.masthead__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); min-height: 74px; }

.wordmark { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
/* Drawn, not an asset: a round bot head with an antenna and a confetti dot. */
.wordmark__mark {
  display: block; position: relative; flex: none;
  width: 30px; height: 26px; border-radius: 13px 13px 9px 9px;
  background: var(--sky);
}
.wordmark__mark::before {
  content: ''; position: absolute; left: 50%; top: -7px; width: 3px; height: 8px;
  background: var(--grape); transform: translateX(-50%); border-radius: 2px;
}
.wordmark__mark::after {
  content: ''; position: absolute; left: 50%; top: -12px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--pop); transform: translateX(-50%);
}
.wordmark__text { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

.masthead__nav { display: flex; gap: 1.4rem; margin-inline-start: auto; font-family: var(--font-display); font-weight: 500; font-size: .98rem; }
.masthead__nav a { text-decoration: none; color: var(--muted); transition: color .15s var(--ease); }
.masthead__nav a:hover { color: var(--sky); }

/* ------------------------------------------------------------------ hero -- */

.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero__headline { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1; margin: 0 0 1.1rem; }
.hero__headline em { font-style: normal; color: var(--pop); }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 42ch; margin: 0 0 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }

/* Three facts a parent wants before anything else: price, place, proof it's safe. */
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .95rem; }
.hero__facts div { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.hero__facts b { color: var(--grape); font-weight: 600; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.hero__art { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero__art img { width: 100%; }

/* --------------------------------------------------------------- packages -- */

.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; align-items: start; }

.pkg {
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--rule); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.pkg:hover { transform: translateY(-3px); border-color: var(--sky); }
.pkg--featured { border-color: var(--pop); }
.pkg__flag {
  background: var(--pop); color: #fff; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase; padding: .4rem;
}
.pkg__art { background: var(--cream); }
.pkg__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pkg__name { font-size: 1.45rem; margin: 0 0 .3rem; }
.pkg__tagline { color: var(--muted); font-size: .97rem; margin: 0 0 1rem; }

.pkg__price { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .3rem; }
.pkg__amount { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--sky); }
.pkg__per { color: var(--muted); font-size: .9rem; }
.pkg__meta { font-size: .88rem; color: var(--muted); margin: 0 0 1.1rem; }

.pkg__list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.pkg__list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .55rem; align-items: start; }
.pkg__tick { color: var(--mint); font-weight: 700; line-height: 1.4; }
.pkg__note {
  font-size: .88rem; color: var(--muted); margin: 0 0 1.2rem;
  padding: .7rem .85rem; background: var(--cream); border-radius: var(--radius-sm);
}
.pkg__cta { margin-top: auto; }
.pkg__cta .btn { width: 100%; }

/* ---------------------------------------- signature: the booking calendar -- */

.booker { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.cal {
  background: var(--white); border: 2px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.cal__month { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.cal__nav { display: flex; gap: .4rem; }
.cal__nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--rule);
  background: var(--white); cursor: pointer; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.cal__nav button:hover:not(:disabled) { border-color: var(--sky); color: var(--sky); }
.cal__nav button:disabled { opacity: .35; cursor: not-allowed; }

.cal__status { color: var(--muted); font-size: .95rem; padding: 2rem 0; text-align: center; }

.cal__days { display: grid; gap: .6rem; }
.cal__day {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .8rem; align-items: center;
  padding: .6rem; border-radius: var(--radius-sm); background: var(--cream);
}
.cal__date { text-align: center; line-height: 1.15; }
.cal__dow { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal__dom { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.cal__slots { display: flex; flex-wrap: wrap; gap: .4rem; }

.slot {
  border: 2px solid var(--rule); background: var(--white); color: var(--grape);
  border-radius: 100px; padding: .4rem .85rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--sky); color: var(--sky); }
.slot[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
/* Taken slots stay visible rather than disappearing: a calendar that hides what
   is gone reads as "nothing available" instead of "this weekend is popular". */
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.cal__empty { color: var(--muted); font-size: .95rem; text-align: center; padding: 1.5rem 0; }
.cal__foot { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

/* ----------------------------------------------------------------- form -- */

.book {
  background: var(--white); border: 2px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.75rem);
  position: sticky; top: 96px;
}
.book__title { font-size: 1.35rem; margin: 0 0 .3rem; }
.book__sub { color: var(--muted); font-size: .95rem; margin: 0 0 1.25rem; }

/* Live running total. Parents want to know the number before they commit, and
   showing it change as they add builders is the honest version of that. */
.book__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  background: var(--cream); border-radius: var(--radius-sm);
  padding: .9rem 1rem; margin-bottom: 1.25rem;
}
.book__total-label { font-size: .9rem; color: var(--muted); }
.book__total-amount { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--sky); line-height: 1; }
.book__chosen { font-size: .9rem; color: var(--muted); margin: -.75rem 0 1.25rem; }
.book__chosen b { color: var(--grape); }

.field { margin-bottom: 1rem; }
.field--half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .9rem; margin-bottom: .35rem; }
.req { color: var(--pop); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem;
  border: 2px solid var(--rule); border-radius: var(--radius-sm); background: var(--white);
  font-size: 1rem; transition: border-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc4b6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--pop); }
.field__error { display: none; font-size: .85rem; color: var(--pop); margin: .35rem 0 0; }
.field__error.is-shown { display: block; }
.field__hint { font-size: .85rem; color: var(--muted); margin: -.15rem 0 .45rem; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__submit { width: 100%; margin-top: .5rem; }
.book__smallprint { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }

.done { text-align: center; padding: 1rem 0; }
.done[hidden] { display: none; }
.done__burst { font-size: 2.6rem; line-height: 1; margin-bottom: .5rem; }
.done__title { font-size: 1.6rem; margin: 0 0 .6rem; }
.done p { color: var(--muted); font-size: .96rem; }
.done__ref { font-family: var(--font-display); font-weight: 600; color: var(--grape); }
.done__card {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 1rem; margin: 1rem 0; text-align: left; font-size: .95rem;
}
.done__card div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.done__card span:first-child { color: var(--muted); }
.done__card b { font-family: var(--font-display); font-weight: 600; }

/* ----------------------------------------------------------------- safety -- */

.safety { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.safety__art { border-radius: var(--radius); overflow: hidden; }
.safety__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.safety__list h3 { font-size: 1.1rem; margin: 0 0 .35rem; color: var(--zest); }
.safety__list p { margin: 0; color: #b9aed0; font-size: .97rem; }

/* -------------------------------------------------------------------- faq -- */

.faqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem 2.5rem; }
.faq h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.faq p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ----------------------------------------------------------------- footer -- */

.footer { background: var(--grape); color: var(--cream); padding-block: clamp(3rem, 6vw, 4rem) 0; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__tag { color: #b9aed0; font-size: .96rem; margin: .8rem 0 0; }
.footer__col h3 { font-family: var(--font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zest); margin: 0 0 .9rem; }
.footer__col p, .footer__col li { margin: 0 0 .5rem; font-size: .96rem; color: #d6cfe4; }
.footer__col a { color: var(--cream); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__base {
  border-top: 1px solid rgba(255, 248, 240, .16);
  padding: 1.2rem 0 5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: #9a8fb5;
}
.footer__base p { margin: 0; }

/* ------------------------------------------------------------------ chat -- */

.ask-toggle {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem); z-index: 120;
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; background: var(--pop); color: #fff;
  border: none; border-radius: 100px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 6px 18px rgba(255, 77, 141, .35);
  transition: transform .18s var(--ease);
}
.ask-toggle:hover { transform: translateY(-2px); }
.ask-toggle.is-open { display: none; }

.ask {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem); z-index: 130;
  width: min(380px, calc(100vw - 2rem)); max-height: min(600px, calc(100vh - 2rem));
  display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--grape); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(42, 27, 74, .25); overflow: hidden;
  animation: pop-in .2s var(--ease);
}
.ask[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.ask__head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: var(--grape); color: var(--cream); }
.ask__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0; }
.ask__sub { font-size: .76rem; color: #b9aed0; margin: .1rem 0 0; }
.ask__close { background: none; border: none; color: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }

.ask__log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .7rem; align-content: start; }
.msg { max-width: 88%; padding: .65rem .9rem; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.msg p { margin: 0 0 .45rem; }
.msg p:last-child { margin-bottom: 0; }
.msg--agent { background: var(--cream); justify-self: start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--sky); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.msg--error { background: #ffe8f0; color: #b3245c; justify-self: start; }
.msg--typing { display: flex; gap: 5px; align-items: center; padding: .85rem; }
.msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.3s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .18s; }
.msg--typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.ask__chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .75rem; }
.ask__chips[hidden] { display: none; }
.ask__chips button {
  background: var(--white); border: 2px solid var(--rule); border-radius: 100px;
  padding: .3rem .7rem; font-size: .82rem; cursor: pointer; color: var(--muted);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.ask__chips button:hover { border-color: var(--pop); color: var(--pop); }

.ask__form { display: flex; gap: .4rem; padding: .7rem 1rem; border-top: 2px solid var(--rule); }
.ask__form input { flex: 1; padding: .6rem .8rem; border: 2px solid var(--rule); border-radius: 100px; font-size: .95rem; }
.ask__form input:focus { outline: none; border-color: var(--sky); }
.ask__form button { width: 42px; border: none; border-radius: 50%; background: var(--pop); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ask__form button:disabled { opacity: .5; cursor: not-allowed; }
.ask__foot { margin: 0; padding: 0 1rem .8rem; font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------- reveals -- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1000px) {
  .masthead__nav { display: none; }
  .booker { grid-template-columns: 1fr; }
  .book { position: static; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .safety { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .field--half { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cal__day { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .55rem; }
  .ask { right: 0; bottom: 0; width: 100vw; max-height: 100vh; height: 100dvh; border-radius: 0; }
}

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