/*
  ORION DESIGN TOKENS
  Edit colours, type, spacing and the approved hero crop here.
*/
:root {
  --forest: #123d32;
  --forest-deep: #0a2d25;
  --off-white: #fafcfa;
  --lime: #d7f75b;
  --lime-hover: #c9ed3e;
  --main-text: #172c24;
  --secondary-text: #526057;
  --pyramid-fill: #123d32;
  --pyramid-border: #777f79;
  --tier-top: #ff7065;
  --tier-middle: #ff9257;
  --tier-bottom: #f5d75b;
  --line: #d7ddd9;
  --white: #ffffff;
  --focus: #f5d75b;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --page-width: 1120px;
  --hero-image-position: 50% 48%;
  --button-radius: 10px;
  --input-radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #eef2ef;
  color: var(--main-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--button-radius);
  background: var(--white);
  color: var(--forest-deep);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--off-white);
  box-shadow: 0 18px 60px rgb(10 45 37 / 12%);
}

.page-width {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "calt" 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  color: var(--forest);
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
}

p {
  margin-top: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--button-radius);
  padding: 0 var(--space-6);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button--lime {
  background: var(--lime);
  color: #17321f;
  box-shadow: 0 8px 22px rgb(10 45 37 / 18%);
}

.button--lime:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: var(--hero-image-position);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(4 25 20 / 84%) 0%, rgb(5 29 23 / 66%) 28%, rgb(5 29 23 / 20%) 54%, transparent 72%),
    linear-gradient(0deg, rgb(6 31 25 / 34%) 0%, transparent 46%);
}

.hero__inner {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  padding-block: var(--space-8) var(--space-16);
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.coming-soon {
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 999px;
  background: rgb(9 42 34 / 55%);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.coming-soon {
  padding: var(--space-2) var(--space-4);
}

.hero__copy {
  width: min(620px, 74%);
  margin-top: auto;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(3.25rem, 6.5vw, 6.5rem);
  text-wrap: balance;
}

.hero__support {
  max-width: 450px;
  margin: var(--space-6) 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
}

/* How it works */
.how-it-works {
  padding: 56px 0 var(--space-12);
  background: var(--off-white);
}

.how-it-works .page-width {
  --page-width: 1280px;
}

.how-it-works h2 {
  margin-bottom: 40px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  min-width: 0;
  padding: 0 var(--space-4);
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step h3 {
  margin: 0 0 var(--space-4);
  color: var(--main-text);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.25;
}

.step__number {
  margin-right: var(--space-2);
  color: var(--forest);
  font-weight: 800;
}

.step > p:not(.tier-caption) {
  min-height: 72px;
  margin-bottom: var(--space-2);
  color: var(--secondary-text);
  text-align: center;
}

.integration-lockup {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

@media (min-width: 769px) {
  .step:first-child .integration-lockup {
    transform: translateX(calc(var(--space-4) / 2));
  }
}

.reward-brands-lockup {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.reward-tiers {
  display: flex;
  width: min(100%, 260px);
  min-height: 188px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
}

.reward-tier {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--pyramid-border);
  border-radius: 8px;
  padding: 6px var(--space-2);
  background: var(--pyramid-fill);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
}

.reward-tier--top {
  width: 45%;
  color: var(--tier-top);
}

.reward-tier--middle {
  width: 72%;
  color: var(--tier-middle);
}

.reward-tier--bottom {
  width: 100%;
  color: var(--tier-bottom);
}

.tier-threshold {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.tier-caption {
  max-width: 280px;
  margin: var(--space-3) auto 0;
  color: #46534c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.checkout-visual {
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.step--redeem .checkout-visual {
  margin-top: 0;
}

.disclaimer {
  max-width: 860px;
  margin: var(--space-8) auto 0;
  border: 1px solid #c9d5cf;
  border-left: 5px solid var(--lime);
  border-radius: 0 10px 10px 0;
  padding: var(--space-4) var(--space-6);
  background: #eff4f1;
  color: #3d4a43;
  font-size: 0.9rem;
  box-shadow: 0 8px 22px rgb(10 45 37 / 6%);
}

/* Waitlist */
.waitlist {
  padding: var(--space-16) 0;
  background: var(--forest);
  color: var(--white);
}

.waitlist__inner {
  max-width: 790px;
  text-align: center;
}

.waitlist h2 {
  color: var(--white);
}

.waitlist h2 + p {
  margin: var(--space-3) 0 var(--space-8);
  color: #dce8e3;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-3);
}

.field {
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: var(--input-radius);
  padding: 0 var(--space-4);
  background: var(--white);
  color: var(--main-text);
}

.field input[aria-invalid="true"] {
  border-color: #ff998f;
}

.waitlist-form .button {
  min-height: 52px;
}

.form-status {
  min-height: 25px;
  margin: var(--space-3) 0 0;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status[data-kind="error"] {
  color: #ffd2cd;
}

.form-status[data-kind="success"] {
  color: var(--lime);
}

.preview-note {
  margin: var(--space-3) 0 0;
  color: #dce8e3;
  font-size: 0.875rem;
}

/* Breakpoint: tablet and below (768px) */
@media (max-width: 768px) {
  .page-width {
    width: min(calc(100% - 40px), var(--page-width));
  }

  .hero {
    min-height: 620px;
  }

  .hero__inner {
    min-height: 620px;
    padding-block: var(--space-6) var(--space-12);
  }

  .hero__copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: var(--space-6) 0;
  }

  .step:first-child {
    padding-top: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step + .step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step > p:not(.tier-caption) {
    min-height: 0;
  }

  .checkout-visual {
    width: min(100%, 280px);
  }

  .reward-tiers {
    width: min(100%, 320px);
  }

  .integration-lockup {
    width: min(100%, 320px);
  }

  .reward-brands-lockup {
    width: min(100%, 320px);
  }

  .disclaimer {
    margin-top: var(--space-6);
  }
}

/* Breakpoint: wide desktop (1100px) */
@media (min-width: 1100px) {
  .hero__copy {
    margin-bottom: var(--space-4);
  }

  .how-it-works {
    padding: 56px 0 var(--space-12);
  }
}

@media (max-width: 520px) {
  .page-width {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .hero {
    min-height: 650px;
  }

  .hero__inner {
    min-height: 650px;
  }

  .wordmark {
    font-size: 1.65rem;
  }

  .coming-soon {
    padding-inline: var(--space-3);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgb(4 25 20 / 96%) 0%, rgb(5 29 23 / 78%) 52%, rgb(5 29 23 / 24%) 73%, transparent 86%),
      linear-gradient(90deg, rgb(4 25 20 / 34%) 0%, transparent 74%);
  }

  .hero__image {
    object-position: 50% 48%;
  }

  .how-it-works {
    padding-block: var(--space-12);
  }

  .how-it-works h2 {
    margin-bottom: var(--space-6);
  }

  .brand-list {
    width: 100%;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .waitlist-form .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
