/* RegPoint — regpoint.events
   Tokens follow design/DESIGN.md §2. Five palette values plus the one derived
   secondary (navy @70% on white). No other hues, no gradients. */

:root {
  --white: #FFFFFF;
  --platinum: #E5E5E5;
  --orange: #FCA311;
  --navy: #14213D;
  --black: #000000;

  /* Only derived value DESIGN.md permits: navy @70% on white. */
  --muted: #5B6477;
  /* Hover state of the orange CTA (from the approved mockup). */
  --orange-hover: #E8940D;

  /* Quiet section separation. DESIGN.md assigns this role to platinum;
     switch this one line to restore the mockup's #F8F7F4 band if wanted. */
  --band: var(--platinum);

  /* Functional form signals — deliberately outside the brand palette. */
  --ok-bg: #ECFDF3;
  --ok-border: #ABEFC6;
  --ok-text: #067647;
  --err-bg: #FEF3F2;
  --err-border: #FECDCA;
  --err-text: #B42318;

  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Space Grotesk', 'Manrope', system-ui, sans-serif;

  --wrap: 1140px;
  --gutter: 24px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 24px 48px rgba(20, 33, 61, 0.18);
}

/* ------------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/1.65 var(--font-body);
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: pretty; margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--navy); }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
/* A 3:1 focus indicator has to flip to orange on navy surfaces. */
.card--dark :focus-visible,
.phone :focus-visible { outline-color: var(--orange); }

.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--white);
  font: 600 15px var(--font-body);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-btn) 0;
  text-decoration: none;
}
.skiplink:focus { left: 0; color: var(--white); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section--narrow { max-width: 680px; margin-inline: auto; gap: 28px; }
.band { background: var(--band); }

.section__title {
  font: 700 clamp(26px, 3vw, 34px)/1.2 var(--font-display);
  letter-spacing: -0.015em;
}
.section__lead { font-size: 16.5px; color: var(--muted); }

/* ------------------------------------------------------------------- logo */

.mark { width: 1em; height: 1em; display: block; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo__mark { color: var(--orange); font-size: 28px; display: flex; }

.wordmark {
  font: 700 21px/1 var(--font-brand);
  letter-spacing: -0.01em;
  color: var(--navy);
}
.wordmark__i { position: relative; display: inline-block; }
.wordmark__dot {
  position: absolute;
  left: 50%;
  top: 0.09em;
  width: 0.14em;
  height: 0.14em;
  margin-left: -0.07em;
  border-radius: 50%;
  background: var(--orange);
}
.logo--sm .logo__mark { font-size: 20px; }
.logo--sm .wordmark { font-size: 16px; }

/* ----------------------------------------------------------------- header */

.header__inner {
  padding-block: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.langswitch { display: flex; gap: 2px; }
.lang {
  font: 600 13px var(--font-body);
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.lang:hover { color: var(--navy); background: var(--platinum); }
.lang--on { background: var(--navy); color: var(--white); }

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

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-btn);
  font: 700 16px var(--font-body);
  text-decoration: none;
  padding: 14px 28px;
  cursor: pointer;
}
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-hover); color: var(--navy); }
/* The contact section sits on a platinum band, so a platinum disabled button
   would disappear into it. White + an inset hairline keeps it readable as a
   button; inset rather than a real border so toggling causes no layout shift. */
.btn--primary[disabled] {
  background: var(--white);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--muted);
  cursor: not-allowed;
}
.btn--sm { font-size: 14px; padding: 10px 18px; }

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

.hero__inner {
  padding-block: clamp(48px, 7vw, 88px);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero__text {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__title {
  font: 800 clamp(34px, 4.6vw, 54px)/1.12 var(--font-display);
  letter-spacing: -0.02em;
}
.hero__lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero__visual { flex: 0 1 340px; display: flex; justify-content: center; margin-inline: auto; }

/* Phone + pass concept mockup (design fiction, per DESIGN.md §4.2). */
.phone {
  width: 290px;
  background: var(--navy);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-card);
}
.phone__screen {
  background: var(--platinum);
  border-radius: 28px;
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone__notch {
  width: 74px;
  height: 8px;
  border-radius: 4px;
  background: var(--navy);
  align-self: center;
}

.pass {
  background: var(--navy);
  border-radius: 16px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pass__brand { display: flex; align-items: center; gap: 8px; }
.pass__mark { color: var(--orange); font-size: 16px; display: flex; }
.pass__brandtext {
  font: 600 11px var(--font-body);
  letter-spacing: 0.06em;
  color: var(--platinum);
}
.pass__event { display: flex; flex-direction: column; gap: 3px; }
.pass__title { font: 700 18px/1.25 var(--font-display); color: var(--white); }
.pass__date { font: 400 12.5px var(--font-body); color: var(--platinum); }
.pass__meta { display: flex; gap: 18px; }
.pass__field { display: flex; flex-direction: column; gap: 2px; }
.pass__label {
  font: 500 10px var(--font-body);
  letter-spacing: 0.08em;
  color: var(--platinum);
}
.pass__value { font: 600 13px var(--font-body); color: var(--white); }
.pass__qrbox {
  background: var(--white);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: center;
}
.pass__qr { width: 120px; height: 120px; }
.pass__dots { display: flex; justify-content: center; gap: 6px; }
.pass__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--platinum);
  opacity: 0.45;
}
.pass__dot--on { background: var(--orange); opacity: 1; }

/* ------------------------------------------------------------------ steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
/* The checkpoint path — this page's signature motif. */
.step__path { display: flex; align-items: center; gap: 12px; }
.step__dot {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font: 700 16px var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__line { flex: 1; border-top: 3px dotted var(--orange); }
.step__end {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
}
.step__title { font: 700 19px/1.3 var(--font-display); }
.step__text { font-size: 15.5px; color: var(--muted); }

/* --------------------------------------------------------------- features */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--platinum);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__icon { color: var(--navy); display: flex; }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font: 700 18px/1.3 var(--font-display); }
.card__text { font-size: 15px; color: var(--muted); }

