/* playnightcap.com — marketing site styles.

   The token block below is a verbatim copy of core/web/theme.css so the site
   and the product cannot drift apart. If you change a colour here, change it
   there too — or better, serve core/web/theme.css directly once the hub and
   the games share one origin. */

:root {
  --bg: #0e0b1a;
  --panel: #1a1530;
  --panel2: #241d44;
  --ink: #f4f1ff;
  --muted: #a99fce;
  --accent: #ff3d8b;
  --accent2: #7b5cff;
  --gold: #ffd24a;
  --line: #2c2450;
  --ok: #4ade80;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(25px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx { margin-left: auto; margin-right: auto; }

/* ---- header / footer -------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 11, 26, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 900; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 12px var(--accent);
}
.brand em { font-style: normal; color: var(--accent2); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14.5px; font-weight: 600; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--ink); text-decoration: none; }

.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 34px 0 54px; color: var(--muted); font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; margin-bottom: 26px; }
.site-foot h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.site-foot a { color: var(--muted); display: block; margin-bottom: 7px; }
.site-foot a:hover { color: var(--ink); }

/* ---- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(92deg, var(--accent), var(--accent2));
  color: #fff; border: 0; border-radius: 12px;
  padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
/* Gold is reserved for the single most important action on a page. */
.btn.gold { background: linear-gradient(92deg, #ffcf3a, #ffb02e); color: #2b1d00; box-shadow: 0 6px 22px rgba(255,210,74,.24); }
.btn.ghost { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.btn.big { padding: 17px 32px; border-radius: 16px; font-size: 19px; }

/* ---- sections --------------------------------------------------------- */

.hero { padding: 74px 0 26px; }
.hero .lede { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; align-items: center; }
.cta-note { font-size: 13.5px; color: var(--muted); }

section { padding: 34px 0; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 12px;
}

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; text-align: center; }
.tile .num { font-size: 32px; font-weight: 900; color: var(--gold); letter-spacing: -.02em; }
.tile .lab { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- pricing ---------------------------------------------------------- */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; }
.plan.featured { border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2), 0 18px 50px -24px var(--accent2); }
.plan .flag {
  position: absolute; top: -11px; left: 26px; background: linear-gradient(92deg, var(--accent), var(--accent2));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.plan .icon { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; gap: 5px; margin: 14px 0 6px; }
.price .amt { font-size: 46px; font-weight: 900; letter-spacing: -.03em; color: var(--gold); }
.price .per { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; }
.plan li { padding-left: 25px; position: relative; font-size: 14.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan.soon { opacity: .62; }
.plan.soon .price .amt { color: var(--muted); font-size: 28px; }

.stack-note {
  background: rgba(123, 92, 255, .10); border: 1px solid rgba(123, 92, 255, .40);
  border-radius: var(--r-md); padding: 18px 20px; color: #d9cfff; margin: 26px 0;
}
.stack-note strong { color: #fff; }

table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 4px; }
table.cmp caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 10px; }
table.cmp th, table.cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.cmp th { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
table.cmp td.num, table.cmp th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .us { color: var(--gold); font-weight: 800; }

/* ---- faq -------------------------------------------------------------- */

.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 11px;
}
.faq summary {
  cursor: pointer; padding: 16px 19px; font-weight: 700; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq .body { padding: 0 19px 17px; color: var(--muted); }

/* ---- misc ------------------------------------------------------------- */

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding-left: 46px; position: relative; margin-bottom: 18px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 31px; height: 31px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--gold); font-size: 14px;
}
.steps h3 { margin-bottom: 4px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: #2b1d00; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; top: 0; z-index: 60; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 620px) {
  .site-nav { gap: 14px; font-size: 13.5px; }
  .hero { padding: 46px 0 18px; }
}
