/* Keycade – keycades.com. One stylesheet, no build step. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-bold.woff") format("woff"); }

:root {
  --ink: #1B1036;
  --ink-deep: #140B29;
  --ink-raised: #261850;
  --ink-line: rgba(255, 248, 236, .12);
  --cream: #FFF8EC;
  --muted: #B8ADD6;
  --purple: #6C2BFF;
  --pink: #FF2D87;
  --gold: #FFC93C;
  --gold-deep: #F29A00;
  --ok: #3DDC97;
  --grad: linear-gradient(120deg, var(--purple), var(--pink));
  --gold-grad: linear-gradient(180deg, #FFE27A, var(--gold) 45%, var(--gold-deep));
  --r-lg: 22px;
  --r-md: 14px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.i { width: 18px; height: 18px; fill: currentColor; flex: none; }
q { quotes: "“" "”"; color: var(--cream); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(255, 45, 135, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(255, 45, 135, .9); }
.btn-gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 28px -12px rgba(255, 201, 60, .8); }
.btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(255, 201, 60, .95); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 248, 236, .4); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--gold); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.link:hover { color: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(27, 16, 54, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ink-line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { width: 128px; height: auto; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--cream); }
#accountButton { margin-left: auto; }
.nav + #accountButton { margin-left: 8px; }
@media (max-width: 859px) { .nav + #accountButton { margin-left: auto; } }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -30% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(108, 43, 255, .55), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 45%; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(255, 45, 135, .35), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 135, .25); }
.hero h1 { font-size: clamp(38px, 10.5vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
.lede { margin-top: 20px; font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row .btn { flex: 1 1 220px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }

/* phone + live chat */
.stage { display: grid; justify-items: center; gap: 22px; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px;
  background: linear-gradient(150deg, #3a2a6e, #120a26); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(2.5deg);
}
.phone::before { /* gradient halo */
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 36px; background: var(--grad); filter: blur(26px); opacity: .55;
}
.phone-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.chat {
  position: absolute; left: 16px; right: 40px; bottom: 18px; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.35;
}
.chat li {
  align-self: flex-start; max-width: 100%; background: rgba(20, 11, 41, .72); color: #fff; border-radius: 12px; padding: 5px 10px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: chat-in .45s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.6s + var(--d) * .7s);
}
.chat b { color: var(--gold); font-weight: 700; margin-right: 4px; }
.chat .gift { background: linear-gradient(120deg, rgba(108, 43, 255, .92), rgba(255, 45, 135, .92)); }
.chat .gift b { color: #fff; }
.chat i { font-style: normal; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--ink); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.legend { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 4px 22px; font-size: 13.5px; line-height: 1.35; color: var(--muted); text-align: center; }
.legend em { display: block; font-style: normal; font-weight: 700; font-size: 15px; }
.legend .c { color: var(--cream); }
.legend .t { color: var(--pink); }
.legend .g { color: var(--gold); }

@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .phone { width: 330px; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.h2 { font-size: clamp(30px, 6vw, 46px); }
.sec-head { display: grid; gap: 12px; margin-bottom: 32px; }
.sec-head p { color: var(--muted); max-width: 36em; }
@media (min-width: 860px) {
  .section { padding: 104px 0; }
  .sec-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .sec-head p { justify-self: end; text-align: right; }
}

/* how */
.how { background: var(--ink-deep); border-block: 1px solid var(--ink-line); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 0 64px; }
.steps .n {
  position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: #fff; background: var(--grad);
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 30em; }
.steps .link { display: inline-block; margin-top: 12px; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
  .steps li { padding: 64px 0 0; }
  .steps li:not(:last-child)::after { /* connector between numbers */
    content: ""; position: absolute; top: 18px; left: 62px; right: -22px; height: 2px;
    background: linear-gradient(90deg, rgba(255, 45, 135, .6), rgba(255, 248, 236, .08));
  }
}

/* games */
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
.game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--ink-raised); box-shadow: 0 0 0 1px var(--ink-line); }
.game h3 { font-size: 18px; margin: 14px 0 4px; }
.game p { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (min-width: 560px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .game-grid { grid-template-columns: repeat(12, 1fr); gap: 36px 24px; }
  .game { grid-column: span 4; }
  .game:first-child, .game:nth-child(2) { grid-column: span 6; }
  .game:first-child h3, .game:nth-child(2) h3 { font-size: 22px; }
}

/* pricing */
.pricing { background: var(--ink-deep); border-block: 1px solid var(--ink-line); position: relative; overflow: hidden; }
.pricing-grid { display: grid; gap: 36px; align-items: center; }
.pricing-copy p { margin-top: 14px; color: var(--muted); max-width: 28em; }
.pricing-copy .muted { font-size: 15px; }
.keycard {
  position: relative; border-radius: var(--r-lg); padding: 28px 24px 24px; max-width: 460px; width: 100%;
  background:
    linear-gradient(var(--ink-raised), var(--ink-raised)) padding-box,
    linear-gradient(140deg, var(--gold), rgba(255, 201, 60, .1) 40%, rgba(255, 45, 135, .5)) border-box;
  border: 2px solid transparent; box-shadow: 0 40px 80px -40px rgba(108, 43, 255, .8);
}
.keycard-top { display: flex; gap: 16px; align-items: center; }
.keycard-top img { border-radius: 12px; }
.plan { font-weight: 500; color: var(--muted); font-size: 15px; }
.price { line-height: 1.1; }
.amt { font-size: 44px; font-weight: 700; letter-spacing: -.03em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.per { color: var(--muted); font-weight: 500; }
.ticks { list-style: none; margin: 24px 0; padding: 20px 0 0; border-top: 1px dashed var(--ink-line); display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 4.5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg); }
.card-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.card-note.ok { color: var(--ok); }
@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr 460px; gap: 64px; }
  .keycard { padding: 36px 34px 30px; }
}

