* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #040407;
  --panel: #0b0b14;
  --panel-2: #07070e;
  --ink: #d8d5ea;
  --bright: #eceafd;
  --dim: #77719f;
  --faint: #4e4a6b;
  --acc: #a79bff;
  --acc-2: #8f86c9;
  --danger: #cf6f8f;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  padding-top: 3.2rem;
  overflow-x: hidden;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.b1 {
  width: 44vw;
  height: 44vw;
  background: #6f68c9;
  top: -12vw;
  left: -10vw;
  animation: drift1 26s ease-in-out infinite alternate;
}

.b2 {
  width: 38vw;
  height: 38vw;
  background: #a79bff;
  bottom: -14vw;
  right: -8vw;
  animation: drift2 34s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to { transform: translate(8vw, 10vh) scale(1.15); }
}

@keyframes drift2 {
  to { transform: translate(-6vw, -8vh) scale(1.1); }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  background: rgba(167,155,255,0.12);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-right: 0.6rem;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #67e8ff, #a79bff);
  transition: width 0.3s ease;
}
.progress span {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--acc);
  white-space: nowrap;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--bright);
  text-transform: lowercase;
  text-shadow: 0 0 30px rgba(140, 120, 255, 0.35);
}

.hero h1 span {
  color: var(--acc-2);
  font-style: italic;
}

.hero h1 sup {
  font-size: 0.35em;
  letter-spacing: 0;
  color: var(--faint);
}

.tagline {
  margin-top: 1rem;
  font-style: italic;
  color: var(--dim);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.tuition {
  margin-top: 2.2rem;
  font-size: 1.05rem;
  color: var(--dim);
}

.tuition b {
  color: var(--bright);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.tuition sup,
.fineprint {
  color: var(--faint);
}

.fineprint {
  font-size: 0.72rem;
  margin-left: 0.5rem;
}

.proofline {
  margin-top: 0.9rem;
  min-height: 1.2em;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-2);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.proofline.swap {
  opacity: 0;
}

.btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.65rem 1.5rem;
  transition: all 0.22s ease;
  text-decoration: none;
  display: inline-block;
}

.btn.sleazy {
  background: linear-gradient(135deg, #8f7bff, #b39dff);
  color: #0a0912;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(167, 155, 255, 0.35);
}

.btn.sleazy:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(167, 155, 255, 0.55);
}

.btn.mega {
  font-size: 0.95rem;
  padding: 1rem 2.4rem;
  animation: pulseGlow 2.6s ease-in-out infinite;
  margin-top: 2.4rem;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(167, 155, 255, 0.3); }
  50% { box-shadow: 0 0 38px rgba(167, 155, 255, 0.65); }
}

.btn.ghost {
  border-color: rgba(143, 134, 201, 0.5);
  color: var(--ink);
  background: rgba(143, 134, 201, 0.08);
}

.btn.ghost:hover {
  background: rgba(143, 134, 201, 0.16);
}

.btn.sm {
  font-size: 0.62rem;
  padding: 0.4rem 0.9rem;
}

.btn.block {
  width: 100%;
}

.btn.tinylink {
  background: none;
  border: none;
  color: var(--faint);
  text-decoration: underline dotted;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.64rem;
  padding: 0.2rem 0.45rem;
  transition: none;
}

.btn.tinylink:hover {
  color: var(--dim);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.nagbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.45rem 1rem;
  background: #151021;
  border-bottom: 1px solid rgba(167, 155, 255, 0.25);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbc6ec;
  transition: transform 0.3s ease;
}

.nagbar.gone {
  transform: translateY(-110%);
}

.nag-x {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  transition: transform 0.25s ease, color 0.2s ease;
}

.nag-x:hover {
  color: var(--dim);
}

.nagbar.dodged .nag-x {
  transform: translateX(-46vw);
}

