/* Standalone styles for affiliate.goconvogo.com. Colours mirror aurora-web's default dark
   theme (web/aurora-web/src/styles.css) and the stickers site (web/stickers-web). */
:root {
  --bg-app: oklch(0.1787 0.0314 215.22);
  --bg-surface: oklch(0.2859 0.0503 215.22);
  --bg-surface-alt: oklch(0.3932 0.0691 215.22);
  --bg-glow: oklch(0.3331 0.1204 292.73 / 0.85);
  --border: rgb(6 182 212);
  --text-heading: oklch(0.9857 0.0063 215.22);
  --text-secondary: oklch(0.9144 0.0377 215.22);
  --text-muted: oklch(0.8574 0.0629 215.22);
  --accent-bright: oklch(0.8574 0.0629 215.22);
  --accent: rgb(6 182 212);
  --accent-text: oklch(0.1787 0.0314 215.22);
  --error-bg: oklch(0.3 0.09 25 / 0.55);
  --error-border: oklch(0.7 0.17 25);
  --success-border: oklch(0.78 0.16 150);

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-heading);
  background: var(--bg-surface);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top, 0px);
  background:
    radial-gradient(ellipse at 0% 0%, var(--bg-surface-alt) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, var(--bg-glow) 0%, transparent 65%),
    linear-gradient(var(--bg-app), var(--bg-app));
}

/* Column layout so the footer sits at the bottom of the viewport when the content is short. */
.affiliate-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.affiliate-page__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
}

.affiliate-page__brand {
  display: inline-flex;
  align-items: center;
}

.affiliate-page__logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
  aspect-ratio: 640 / 92;
  object-fit: contain;
}

.affiliate-page > section {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.affiliate-page > section:last-of-type {
  margin-bottom: 40px;
}

.affiliate-page h1,
.affiliate-page h2,
.affiliate-page h3 {
  margin: 0 0 12px;
  color: var(--text-heading);
}

.affiliate-page a {
  color: var(--accent-bright);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.affiliate-page__hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.affiliate-page__hero h1 {
  margin: 0;
  max-width: 900px;
  color: var(--accent-bright);
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  line-height: 1.15;
  text-wrap: balance;
}


.affiliate-page .affiliate-page__cta,
.affiliate-page__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(6 182 212 / 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.affiliate-page .affiliate-page__cta:hover,
.affiliate-page__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgb(6 182 212 / 0.4);
}

.affiliate-page .affiliate-page__cta:focus-visible,
.affiliate-page__submit:focus-visible,
.affiliate-page__field input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.affiliate-page__submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.affiliate-page__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.affiliate-page__benefit {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-surface);
}

.affiliate-page__benefit h3 {
  margin-bottom: 6px;
}

.affiliate-page__benefit p,
.affiliate-page__steps li {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.affiliate-page > .affiliate-page__apply {
  max-width: 720px;
  scroll-margin-top: 16px;
}

.affiliate-page__apply h2 {
  text-align: center;
}

.affiliate-page__steps {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 22px;
}

.affiliate-page__form,
.affiliate-page__verified {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-surface);
}

.affiliate-page__field {
  display: grid;
  gap: 6px;
}

.affiliate-page__field label {
  color: var(--text-heading);
  font-weight: 600;
}

.affiliate-page__field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--bg-surface-alt);
  border-radius: 10px;
  background: var(--bg-app);
  color: var(--text-heading);
  font: inherit;
}

#affiliate-referral {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#affiliate-referral::placeholder {
  letter-spacing: normal;
  text-transform: none;
}

.affiliate-page__message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--error-border);
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--text-heading);
  line-height: 1.5;
}

.affiliate-page__verified {
  justify-items: center;
  border-color: var(--success-border);
  text-align: center;
}

.affiliate-page__verified:focus {
  outline: none;
}

.affiliate-page__verified h3 {
  margin: 0;
}

.affiliate-page__verified p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.affiliate-page__verified strong {
  color: var(--text-heading);
  overflow-wrap: anywhere;
}

.affiliate-page__support {
  margin: 20px 0 0;
  color: var(--text-secondary);
  text-align: center;
}

.site-footer {
  width: max-content;
  max-width: 100%;
  margin: auto auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer__text {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.affiliate-page .site-footer__link {
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .affiliate-page > section {
    padding: 28px 16px 0;
  }

  .affiliate-page__benefits {
    grid-template-columns: 1fr;
  }

  .affiliate-page__form,
  .affiliate-page__verified {
    padding: 18px;
  }

  .affiliate-page__submit {
    width: 100%;
  }

  .site-footer__links {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-page .affiliate-page__cta,
  .affiliate-page__submit {
    transition: none;
  }

  .affiliate-page .affiliate-page__cta:hover,
  .affiliate-page__submit:hover:not(:disabled) {
    transform: none;
  }
}
