/*
 * Payment redirect landing pages — payments.board.fun
 *
 * Mirrors the Board web design tokens used by dev.board.fun and the
 * upload page so these landings feel like a Board product. Self-hosted
 * fonts so the page is fast on a phone with no CDN dependency.
 */

@font-face {
  font-family: 'ITC Kabel';
  src: url('/assets/fonts/itc-kabel_ultra.woff2') format('woff2'),
       url('/assets/fonts/itc-kabel_ultra.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('/assets/fonts/NeueHaasGroteskText-55Roman-Web.woff2') format('woff2'),
       url('/assets/fonts/NeueHaasGroteskText-55Roman-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('/assets/fonts/NeueHaasGroteskText-65Medium-Web.woff2') format('woff2'),
       url('/assets/fonts/NeueHaasGroteskText-65Medium-Web.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('/assets/fonts/NeueHaasGroteskText-75Bold-Web.woff2') format('woff2'),
       url('/assets/fonts/NeueHaasGroteskText-75Bold-Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffef1;
  --text: #000;
  --secondary-text: rgba(0, 0, 0, 0.55);
  --border: rgba(0, 0, 0, 0.15);
  --accent: #32c992;
  --purple: #6d13ec;

  --font-heading: 'ITC Kabel', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Neue Haas Grotesk Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  color-scheme: light;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  text-align: center;
}

/* Slightly larger reading column on wider viewports so the page doesn't
 * look stranded on a desktop; the layout is anchored center-screen and
 * extra width just adds breathing room. */
@media (min-width: 768px) {
  main {
    max-width: 32rem;
    padding: 4rem 2rem;
  }
}

.logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 3rem;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 0 0 0.75rem;
}

p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 18px;
  line-height: 1.5;
}

/* Status icon above the headline. Decorative — communicates outcome
 * at a glance, but the page text is the source of truth. Sized so it
 * reads as the visual anchor of the page, not as a small embellishment.
 */
.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1.75rem;
}

.status-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Success: mint fill, white glyph. The mint is brand-on, used for
 * accents elsewhere in the design system. */
.status-icon--success {
  background: var(--accent);
  color: #fff;
}

/* Cancelled: outlined neutral. Not red — "no charges were made" is
 * an informational outcome, not an error. */
.status-icon--cancelled {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--secondary-text);
}

/* Secondary call-to-action under the copy. These pages otherwise dead-end
 * on a phone tab the user has nothing to do with — the CTA gives the tab
 * a purpose without distracting from the primary "return to your Board"
 * message. Outlined rather than filled so it doesn't compete with the
 * status icon for visual weight. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--purple);
  background: transparent;
  border: 1.5px solid var(--purple);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover,
.cta:focus-visible {
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.cta:active {
  opacity: 0.9;
}

@media (max-width: 480px) {
  h1 { font-size: 32px; letter-spacing: -1px; }
  p { font-size: 17px; }
}