.pattern {
  border: 1px solid rgba(167, 155, 255, 0.16);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2.2rem;
  background: linear-gradient(180deg, var(--panel), #090912);
}

.pattern header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pattern .no {
  color: var(--acc-2);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.pattern h2 {
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--bright);
}

.hook {
  width: 100%;
  font-style: italic;
  color: var(--dim);
  font-size: 0.92rem;
}

.demo {
  margin-top: 1.2rem;
  padding: 1.2rem;
  background: var(--panel-2);
  border-radius: 10px;
  line-height: 1.6;
}

.demo p {
  margin-bottom: 0.6rem;
}

.demo .row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo .footnote {
  font-size: 0.74rem;
  color: var(--faint);
  font-style: italic;
}

.demo .note {
  font-size: 0.82rem;
  color: var(--acc-2);
  min-height: 1.3em;
  margin-top: 0.5rem;
}

details.explainer {
  margin-top: 1rem;
}

details.explainer summary {
  cursor: pointer;
  color: var(--acc);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  list-style: none;
}

details.explainer summary::before {
  content: "+ ";
}

details.explainer[open] summary::before {
  content: "− ";
}

details.explainer .body {
  padding: 0.7rem 0.2rem 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.wild-label {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

ul.wild {
  list-style: none;
  margin-top: 0.3rem;
}

ul.wild li {
  color: var(--dim);
  font-style: italic;
  font-size: 0.86rem;
  padding: 0.12rem 0;
}

ul.wild li::before {
  content: "— ";
}

.countchip {
  display: inline-block;
  border: 1px solid rgba(167, 155, 255, 0.3);
  background: #12121f;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.countchip b {
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

.countchip.flash {
  animation: flashRed 0.7s ease;
}

@keyframes flashRed {
  50% { border-color: var(--danger); color: var(--danger); }
}

.pricecard {
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid rgba(167, 155, 255, 0.2);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  background: #10101c;
}

.pricecard .bigprice {
  text-align: center;
  font-size: 2rem;
  color: var(--bright);
  letter-spacing: 0.03em;
}

.pricecard ul.fees {
  list-style: none;
}

.pricecard ul.fees li {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--dim);
  padding: 0.28rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
}

.pricecard ul.fees li.on {
  opacity: 1;
  transform: none;
}

.pricecard .ptotal {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(167, 155, 255, 0.25);
  font-size: 1.15rem;
  color: var(--bright);
}

.adgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.adcard {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 1rem;
  background: #101018;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.adcard .tag {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  font-size: 0.52rem;
  color: #33313f;
  transform: rotate(-4deg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adcard h3 {
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.adcard p {
  font-size: 0.8rem;
  color: var(--dim);
}

.adcard.is-ad {
  border-color: var(--danger);
}

.adcard.is-ad .tag {
  color: var(--danger);
}

.consentbox {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #0e0e19;
  max-width: 420px;
  margin: 0 auto;
}

.consentbox .toggles {
  list-style: none;
  margin: 0.8rem 0;
}

.consentbox .toggles li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.consentbox input[type="checkbox"] {
  accent-color: var(--acc);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.consentbox input[type="checkbox"][disabled] {
  cursor: not-allowed;
}

.trickform label {
  display: block;
  font-size: 0.88rem;
  padding: 0.5rem 0;
  color: var(--ink);
  cursor: pointer;
}

.trickform input {
  accent-color: var(--acc);
  margin-right: 0.5rem;
}

.bigproof {
  text-align: center;
  font-size: 1.05rem;
  color: var(--dim);
}

.bigproof b {
  color: var(--acc);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 6, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeSwap 0.25s ease;
}

@keyframes fadeSwap {
  from { opacity: 0; }
}

.modal {
  background: #0d0d18;
  border: 1px solid rgba(167, 155, 255, 0.28);
  border-radius: 14px;
  padding: 1.7rem 1.8rem;
  width: min(92vw, 430px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal.shake {
  animation: shake 0.38s ease;
}

@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.modal h3 {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--bright);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.modal p {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.55;
}

.modal input[type="text"],
.modal input[type="email"] {
  width: 100%;
  margin-top: 0.8rem;
  background: #12121f;
  border: 1px solid rgba(167, 155, 255, 0.3);
  border-radius: 6px;
  color: var(--bright);
  font-family: inherit;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.m-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.3rem;
  align-items: center;
}

.cartdock {
  position: fixed;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 70;
  width: 232px;
  background: rgba(11, 11, 20, 0.96);
  border: 1px solid rgba(167, 155, 255, 0.2);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font-size: 0.76rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

#cart-items {
  list-style: none;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  padding: 0.24rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

#cart-items li.empty {
  color: var(--faint);
  font-style: italic;
  border: none;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0 0.55rem;
  color: var(--bright);
}

.cartdock .btn {
  margin-top: 0.2rem;
  font-size: 0.6rem;
}

.curtainpill {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 70;
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  background: rgba(11, 11, 20, 0.94);
  border: 1px solid rgba(167, 155, 255, 0.35);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.curtainpill:hover {
  box-shadow: 0 0 20px rgba(167, 155, 255, 0.4);
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow-y: auto;
  background: rgba(3, 3, 6, 0.92);
  backdrop-filter: blur(5px);
  animation: fadeSwap 0.3s ease;
}

.confession {
  max-width: 620px;
  margin: 8vh auto 6vh;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(167, 155, 255, 0.3);
  border-radius: 14px;
  background: #0c0c16;
}

.confession h3 {
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--bright);
}

.confession .total-line {
  margin: 1rem 0 1.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.confession .total-line b {
  color: var(--acc);
  font-size: 1.6rem;
}

.tally-list {
  list-style: none;
}

.tally-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  color: var(--dim);
}

.tally-list li b {
  color: var(--acc-2);
}

.confession .btn {
  margin-top: 1.4rem;
}

.finale-demo {
  text-align: center;
}

.resources {
  margin-top: 2rem;
  text-align: left;
}

.resources h3 {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.resources ul {
  list-style: none;
}

.resources li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.resources a {
  color: var(--acc);
  text-decoration: none;
  border-bottom: 1px dotted rgba(167, 155, 255, 0.5);
}

.resources a:hover {
  color: var(--bright);
}

.resources .footnote {
  margin-top: 1rem;
  font-style: italic;
  color: var(--faint);
  font-size: 0.84rem;
}

.edge {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

#toast-root {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.toast {
  background: #17172a;
  border: 1px solid rgba(167, 155, 255, 0.35);
  color: var(--bright);
  font-size: 0.8rem;
  font-style: italic;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease;
  max-width: min(90vw, 480px);
  text-align: center;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

body.exposed [data-trap] {
  outline: 1px dashed rgba(167, 155, 255, 0.6);
  outline-offset: 5px;
}

body.exposed [data-trap]::after {
  content: attr(data-trap-label);
  position: absolute;
  display: block;
  top: -1.15rem;
  left: 0.3rem;
  z-index: 5;
  font-family: Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #05050c;
  background: var(--acc);
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
}

[data-trap] {
  position: relative;
}

@media (max-width: 640px) {
  .wrap {
    padding: 1.5rem 0.85rem 5rem;
  }

  .hero {
    padding: 2rem 0.5rem 3rem;
  }

  .pattern {
    padding: 1.15rem 1.05rem;
  }

  .adgrid {
    grid-template-columns: 1fr;
  }

  .nagbar .msg {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .nagbar .btn.sm {
    white-space: nowrap;
  }

  .cartdock {
    left: 0.6rem;
    right: auto;
    bottom: 0.6rem;
    width: 200px;
  }

  .curtainpill {
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 0.52rem;
    max-width: 44vw;
  }

  body.exposed [data-trap]::after {
    font-size: 0.48rem;
    top: -1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media print {
  body { background: #fff; color: #000; padding-top: 0; }
  .blob, .nagbar, .cartdock, .curtainpill, #progress, #toast-root, #modal-root { display: none !important; }
  .pattern { break-inside: avoid; border: 1px solid #ccc; }
  body.exposed [data-trap] { outline: 1px dashed #000; }
}