/* Zone check-in is the differentiator — extra weight via a navy fill, never orange. */
.card--dark { background: var(--navy); border-color: var(--navy); }
.card--dark .card__icon { color: var(--orange); }
.card--dark .card__title { color: var(--white); }
.card--dark .card__text { color: var(--platinum); }

/* Official Apple and Google wallet artwork. The RegPoint palette deliberately
   does not apply — their brand guidelines govern these, and both forbid any
   recoloring, re-typesetting, rotation, or added effects. Only the box around
   them is ours.
   Google: minimum height 48dp, minimum 8dp clear space, and equal to or larger
   than any other button on the page. Apple: clear space 0.1x badge height.
   A 16px gap gives each 8px, satisfying both. */
.badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.badge {
  height: 48px;
  width: auto;
  max-width: 100%;
  /* Load-bearing: with a fixed height, the global `img { max-width: 100% }`
     squashes these horizontally on narrow cards, and distorting the artwork is
     explicitly forbidden. `contain` scales it down proportionally instead. */
  object-fit: contain;
  object-position: left center;
  display: block;
}

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

.contact__head { display: flex; flex-direction: column; gap: 10px; }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 600 14px var(--font-body); color: var(--navy); }
.field__optional { font: 400 13px var(--font-body); color: var(--muted); }
.field__input {
  border: 1px solid var(--muted);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font: 400 16px var(--font-body);
  color: var(--navy);
  background: var(--white);
}
.field__input--area { resize: vertical; min-height: 110px; }
.field__input[aria-invalid="true"] { border-color: var(--err-text); }
.field__error { font: 400 13px var(--font-body); color: var(--err-text); }
.field__error:empty { display: none; }
/* Turnstile renders a 65px-tall iframe (flexible width); reserving the height
   keeps the form from jumping when it arrives. */
.turnstile { min-height: 65px; }

/* Native checkbox on purpose — keyboard, focus ring and screen-reader
   behaviour all come for free; only the accent colour is ours. */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font: 400 14.5px/1.55 var(--font-body);
  color: var(--muted);
}
.check__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.check__box[aria-invalid="true"] { outline: 2px solid var(--err-text); outline-offset: 1px; }
.check a { color: var(--navy); }

.alert {
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font: 400 15px/1.5 var(--font-body);
}
.alert--ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  font-weight: 500;
  font-size: 16px;
  padding: 20px 24px;
}
.alert--error { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); }

/* Honeypot — hidden from people, reachable by naive bots. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.footer { border-top: 1px solid var(--platinum); }
.footer__inner {
  padding-block: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font: 400 14px var(--font-body);
}
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--navy); text-decoration: underline; }
.footer__copy { color: var(--muted); }

/* ------------------------------------------------------------- prose page */

.prose { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.prose h1 { font: 800 clamp(30px, 4vw, 44px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.prose h2 { font: 700 clamp(20px, 2.4vw, 24px)/1.3 var(--font-display); margin-top: 20px; }
.prose p, .prose li { font-size: 16px; color: var(--muted); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--navy); }
.prose__updated { font: 400 14px var(--font-body); color: var(--muted); }
.prose__back { font: 600 15px var(--font-body); }

/* ----------------------------------------------------------------- reveal */

.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 768px) {
  body { font-size: 16px; }
  .header__inner { padding-block: 16px; }
  .hero__inner { gap: 36px; }
  .footer__links { margin-left: 0; gap: 16px; }
}

@media (max-width: 420px) {
  :root { --gutter: 20px; }
  .header__right { gap: 12px; }
  .btn { padding: 13px 22px; }
  .phone { width: 100%; max-width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal].is-in { transition: none; }
}
