/* Slide Stack site: same navy tray, fonts and piece colors as the game */
:root {
  --bg: #14162b; --tray: #1d2040; --well: #262a52;
  --ink: #eef0ff; --mute: #8d92c4; --amber: #ffc145;
  --c0: #ff5d73; --c2: #3ddc97; --c3: #5aa9ff; --c4: #b57bff;
  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(120% 60% at 50% 0%, #22264d 0%, var(--bg) 60%) var(--bg);
  color: var(--ink); font: 17px/1.6 var(--body);
}
a { color: var(--amber); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--amber); }
nav { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; font-size: 15px; }
nav > span[data-lang] { display: flex; gap: 16px; }
nav a { color: var(--mute); text-decoration: none; white-space: nowrap; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); }
.lang { display: inline-flex; background: var(--tray); border-radius: 999px; padding: 3px; }
.lang button { font: 600 13px var(--body); color: var(--mute); background: none; border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--well); color: var(--ink); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 8vw, 52px); line-height: 1.05; margin: 48px 0 12px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 40px 0 10px; color: var(--ink); }
.lead { font-size: 19px; color: #c7cbee; max-width: 60ch; }
p, li { max-width: 65ch; }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
.muted { color: var(--mute); font-size: 15px; }
.card { background: var(--tray); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.card p { margin: 4px 0; }
.mail { font-family: var(--body); font-weight: 600; font-size: 18px; color: var(--ink); user-select: all; }
.copy { margin-left: 8px; font: 600 13px var(--body); color: #2a1d00; background: var(--amber); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: min(300px, 100%); margin: 28px 0 8px; padding: 8px; background: var(--tray); border-radius: 14px; }
.board i { aspect-ratio: 1; border-radius: 22%; background: var(--well); }
.board i.a { background: var(--c3); } .board i.b { background: var(--amber); } .board i.c { background: var(--c0); }
.board i.d { background: var(--c2); } .board i.e { background: var(--c4); }
footer { margin-top: 56px; color: var(--mute); font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- landing page ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.hero h1 { margin-top: 16px; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.45); display: block; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 20px; border-radius: 14px;
  background: var(--amber); color: #2a1d00; font-weight: 800; font-size: 17px; text-decoration: none; }
.cta.soon { background: var(--tray); color: var(--ink); cursor: default; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cta svg { width: 20px; height: 20px; flex: none; }
.phone { justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 17; border-radius: 42px; padding: 14px;
  background: #0d0f20; box-shadow: 0 0 0 2px #2a2e55, 0 30px 70px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 14px; }
.phone .bar { display: flex; justify-content: space-between; align-items: end; padding: 18px 10px 0; }
.phone .bar b { font-family: var(--display); font-weight: 400; font-size: 13px; }
.phone .bar b span { color: var(--amber); }
.phone .bar small { font-size: 9px; letter-spacing: .14em; color: var(--mute); text-align: right; line-height: 1.2; }
.phone .bar small em { display: block; font-style: normal; font-family: var(--display); font-size: 15px; color: var(--ink); letter-spacing: 0; }
.demo { position: relative; aspect-ratio: 1; background: var(--tray); border-radius: 14px; }
.demo .w, .demo .p { position: absolute; width: calc((100% - 7 * 3%) / 6); height: calc((100% - 7 * 3%) / 6); border-radius: 22%; }
.demo .w { background: var(--well); }
.demo .p { transition: left .32s cubic-bezier(.3,.7,.4,1), top .32s cubic-bezier(.3,.7,.4,1), opacity .35s, scale .35s; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.demo .p::after { content: ""; position: absolute; inset: 28%; border-radius: 30%; background: rgba(255,255,255,.18); }
.demo .p.gone { opacity: 0; scale: .2; }
.demo .p.new { opacity: 0; scale: .6; }
.phone .hint { text-align: center; color: var(--mute); font-size: 11px; margin-top: auto; padding-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.features .card { margin: 0; }
.features h3 { font-size: 17px; margin: 0 0 4px; }
.features p { color: #c7cbee; font-size: 15px; margin: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(step); font-family: var(--display); color: var(--amber); font-size: 18px; min-width: 1.2em; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .demo .p { transition: none; } }

.inc small { display: block; font-size: 9px; letter-spacing: .14em; color: var(--mute); margin: 0 4px 6px; }
.slots { display: flex; gap: 8px; padding: 0 4px; }
.slot { position: relative; width: 44px; height: 44px; border-radius: 10px; background: var(--tray); opacity: .5; }
.slot.next { opacity: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.slot i { position: absolute; width: 8px; height: 8px; border-radius: 2px; left: calc(12px + var(--x) * 10px); top: calc(14px + var(--y) * 10px); }

.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card.link { display: block; margin: 0; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: background .15s; }
.card.link:hover { background: var(--well); }
.card.link h3 { margin: 0 0 4px; font-size: 17px; }
.card.link h3::after { content: " →"; color: var(--amber); }
.card.link p { margin: 0; color: #c7cbee; font-size: 15px; }
@media (max-width: 720px) { .links { grid-template-columns: 1fr; } }
