/* Design system for the public pages — ported verbatim from the original
   index.html (Danish summer evening: night sky, string lights, tent). */

:root {
  --sky-top: #1b2450;
  --sky-mid: #46346e;
  --sky-glow: #c0604a;
  --amber: #ffb94f;
  --amber-dyb: #e89a25;
  --cream: #fff6e9;
  --cream-dyb: #f6e8d2;
  --ink: #2b2242;
  --ink-svag: #6b6284;
  --pink: #f2989f;
  --green: #4e8f5b;
  --roed: #c8543f;
  --radius: 18px;
  --skygge: 0 10px 30px rgba(43, 34, 66, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0 }

html { scroll-behavior: smooth }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .display { font-family: 'Baloo 2', cursive; line-height: 1.15 }

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

button { font: inherit; cursor: pointer }

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

a { color: var(--amber-dyb) }

/* ---------- Song button ---------- */
.song-button {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--amber);
  color: var(--ink);
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--amber-dyb), 0 10px 22px rgba(0, 0, 0, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.song-button:active {
  transform: translate(-50%, 3px);
  box-shadow: 0 1px 0 var(--amber-dyb), 0 6px 14px rgba(0, 0, 0, .25)
}

.song-button[aria-pressed="true"] { background: var(--cream) }

/* ---------- Hero: summer evening above the tent ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-glow) 100%);
  padding: 0 20px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin: 0 auto;
  padding: 84px 0 200px
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 800; text-shadow: 0 3px 18px rgba(0, 0, 0, .35) }

.hero h1 .year { color: var(--amber) }

.hero .hero-date { font-size: clamp(1.1rem, 4vw, 1.4rem); font-weight: 800; margin-top: 10px }

.hero .hero-venue { font-weight: 800; margin-top: 4px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4) }

/* chip with a light background so the deadline stays readable */
.hero .hero-deadline {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 20px;
  margin-top: 20px;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.hero .hero-deadline strong { color: var(--amber-dyb) }

.cta {
  display: inline-block;
  margin-top: 26px;
  background: var(--amber);
  color: var(--ink);
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--amber-dyb), 0 14px 26px rgba(0, 0, 0, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--amber-dyb), 0 18px 30px rgba(0, 0, 0, .35) }

.cta:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--amber-dyb) }

/* string lights */
.string-lights {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(760px, 100%);
  z-index: 2;
  pointer-events: none
}

.bulb { animation: glimt 3.2s ease-in-out infinite }

.bulb:nth-child(3n) { animation-delay: 1.1s }

.bulb:nth-child(3n+1) { animation-delay: 2.2s }

@keyframes glimt {
  0%, 100% { opacity: .55 }
  50% { opacity: 1 }
}

/* stars */
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: .7;
  animation: glimt 4s ease-in-out infinite;
  z-index: 1
}

/* tent silhouette */
.tent {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: clamp(180px, 36vw, 300px);
  z-index: 2;
  pointer-events: none
}

@media (prefers-reduced-motion:reduce) {
  .bulb, .star { animation: none }
}

/* ---------- Sections ---------- */
main { max-width: 640px; margin: 0 auto; padding: 0 20px 80px }

section { margin-top: 56px }

.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px }

.section-title .emoji { margin-right: 8px }

.lead { color: var(--ink-svag); margin-bottom: 22px }

.task-list { padding-left: 22px; margin: 14px 0 }

.task-list li { margin-bottom: 6px }

.how { padding-left: 22px; margin: 14px 0 }

.how li { margin-bottom: 10px }

/* program timeline */
.program { list-style: none; position: relative; padding-left: 34px }

.program::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--cream-dyb)
}

.program li { position: relative; padding: 0 0 26px }

.program li:last-child { padding-bottom: 0 }

.program .program-dot {
  position: absolute;
  left: -34px;
  top: 2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--amber);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 3px var(--cream-dyb);
  display: grid;
  place-items: center;
  font-size: .7rem;
}

.program .program-time { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.15rem }

.program p { color: var(--ink-svag) }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--skygge); padding: 26px }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 2px dashed var(--cream-dyb)
}

.price-row:last-child { border-bottom: 0 }

.price-row .amount { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.3rem }

.free { color: var(--green) }

.note { background: var(--cream-dyb); border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: .95rem }

/* ---------- Signup wizard ---------- */
#signup .card { padding: 0; overflow: hidden }

.wizard-head {
  background: linear-gradient(135deg, var(--sky-mid), var(--sky-top));
  color: #fff;
  padding: 22px 26px 30px;
  text-align: center;
  position: relative
}

.wizard-head h3 { font-size: 1.4rem }

/* pennant progress */
.pennants { position: relative; height: 46px; margin-top: 14px }

.pennants svg { width: 100%; height: 100% }

.pennant { transition: fill .3s ease, opacity .3s ease; opacity: .35 }

.pennant.active { opacity: 1 }

.pennant.done { opacity: 1 }

.step-label { font-size: .85rem; opacity: .85; margin-top: 4px }

.wizard-body { padding: 26px }

.step { display: none }

.step.visible { display: block; animation: ind .3s ease }

@keyframes ind {
  from { opacity: 0; transform: translateX(14px) }
  to { opacity: 1; transform: none }
}

