/* Fourth Page — how it works, and pricing.
   Sizes in vw against the 1611px-wide reference (1px = 0.062vw). */

/* min-height, not height. The section's content is sized in vw but the box
   was locked to the viewport height, so on a wide-but-short window (16:9
   laptops) the three rows needed more room than 100vh gave them, `.pricing`
   was squeezed to ~215px and the bonus card's `overflow: hidden` chopped off
   its "Claim" button and note entirely. Where the content fits — the 1611
   reference and anything taller — the box is still exactly 100vh and nothing
   moves; where it doesn't, the section grows instead of amputating itself.
   overflow stays hidden so the decorative token/glow still clip to the box. */
.fourth {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4.2vh 4.3vw 4vh;
  background: radial-gradient(110% 80% at 50% 0%, #0c0a08 0%, #070605 58%, #040303 100%);
  font-family: var(--font-ui);
}

/* Shared bits */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  margin: 0;
  font-size: 0.75vw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow i {
  width: 0.31vw;
  height: 0.31vw;
  min-width: 4px;
  min-height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.fourth__headline {
  margin: 1.05vw 0 0;
  font-family: var(--font-display);
  font-size: 2.73vw;
  font-weight: 400;
  line-height: 1.22;
  color: var(--cream);
}

.fourth__headline--sm {
  font-size: 2.48vw;
}

.fourth__headline em {
  font-style: italic;
  color: var(--gold);
}

.fourth__sub {
  margin: 1.12vw 0 0;
  font-size: 1.06vw;
  font-weight: 300;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- How it works --------------------------------------------------- */

.hiw {
  display: grid;
  grid-template-columns: 27% minmax(0, 1fr);
  gap: 3.6vw;
  align-items: start;
  flex-shrink: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.05vw;
}

.step {
  position: relative;
  padding: 1.74vw 1.55vw;
  border: 1px solid rgba(201, 160, 99, 0.2);
  border-radius: 1.05vw;
  background: linear-gradient(158deg, rgba(30, 25, 20, 0.42) 0%, rgba(10, 9, 7, 0.7) 60%);
  /* A thread of light along the top edge, as in the reference. */
  box-shadow: inset 0 1px 0 rgba(246, 226, 184, 0.16);
}

/* The connector between cards */
.step__link {
  position: absolute;
  top: 51%;
  right: 100%;
  width: 2.05vw;
  height: 1px;
  background: linear-gradient(to right, rgba(201, 160, 99, 0), rgba(201, 160, 99, 0.55));
}

.step__link::after {
  content: '';
  position: absolute;
  right: -0.16vw;
  top: 50%;
  width: 0.32vw;
  height: 0.32vw;
  min-width: 4px;
  min-height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0.5vw rgba(230, 200, 143, 0.8);
}

.step__tile {
  display: grid;
  place-items: center;
  width: 3.72vw;
  height: 3.72vw;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(201, 160, 99, 0.1);
  color: var(--gold);
}

.step__tile .icon {
  width: 1.68vw;
  min-width: 17px;
}

.step__n {
  position: absolute;
  top: 1.74vw;
  right: 1.55vw;
  font-family: var(--font-display);
  font-size: 1.86vw;
  color: rgba(201, 160, 99, 0.42);
  letter-spacing: 0.03em;
}

.step__title {
  margin: 2.3vw 0 0;
  font-size: 1.24vw;
  font-weight: 500;
  color: var(--white);
}

.step__desc {
  margin: 0.68vw 0 0;
  font-size: 0.93vw;
  font-weight: 300;
  line-height: 1.66;
  color: rgba(255, 255, 255, 0.58);
}

/* ---- Trust band ------------------------------------------------------ */

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.7vw;
  padding: 2.05vw 0;
  border: 1px solid rgba(201, 160, 99, 0.16);
  border-radius: 1.05vw;
  background: linear-gradient(160deg, rgba(24, 20, 16, 0.4) 0%, rgba(9, 8, 6, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(246, 226, 184, 0.12);
  flex-shrink: 0;
}

.trust__col {
  padding: 0 2.3vw;
}

.trust__col + .trust__col {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.trust__icon {
  display: block;
  color: var(--gold);
}

.trust__icon .icon {
  width: 1.55vw;
  min-width: 16px;
}

.trust__title {
  margin: 1.3vw 0 0;
  font-size: 1.18vw;
  font-weight: 500;
  color: var(--white);
}

.trust__desc {
  margin: 0.62vw 0 0;
  font-size: 0.93vw;
  font-weight: 300;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Pricing --------------------------------------------------------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: 3vw;
  margin-top: 2.7vw;
  /* flex-basis auto, not 0 — with a basis of 0 and min-height:0 this row
     contributed nothing to the section's height and collapsed under its own
     content. It still grows into spare room exactly as before. */
  flex: 1 0 auto;
  align-items: start;
}

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3vw;
}

.perk {
  display: flex;
  align-items: center;
  gap: 0.62vw;
  padding-right: 1vw;
}

.perk + .perk {
  padding-left: 1.24vw;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.perk__icon {
  color: var(--gold);
  flex-shrink: 0;
}

.perk__icon .icon {
  width: 1.3vw;
  min-width: 14px;
}

.perk__label {
  font-size: 0.87vw;
  font-weight: 300;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.66);
}

/* CTA card */

.bonus {
  position: relative;
  padding: 1.98vw 2.17vw;
  border: 1px solid rgba(201, 160, 99, 0.3);
  border-radius: 1.24vw;
  background: linear-gradient(150deg, rgba(38, 30, 21, 0.6) 0%, rgba(12, 10, 8, 0.8) 62%);
  box-shadow: inset 0 1px 0 rgba(246, 226, 184, 0.2), 0 0 4vw rgba(201, 160, 99, 0.09);
  overflow: hidden;
  /* min-height so the card still matches the copy column's height, but can
     outgrow it rather than clipping its own CTA. */
  min-height: 100%;
}

.bonus__pill {
  display: inline-flex;
  align-items: center;
  height: 2vw;
  min-height: 24px;
  padding: 0 1vw;
  border-radius: 999px;
  /* Filled tan pill with dark tracked text, as the supplied design has it —
     it was an outlined pill with gold text. */
  background: linear-gradient(160deg, #ecd3a2, #d3ab6d);
  font-family: 'Jost', monospace;
  font-size: 0.75vw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #241a0d;
}

.bonus__title {
  margin: 1.3vw 0 0;
  font-family: var(--font-display);
  font-size: 2.11vw;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  position: relative;
  z-index: 2;
}

.bonus__title em {
  font-style: normal;
  color: var(--gold-bright);
}

.bonus__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75vw;
  height: 2.92vw;
  min-height: 36px;
  margin-top: 1.8vw;
  padding: 0 1.7vw;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #1a1206;
  font-size: 1.06vw;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.bonus__cta .icon {
  width: 1.18vw;
  min-width: 13px;
}

.bonus__note {
  margin: 1.24vw 0 0;
  font-size: 0.78vw;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(217, 176, 113, 0.85);
  white-space: nowrap;
}

.bonus__note .icon {
  width: 1vw;
  min-width: 11px;
  color: var(--gold);
}

.bonus__dot {
  width: 0.25vw;
  height: 0.25vw;
  min-width: 3px;
  min-height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 0.4vw;
}

/* ---- The token -------------------------------------------------------- */
/* Scoped to .fourth: this class name also exists in the signed-in app
   (the credit-balance gem icon), and unscoped it turned those into 11vw
   absolutely-positioned tokens that overlapped the balance and topbar. */

.fourth .gem {
  position: absolute;
  right: 3.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 11vw;
  height: 11vw;
  pointer-events: none;
}

.gem__glow {
  position: absolute;
  inset: -55%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(240, 205, 140, 0.4) 0%,
    rgba(201, 160, 99, 0.16) 32%,
    rgba(201, 160, 99, 0) 68%
  );
}

.gem__body {
  position: absolute;
  inset: 14%;
  display: grid;
  place-items: center;
  transform: rotate(-14deg);
  /* Cut corners, so it reads as faceted rather than as a rounded square. */
  clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
  background: linear-gradient(145deg, rgba(255, 244, 220, 0.62) 0%, rgba(226, 186, 124, 0.34) 38%, rgba(150, 116, 70, 0.3) 72%, rgba(255, 238, 205, 0.5) 100%);
  box-shadow: inset 0 0 2vw rgba(255, 245, 220, 0.42);
}

.gem__mark {
  font-family: var(--font-display);
  font-size: 3.4vw;
  color: rgba(255, 250, 236, 0.92);
  transform: rotate(14deg);
  text-shadow: 0 0 1.4vw rgba(255, 235, 190, 0.7);
}

.gem__ring {
  position: absolute;
  left: -22%;
  right: -22%;
  top: 56%;
  height: 40%;
  border: 1px solid rgba(230, 200, 143, 0.4);
  border-radius: 50%;
  transform: rotate(-16deg);
  box-shadow: 0 0 1.4vw rgba(230, 200, 143, 0.28);
}


/* The rendered token is gone; the supplied design closes the card with a
   soft warm glow drifting in from the right instead. */
.bonus::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -14%;
  width: 55%;
  height: 140%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 174, 110, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
