/* ONIT — "Shabaka is now ONIT!" transition page
   Built from Figma "Shabaka-transition (Copy)":
   - Desktop: frame "ONIT – Web (1440)" (5:2)
   - Mobile:  frame "ONIT" (1:2), below 900px
*/

:root {
  --ink: #212529;
  --muted: #6b737a;
  --brand: #b5be34;          /* ONIT lime */
  --brand-dark: #9fa72a;
  --divider: #e5e8eb;
  --tag-ink: #2a2a2a;
  --page-dark: #1a1a1a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* mascot sizing (design: 323.706 x 230.346 on web) */
  --mascot-w: 323.706px;
}

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

html, body {
  height: 100%;
  overflow: hidden;             /* the page never scrolls */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-dark);
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }

/* ---------- page + blurred photo (always fills the screen) ---------- */

.page {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: -60px;                 /* bleed past the edges so the blur has no soft border */
  background: url("assets/Background_photo.jpg") center / cover no-repeat;
  /* filter: blur(19px); */
  transform: translateZ(0);
}

/* ---------- stage: the Figma frame at its exact size, scaled as one piece ----------
   Desktop = 1440 x 900, mobile = 372 x 714. script in index.html sets --s so the
   whole frame fits the screen; every margin, padding and gap keeps its ratio. */

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 900px;
  padding: 86px 120px 87px;     /* design: Content at x120 / y86, 1200 x 727 */
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  transform-origin: 50% 50%;
}

.page__content {
  position: relative;
  z-index: 1;
  width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- headline ---------- */

.headline {
  margin: 0;
  font-size: 80px;
  line-height: 84px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- card + mascot ---------- */

.card-wrap {
  position: relative;
  flex-shrink: 0;
  padding-top: 110px;           /* room for Ollie above the card */
}

.card {
  position: relative;
  width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 48px 40px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card__lead {
  width: 264px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 28px;                    /* the empty line between paragraphs */
  font-size: 18px;
  line-height: 28px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.card__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--divider);
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.qr {
  display: block;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
}

.qr-row__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.qr-row__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.qr-row__hint {
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

/* Ollie: two stacked SVG layers + the name-tag text */
.mascot {
  position: absolute;
  z-index: 2;
  top: 10px;                    /* design: 96px from frame top, card wrapper at 86px */
  left: 288.29px;               /* design: 1048.29 - 760 */
  width: var(--mascot-w);
  aspect-ratio: 323.706 / 230.346;
  pointer-events: none;
}
.mascot__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mascot__detail {
  position: absolute;
  inset: -0.56% -0.4% -0.57% -0.4%;
}
.mascot__detail img {
  display: block;
  width: 100%;
  height: 100%;
}
.mascot__tag {
  position: absolute;
  left: 61.47%;                 /* 198.98 / 323.706 */
  top: 53.92%;                  /* 124.20 / 230.346 */
  transform: translateX(-50%);
  font-size: calc(var(--mascot-w) * 0.02636);   /* 8.533px at full size */
  font-weight: 800;
  line-height: normal;
  color: var(--tag-ink);
  white-space: nowrap;
}

.only-mobile { display: none; }

/* ---------- mobile: frame "ONIT" (1:2), 372 x 714 ---------- */

@media (max-width: 899px) {
  :root { --mascot-w: 190.415px; }

  .stage {
    width: 372px;
    height: 714px;
    padding: 68px 25px 0;       /* design: headline at x25 / y68 */
    align-items: flex-start;
  }

  .page__bg {
    background-color: #14171a;
    background-position: 38% center;
    filter: blur(16px);         /* design: mobile background blur 16px */
  }

  .page__content {
    width: 322px;
    flex-direction: column;
    align-items: stretch;
  }

  .headline {
    font-size: 36.41px;
    line-height: 36.41px;
    white-space: normal;
    padding-left: 4px;
  }

  .card-wrap { padding-top: 90px; margin-top: -7px; }

  .card {
    width: 100%;
    gap: 24px;
    padding: 59px 24px 40px;    /* design: text starts below Ollie's hand */
    border-radius: 20px;
    box-shadow: none;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
  }

  .card__lead {
    width: auto;
    font-size: 16px;
    line-height: 24px;
  }

  .card__body {
    gap: 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
  }

  .mascot {
    --mascot-w: 190.415px;      /* design: Ollie is 190 x 135 on mobile */
    top: 0;
    left: auto;
    right: -17px;               /* design: Ollie overhangs the card's right edge */
  }

  .only-desktop { display: none; }
  .only-mobile { display: block; }
  .btn.only-mobile { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
