/* Layout: the app's own dark room. A hero with the cloud sitting on the library screenshot, then
   one full-width band for the overlay, then plain sections on the ink. One look, no light theme:
   steambro itself is dark-only. */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --ink: #0e1117;        /* the page, as in the app */
  --panel: #161a23;      /* cards and frames */
  --band: #121733;       /* the overlay band: the cloud's outline indigo, lifted */
  --line: #2a3142;
  --text: #e9edf5;
  --muted: #98a2b6;
  --sky: #7fc6ff;        /* the cloud's sweat drop */
  --blush: #ff8fbf;      /* the cloud's cheeks */
  --cloud: #ffffff;
  --cloud-ink: #151a3d;  /* the cloud's outline */
  --display: "Fredoka", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.lede { color: var(--muted); max-width: 62ch; }
.sb { font-family: var(--display); font-weight: 700; color: var(--cloud); }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }

/* Top bar */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 22px var(--display); }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Buttons: the primary one is cloud white */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 17px var(--display); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.button.primary { background: linear-gradient(160deg, var(--cloud), #eef3ff); color: var(--cloud-ink); box-shadow: 0 0 0 0 transparent; }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -6px color-mix(in srgb, var(--blush) 60%, transparent); }
.button.secondary { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.button.secondary:hover { border-color: var(--muted); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.fine { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: 11fr 13fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--sky); }
.shot { position: relative; min-width: 0; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.window img { width: 100%; height: auto; }
.cloud { position: absolute; left: -38px; top: -46px; width: 112px; height: 112px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 30% 30%; transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.cloud img { width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; }
.cloud:hover { transform: scale(1.18) rotate(-4deg); }
.cloud:active { transform: scale(1.32) rotate(3deg); }
.cloud-tip { position: absolute; left: 70px; top: -58px; font: 500 13px var(--mono); color: var(--blush); white-space: nowrap; pointer-events: none; }

/* The overlay band */
.band { background: var(--band); border-block: 1px solid #222a52; padding-block: 72px; }
.band .wrap { display: flex; flex-direction: column; gap: 28px; }
.band-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.band-head > * { min-width: 0; }
.keys { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 15px var(--mono); color: var(--muted); margin-top: 18px; }
kbd { font: 500 15px var(--mono); color: var(--text); background: linear-gradient(#262d45, #1b2135); border: 1px solid #39436a; border-bottom-width: 3px; border-radius: 8px; padding: 6px 12px; }
.band .window { border-color: #2a3360; }
figure { margin: 0; min-width: 0; }
figcaption { margin-top: 12px; font: 500 13px var(--mono); color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Sections */
.section { padding-block: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }

.stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.store { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.store h3 { font-size: 19px; }
.store p { color: var(--muted); font-size: 15px; }
.stores-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Store logos, from Simple Icons (CC0), in each store's color */
svg.logo { width: 30px; height: 30px; fill: currentColor; flex: none; }
.button svg.logo { width: 18px; height: 18px; }
.logo-xbox { color: #52b043; }
.logo-battlenet { color: #2b96ff; }
.logo-epic { color: #f2f2f2; }
.logo-gog { color: #b07ee0; }
.logo-other { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.page-head .eyebrow svg.logo { width: 22px; height: 22px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: counter(step); font: 700 44px/1 var(--display); color: var(--blush); }
.steps p { color: var(--muted); font-size: 16px; }
code { font: 500 0.9em var(--mono); color: var(--text); background: #1d2230; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature-copy p { color: var(--muted); }
.slots { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font: 500 14px var(--mono); margin: 4px 0 0; }
.slots dt { color: var(--text); }
.slots dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.pair { display: grid; gap: 16px; min-width: 0; }
.pair .window:last-child { width: 72%; margin-left: auto; margin-top: -90px; position: relative; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq details { border-top: 1px solid var(--line); padding-block: 18px; min-width: 0; }
.faq summary { cursor: pointer; font: 600 19px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sky); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 16px; }

.cta { padding-block: 104px 88px; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cta img { width: 96px; height: 96px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

/* Store cards link to the store's page */
a.store { color: inherit; text-decoration: none; transition: border-color 0.15s ease; }
a.store:hover { border-color: var(--muted); }
.store .more { margin-top: auto; padding-top: 6px; font: 500 13px var(--mono); color: var(--sky); }

/* What a plain shortcut gets wrong */
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.issues .store h3 { font-size: 18px; }

/* Store pages: a short head, then the same sections as the main page */
.page-head { padding-block: 32px 56px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 22px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; }
.page-head h1 em { font-style: normal; color: var(--sky); }
.prose p { margin: 0; max-width: 62ch; }
.others { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 900px) {
  .hero .wrap, .feature, .feature.flip, .band-head { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .stores, .issues { grid-template-columns: 1fr 1fr; }
  .steps, .faq, .gallery { grid-template-columns: 1fr; }
  .cloud { left: -8px; top: -40px; width: 88px; height: 88px; }
  .cloud-tip { left: 84px; top: -26px; }
}
@media (max-width: 520px) {
  .stores, .issues { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .pair .window:last-child { width: 90%; margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .button, a.store { transition: none; }
}