/* faq */
.faq-grid { display: grid; gap: 28px; }
.qa { display: grid; }
.qa details { border-bottom: 1px solid var(--ink-line); }
.qa details:first-child { border-top: 1px solid var(--ink-line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.qa details a { color: var(--gold); }
.qa strong { color: var(--cream); font-weight: 500; }
@media (min-width: 860px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }

/* footer */
.foot { padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink-line); }
.foot-grid { display: grid; gap: 24px; }
.foot-grid p { margin-top: 12px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 500; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--cream); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- dialogs ---------- */
.dlg {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overflow-x: hidden;
  border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: 30px 24px 24px;
  background: var(--ink-raised); color: var(--cream); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
}
.dlg-wide { width: min(540px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(10, 5, 24, .72); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg h2 { font-size: 26px; margin-bottom: 10px; padding-right: 32px; }
.dlg p { color: var(--muted); }
.dlg p + p, .dlg p + .btn, .dlg .btn + p { margin-top: 14px; }
.dlg strong { color: var(--cream); font-weight: 500; }
.dlg a:not(.btn) { color: var(--gold); }
.x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .06); font-size: 24px; line-height: 1;
}
.x:hover { background: rgba(255, 255, 255, .12); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.form label { font-size: 14px; font-weight: 500; }
.form input {
  font: inherit; color: var(--cream); background: var(--ink-deep); border: 1.5px solid var(--ink-line); border-radius: 12px;
  width: 100%; min-width: 0; min-height: 52px; padding: 0 16px; font-size: 16px;
}
.form input:focus { outline: none; border-color: var(--gold); }
.form .btn { margin-top: 6px; }
.msg { min-height: 1.6em; margin-top: 10px; font-size: 14.5px; }
.msg:empty { min-height: 0; margin: 0; }
.msg.err { color: #FF8FB8; }
.msg.ok { color: var(--ok); }
.mini-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--ink-deep); }
.mini-price span { color: var(--muted); }
.mini-price strong { color: var(--gold); font-weight: 700; }

.badge-ok { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ok) !important; margin-bottom: 8px; }
.badge-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 20px; padding: 14px 14px 14px 18px; border-radius: 14px;
  background:
    linear-gradient(var(--ink-deep), var(--ink-deep)) padding-box,
    linear-gradient(120deg, var(--gold), rgba(255, 45, 135, .7)) border-box;
  border: 2px solid transparent;
}
.key code {
  flex: 1 1 200px; font: 700 clamp(16px, 4.6vw, 20px)/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em;
  color: var(--gold); word-break: break-all; user-select: all;
}
.mini-steps { margin: 0 0 22px; padding-left: 22px; color: var(--muted); display: grid; gap: 8px; font-size: 15px; }
.mini-steps strong { color: var(--cream); }
.spinner { width: 36px; height: 36px; margin: 24px auto 8px; border-radius: 50%; border: 3px solid var(--ink-line); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* account */
.acct { margin: 18px 0; display: grid; gap: 14px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink-deep); border-radius: 12px; }
.pill { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.pill.on { background: rgba(61, 220, 151, .16); color: var(--ok); }
.pill.warn { background: rgba(255, 201, 60, .16); color: var(--gold); }
.pill.off { background: rgba(255, 143, 184, .14); color: #FF8FB8; }
.acct .key { margin: 0; }
.acct-links { display: grid; gap: 10px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; z-index: 50;
  background: var(--cream); color: var(--ink); font-weight: 500; font-size: 15px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 7vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: #DCD3EF; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--gold); }
.ph { background: rgba(255, 201, 60, .16); color: var(--gold); border-radius: 4px; padding: 0 4px; font-weight: 500; }
.legal-note { margin: 18px 0 8px; padding: 14px 16px; border-radius: 12px; background: var(--ink-deep); border: 1px dashed rgba(255, 201, 60, .5); font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition: none !important; }
}
[hidden]{display:none!important}
