/* DialForge's page on azracehub.com. A trimmed copy of AzRaceHub's site look (its css/site.css: Chakra Petch display
   type, bevelled buttons, cut-corner cards), with DialForge's own colours from its icon: deep navy, and the icon's
   cyan tile for what can be used. Self-contained: nothing here loads from outside /dialforge/ (D50). */

@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url(/dialforge/fonts/chakra-petch-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 700; font-display: swap; src: url(/dialforge/fonts/chakra-petch-latin-700-italic.woff2) format('woff2'); }

:root {
  --bg: #090c14;
  --bg-2: #0c101b;
  --surface: #111725;
  --card: #141b2b;
  --card-2: #192134;
  --edge: #212a3e;
  --edge-2: #2c3750;
  --text: #eef2f8;
  --dim: #a8b2c6;
  --faint: #76819a;
  --accent: #4cc9f0;
  --accent-2: #2fb3de;
  --accent-deep: #1d8db5;
  --accent-ink: #04131a;
  --accent-wash: rgba(76, 201, 240, 0.09);
  --accent-line: rgba(76, 201, 240, 0.35);
  --good: #9cd4b0;
  --warn: #e4c088;
  --display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --btn-bg: linear-gradient(180deg, #1b2436, #141b2a);
  color-scheme: dark;
}
@media (max-width: 520px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; }
kbd {
  font: 600 0.86em/1 var(--body); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--edge-2); border-bottom-width: 2px; background: var(--card); color: var(--text);
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Display type: italic, tight, upper case. */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; transform: skewX(-30deg); }
.lead { font-size: 18px; color: var(--dim); max-width: 60ch; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--faint); }
.accent { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 12, 20, 0.86);
  border-bottom: 1px solid var(--edge);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(9, 12, 20, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--dim); font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); text-decoration: none; }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { margin-left: 10px; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--edge-2); border-radius: 4px; color: var(--text); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; display: block; margin: auto; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--edge); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--edge); font-size: 15px; }
  .nav a[aria-current='page'] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Buttons: bevelled, with a small square in a corner ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 3px; border: 1px solid var(--edge-2);
  background: var(--btn-bg); color: var(--text);
  cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn::after {
  content: ''; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px;
  background: var(--accent); opacity: 0.85;
}
.btn:hover { text-decoration: none; border-color: var(--accent-line); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: var(--accent); color: var(--accent-ink);
}
.btn.primary::after { background: var(--accent-ink); opacity: 0.55; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn[aria-disabled='true'] { opacity: 0.55; cursor: default; pointer-events: none; }
.btn.coffee { background: #ffdd00; border-color: #ffdd00; color: #1a1400; }
.btn.coffee::after { background: #1a1400; opacity: 0.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 420px) { .actions .btn { white-space: normal; } }

/* ---------- Sections ---------- */

.section { padding: 96px 0; position: relative; }
.section.tight { padding: 60px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 12px 0 14px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section.tight { padding: 52px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 72px;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(29, 141, 181, 0.26), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(29, 141, 181, 0.1), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--edge);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 74px); margin: 18px 0 20px; }
.hero h1 span { display: block; color: var(--accent); }
.hero .lead { margin-bottom: 26px; }
.logo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 30px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.logo img { width: 40px; height: 40px; }
.logo .tag { font-style: normal; }
.meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta span::before { content: ''; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.hero .shot { transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }
@media (max-width: 960px) {
  .hero { padding: 52px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .shot { transform: none; }
}

/* A framed screenshot, like a browser window's page. */
.shot {
  border: 1px solid var(--edge-2); border-radius: 10px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.shot img { width: 100%; }

/* ---------- Cards ---------- */

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--card-2) 0%, var(--card) 45%, var(--surface) 100%);
  border: 1px solid var(--edge); border-radius: 6px;
  padding: 26px;
}
.card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  background: linear-gradient(225deg, var(--accent) 0 50%, transparent 50%); opacity: 0.7;
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.01em; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15.5px; margin: 0; }
.card .icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--accent-line); background: var(--accent-wash); color: var(--accent); border-radius: 4px; }
.card .icon svg { width: 22px; height: 22px; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-wash);
}
.tag.free { border-color: rgba(156, 212, 176, 0.45); color: var(--good); background: rgba(156, 212, 176, 0.08); }
.tag.soon { border-color: rgba(228, 192, 136, 0.45); color: var(--warn); background: rgba(228, 192, 136, 0.08); }

/* Text one side, picture the other. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } }

.list { list-style: none; display: grid; gap: 14px; margin: 24px 0 0; }
.list li { position: relative; padding-left: 26px; color: var(--dim); }
.list li b { color: var(--text); font-weight: 600; }
.list li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.gallery figure { margin: 0; }
.gallery .shot { display: block; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.gallery a.shot:hover { border-color: var(--accent-line); }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); }
.gallery figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* The lightbox (made by site.js): a gallery picture as large as the window allows, its caption under it, the previous
   and next ones beside it (under it on a phone). A click beside the picture closes it. */
