:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #101a2b;
  --ink-soft: #4a5568;
  --line: #e2e8f0;
  --primary: #1d5fd1;
  --primary-ink: #ffffff;
  --primary-soft: #e8f0fd;
  --radius: 16px;
  --tap: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

.app {
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px env(safe-area-inset-bottom);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  height: 56px;
  margin: 0 -20px;
  padding: 0 12px;
  background: var(--bg);
}
.brand {
  grid-column: 2;
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--primary);
}
.back {
  grid-column: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.back:active { background: var(--line); }
.progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width .3s ease;
}

main { flex: 1; display: flex; }

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0 24px;
  animation: enter .25s ease both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

h1, h2 { margin: 0 0 12px; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 23px; font-weight: 700; }
.lead { margin: 0 0 12px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Intro: brand-dark first screen, same look as the BREON brandbook */
body.dark {
  background: radial-gradient(130% 55% at 50% 0%, #10275c 0%, #050b1c 60%) #050b1c;
  color: #fff;
}
body.dark .topbar { background: transparent; }
body.dark .brand { color: #fff; }
body.dark h1 { color: #fff; }
body.dark .lead { color: #b9c5de; }
body.dark .hint { color: #8fa3c7; }
body.dark .foot a { color: #7f93b8; }
.hero-media { margin: 0 -20px 18px; }
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 36svh;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
}

/* Product imagery inside dark cards (pitch, price) */
.media-card {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #133376 0%, #050b1c 72%);
  box-shadow: 0 16px 34px rgba(5, 11, 28, .28);
}
.media-device img { display: block; height: min(30svh, 250px); width: auto; padding: 10px 0; box-sizing: content-box; }
.media-kit img { display: block; width: 100%; height: auto; }

/* Primary CTA: always reachable at the bottom of the screen */
.cta {
  margin-top: auto;
  width: 100%;
  min-height: var(--tap);
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2f7bff 0%, #1d5fd1 100%);
  color: var(--primary-ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(47, 123, 255, .38);
  transition: transform .1s ease, filter .1s ease;
}
.cta:active { transform: scale(.98); filter: brightness(.95); }
.cta:focus-visible, .option:focus-visible, .back:focus-visible { outline: 3px solid #9cbcf3; outline-offset: 2px; }

/* Quiz options */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.option {
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option:active { background: var(--primary-soft); }
.option[aria-checked="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.meta-line {
  margin: 8px 0 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* Prices */
.prices { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 10px; }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.prices .name { font-weight: 600; }
.prices .amount { font-size: 22px; font-weight: 750; white-space: nowrap; }

.foot { padding: 8px 0 16px; text-align: center; font-size: 13px; }
.foot a { color: var(--ink-soft); }
.noscript { padding: 20px; text-align: center; }

@media (min-width: 481px) {
  .screen { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress span { transition: none; }
}
.meta-line span { white-space: nowrap; }

/* Calendar */
.tz-note { margin: -4px 0 16px; font-size: 14px; color: var(--ink-soft); }
.calendar { display: grid; gap: 20px; }
.cal-day h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.cal-day h3 small { margin-left: 6px; font-weight: 500; color: var(--ink-soft); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.slot:active, .slot[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.slot:focus-visible, .secondary:focus-visible, .link-btn:focus-visible { outline: 3px solid #9cbcf3; outline-offset: 2px; }
.cal-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 24px 0 8px; }
.secondary {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.link-btn { border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 15px; padding: 8px; cursor: pointer; }
.cal-empty, .cal-loading { color: var(--ink-soft); }
.cal-loading { min-height: 120px; }
.chosen {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

/* Contact form */
.form { display: flex; flex-direction: column; flex: 1; gap: 14px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 15px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input {
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px; /* >=16px prevents iOS zoom on focus */
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field.invalid input { border-color: #c53030; }
.err { display: none; color: #c53030; font-size: 14px; }
.invalid .err, .err.show { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); }
.consent a { color: var(--ink-soft); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #9b2c2c; font-size: 15px; }
.form .cta { margin-top: auto; }
.cta[disabled] { opacity: .6; cursor: progress; }

/* Confirmation page */
.btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.done-mark {
  width: 52px; height: 52px; margin: 8px 0 16px;
  display: grid; place-items: center;
  border-radius: 50%; background: #e6f6ec; color: #1f8a4c;
}
.booked-title { font-size: 25px; }
.when { margin: 8px 0 12px; padding: 4px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.when div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.when div:last-child { border-bottom: 0; }
.when dt { color: var(--ink-soft); font-size: 15px; }
.when dd { margin: 0; font-weight: 600; text-align: right; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.actions-title, .prep-title { margin: 0; font-size: 15px; font-weight: 700; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-2 .secondary { font-size: 15px; }
.actions .cta { margin-top: 0; text-transform: none; letter-spacing: 0; }
.msg-wa { background: #1f8a4c; box-shadow: 0 8px 20px rgba(31, 138, 76, .25); }
.hint-small { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.prep { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--primary-soft); }

/* Cookie banner: compact, never covers the main CTA (body gets extra bottom space) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-width: 480px; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(16, 26, 43, .08);
  font-size: 13px; line-height: 1.45; color: var(--ink-soft);
}
.cookie-banner p { margin: 0 0 8px; }
.cookie-banner a { color: var(--ink-soft); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-btn {
  min-height: 40px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
/* While the banner is open the app shrinks above it, so the main CTA stays visible */
body.has-banner .app { min-height: calc(100svh - var(--banner-h, 120px)); }
body.has-banner { padding-bottom: var(--banner-h, 120px); }
body.has-banner .hero-img { max-height: 25svh; }
.foot a + a { margin-left: 12px; }

/* Legal page */
.legal { font-size: 15px; }
.legal h1 { font-size: 24px; }
.legal h2 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; margin: 0 0 8px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--primary); }

.brand sup { font-size: 8px; vertical-align: 6px; margin-left: 1px; }
.brand b { color: #4d8dff; font-weight: 700; }
/* Blend the photo's own dark background into the card */
.media-device img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
}

/* Phone: country code picker + national number */
.phone-row { display: flex; gap: 8px; }
.phone-row select {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 8px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.phone-row input { flex: 1; min-width: 0; }
.field.invalid .phone-row select { border-color: #c53030; }

/* Confirmation: the messenger step is the main action (it drives attendance) */
.confirm-box {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px; padding: 16px;
  border-radius: 16px; background: #e9f7ef; border: 1px solid #bfe6cf;
}
.confirm-title { margin: 0; font-size: 17px; font-weight: 700; }
.hint-small.left { text-align: left; }
.confirm-box .cta { margin-top: 2px; text-transform: none; letter-spacing: 0; font-size: 16px; }
.confirm-box .secondary { background: var(--surface); }
.confirm-box .cta, .confirm-box .secondary { font-size: 15px; padding: 0 10px; white-space: nowrap; }
@media (max-width: 350px) { .confirm-box .cta, .confirm-box .secondary { white-space: normal; } }
