/* ===================================================================
   Monster Mash — public site
   Tokens mirror the design canvas: friendly spooky, night purple +
   cream, pumpkin/violet/mint accents.
   =================================================================== */

:root {
  --night:       #180D28;
  --night-2:     #24143C;
  --night-3:     #2A1A47;
  --cream:       #FFF6E9;
  --cream-2:     #FFFCF6;
  --white:       #FFFFFF;
  --ink:         #2E1F45;
  --muted:       #6B5B87;
  --muted-2:     #8B7BA6;
  --muted-3:     #B3A4C4;
  --on-night:    #D9C9F2;
  --on-night-2:  #C3B0E0;
  --on-night-3:  #A992C9;

  --pumpkin:      #FF8A3D;
  --pumpkin-deep: #E86F22;
  --violet:       #B57BFF;
  --violet-deep:  #7A3FD4;
  --mint:         #57E0A8;
  --mint-deep:    #12946A;
  --danger:       #D4453E;

  --border:   #F0E2D0;
  --border-2: #E6D8C6;

  --radius-lg: 26px;
  --radius:    18px;
  --radius-sm: 13px;

  --shadow: 0 8px 24px rgba(46, 31, 69, 0.08);
  --shadow-cta: 0 10px 28px rgba(255, 138, 61, 0.32);

  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--night);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .dsp { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
a { color: var(--pumpkin); text-decoration: none; }
a:hover { color: #FFB27A; }
img, svg { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 17px;
  padding: 16px 32px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 52px;
}
.btn-primary { background: var(--pumpkin); color: #2E1240; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: #FF9A55; color: #2E1240; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(255,246,233,.28); }
.btn-ghost:hover { color: var(--cream); border-color: rgba(255,246,233,.5); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { color: var(--cream); background: #3D2A5C; }
.btn-lg { font-size: 20px; padding: 20px 48px; min-height: 62px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); font-family: var(--display); font-size: 21px; font-weight: 800; }
.brand:hover { color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 30px; }
/* :not(.btn) matters — ".nav-links a" (0,1,1) outranks ".btn-primary" (0,1,0),
   so without it the nav's pale link colour wins and the CTA's dark label
   disappears into the orange fill. */
.nav-links a:not(.btn) { color: var(--on-night-2); font-weight: 700; font-size: 16px; }
.nav-links a:not(.btn):hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 80px; overflow: hidden; }
.hero-sky { position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(42px, 5.4vw, 78px); line-height: .96; }
.hero h1 .accent { color: var(--pumpkin); }
.hero p.lede { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--on-night); max-width: 32ch; text-wrap: pretty; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: rgba(181,123,255,.16); border: 1.5px solid rgba(181,123,255,.4);
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: #E2D3FF; letter-spacing: .02em;
}
.hero-art { display: flex; justify-content: center; align-items: flex-end; }
.reassure { display: flex; align-items: center; gap: 10px; color: var(--on-night-3); font-size: 15px; font-weight: 600; }

/* ---------- fact cards ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 80px; }
.fact { background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: 30px 32px; display: flex; flex-direction: column; gap: 11px; }
.fact-head { display: flex; align-items: center; gap: 12px; }
.fact-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fact-ico.o { background: #FFE3CC; } .fact-ico.v { background: #EADDFF; } .fact-ico.m { background: #D6F7E8; }
.fact-head span { font-family: var(--display); font-size: 22px; font-weight: 700; }
.fact-big { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.1; }
.fact-sub { font-size: 18px; font-weight: 700; color: var(--muted); }
.fact-note { font-size: 15px; color: var(--muted-2); line-height: 1.45; }

/* ---------- map ---------- */
.map-card { background: var(--night-2); border: 1.5px solid #3A2260; border-radius: 30px; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 90px; }
.map-copy { padding: 48px 46px; display: flex; flex-direction: column; gap: 17px; justify-content: center; }
.eyebrow { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .1em; color: var(--violet); }
.map-copy h2 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.map-copy p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--on-night-2); text-wrap: pretty; }
.map-copy strong { color: var(--cream); }
.map-frame { min-height: 360px; background: #1E2A22; position: relative; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 360px; color: var(--on-night-3); font-size: 15px; text-align: center; padding: 30px; background: #1E2A22; }

/* ---------- form section ---------- */
.form-section { background: var(--cream); color: var(--ink); border-radius: 48px 48px 0 0; padding: 80px 0 20px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--pumpkin-deep); }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); text-align: center; line-height: 1.05; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); text-align: center; max-width: 54ch; text-wrap: pretty; }

