/* ─── Web fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'Suisse Int\'l';
  src: url('/assets/fonts/SuisseIntl-Regular-WebM.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Int\'l';
  src: url('/assets/fonts/SuisseIntl-Medium-WebM.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura Passata';
  src: url('/assets/fonts/FuturaPassata-DISPLAY.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ─── Design tokens ──────────────────────────────────── */
:root {
  --bg:          #31021D;
  --purple-100:  #4C042D;
  --pink-100:    #FE8E9F;
  --pink-70:     #FEB0BC;
  --white:       #FFFFFF;
  --purple-70:   #8A4C6D;
  --purple-50:   #A58196;
  --purple-30:   #C9B4C0;
  --purple-20:   #DBCDD5;
  --purple-10:   #EDE6EA;
  --text-light:  #FCE7EC;
  --card-bg:     #FAF7F9;

  /* Typography */
  --font-display: 'Futura Passata', 'Futura', 'Trebuchet MS', Georgia, serif;
  --font-body:    'Suisse Int\'l', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-light);
  min-height: 100vh;
}

/* ─── Header ─────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--pink-100);
}

/* ─── Language switch ────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.lang-link {
  color: var(--purple-50);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.lang-link:hover { color: var(--pink-100); }

.lang-link--active {
  color: var(--pink-100);
}

.lang-divider {
  color: var(--purple-50);
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 6px;
  border: 1px solid var(--purple-100);
  background: var(--purple-100);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 48px;
  overflow: hidden;
}

.hero-line-art {
  position: absolute;
  top: -8px;
  left: 42%;
  width: 996px;
  height: 690px;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
  max-width: 757px;
}

.headline-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 64px;
  color: var(--pink-100);
}

.hero-subheadline {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-light);
}

.hero-secondary {
  font-size: 16px;
  line-height: 24px;
  color: var(--purple-30);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-secondary {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--pink-100);
  text-decoration: underline;
}

.cta-secondary:hover { opacity: 0.8; }

/* hero visual card */
.hero-visual {
  flex-shrink: 0;
  width: 520px;
  height: 520px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-visual-card {
  background: var(--purple-100);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-visual-card img {
  width: 64px;
  height: 64px;
}

.hero-pay {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--pink-100);
  white-space: nowrap;
}

/* ─── Contact form section ──────────────────────────── */
.contact-section {
  padding: 48px 48px 96px;
  display: none;
  justify-content: center;
  scroll-margin-top: 24px;
}

.contact-section:target {
  display: flex;
}

.contact-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 0.1px 0.2px rgba(76, 4, 45, 0.04),
    0 0.2px 0.7px rgba(76, 4, 45, 0.06),
    0 1px 3px rgba(76, 4, 45, 0.1);
}

.contact-card h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 31px;
  color: var(--purple-100);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--purple-100);
}

.form-field input {
  border: 1px solid var(--purple-20);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--purple-100);
  background: var(--white);
  font-family: var(--font-body);
  width: 100%;
}

.form-field input::placeholder { color: var(--purple-50); }
.form-field input:focus {
  outline: 3px solid rgba(142, 153, 254, 0.5);
  outline-offset: 0;
  border-color: #8E99FE;
}

.contact-submit {
  align-self: flex-end;
  padding: 16px 32px;
  border-radius: 6px;
  background: var(--pink-70);
  border: 1px solid var(--pink-70);
  color: var(--purple-100);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.contact-submit:hover { opacity: 0.85; }
.contact-submit:disabled { opacity: 0.5; cursor: wait; }

.form-status {
  min-height: 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--purple-70);
}

.form-status--success { color: var(--purple-100); }
.form-status--error { color: #B3261E; }

/* ─── Below-fold ─────────────────────────────────────── */
.below-fold {
  background: var(--purple-100);
  padding: 96px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.below-fold h2 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 64px;
  color: var(--pink-100);
  text-align: center;
  max-width: 1341px;
}

/* ─── Transaction widget overrides ──────────────────── */
#checkin_transaction_lookup {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 492px;
}

#checkin_transaction_lookup .form-container {
  background-color: transparent !important;
}

#checkin_transaction_lookup .transaction-lookup-container {
  background-color: transparent !important;
}

#checkin_transaction_lookup .ch-searchFilter {
  max-width: none;
}

#checkin_transaction_lookup .checkin-input,
#checkin_transaction_lookup .checkin-picker-input > input {
  border: 1px solid var(--purple-20) !important;
  border-radius: 6px;
}

#checkin_transaction_lookup .checkin-select-selector {
  border-color: var(--purple-20);
  border-radius: 6px;
}

#checkin_transaction_lookup .checkin-btn--primary {
  background-color: var(--purple-100);
  color: var(--white);
  border-radius: 6px;
  width: 100%;
  height: 3.25rem;
}

#checkin_transaction_lookup .checkin-btn--primary:hover {
  background-color: var(--purple-100);
  opacity: 0.85;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 8px;
}

footer p {
  font-size: 16px;
  line-height: 24px;
  color: var(--pink-100);
  text-align: center;
}

/* ─── Consent banner ─────────────────────────────────── */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--purple-100);
  border: 1px solid var(--purple-70);
  border-radius: 12px;
  padding: 20px 24px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.consent-banner[data-visible="true"] { display: flex; }

.consent-banner p {
  flex: 1 1 220px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-light);
  margin: 0;
}

.consent-banner a {
  color: var(--pink-100);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}

.consent-btn:hover { opacity: 0.85; }

.consent-btn--accept {
  background: var(--pink-100);
  color: var(--purple-100);
}

.consent-btn--reject {
  background: transparent;
  color: var(--text-light);
  border-color: var(--purple-70);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  header { padding: 24px 20px 16px; }
  .logo { font-size: 28px; }

  .hero {
    flex-direction: column-reverse;
    padding: 24px 20px 40px;
    gap: 24px;
  }

  .hero-line-art {
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
    width: 100%;
    height: 30%;
  }

  .hero-visual {
    width: 100%;
    height: auto;
    padding: 24px;
  }

  .hero-visual-card {
    padding: 24px;
    gap: 16px;
  }

  .hero-visual-card img { width: 48px; height: 48px; }
  .hero-pay { font-size: 48px; }

  .contact-section { padding: 24px 20px 48px; }
  .contact-card { padding: 24px; }
  .contact-submit { align-self: stretch; }

  h1 { font-size: 40px; line-height: 48px; }
  .hero-subheadline { font-size: 16px; line-height: 24px; }
  .hero-secondary { font-size: 14px; line-height: 20px; }

  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn.btn-hero { width: 100%; text-align: center; }
  .cta-secondary { font-size: 14px; line-height: 20px; }

  .below-fold { padding: 48px 20px; gap: 32px; }
  .below-fold h2 { font-size: 32px; line-height: 40px; }
}
