:root {
  --cream: #efe4d8;
  --burgundy: #54243d;
  --burgundy-dark: #381427;
  --blue: #123cf0;
  --ink: #2d1723;
  --line: rgba(84, 36, 61, .22);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--cream); }

body {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow-x: hidden;
  padding: clamp(1.1rem, 2.8vw, 2.5rem) clamp(1.15rem, 4.5vw, 4.5rem) clamp(1rem, 2.2vw, 2rem);
  background: radial-gradient(circle at 18% 16%, rgba(255,255,255,.34), transparent 34%), var(--cream);
}

.texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.topbar,
.footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  padding-bottom: clamp(.9rem, 1.7vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  animation: reveal .7s .05s ease-out both;
}

.brand {
  display: block;
  width: clamp(7.8rem, 11vw, 10.5rem);
  height: auto;
  mix-blend-mode: darken;
}

.location {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--burgundy);
  font: 600 .68rem/1 "Manrope", sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.location span { width: 2.8rem; height: 3px; background: var(--blue); }

.topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

.nets-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 2.35rem;
  padding: .65rem 1rem;
  color: var(--cream);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  font: 700 .7rem/1 "Chakra Petch", sans-serif;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nets-button:hover,
.nets-button:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, .95fr);
  align-items: start;
  min-height: 0;
}

.copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(2.5rem, 5vw, 5rem) 2rem clamp(2rem, 4vw, 4rem) 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.1rem;
  padding: .52rem .75rem .48rem;
  color: var(--cream);
  background: var(--burgundy);
  font: 600 clamp(.62rem, .85vw, .75rem)/1 "Manrope", sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  animation: pop .65s .2s cubic-bezier(.2,.9,.25,1.25) both;
}

h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--burgundy);
  font: 700 clamp(4.4rem, 9.2vw, 8.7rem)/.9 "Chakra Petch", sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
  animation: reveal .85s .27s cubic-bezier(.2,.8,.2,1) both;
}

h1 em {
  color: var(--blue);
  font-style: normal;
  white-space: nowrap;
}

.intro {
  margin: clamp(2.4rem, 4vw, 3.5rem) 0 .55rem;
  color: var(--burgundy);
  font: 700 clamp(1rem, 1.55vw, 1.3rem)/1.3 "Chakra Petch", sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  animation: reveal .75s .42s ease-out both;
}

.description {
  max-width: 35rem;
  margin: 0;
  color: rgba(45, 23, 35, .76);
  font-size: clamp(.86rem, 1.05vw, 1rem);
  line-height: 1.7;
  animation: reveal .75s .5s ease-out both;
}

.values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--burgundy);
  font: 600 .62rem/1 "Manrope", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: reveal .75s .66s ease-out both;
}

.values i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }

.visual {
  position: sticky;
  top: 1.5rem;
  min-height: min(44rem, calc(100svh - 9rem));
  align-self: start;
}

.visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 8%;
  bottom: 6%;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw .7s .85s ease-out forwards;
}

.mascot {
  position: absolute;
  z-index: 2;
  bottom: 4%;
  left: 50%;
  width: min(88%, 38rem);
  height: 88%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: darken;
  filter: saturate(1.04);
  transform: translateX(-50%);
  animation: mascot-in .95s .32s cubic-bezier(.2,.85,.22,1) both;
}

.footer {
  gap: 1.2rem;
  min-height: 2.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--burgundy);
  animation: reveal .7s .7s ease-out both;
}

.footer p,
.footer small {
  margin: 0;
  font: 600 .62rem/1 "Manrope", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.progress { flex: 1; max-width: 10rem; height: 3px; overflow: hidden; background: rgba(84,36,61,.18); }
.progress span { display: block; width: 68%; height: 100%; background: var(--blue); animation: load 1.25s .65s ease-out both; }

.payment-page {
  overflow-x: hidden;
}

.payment-shell {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) 0;
}

.payment-heading {
  display: grid;
  grid-template-columns: minmax(18rem, .85fr) minmax(18rem, .65fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.payment-heading .eyebrow {
  grid-column: 1 / -1;
  justify-self: start;
}

.payment-heading h1 {
  max-width: none;
  font-size: clamp(3.8rem, 7vw, 7rem);
}

.payment-heading > p:last-child {
  max-width: 32rem;
  margin: 0 0 .4rem;
  color: rgba(45, 23, 35, .76);
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.payment-widget {
  width: 100%;
  padding: clamp(1rem, 2.5vw, 2.5rem);
  overflow-x: auto;
  color: var(--ink);
  background: rgba(255, 255, 255, .48);
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1.5rem 4rem rgba(84, 36, 61, .08);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) rgba(84, 36, 61, .1);
  animation: reveal .75s .32s ease-out both;
}

.payment-widget :where(table, iframe, form) { max-width: 100%; }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: rotate(-1.5deg) scale(.78); } to { opacity: 1; transform: rotate(-1.5deg) scale(1); } }
@keyframes draw { to { transform: rotate(-1.2deg) scaleX(1); } }
@keyframes mascot-in { from { opacity: 0; transform: translate(-50%, 3rem) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(0); } }

@media (max-width: 820px) {
  .page { min-height: 100svh; }
  .hero { grid-template-columns: 1fr; }
  .copy { padding: 2.3rem 0 .4rem; }
  h1 { font-size: clamp(4.1rem, 18vw, 7rem); }
  .visual { position: relative; top: auto; min-height: clamp(20rem, 52vh, 33rem); }
  .mascot { height: 94%; width: min(88%, 31rem); bottom: 2%; }
  .visual::after { left: 10%; right: 10%; bottom: 4%; }
  .footer { margin-top: .75rem; }
  .payment-heading { grid-template-columns: 1fr; row-gap: 1.3rem; }
  .payment-heading h1 { font-size: clamp(3.7rem, 14vw, 6rem); }
}

@media (max-width: 500px) {
  .page { padding: .85rem 1rem 1rem; }
  .brand { width: 7.5rem; }
  .location span { width: 1.3rem; }
  .location { font-size: .56rem; letter-spacing: .12em; }
  .topbar-actions { gap: .5rem; }
  .nets-button, .back-link { min-width: 4.6rem; min-height: 2rem; padding: .5rem .75rem; font-size: .6rem; }
  .copy { padding-top: 1.8rem; }
  .description { line-height: 1.55; }
  .values { margin-top: 1.2rem; gap: .45rem; font-size: .54rem; }
  .visual { min-height: 20rem; }
  .payment-shell { padding: 2rem 0; }
  .payment-heading h1 em { white-space: normal; }
  .payment-widget { padding: .75rem; }
  .footer .progress { display: none; }
  .footer small { font-size: .52rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; }
}
