:root {
  --night: #0b1020;
  --night-soft: #151b33;
  --paper: #f7f3ea;
  --panel: #fffdf8;
  --ink: #171a2b;
  --muted: #646879;
  --line: rgba(23, 26, 43, .14);
  --stripe: #635bff;
  --stripe-dark: #4b44dc;
  --coral: #ff6b6b;
  --mint: #77f2c1;
  --gold: #ffce69;
  --radius: 26px;
  --shadow: 0 28px 80px rgba(11, 16, 32, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 12%, rgba(99, 91, 255, .10), transparent 22rem),
    radial-gradient(circle at 94% 42%, rgba(255, 107, 107, .10), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
button, input { font: inherit; }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: var(--night);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: white;
  font: 800 29px/1 Arial, sans-serif;
  letter-spacing: -.09em;
  text-decoration: none;
}

.portrait-letter {
  width: .85em;
  height: .96em;
  display: inline-block;
  overflow: hidden;
  position: relative;
  border: 1.8px solid currentColor;
  transform: translateY(.08em);
  background: var(--stripe);
}

.portrait-o { border-radius: 50%; }
.portrait-d { border-radius: 2px 50% 50% 2px; }
.portrait-letter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}
.brand-punctuation {
  color: var(--mint);
  font-size: .54em;
  margin-left: .08em;
  letter-spacing: -.04em;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.stripe-badge img {
  width: 100%;
  height: auto;
  display: block;
}
.stripe-badge-header { width: 122px; }

.payment-hero {
  min-height: min(720px, calc(100svh - 78px));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: center;
  gap: clamp(42px, 7vw, 112px);
  padding: clamp(58px, 8vw, 118px) clamp(20px, 7vw, 110px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(circle at 15% 105%, rgba(119, 242, 193, .24), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(99, 91, 255, .40), transparent 32rem),
    var(--night);
}

.payment-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  aspect-ratio: 1;
  top: -250px;
  left: 42%;
  border: 80px solid rgba(255, 107, 107, .10);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--stripe);
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.payment-hero .eyebrow { color: var(--mint); }
.hero-copy h1 {
  margin: 0;
  font: 500 clamp(74px, 11vw, 168px)/.78 Georgia, serif;
  letter-spacing: -.085em;
}
.hero-copy h1 em {
  display: block;
  color: var(--coral);
  font-weight: 500;
}
.hero-copy > p:last-child {
  max-width: 650px;
  margin: 38px 0 0;
  color: #c8ccda;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.5;
}

.hero-payment-card {
  padding: clamp(26px, 3.5vw, 46px);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: calc(var(--radius) + 8px);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .06),
    0 34px 90px rgba(0, 0, 0, .32);
}
.hero-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--stripe-dark);
  font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-price {
  margin: 48px 0 4px;
  color: var(--coral);
  font: italic 500 clamp(38px, 4vw, 60px)/1 Georgia, serif;
  letter-spacing: -.05em;
}
.hero-payment-card h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-payment-card > p:not(.hero-price, .checkout-note) {
  margin: 20px 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.primary-payment-cta {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 18px 22px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(110deg, var(--stripe-dark), var(--stripe) 52%, #866dff);
  box-shadow: 0 18px 38px rgba(99, 91, 255, .32);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.primary-payment-cta::before {
  content: "";
  position: absolute;
  inset: -100% 58% -100% -40%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transition: transform .55s ease;
}
.primary-payment-cta:hover,
.primary-payment-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(99, 91, 255, .42);
}
.primary-payment-cta:hover::before { transform: translateX(285%) rotate(18deg); }
.primary-payment-cta:focus-visible,
.pay-button:focus-visible,
.stripe-badge:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.cta-arrow {
  position: relative;
  font-size: 28px;
  transition: transform .2s ease;
}
.primary-payment-cta:hover .cta-arrow { transform: translateX(5px); }
.checkout-note {
  margin: 14px 0 0;
  color: var(--muted);
  font: 700 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.checkout-note span { color: var(--stripe); margin-right: 5px; }

.payment-section {
  padding: clamp(72px, 9vw, 132px) clamp(16px, 4vw, 64px);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 40px;
}
.section-heading h2,
.stripe-trust h2,
.safety-note h2 {
  margin: 0;
  font: 500 clamp(44px, 6vw, 86px)/.94 Georgia, serif;
  letter-spacing: -.06em;
}
.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.payment-card {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(11, 16, 32, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.payment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.payment-card-email { border-top: 7px solid var(--coral); }
.payment-card-session { border-top: 7px solid var(--stripe); }
.payment-card-milestone {
  border-color: transparent;
  border-top: 7px solid var(--mint);
  color: white;
  background: var(--night-soft);
}
.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
}
.card-number,
.card-tag,
.card-details {
  font: 750 10px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card-tag {
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 99px;
}
.price {
  margin: 42px 0 6px;
  color: var(--stripe);
  font: italic 500 clamp(40px, 4.2vw, 62px)/1 Georgia, serif;
  letter-spacing: -.05em;
}
.payment-card-email .price { color: #d94c5d; }
.payment-card-milestone .price { color: var(--mint); }
.payment-card h3 {
  margin: 0;
  font-size: clamp(27px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -.05em;
}
.card-copy {
  color: var(--muted);
  line-height: 1.55;
}
.payment-card-milestone .card-copy { color: #c7ccdc; }
.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.4;
  text-transform: none;
}
.card-details span::before {
  content: "✓";
  color: var(--stripe);
  margin-right: 6px;
}
.payment-card-email .card-details span::before { color: #d94c5d; }
.payment-card-milestone .card-details { color: #c7ccdc; }
.payment-card-milestone .card-details span::before { color: var(--mint); }

.pay-button {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 22px rgba(23, 26, 43, .14);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.pay-button:hover {
  transform: translateY(-2px);
  background: var(--stripe);
  box-shadow: 0 14px 28px rgba(99, 91, 255, .25);
}
.payment-card-milestone .pay-button {
  color: var(--night);
  background: var(--mint);
}
.payment-card-milestone .pay-button:hover { background: var(--gold); }
.pay-button-dark { background: var(--night); }

.stripe-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: end;
  padding: clamp(72px, 9vw, 132px) clamp(20px, 7vw, 110px);
  color: white;
  background:
    radial-gradient(circle at 94% 115%, rgba(99, 91, 255, .45), transparent 28rem),
    var(--night);
}
.stripe-trust .eyebrow { color: var(--mint); }
.stripe-trust-copy > p {
  margin: 0 0 34px;
  color: #c8ccda;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
}
.stripe-badge-large { width: 174px; }

.safety-note {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 7vw, 110px);
}
.safety-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  max-width: 1120px;
  margin-top: 42px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(20px, 4vw, 64px);
  color: #aeb4c8;
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
footer a { text-underline-offset: 4px; }
footer a:hover { color: white; }

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 38px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .34);
}
dialog::backdrop {
  background: rgba(7, 10, 20, .75);
  backdrop-filter: blur(6px);
}
dialog h2 {
  margin: 0 0 12px;
  font: 500 36px/1 Georgia, serif;
  letter-spacing: -.04em;
}
dialog p { color: var(--muted); line-height: 1.5; }
dialog code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ece9ff;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.dialog-action {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--stripe);
  font-weight: 800;
  cursor: pointer;
}

.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 91, 255, .22), transparent 25rem),
    var(--mint);
}
.result-card {
  width: min(760px, 100%);
  padding: clamp(30px, 7vw, 80px);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.result-card .brand { color: var(--ink); }
.result-mark { margin: 70px 0 20px; color: var(--stripe); font-size: 74px; }
.result-card h1 {
  margin: 0;
  font: 500 clamp(60px, 11vw, 110px)/.9 Georgia, serif;
  letter-spacing: -.07em;
}
.result-card > p:not(.eyebrow, .result-mark) {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.result-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}
.result-actions .pay-button { min-width: 180px; margin: 0; }

.document-page { min-height: 100vh; background: var(--paper); }
.document {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 120px;
}
.document .back-link {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--muted);
  text-decoration: none;
}
.document h1 {
  margin: 0 0 22px;
  font: 500 clamp(54px, 9vw, 100px)/.9 Georgia, serif;
  letter-spacing: -.07em;
}
.document h2 {
  margin: 50px 0 10px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.document p { color: var(--muted); line-height: 1.65; }
.document-lede { font-size: 20px; }

@media (max-width: 980px) {
  .payment-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .hero-copy h1 em { display: inline; }
  .hero-payment-card { max-width: 650px; }
  .payment-grid { grid-template-columns: 1fr 1fr; }
  .payment-card-milestone { grid-column: 1 / -1; }
  .stripe-trust { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding-block: 14px; }
  .brand { font-size: 25px; }
  .stripe-badge-header { width: 104px; }
  .payment-hero { padding-top: 50px; padding-bottom: 50px; }
  .hero-copy h1 {
    font-size: clamp(66px, 22vw, 104px);
    line-height: .82;
  }
  .hero-copy h1 em { display: block; }
  .hero-copy > p:last-child { margin-top: 26px; font-size: 17px; }
  .hero-payment-card { padding: 25px 20px; border-radius: 24px; }
  .hero-price { margin-top: 36px; }
  .primary-payment-cta { min-height: 66px; font-size: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-card,
  .payment-card-milestone {
    grid-column: auto;
    min-height: 470px;
  }
  .safety-columns { grid-template-columns: 1fr; gap: 10px; }
  footer,
  .result-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  footer nav { gap: 14px 20px; }
  dialog { padding: 32px 24px; }
}

@media (max-width: 390px) {
  .stripe-badge-header { width: 92px; }
  .brand { font-size: 23px; }
  .payment-card { min-height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
