/* Brisbane Latino – Guest lists */
:root {
  --cobalt: #1813CC;
  --cream: #F1EEE7;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Home: Brisbane Latino colours */
  --bg: var(--cream);
  --ink: #17154A;
  --muted: #5A587A;
  --line: rgba(23, 21, 74, .22);
  --brand: var(--cobalt);          /* Brisbane Latino logo colour */
  --btn-bg: var(--cobalt);
  --btn-ink: #FFFFFF;
  --btn-hover: #110D9C;
  --field: rgba(255, 255, 255, .55);
  --focus: rgba(24, 19, 204, .25);
  --pass-bg: #FFFFFF;
  --pass-ink: var(--cobalt);
  --pass-muted: #4A47A8;
  --error: #B3261E;
}

/* The Met Fridays: silver + graphite */
body.met {
  --bg: #D7D6D2;
  --ink: #2A2A2A;
  --muted: #5F5D59;
  --line: rgba(42, 42, 42, .30);
  --brand: #2A2A2A;
  --btn-bg: #2A2A2A;
  --btn-ink: #F2F1EE;
  --btn-hover: #000000;
  --field: rgba(255, 255, 255, .45);
  --focus: rgba(42, 42, 42, .22);
  --pass-bg: #EEEDE9;
  --pass-ink: #2A2A2A;
  --pass-muted: #5F5D59;
}

/* Ritmo: black + white */
body.ritmo {
  --bg: #000000;
  --ink: #FFFFFF;
  --muted: #A9A9B2;
  --line: rgba(255, 255, 255, .28);
  --brand: #FFFFFF;
  --btn-bg: #FFFFFF;
  --btn-ink: #000000;
  --btn-hover: #DADADA;
  --field: rgba(255, 255, 255, .07);
  --focus: rgba(255, 255, 255, .30);
  --pass-bg: #FFFFFF;
  --pass-ink: #000000;
  --pass-muted: #555555;
  --error: #FF8A80;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
.wrap { max-width: 460px; margin: 0 auto; padding: 0 22px; }
.bl { color: var(--brand); display: block; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 34px 0 8px; }
.event-logo {
  margin: 0 auto;
  background: var(--ink);
  -webkit-mask: var(--mask) center / contain no-repeat;
          mask: var(--mask) center / contain no-repeat;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
body.met .event-logo   { --mask: url('met.png');   width: min(230px, 62vw); aspect-ratio: 480 / 451; }
body.ritmo .event-logo { --mask: url('ritmo.png'); width: min(280px, 74vw); aspect-ratio: 480 / 200; margin-top: 26px; margin-bottom: 10px; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 13vw, 58px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 22px 0 10px;
}
.host { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.host .bl { width: 92px; height: 61px; }
.lead { font-size: 17px; margin: 14px auto 0; max-width: 32ch; }

/* ---------- prices by arrival time ---------- */
.prices { margin: 30px 0 4px; }
.prices-title { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.timeline { display: grid; grid-template-columns: repeat(var(--n), 1fr); border-top: 1px solid var(--ink); }
.tick { padding: 12px 10px 0 0; position: relative; }
.tick::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tick:first-child::before { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
.tick .amount { display: block; font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.tick .when { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }

/* ---------- form ---------- */
form { margin: 34px 0 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input {
  width: 100%;
  font: 400 17px/1.3 var(--sans);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
          appearance: none;
}
input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { font-size: 14px; color: var(--error); margin: 4px 0 14px; min-height: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: block; width: 100%;
  font: 600 17px/1 var(--sans);
  color: var(--btn-ink); background: var(--btn-bg);
  border: 0; border-radius: 999px;
  padding: 19px 22px; margin-top: 8px;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.985); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* ---------- confirmation pass ---------- */
.done { display: none; padding: 26px 0 0; }
.is-done .done { display: block; }
.is-done form, .is-done .prices, .is-done .hero h1, .is-done .hero .host, .is-done .hero .lead { display: none; }
.pass {
  background: var(--pass-bg); color: var(--pass-ink);
  border-radius: 22px; padding: 26px 24px 28px;
  text-align: center;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.pass .bl { color: var(--pass-ink); width: 120px; height: 80px; margin: 0 auto; }
.pass .status { font-size: 15px; color: var(--pass-muted); margin: 10px 0 2px; }
.pass .name { font-family: var(--serif); font-size: clamp(42px, 12vw, 60px); line-height: 1; margin: 6px 0 4px; overflow-wrap: anywhere; }
.pass .event { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.25; margin: 0; }
.pass hr { border: 0; border-top: 1px dashed currentColor; opacity: .35; margin: 22px -24px; }
.pass .id { font-size: 15px; margin: 0; }
.done .btn { margin-top: 20px; }
.done .again { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- home ---------- */
.top { display: flex; justify-content: center; padding: 26px 0 6px; }
.top .bl { width: 108px; height: 72px; }
.home-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 11vw, 52px); line-height: 1.05; text-align: center; margin: 8px 0 26px; }
.tiles { display: grid; gap: 14px; }
.tile { display: block; border-radius: 22px; padding: 26px 22px 20px; text-decoration: none; transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile .logo { margin: 0 auto 14px; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.tile .cta { display: block; text-align: center; font-weight: 500; }
.tile.met { background: #D7D6D2; color: #2A2A2A; }
.tile.met .logo { --mask: url('met.png'); background: #2A2A2A; width: 150px; aspect-ratio: 480 / 451; }
.tile.ritmo { background: #000; color: #fff; }
.tile.ritmo .logo { --mask: url('ritmo.png'); background: #fff; width: 200px; aspect-ratio: 480 / 200; margin-top: 16px; margin-bottom: 22px; }

/* ---------- footer ---------- */
footer { padding: 46px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.badge { width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid var(--brand); display: grid; place-items: center; }
.badge .bl { width: 64px; height: 43px; }
footer a { font-size: 14px; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .row { grid-template-columns: 1fr; gap: 0; } }