form.register { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 32px 34px; display: flex; flex-direction: column; gap: 19px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head-l { display: flex; align-items: center; gap: 11px; }
.step-n { width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.card-head h3 { margin: 0; font-size: 25px; font-weight: 700; }
.card-note { margin: -8px 0 0; font-size: 15px; color: var(--muted-2); line-height: 1.5; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 14.5px; font-weight: 800; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  border: 2px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--cream-2); width: 100%;
  transition: border-color .12s ease, box-shadow .12s ease;
  min-height: 52px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pumpkin); background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,138,61,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-3); }
.hint { font-size: 13.5px; color: var(--muted-2); }

/* child rows */
.kid { border: 2px solid var(--border); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 15px; background: var(--cream-2); }
.kid-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kid-head-l { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.kid-remove { background: none; border: none; cursor: pointer; font-family: var(--body); font-size: 14px; font-weight: 800; color: #C46A6A; padding: 8px 10px; border-radius: 8px; min-height: 44px; }
.kid-remove:hover { background: #FBEAEA; }
.kid:first-of-type .kid-remove { display: none; }

.check { display: flex; align-items: center; gap: 11px; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--mint-deep); cursor: pointer; flex-shrink: 0; }
.check span { font-size: 15px; color: var(--muted); }

.add-kid {
  border: 2.5px dashed #E0C9AE; background: none; cursor: pointer;
  border-radius: var(--radius); padding: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--pumpkin-deep); font-family: var(--body); font-weight: 800; font-size: 16.5px;
  min-height: 56px; transition: background .12s ease, border-color .12s ease;
}
.add-kid:hover { background: #FFF3E6; border-color: var(--pumpkin); }

.submit-row { display: flex; flex-direction: column; align-items: center; gap: 13px; padding-top: 4px; }
.submit-row .hint { text-align: center; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); color: var(--ink); padding: 40px 0 90px; }
.faq h2 { margin: 0 0 32px; font-size: clamp(28px, 3vw, 40px); text-align: center; }
.faq-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-item { background: var(--white); border-radius: 20px; padding: 26px 28px; display: flex; flex-direction: column; gap: 9px; }
.faq-item h3 { margin: 0; font-size: 19px; font-weight: 700; }
.faq-item p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: var(--night); padding: 44px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; color: var(--on-night-2); }
.foot span { font-size: 14.5px; color: #7C6A9C; }

/* ---------- flashes ---------- */
.flash { border-radius: var(--radius); padding: 16px 20px; font-size: 15.5px; font-weight: 700; line-height: 1.5; display: flex; gap: 11px; align-items: flex-start; margin-bottom: 20px; }
.flash-error { background: #FFE2E2; color: #9B2C26; border-left: 4px solid var(--danger); }
.flash-ok { background: #D6F7E8; color: #0C5A3E; border-left: 4px solid var(--mint-deep); }
.flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 600; }

/* ---------- closed notice ---------- */
.closed { max-width: 640px; margin: 0 auto; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 44px 40px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.closed h3 { margin: 0; font-size: 28px; }
.closed p { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.55; }

/* ---------- success / ticket ---------- */
.success-top { position: relative; background: var(--night); padding: 52px 0 86px; border-radius: 0 0 44px 44px; overflow: hidden; }
.success-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.success-inner h1 { margin: 0; font-size: clamp(34px, 4.6vw, 52px); color: var(--cream); line-height: 1.05; }
.success-inner p { margin: 0; font-size: 19px; color: var(--on-night); max-width: 54ch; line-height: 1.5; text-wrap: pretty; }
.success-inner strong { color: var(--cream); }
.ref-chip { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,246,233,.1); border: 1.5px solid rgba(255,246,233,.22); padding: 9px 20px; border-radius: 999px; }
.ref-chip .l { font-size: 14px; font-weight: 700; color: var(--on-night-3); }
.ref-chip .v { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--cream); letter-spacing: .06em; }

.tickets { margin-top: -44px; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.ticket {
  background: var(--white); color: var(--ink); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px;
  display: flex; align-items: center; gap: 28px; box-shadow: var(--shadow);
}
.ticket-qr { flex-shrink: 0; background: var(--white); border: 2px solid #EFE2D2; border-radius: var(--radius); padding: 12px; line-height: 0; }
.ticket-qr img { width: 136px; height: 136px; display: block; }
.ticket-main { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; min-width: 0; }
.ticket-name { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.ticket-name h2 { margin: 0; font-size: 28px; line-height: 1; }
.age-chip { font-size: 14.5px; font-weight: 700; color: var(--muted-2); background: #F6EFE4; padding: 5px 12px; border-radius: 999px; }
.code-label { font-size: 13.5px; font-weight: 800; color: var(--muted-2); letter-spacing: .07em; }
.code-big { font-family: var(--display); font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: .14em; line-height: 1; color: var(--pumpkin-deep); }
.ticket-stub { flex-shrink: 0; border-left: 2.5px dashed #EFE2D2; padding-left: 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ticket-stub .l { font-size: 13px; font-weight: 800; color: var(--muted-2); letter-spacing: .07em; }
.ticket-stub .v { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; }
.ticket-stub .s { font-size: 13px; color: #A99BBE; }

.next-card { background: #EADDFF; border-radius: var(--radius-lg); padding: 30px 34px; display: flex; flex-direction: column; gap: 17px; margin-top: 36px; }
.next-card h2 { margin: 0; font-size: 24px; color: #3C1D6E; }
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.next-step { display: flex; flex-direction: column; gap: 8px; }
.next-step .h { display: flex; align-items: center; gap: 9px; }
.next-step .n { width: 26px; height: 26px; border-radius: 999px; background: var(--violet-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13.5px; flex-shrink: 0; }
.next-step .t { font-weight: 800; font-size: 16px; color: #3C1D6E; }
.next-step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #5B3B8C; }

.page-cream { background: var(--cream); color: var(--ink); min-height: 100vh; }
.actions-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 28px 0 56px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .facts, .map-card, .grid-2, .grid-3, .faq-grid, .next-steps { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { padding: 24px 0 50px; }
  .hero-art { order: -1; }
  .hero-art svg { max-height: 260px; }
  .map-copy { padding: 32px 26px; }
  .form-section { padding: 48px 0 20px; border-radius: 32px 32px 0 0; }
  .card { padding: 24px 20px; }
  .kid { padding: 18px 16px; }
  .nav-links a { display: none; }
  .ticket { flex-direction: column; align-items: stretch; text-align: center; gap: 18px; }
  .ticket-qr { align-self: center; }
  .ticket-name { justify-content: center; }
  .ticket-stub { border-left: none; border-top: 2.5px dashed #EFE2D2; padding-left: 0; padding-top: 18px; flex-direction: row; justify-content: center; align-items: baseline; gap: 10px; }
  .success-top { border-radius: 0 0 28px 28px; padding: 36px 0 70px; }
  .foot { flex-direction: column; text-align: center; gap: 10px; }
}

@media print {
  body { background: #fff; color: #000; }
  .nav, .foot, .actions-row, .next-card, .hero-sky { display: none !important; }

  .success-top { background: #fff; color: #000; border-radius: 0; padding: 0 0 16px; }

  /* On screen the ticket stack is pulled up over the dark header band. On
     paper that band is gone, so the negative margin drags the cards over
     the family-reference chip instead. */
  .tickets { margin-top: 0; }

  /* These are all light-on-dark by design — on white paper they range from
     faint to invisible (strong is cream, i.e. white on white). */
  .success-inner h1,
  .success-inner p,
  .success-inner strong { color: #000; }

  .ref-chip { background: transparent; border-color: #999; }
  .ref-chip .l { color: #444; }
  .ref-chip .v { color: #000; }

  .ticket { break-inside: avoid; box-shadow: none; border-color: #999; }
  .ticket-qr { border-color: #999; }
  .ticket-stub { border-left-color: #999; }
  .age-chip { border: 1px solid #ccc; }
}