.gallery a.shot { cursor: zoom-in; }
html:has(.lightbox[open]) { overflow: hidden; scrollbar-gutter: stable; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0;
  padding: 14px var(--gutter) 18px; border: 0; background: transparent; color: var(--text); overflow: hidden;
  cursor: zoom-out;
}
.lightbox[open] {
  display: grid; gap: 14px 18px;
  grid-template: 'count . close' auto 'prev stage next' minmax(0, 1fr) 'cap cap cap' auto / 44px minmax(0, 1fr) 44px;
}
.lightbox::backdrop { background: rgba(5, 7, 12, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lb-count { grid-area: count; align-self: center; margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: var(--faint); cursor: auto; }
.lb-stage { grid-area: stage; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: auto;
  border: 1px solid var(--edge-2); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-caption { grid-area: cap; align-self: center; margin: 0; text-align: center; font-size: 15px; color: var(--dim); cursor: auto; }
.lb-caption b { color: var(--text); font-weight: 600; }
.lb-btn {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; align-self: center;
  border: 1px solid var(--edge-2); border-radius: 4px; background: var(--surface); color: var(--text); cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { grid-area: close; }
.lb-prev { grid-area: prev; }
.lb-next { grid-area: next; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template: 'count . close' auto 'stage stage stage' minmax(0, 1fr) 'prev cap next' auto / 44px minmax(0, 1fr) 44px; }
  .lb-caption { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open], .lightbox[open]::backdrop { animation: lb-fade 0.18s ease-out; }
  .lightbox[open] .lb-stage img { animation: lb-grow 0.22s ease-out; }
}
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-grow { from { scale: 0.96; } }

/* ---------- Install ---------- */

.stores { display: grid; gap: 12px; margin-bottom: 26px; }
.store {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 6px;
  border: 1px solid var(--edge); background: var(--surface); color: var(--text);
}
.store:hover { text-decoration: none; border-color: var(--accent-line); }
.store .name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.store .tag { margin-left: auto; flex: none; white-space: nowrap; }
/* A live listing is a link: an arrow says it opens the store. */
.store .go { flex: none; width: 18px; height: 18px; color: var(--accent); transition: translate 0.15s ease; }
.store:hover .go { translate: 2px -2px; }
@media (prefers-reduced-motion: reduce) { .store .go { transition: none; } }
@media (max-width: 420px) { .store { padding: 12px 14px; gap: 10px; } .store .name { font-size: 14px; } }
.store[aria-disabled='true'] { pointer-events: none; }

.steps { counter-reset: step; list-style: none; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 20px 22px 20px 74px; background: var(--surface); border: 1px solid var(--edge); border-radius: 6px; color: var(--dim); }
.steps li b { color: var(--text); display: block; font-size: 17px; margin-bottom: 2px; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 19px; width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 20px; color: var(--accent-ink); background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
@media (max-width: 520px) { .steps li { padding: 64px 18px 18px; } .steps li::before { left: 18px; top: 18px; } }
.install-h { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.02em; margin: 34px 0 14px; }

/* A note: something to know before going on. */
.note {
  border: 1px solid var(--accent-line); background: var(--accent-wash); color: var(--dim);
  border-radius: 6px; padding: 14px 18px; font-size: 14.5px;
}
.note b { color: var(--text); }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.specs th { width: 34%; color: var(--faint); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; padding-right: 20px; }
.specs td { color: var(--dim); }

/* ---------- What's new ---------- */

.releases { display: grid; gap: 0; }
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--edge); }
.release:first-child { padding-top: 0; }
.release .v { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 28px; line-height: 1; }
.release .d { color: var(--faint); font-size: 14px; margin-top: 8px; }
.release ul { list-style: none; display: grid; gap: 10px; }
.release li { position: relative; padding-left: 22px; color: var(--dim); }
.release li::before { content: ''; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Call to action band ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 60px 32px; border: 1px solid var(--accent-line); border-radius: 8px;
  background: radial-gradient(70% 120% at 50% 0%, rgba(76, 201, 240, 0.16), transparent 70%), var(--surface);
}
.cta h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 12px 0 14px; }
.cta .lead { margin: 0 auto 28px; }
.cta .actions { justify-content: center; }
@media (max-width: 520px) { .cta { padding: 44px 20px; } }

/* ---------- Inner pages (privacy) ---------- */

.page-head {
  padding: 60px 0 40px; border-bottom: 1px solid var(--edge);
  background: radial-gradient(50% 90% at 85% 0%, rgba(76, 201, 240, 0.12), transparent 70%), var(--bg);
}
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 14px 0 16px; }
.page-head .lead:last-child { margin-bottom: 0; }

.doc { max-width: 74ch; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.doc .summary { background: var(--surface); border: 1px solid var(--edge); border-radius: 6px; padding: 20px 24px; margin-bottom: 12px; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: 0.01em; margin: 38px 0 12px; }
.doc p, .doc li { color: var(--dim); }
.doc ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ''; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.doc b { color: var(--text); font-weight: 600; }
.doc code { font-size: 0.92em; color: var(--text); overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .code { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(90px, 18vw, 200px); line-height: 0.9; color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--edge); background: var(--bg-2); padding: 56px 0 36px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.site-footer h4 { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer ul a { color: var(--dim); font-size: 15px; }
.site-footer ul a:hover { color: var(--text); }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 13px; color: var(--faint); }
.site-footer .legal p { margin: 0; max-width: 80ch; }
.site-footer .legal .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .legal .links a { color: var(--dim); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: span 2; } }
