/* ===== Brand fonts (bundled locally — the kiosk must not depend on a CDN) ===== */
@font-face {
  font-family: "Montserrat";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
}

/* ===== Design tokens (colors sampled from the CTA mockup) ===== */
:root {
  --bg: #b8eff0;          /* light aqua background */
  --ink: #16414e;         /* dark teal text / borders / buttons */
  --ink-soft: #2b5a68;
  --white: #ffffff;
  --accent: #19b3b8;      /* SurveyMonkey-ish teal for highlights */
  --danger: #c0392b;
  --radius: 18px;
  --font-display: "Montserrat", "Trebuchet MS", "Segoe UI", sans-serif;
  --font: "Work Sans", "Segoe UI", Verdana, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* display rules below must never beat the hidden attribute */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  /* kiosk: no text selection, no touch callouts */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button { font-family: inherit; cursor: pointer; }

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ===== Shared buttons ===== */
.cta-button {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7em 1.6em;
  box-shadow: 0 6px 18px rgba(22, 65, 78, 0.35);
}
.cta-button:active { transform: scale(0.97); }
.cta-small { font-size: 1.15rem; }

.bar-button {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5em 1em;
}

/* ===== Thank-you stage ===== */
.stage-thanks {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.thanks-card { text-align: center; animation: pop-in 0.45s ease-out; }
.thanks-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0.4em 0 0.2em;
}
.thanks-card p { font-size: clamp(1.2rem, 3vw, 1.8rem); margin: 0; color: var(--ink-soft); }
.thanks-check {
  width: 6.5rem; height: 6.5rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 4rem;
  line-height: 6.5rem;
  text-align: center;
}
@keyframes pop-in {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Overlays ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 65, 78, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.overlay-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: min(34rem, 90vw);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.overlay-card h2 { margin-top: 0; }