@media (prefers-reduced-motion:reduce) {
  .step.visible { animation: none }
}

.step h4 { font-size: 1.25rem; margin-bottom: 4px }

.step .help-text { color: var(--ink-svag); font-size: .95rem; margin-bottom: 20px }

.field { margin-bottom: 18px }

.field label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px }

.field .optional { font-weight: 400; color: var(--ink-svag) }

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  border: 2px solid var(--cream-dyb);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--amber-dyb);
  outline: none;
  background: #fff
}

.error-text {
  color: var(--roed);
  font-size: .9rem;
  font-weight: 600;
  margin-top: 6px;
  display: none
}

.field.error input,
.field.error select { border-color: var(--roed) }

.field.error .error-text { display: block }

/* steppers */
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--cream);
  border: 2px solid var(--cream-dyb);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px
}

.stepper-row .title { font-weight: 800 }

.stepper-row .sub { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-svag) }

.stepper { display: flex; align-items: center; gap: 2px }

.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--amber);
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 3px 0 var(--amber-dyb);
  transition: transform .1s;
}

.stepper button:active { transform: translateY(2px); box-shadow: none }

.stepper button:disabled { background: var(--cream-dyb); box-shadow: none; color: var(--ink-svag); cursor: not-allowed }

.stepper .count { width: 52px; text-align: center; font-family: 'Baloo 2', cursive; font-size: 1.7rem; font-weight: 800 }

.child-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 6px }

.child-ages .field { margin-bottom: 0 }

.child-ages label { font-size: .85rem }

/* hero-task cards */
.heroes { display: grid; gap: 12px }

.hero-task {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  background: var(--cream);
  border: 2px solid var(--cream-dyb);
  border-radius: 14px;
  padding: 16px;
  transition: border-color .2s, background .2s;
}

.hero-task .icon { font-size: 1.7rem; line-height: 1 }

.hero-task .title { font-weight: 800 }

.hero-task .sub { font-size: .9rem; color: var(--ink-svag) }

.hero-task .check {
  margin-left: auto;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink-svag);
  display: grid;
  place-items: center;
  color: transparent;
  font-weight: 800;
  transition: all .2s;
}

.hero-task[aria-pressed="true"] { border-color: var(--green); background: #eef6ef }

.hero-task[aria-pressed="true"] .check { background: var(--green); border-color: var(--green); color: #fff }

/* custom question block */
.question-block { background: var(--cream); border: 2px solid var(--cream-dyb); border-radius: 14px; padding: 16px; margin-bottom: 14px }

.question-block .title { font-weight: 800 }

/* navigation */
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px }

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.05rem;
}

.button.primary { background: var(--amber); color: var(--ink); box-shadow: 0 4px 0 var(--amber-dyb); margin-left: auto }

.button.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-dyb) }

.button.back { background: transparent; color: var(--ink-svag) }

.button:disabled { opacity: .6; cursor: wait }

/* summary */
.summary { background: var(--cream); border-radius: 14px; padding: 18px; margin-bottom: 8px }

.summary dt {
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-svag);
  margin-top: 12px
}

.summary dt:first-child { margin-top: 0 }

.server-error {
  display: none;
  background: #fbeae6;
  border: 2px solid var(--roed);
  color: var(--roed);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  margin-top: 14px
}

/* receipt */
.receipt { text-align: center; padding: 10px 0 }

.receipt .cheers { font-size: 3rem }

.receipt h4 { font-size: 1.6rem; margin: 6px 0 4px }

.receipt .amount-box {
  background: var(--cream);
  border: 2px dashed var(--amber-dyb);
  border-radius: 16px;
  padding: 20px;
  margin: 22px 0;
}

.receipt .amount { font-family: 'Baloo 2', cursive; font-size: 2.6rem; font-weight: 800; color: var(--ink) }

.receipt .mobilepay-button {
  display: inline-block;
  background: #5a78ff;
  color: #fff;
  text-decoration: none;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #3d55c9;
  margin-top: 6px;
}

#qr { display: grid; place-items: center; margin: 18px auto 6px; background: #fff; padding: 12px; border-radius: 12px; width: fit-content; box-shadow: var(--skygge) }

.qr-text { font-size: .9rem; color: var(--ink-svag) }

.closed { display: none; text-align: center; padding: 34px 26px }

.closed .icon { font-size: 2.6rem }

/* ---------- Auth pages (login/signup/verify/reset) ---------- */
.auth { max-width: 480px; margin: 30px auto; padding: 0 20px 80px }

.auth .card { text-align: left; padding: 30px }

.auth h1 { font-size: 1.8rem; margin-bottom: 6px }

.auth form { margin-top: 14px }

.auth .button.primary { margin-left: 0; width: 100%; text-align: center }

.auth .divider { margin: 22px 0; text-align: center; color: var(--ink-svag); font-size: .9rem }

.auth .muted { color: var(--ink-svag); font-size: .92rem; margin-top: 14px; text-align: center }

footer {
  background: var(--sky-top);
  color: #fff;
  text-align: center;
  padding: 46px 20px 56px;
  margin-top: 70px
}

footer .ps { opacity: .85; font-style: italic; margin-top: 10px; font-size: .95rem }

footer .greeting { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.2rem; margin-top: 16px }
