/* ==========================================================
   /join — checkout page. Builds on the tokens and components in styles.css.
   ========================================================== */

/* minimal nav: logo + help link only, so nothing pulls people away from checkout */
.jnav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
}
.jnav__inner { max-width: var(--container); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.jnav__help {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px;
  font-size: 14px; color: var(--text-2); transition: color var(--dur);
}
.jnav__help:hover { color: var(--text); }
.jnav__help .i { color: #8b95ff; width: 18px; height: 18px; }

/* ---------- hero + checkout card ---------- */
.jhero { position: relative; isolation: isolate; padding: 120px 0 88px; overflow: hidden; }
.jhero__glow {
  position: absolute; inset: -10% -10% auto; height: 90%; z-index: -1;
  background:
    radial-gradient(45% 55% at 78% 30%, rgba(10, 114, 255, 0.22), transparent 70%),
    radial-gradient(35% 45% at 15% 15%, rgba(25, 200, 255, 0.08), transparent 70%);
}
.jhero::after { /* faint grid, like the flips section */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.jhero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

.jhero__title { margin-top: 22px; font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.jhero__title .pop-in { display: inline-block; }
.jhero__title em {
  font-size: 1.08em; letter-spacing: -0.02em; padding-right: 0.08em;
  background: linear-gradient(90deg, #4aa0ff, #19c8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jhero__title .underline-word__line { bottom: -0.16em; }
.jhero__sub { margin-top: 24px; max-width: 560px; color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); text-wrap: pretty; }

.jhero__proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.jhero__proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.jhero__proof .i { width: 18px; height: 18px; color: var(--cyan); }

/* one flip pays for the month */
.math {
  margin-top: 36px; max-width: 560px;
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  padding: 18px 22px 18px 18px; border-radius: 18px;
  background: linear-gradient(160deg, #141a27, #0d1119); border: 1px solid var(--line-strong);
}
.math__img { width: 96px; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); }
.math__kicker { font: 500 12px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 8px; }
.math__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.math__row b { color: var(--text); font-weight: 600; white-space: nowrap; }
.math__row--win { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; }
.math__row--win span, .math__row--win b { color: var(--cyan); font-weight: 700; }
.math__row--vs b { color: var(--text-2); }

/* checkout card — sticks beside the copy on desktop */
.buy {
  position: sticky; top: 24px;
  padding: 30px; border-radius: 24px;
  background: linear-gradient(180deg, #111624, #0b0e15);
  border: 1px solid rgba(43, 140, 255, 0.4);
  box-shadow: 0 40px 100px -40px rgba(10, 114, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.buy__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.buy__name { font-weight: 600; color: var(--text-2); }
.buy__price { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.buy__price > span:nth-child(2) { font-size: 72px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.buy__cur { font-size: 36px; vertical-align: 0.75em; margin-right: 2px; color: var(--text-2); }
.buy__side { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text-3); }
.buy__side s { position: relative; font-weight: 600; color: var(--text-3); text-decoration: none; width: fit-content; }
.buy__side s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; border-radius: 2px; background: #ff6b6b; }
.buy__list { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; gap: 13px; }
.buy__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.buy__list .i { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--cyan); background: rgba(25, 200, 255, 0.12); }
.buy__cta { min-height: 60px; font-size: 17px; }
.buy__cta:hover { transform: translateY(-1px); }
.buy__fine { margin-top: 14px; font-size: 13px; color: var(--text-3); text-align: center; text-wrap: balance; }
.buy__fine .i { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.buy__soon { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: center; color: var(--text-2); background: rgba(10, 114, 255, 0.1); border: 1px solid rgba(43, 140, 255, 0.3); }
.buy__soon a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
.jsec { padding: clamp(80px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.jsec--alt { background: var(--bg-2); }
.jsec--tight { padding-bottom: clamp(56px, 7vw, 88px); }

/* what happens next */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; }
.flow__step {
  position: relative; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.flow__step:not(:last-child)::after { /* connector arrow between steps */
  content: ""; position: absolute; top: 38px; right: -12px; width: 8px; height: 8px; z-index: 1;
  border-top: 2px solid var(--blue-2); border-right: 2px solid var(--blue-2); transform: rotate(45deg);
}
.flow__n { font: 500 13px var(--f-mono); color: var(--blue-ink); }
.flow__step h3 { font-size: 20px; letter-spacing: -0.02em; margin: 12px 0 6px; }
.flow__step p { color: var(--text-2); font-size: 15px; }

/* solo vs fliplab */
.vs { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.vs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vs th, .vs td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }
.vs thead th { font: 500 12px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.vs tbody th { font-weight: 600; color: var(--text); width: 22%; }
.vs td { color: var(--text-3); }
.vs td .i { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.vs__x { color: #ff6b6b; opacity: 0.8; }
.vs__ok { color: var(--cyan); }
.vs .vs__us { background: rgba(10, 114, 255, 0.08); color: var(--text); }
.vs thead .vs__us { color: var(--blue-ink); }

/* course chips */
.chips { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); font-size: 15.5px; font-weight: 500;
}
.chips b { font: 500 12px var(--f-mono); color: var(--blue-ink); }
.chips__hot { border-color: rgba(43, 140, 255, 0.5) !important; background: rgba(10, 114, 255, 0.1) !important; }

/* final */
.jfinal { position: relative; padding: clamp(96px, 12vw, 150px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.jfinal::before { content: ""; position: absolute; inset: 20% 10% auto; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(10, 114, 255, 0.22), transparent); }
.jfinal h2 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.jfinal h2 em { font-size: 1.06em; }
.jfinal p { margin: 18px 0 32px; color: var(--text-2); font-size: 17px; }
.jfinal .btn { min-height: 60px; padding: 0 34px; font-size: 17px; }

/* sticky buy bar: slides up once the checkout card is off screen */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 10, 14, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%); transition: transform 360ms var(--ease-out);
}
.buybar.is-shown { transform: none; }
.buybar__inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.buybar__price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.buybar__price b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.buybar__price span { color: var(--text-3); font-size: 14px; }
.buybar__price s { color: var(--text-3); font-size: 14px; margin-left: 6px; text-decoration-color: #ff6b6b; text-decoration-thickness: 2px; }
.buybar__cta { min-height: 48px; padding: 0 26px; }
.join .footer { padding-bottom: 96px; } /* room for the buy bar */

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .jhero__grid { grid-template-columns: 1fr; }
  .buy { position: relative; top: 0; max-width: 560px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .jnav__inner { padding: 12px 16px; }
  .jnav__help span { display: none; }
  .jhero { padding-top: 92px; }
  .buy { padding: 24px 20px; }
  .buy__price > span:nth-child(2) { font-size: 60px; }
  .math { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
  .math__img { width: 72px; }
  .math__row { font-size: 13.5px; }
  .flow { grid-template-columns: 1fr; }
  .flow__step::after { display: none; }
  .vs th, .vs td { padding: 12px 10px; font-size: 13.5px; }
  .vs td .i { display: none; }
}
