:root {
  --h: 218;
  --accent: hsl(var(--h) 100% 64%);
  --accent-deep: hsl(var(--h) 75% 42%);
  --bg: #141414;
  --surface: #191919;
  --surface-2: #202020;
  --line: #1e1e1e;
  --line-2: #2a2a2a;
  --text: #ffffff;
  --body: #c9c9c9;
  --muted: #888888;
  --wrap: 1340px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 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; }
p { margin: 0; }
svg { flex: none; }
.wrap { width: min(var(--wrap), 100% - 100px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { display: flex; justify-content: center; margin-top: 30px; }
.px { display: inline-block; width: 8px; height: 8px; background: var(--accent); flex: none; }

/* Header: sits on top of the hero gradient */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: 90px; padding: 0 50px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 18px; color: rgba(255, 255, 255, .92); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.login {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 8px;
  background: rgba(238, 238, 238, .1); color: #eee; font-weight: 700; font-size: 16px;
  cursor: not-allowed;
}
.login svg { width: 16px; height: 18px; }
.login small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.menu-btn { display: none; }
body:not(.home) .top { position: relative; }
.login .lg-short { display: none; }

/* Basket in the header (store.js) */
.top-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.basket { position: relative; }
.basket[hidden], .basket-pop[hidden], .basket-error[hidden], .basket-checkout[hidden] { display: none; }
.basket-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 8px;
  background: rgba(238, 238, 238, .1); color: #eee; font: 700 16px var(--font); cursor: pointer; transition: background .15s;
}
.basket-btn:hover, .basket-btn[aria-expanded="true"] { background: rgba(238, 238, 238, .16); }
.basket-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.basket-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 340px; max-width: calc(100vw - 40px); padding: 18px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); box-shadow: 0 20px 40px -12px #000;
}
.basket-pop h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.basket-error { margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 90, 90, .12); color: #ff9a9a; font-size: 14px; line-height: 20px; }
.basket-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.basket-items li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.basket-items li span { color: #fff; font-weight: 600; }
.basket-items li button { grid-column: 1; justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font: 600 13px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.basket-items li button:hover { color: #fff; }
.basket-items .none { display: block; color: var(--muted); border: 0; }
.basket-total { margin: 12px 0 14px; color: #ccc; font-size: 15px; }
.basket-total b { color: #fff; }
.basket-total span { color: var(--muted); font-size: 13px; }
.basket-total:empty { display: none; }
.basket-checkout { width: 100%; justify-content: center; cursor: pointer; }
.basket-checkout:disabled { opacity: .55; cursor: progress; }
.basket-note { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 17px; }
button.b-main, button.mem-cta { border: 0; font-family: var(--font); cursor: pointer; }
button.b-main:hover { filter: brightness(1.1); }
button.b-main:disabled, button.mem-cta:disabled { opacity: .55; cursor: progress; }

/* Buttons */
.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 32px; border-radius: 15px; border: 2px solid transparent;
  background: #fff; color: #000; font: 800 20px var(--font); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.btn-white:active { transform: scale(.98); }
.btn-white.sm { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn-soft {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 22%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent); font-weight: 700; text-decoration: none; transition: background .15s;
}
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 32%, var(--bg)); }

/* Shared button used on sub pages */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px;
  font: 700 16px var(--font); text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: #3a3a3a; }
.btn:active { transform: scale(.98); }
.btn.primary { background: #fff; border-color: #fff; color: #000; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* Hero */
.hero { position: relative; padding-top: 90px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0 0 auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(60% 70% at 20% 0%, color-mix(in srgb, var(--accent) 85%, transparent), transparent 70%),
    radial-gradient(50% 60% at 85% 10%, color-mix(in srgb, var(--accent-deep) 80%, transparent), transparent 70%),
    linear-gradient(180deg, var(--accent-deep) 0%, color-mix(in srgb, var(--accent-deep) 55%, var(--bg)) 40%, var(--bg) 92%);
  transition: background .3s;
}
/* Measured on the reference store at 1880 and 1440 wide: 1400 px content, copy in the left half,
   the car 757 x 426 running 160 px past the right edge, perks still on the first screen */
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: min(1400px, 100% - 100px); margin-inline: auto; padding: 98px 0 0;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 16px; text-decoration: none; color: #fff;
}
.pill svg { width: 20px; height: 20px; color: rgba(255, 255, 255, .35); }
.pill span { font-size: 13px; opacity: .8; }
.pill-new { padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.hero h1 { font-size: 70px; line-height: 80px; font-weight: 800; letter-spacing: -1px; margin: 20px 0 50px; max-width: 720px; }
@media (min-width: 1536px) { .hero h1 { font-size: 80px; line-height: 90px; max-width: 750px; } }
.hero-actions { display: flex; align-items: center; gap: 58px; }
.hero-note { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; color: rgba(255, 255, 255, .75); }
.hero-note svg { width: 26px; height: 26px; color: var(--accent); }
.hero-note b { display: block; color: #fff; font-size: 14px; }
.hero-note:hover b { text-decoration: underline; }

.hero-visual { position: relative; justify-self: end; width: 757px; margin: 50px -160px 0 0; }
.car { position: relative; aspect-ratio: 757 / 426; cursor: grab; touch-action: pan-y; }
.car:active { cursor: grabbing; }
.car canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.car.ready canvas { opacity: 1; }
/* a still of the car shows straight away and gives way once the 3D car has drawn its first frame */
.car .poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; pointer-events: none; }
.car.ready .poster { opacity: 0; }
.float {
  position: absolute; z-index: 2; padding: 12px; border-radius: 10px;
  background: rgba(30, 30, 30, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.float b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.f-paint { top: 0; left: 30px; }
.f-finish { bottom: 64px; right: 30px; }
.hue { display: block; width: 190px; }
.hue input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.hue input::-webkit-slider-runnable-track { height: 22px; border-radius: 3px; background: linear-gradient(90deg, red, #ff0, lime, cyan, blue, #f0f, red); }
.hue input::-moz-range-track { height: 22px; border-radius: 3px; background: linear-gradient(90deg, red, #ff0, lime, cyan, blue, #f0f, red); }
.hue input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -2px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); }
.hue input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); }
.chips { display: flex; gap: 6px; }
.chips button {
  font: 700 13px var(--font); color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08);
  border: 1px solid transparent; border-radius: 7px; padding: 6px 10px; cursor: pointer;
}
.chips + b { margin-top: 14px; }
.chips button[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 25%, transparent); }

.perks {
  position: relative; list-style: none; margin: 0 auto; padding: 110px 0 110px;
  width: min(1400px, 100% - 100px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.perks li { display: flex; gap: 24px; }
.perks svg { width: 62px; height: 62px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.perks b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 2px; }
.perks span { color: var(--muted); font-size: 15px; line-height: 20px; }

/* Sections */
section { padding: 0 0 130px; }
.label { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.center-head { text-align: center; }
.center-head h2 { font-size: 40px; font-weight: 700; line-height: 45px; }
.center-head .sub { color: var(--muted); margin-top: 10px; }

/* Script cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; padding: 20px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--body);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 20px 25px -5px rgba(0, 0, 0, .05);
  transition: transform .2s, border-color .2s;
}
a.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.thumb {
  position: relative; margin: -20px -20px 16px; aspect-ratio: 433 / 230; overflow: hidden; border-radius: 12px 12px 0 0;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep) 60%, #10131c);
}
.thumb.t-next { background: linear-gradient(160deg, #3a3a3a, #1f1f1f 60%, #141414); }
.thumb.t-img { background: #0b1f1c; }
.thumb.t-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.t-idea { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 45%, #333), #1b1b1b 65%); }
.thumb-title { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; padding-top: 18px; color: #fff; }
.thumb-title img { border-radius: 50%; margin-bottom: 4px; }
.thumb-title b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.thumb-title small { font-size: 12px; opacity: .8; margin-top: 4px; }
.thumb .shot {
  position: absolute; left: 50%; bottom: -18%; width: 82%; transform: translateX(-50%) rotate(-2deg);
  border-radius: 8px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .15);
}
.ribbon {
  position: absolute; z-index: 2; top: 14px; right: -36px; transform: rotate(45deg);
  width: 140px; text-align: center; padding: 3px 0; background: #22c55e; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em;
}
.thumb .pix { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 18px); gap: 6px; }
.thumb .pix i { width: 18px; height: 18px; background: rgba(255, 255, 255, .1); }
.thumb .pix i.on { background: var(--accent); }
.fw { display: flex; gap: 6px; flex-wrap: wrap; }
.fw span { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 5px; color: #f8b4b4; background: rgba(248, 113, 113, .14); }
.fw span:nth-child(2) { color: #fcd34d; background: rgba(252, 211, 77, .12); }
.fw span:nth-child(3) { color: #fca5a5; background: rgba(239, 68, 68, .12); }
.card h3 { font-size: 22px; font-weight: 600; color: #fff; margin: 12px 0 4px; }
.card .price { color: var(--muted); font-size: 16px; }

/* Promo banner */
.promo {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
  padding: 40px 0 40px 40px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(80% 120% at 85% 50%, color-mix(in srgb, var(--accent-deep) 35%, transparent), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.promo h2 { font-size: 32px; font-weight: 800; }
.promo p { color: rgba(255, 255, 255, .8); margin: 12px 0 22px; max-width: 520px; }
.promo small { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }
.promo { min-height: 285px; padding-right: 40px; }
.promo-copy { position: relative; z-index: 2; }
/* pixel field from pixels.js; the gradient keeps the text side calm */
.pixfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 70%, transparent) 40%, transparent 70%); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.stats b {
  display: block; font-size: 110px; line-height: 1; font-weight: 800; letter-spacing: -3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 25%, transparent);
}
.stats span { display: block; margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Marquee */
.marquee { margin-top: 50px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 20px; width: max-content; animation: slide 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track article {
  width: 345px; padding: 22px; border-radius: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
}
.pixrow { display: flex; gap: 6px; }
.pixrow i { width: 18px; height: 18px; background: var(--accent); }
.track p { color: var(--body); font-size: 15px; flex: 1; }
.track span { color: var(--muted); font-size: 14px; font-weight: 600; font-family: var(--mono); }
@keyframes slide { to { transform: translateX(calc(-50% - 10px)); } }

/* Works with */
.works { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px 70px; margin-top: 60px; }
.works span { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; color: #8a8a8a; font-style: italic; }

/* Question box */
.ask {
  text-align: center; padding: 60px 30px 70px; border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-deep) 45%, var(--bg)), var(--surface) 75%);
  border: 1px solid var(--line);
}
.ask-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; }
.ask h2 { font-size: 40px; font-weight: 700; margin: 22px 0 12px; }
.ask p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 auto 30px; }
/* a small phone rising from the bottom right; the box keeps its height and crops it */
.ask { position: relative; overflow: hidden; }
.phone {
  position: absolute; right: 70px; top: 44px; width: 210px; height: 420px; padding: 12px 10px;
  border-radius: 34px; background: radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--accent-deep) 40%, transparent), transparent 70%), #08090c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 6px #050608, 0 40px 80px -30px #000;
  transform: rotate(6deg); text-align: left; font-size: 12px;
}
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; margin-bottom: 14px; font: 600 10px var(--mono); color: var(--muted); }
.ph-top i { width: 64px; height: 18px; border-radius: 10px; background: #000; }
.call { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.call small { font: 600 8.5px var(--mono); letter-spacing: .16em; color: var(--accent); }
.call b { display: block; font-size: 15px; margin: 4px 0 1px; }
.call > span { color: var(--muted); font-size: 11px; }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; margin: 10px 0; }
.wave i { flex: 1; height: 25%; border-radius: 2px; background: var(--accent); animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--n) * -.13s); }
@keyframes wave { 50% { height: 100%; } }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btns span { display: grid; place-items: center; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: 11px; }
.btns .ok { background: var(--accent); color: #05070a; }
.ph-row { display: flex; justify-content: space-between; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-weight: 600; }
.ph-row em { font: 500 9px var(--mono); font-style: normal; color: var(--muted); }
@media (max-width: 1100px) { .phone { display: none; } }

/* Footer */
footer { position: relative; z-index: 1; margin-top: 40px; padding: 30px 0; background: var(--surface); border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 40px; }
.foot-brand { width: 300px; flex: none; }
.brand-name { display: inline-flex; align-items: center; gap: 8px; height: 38px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; color: #fff; opacity: .4; filter: grayscale(1); transition: opacity .15s; }
.brand-name:hover { opacity: .6; }
.brand-name img { width: 30px; height: 30px; border-radius: 50%; }
.foot-brand p { color: #999; font-size: 16px; line-height: 24.8px; margin: 22px 0 16px; }
.powered { display: flex; align-items: center; gap: 10px; margin-top: 14px; width: max-content; font-size: 13px; color: #777; text-decoration: none; transition: color .15s; }
.powered img { height: 26px; width: auto; opacity: .6; transition: opacity .15s; }
.powered:hover { color: #aaa; }
.powered:hover img { opacity: .9; }
/* currency switcher: a small button with a searchable list above it */
.cur { position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #777; }
.cur[hidden] { display: none; }
.cur-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: #ddd; font: inherit; cursor: pointer; transition: border-color .15s; }
.cur-btn:hover, .cur-btn[aria-expanded="true"] { border-color: #3a3a3a; }
.cur-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.cur-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cur-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 260px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); box-shadow: 0 20px 40px -12px #000; }
.cur-pop[hidden] { display: none; }
.cur-pop input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg); color: #fff; font: inherit; font-size: 14px; outline: none; }
.cur-pop input:focus { border-color: var(--accent); }
.cur-pop ul { list-style: none; margin: 6px 0 0; padding: 0 2px 0 0; max-height: 240px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.cur-pop ul::-webkit-scrollbar { width: 4px; }
.cur-pop ul::-webkit-scrollbar-track { background: transparent; }
.cur-pop ul::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
.cur-pop ul::-webkit-scrollbar-button { display: none; }
.cur-pop li { display: flex; gap: 10px; padding: 7px 8px; border-radius: 6px; color: #aaa; cursor: pointer; }
.cur-pop li b { width: 34px; color: #fff; font-weight: 700; }
.cur-pop li:hover, .cur-pop li.active { background: #2a2a2a; }
.cur-pop li[aria-selected="true"] b { color: var(--accent); }
.cur-pop .none { cursor: default; }
.cur-pop .none:hover { background: none; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 175px); gap: 20px; }
.foot h4 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-block; padding: 3px 0; font-size: 16px; line-height: 24.8px; text-decoration: none; color: #888; transition: color .15s; }
.foot li a:hover { color: #fff; }
.legal { margin-top: 30px; padding-top: 30px; border-top: 1px solid #222; display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .25); }
.legal a { color: rgba(255, 255, 255, .35); }

/* ---------- Sub pages ---------- */
body:not(.home) { position: relative; }
.glow {
  position: absolute; inset: 0 0 auto; height: 620px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-deep) 70%, var(--bg)) 0%, color-mix(in srgb, var(--accent-deep) 30%, var(--bg)) 38%, var(--bg) 100%);
}
main.sub { position: relative; z-index: 1; padding-bottom: 60px; }
.page-title { font-size: 40px; line-height: 45px; font-weight: 700; padding: 32px 0 40px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Breadcrumb pill */
.crumbs {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600; color: #666;
}
.crumbs a { color: #666; text-decoration: none; display: inline-flex; }
.crumbs a:hover { color: #bbb; }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs i { font-style: normal; color: #828282; }

/* Framework badges */
.fw .b-sa, .badges .b-sa { color: #74c0fc; background: rgba(34, 139, 230, .15); }
.fw .b-qb, .badges .b-qb { color: #ffa8a8; background: rgba(250, 82, 82, .15); }
.fw .b-qbx, .badges .b-qbx { color: #ffe066; background: rgba(250, 176, 5, .15); }
.fw .b-esx, .badges .b-esx { color: #ffc078; background: rgba(253, 126, 20, .15); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span { display: inline-flex; align-items: center; height: 20px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }

/* Product page */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin: 50px 0 100px; align-items: start; }
.viewer { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .1); overflow: hidden; background: var(--surface); }
.viewer img { width: 100%; height: 100%; object-fit: cover; }
.viewer button, .viewer a {
  position: absolute; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(20, 20, 20, .45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s;
}
.viewer button:hover, .viewer a:hover { background: rgba(20, 20, 20, .7); }
.viewer .prev { left: 14px; top: 50%; margin-top: -17px; }
.viewer .next { right: 14px; top: 50%; margin-top: -17px; }
.viewer .zoom { right: 14px; top: 14px; }
.viewer .icon { width: 18px; height: 18px; }
/* Lightbox: the zoom button opens the picture large on the same page */
html.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px; border: 0; background: rgba(8, 8, 10, .94); place-items: center; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .15s; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox .icon { width: 20px; height: 20px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 16px; top: 50%; margin-top: -22px; }
.lightbox .lb-next { right: 16px; top: 50%; margin-top: -22px; }
.lightbox .lb-count { position: fixed; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; margin-top: 0; } .lightbox .lb-count { bottom: 22px; } }
.strip { display: flex; gap: 20px; margin-top: 20px; }
.strip button {
  width: 90px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: none;
  border: 1px solid rgba(255, 255, 255, .1); opacity: .6; transition: opacity .15s;
}
.strip button[aria-current="true"] { border: 2px solid rgba(255, 255, 255, .3); opacity: 1; }
.strip button:hover { opacity: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 42.5px; line-height: 50px; font-weight: 800; margin: 12px 0; letter-spacing: -.5px; }
.pd-price { font-size: 27px; line-height: 40.5px; font-weight: 600; color: #aaa; }
.pd-sub { font-size: 12px; font-weight: 600; color: #666; margin-top: 4px; }
.pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 28px 0 40px; }
.b-main, .b-alt {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 12px; border: 0;
  font: 600 18px var(--font); text-decoration: none; transition: filter .15s;
}
.b-main { background: var(--accent); color: #fff; }
.b-main[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.b-alt { background: color-mix(in srgb, var(--accent) 22%, #1a1a1a); color: var(--accent); }
.b-alt:hover { filter: brightness(1.15); }
.b-main .icon, .b-alt .icon { width: 24px; height: 24px; }
.pd-notes { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: #666; }
.pd-notes span { display: flex; align-items: center; gap: 6px; }
.pd-notes .icon { width: 17px; height: 17px; }
.desc { font-size: 16px; line-height: 25px; color: #bbb; }
.desc > h2 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 18px; }
.hl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.hl b { color: #ddd; }
.req { margin: 28px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.req h3 { font-size: 14px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.req ul { list-style: none; padding: 0; margin: 0; display: grid; }
.req li { display: flex; align-items: center; gap: 8px; line-height: 28px; color: #c9c9c9; }
.req li .icon { width: 18px; height: 18px; color: #c9c9c9; }
.req a { color: #c9c9c9; text-underline-offset: 3px; }
.req small { color: #666; font-size: 13px; }
.long h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #bbb; margin: 22px 0 12px; scroll-margin-top: 20px; }
.long p + p { margin-top: 12px; }
.long code { font-family: var(--mono); font-size: .9em; color: #ddd; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 5px; }
.long ol { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.long a { color: #ddd; text-underline-offset: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 21px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: #888; font-weight: 600; font-size: 13px; background: rgba(255, 255, 255, .02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; margin: 12px 0; }
pre { margin: 12px 0; background: #101010; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 14px/1.6 var(--mono); color: #ddd; }

/* Promo banner with photo */
.banner {
  position: relative; overflow: hidden; min-height: 285px; padding: 40px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(17, 17, 17, .96) 0%, rgba(17, 17, 17, .7) 40%, transparent 70%);
}
.banner-copy { position: relative; z-index: 2; max-width: 600px; }
.banner h2 { font-size: 32px; line-height: 38px; font-weight: 800; color: #fff; }
.banner p { color: #9ca3af; margin: 14px 0 24px; max-width: 560px; }
.b-join {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 8px;
  background: #fff; color: #000; font-weight: 700; text-decoration: none; transition: transform .15s;
}
.b-join:hover { transform: translateY(-1px); }
.b-join .icon { width: 18px; height: 18px; }
.banner small { display: block; margin-top: 16px; font-size: 11px; color: rgba(255, 255, 255, .4); }

/* Pages with a centred title (support, about) */
.title-c { text-align: center; font-size: 60px; line-height: 1.1; font-weight: 700; padding: 54px 0 70px; }
.title-c.sm { font-size: 44px; padding: 64px 0 50px; }
.narrow { width: min(1316px, 100% - 124px); margin-inline: auto; }
.mid { width: min(1100px, 100% - 100px); margin-inline: auto; }
.blk { margin-bottom: 64px; }
.blk > h2 { font-size: 25px; line-height: 30px; font-weight: 700; }
.blk > .sub { font-size: 14px; color: #888; margin: 6px 0 20px; }

/* FAQ list */
.search {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; margin-bottom: 12px; border-radius: 8px;
  background: #222; border: 1px solid #333;
}
.search .icon { color: #888; width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: 18px var(--font); outline: none; }
.search input::placeholder { color: #777; }
.search:focus-within { border-color: #555; }
.qa { border: 1px solid #2c2c2c; border-radius: 8px; background: #1b1b1b; overflow: hidden; }
.qa details { border: 0; border-top: 1px solid #2c2c2c; }
.qa details:first-child { border-top: 0; }
.qa summary {
  display: flex; align-items: center; gap: 14px; padding: 13px 22px; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 24px; font-weight: 500; color: #eee;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "?"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: #1b1b1b; font-size: 13px; font-weight: 800; line-height: 1; padding-bottom: 1px; box-sizing: border-box;
}
.qa summary::after {
  content: ""; flex: none; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid #bbb; border-bottom: 1.5px solid #bbb;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa details p { padding: 0 22px 18px 56px; color: #aaa; font-size: 16px; line-height: 25px; }
.qa details code { font-family: var(--mono); font-size: .9em; color: #ddd; }
.qa .none { padding: 16px 22px; color: #888; }
/* Product pages: four promise tiles and a short FAQ under the product */
.pd-more { padding-top: 0; }
.pd-promise { list-style: none; margin: 0 0 90px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-promise li { display: flex; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.pd-promise .icon { flex: none; width: 26px; height: 26px; color: var(--accent); }
.pd-promise b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.pd-promise span { color: var(--muted); font-size: 15px; line-height: 21px; }
.pd-promise code { font-family: var(--mono); font-size: .9em; color: #ddd; }
.pd-more h2 { margin-bottom: 20px; }
.pd-more .qa { max-width: 860px; }
.qa details p a { color: #ddd; text-underline-offset: 3px; }
@media (max-width: 900px) { .pd-promise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pd-promise { grid-template-columns: 1fr; margin-bottom: 60px; } }

/* Recommended docs card */
.rec {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 25px; border-radius: 12px;
  background: linear-gradient(100deg, var(--accent-deep), color-mix(in srgb, var(--accent-deep) 50%, #0b0b0b));
}
.pilltag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #fff; color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .03em; margin-bottom: 8px; }
.rec p { color: #fff; font-size: 17px; line-height: 24px; max-width: 580px; }
.b-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; height: 42px; padding: 0 24px; border-radius: 8px;
  background: #fff; color: #000; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s;
}
.b-white:hover { transform: translateY(-1px); }
.b-white .icon { width: 18px; height: 18px; }

/* Contact cards */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact > div {
  display: grid; justify-items: center; align-content: center; text-align: center; min-height: 278px; padding: 40px 30px; border-radius: 12px;
  background: #222;
}
.contact .c-discord { background: linear-gradient(160deg, #5865f2 0%, #3b44b5 55%, #0b0d2a 100%); }
.contact .big { width: 52px; height: 52px; margin-bottom: 10px; }
.contact h3 { font-size: 32px; line-height: 40px; font-weight: 700; color: #fff; }
.contact p { color: #fff; font-size: 17px; margin: 8px 0 22px; max-width: 460px; }

/* About */
.story { padding: 32px 33px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 52px; }
.story h2 { font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.story p { color: #ccc; font-size: 16.5px; line-height: 26px; }
.story p + p { margin-top: 16px; }
.story b { color: #fff; }
.mid > h2 { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px; }
.tile { position: relative; overflow: hidden; padding: 22px 21px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tile.tint {
  border-color: transparent;
  background: radial-gradient(100px 100px at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent) 98%, transparent 100%), color-mix(in srgb, var(--accent-deep) 12%, var(--surface));
}
.tile .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 22px; }
.tile h3 { font-size: 18px; font-weight: 600; color: #fff; }
.tile .tsub { font-size: 14px; color: var(--accent); margin-top: 6px; }
.tile p { font-size: 14px; line-height: 20px; color: #999; margin-top: 10px; }

/* Membership */
.mem-hero { position: relative; text-align: center; padding: 110px 0 120px; }
.mem-mark { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; }
.mem-mark img { width: 120px; height: 120px; border-radius: 50%; }
.mem-mark svg { width: 66px; height: 66px; color: var(--accent); }
.mem-hero h1 { font-size: 70px; line-height: 80px; font-weight: 800; letter-spacing: -2px; max-width: 820px; margin: 0 auto; }
.mem-hero .lede { font-size: 20px; line-height: 28px; color: #999; max-width: 720px; margin: 22px auto 60px; }
.mem-cta {
  display: inline-flex; align-items: center; gap: 18px; padding: 14px 30px; border-radius: 12px; background: #fff; color: #000;
  text-align: left; text-decoration: none; box-shadow: 0 0 90px 10px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .15s;
}
.mem-cta:hover { transform: translateY(-1px); }
.mem-cta .icon { width: 30px; height: 30px; }
.mem-cta b { display: block; font-size: 22px; line-height: 28px; font-weight: 700; }
.mem-cta span { display: block; font-size: 17px; color: #555; font-weight: 600; }
.mem-cta [data-price] { display: inline; }
.mem-cta .per { display: inline; margin-left: 2px; font-size: 13px; font-weight: 500; color: #777; }
.mem-hero small { display: block; margin-top: 14px; font-size: 12px; color: #888; }
/* Membership cards drift slowly, each on its own path and timing, like they are floating without gravity */
.floaty { position: absolute; width: var(--w, 150px); transform: rotate(var(--r, 0deg)); }
.floaty img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .12);
  animation: drift var(--d, 12s) ease-in-out var(--o, 0s) infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(7px, -12px) rotate(1.5deg); }
  50% { transform: translate(-4px, -20px) rotate(-1deg); }
  75% { transform: translate(-8px, -6px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .floaty img { animation: none; } }
.perks.boxed { padding: 70px 0 130px; }
.perks.boxed .pbox { display: grid; place-items: center; width: 80px; height: 80px; flex: none; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, #1a1a1a); }
.perks.boxed svg { width: 42px; height: 42px; }
.perks.boxed li { align-items: center; gap: 16px; }
.future { display: grid; place-items: center; min-height: 100%; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 28px; font-weight: 700; color: #ddd; text-align: center; padding: 40px 20px; }
.future span { color: var(--accent); margin-right: 6px; }
.qa.wide { max-width: 900px; margin: 50px auto 0; }

/* Docs */
.docs { display: grid; grid-template-columns: 268px minmax(0, 1fr); border-top: 1px solid var(--line); }
.side { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 20px 16px 30px; border-right: 1px solid var(--line); }
.side-search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid #2c2c2c; background: #1b1b1b; color: #ccc; margin-bottom: 24px; }
.side-search .icon { width: 16px; height: 16px; }
.side-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 15px var(--font); outline: none; }
.side-search input::placeholder { color: #999; }
.side nav { display: grid; gap: 2px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: #ccc; text-decoration: none; font-size: 15px; }
.side a:hover, .side a.on { background: rgba(255, 255, 255, .06); color: #fff; }
.side a .icon { width: 16px; height: 16px; color: #aaa; }
.side .grp { margin: 18px 8px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #666; }
.side .sub-a { padding-left: 34px; font-size: 14px; color: #999; }
.docs-main { position: relative; padding: 70px 60px 40px; }
.docs-main::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent-deep) 35%, transparent), transparent 70%);
}
.docs-in { position: relative; max-width: 976px; margin: 0 auto; }
.docs-hero { text-align: center; margin-bottom: 70px; }
.docs-hero h1 { font-size: 48px; line-height: 56px; font-weight: 800; color: #ebebeb; letter-spacing: -1.2px; }
.docs-hero p { font-size: 18px; line-height: 28px; color: rgba(179, 179, 179, .8); margin: 16px auto 34px; max-width: 560px; }
.docs-hero .search { width: min(576px, 100%); height: 56px; margin: 0 auto; border-radius: 16px; background: rgba(30, 30, 30, .7); border-color: #2c2c2c; }
.docs-hero .search .icon { color: var(--accent); width: 20px; height: 20px; }
.dh { font-size: 18px; font-weight: 700; margin: 0 0 18px; }
.sol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 60px; }
.sol a { display: block; padding: 18px 16px; border-radius: 12px; border: 1px solid #262626; background: rgba(25, 25, 25, .8); text-decoration: none; transition: border-color .15s; }
.sol a:hover { border-color: #3a3a3a; }
.sol .icon { width: 18px; height: 18px; color: var(--accent); margin-bottom: 12px; display: block; }
.sol h3 { font-size: 14px; font-weight: 700; color: #fff; }
.sol p { font-size: 12px; line-height: 20px; color: #888; margin-top: 4px; }
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 80px; }
.guides a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #262626; background: #191919; text-decoration: none; transition: border-color .15s; }
.guides a:hover { border-color: #3a3a3a; }
.guides .thumb { margin: 0; aspect-ratio: 230 / 130; border-radius: 0; }
.guides .thumb-title { padding-top: 10px; }
.guides .thumb-title b { font-size: 18px; }
.guides .thumb .shot { width: 78%; bottom: -30%; }
.g-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 15px; font-weight: 700; color: #fff; }
.g-foot .icon { width: 16px; height: 16px; color: #aaa; }
.doc { border-top: 1px solid var(--line-2); padding-top: 56px; }
.doc section { padding: 0 0 56px; scroll-margin-top: 20px; }
.doc h2 { font-size: 28px; line-height: 34px; font-weight: 700; margin-bottom: 14px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: #bbb; font-size: 16px; line-height: 26px; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc code { font-family: var(--mono); font-size: .88em; color: #e5e5e5; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 5px; }
.doc pre code { background: none; padding: 0; }
.doc td code { white-space: nowrap; }
.doc a { color: #ddd; text-underline-offset: 3px; }
.callout { margin: 14px 0; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: #ccc; font-size: 15px; line-height: 23px; }

/* Legal */
.legal-page { padding-bottom: 80px; }
.legal-page h1 { font-size: 40px; line-height: 45px; font-weight: 700; padding: 32px 0 30px; }
.legal-page h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 26px 0 14px; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 25px; color: #ccc; }
.legal-page p + p { margin-top: 18px; }
.legal-page ul { padding-left: 24px; margin: 14px 0; display: grid; gap: 8px; }
.legal-page a { color: #ccc; text-underline-offset: 3px; }
.legal-page .updated { color: #777; font-size: 14px; margin-top: 30px; }

/* 404 */
.lost { text-align: center; padding: 120px 0 160px; }
.lost .code { font-size: 120px; line-height: 1; font-weight: 800; letter-spacing: -4px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { font-size: 40px; line-height: 45px; font-weight: 700; margin: 20px 0 12px; }
.lost p { color: #888; font-size: 18px; margin-bottom: 34px; }
.lost .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; padding: 90px 0 60px; width: min(var(--wrap), 100% - 100px); margin-inline: auto; }
  .hero-visual { justify-self: stretch; width: auto; margin: 60px 0 0; }
  .hero-visual > img { border-radius: 18px; -webkit-mask-image: none; mask-image: none; }
  .f-layout { border-radius: 10px; right: 12px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo { padding: 32px 24px; min-height: 0; }
  .foot { flex-direction: column; }
  .stats b { font-size: 80px; }
}
@media (max-width: 640px) {
  .wrap, .perks, .hero-inner { width: calc(100% - 40px); }
  .top { padding: 0 20px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 12px; right: 12px; gap: 16px;
    padding: 20px; border-radius: 12px; background: rgba(20, 20, 20, .96); border: 1px solid var(--line-2);
  }
  .top { grid-template-columns: auto auto 1fr; gap: 0; }
  .login { padding: 0 16px; font-size: 16px; }
  .login .lg-full, .login small { display: none; }
  .login .lg-short { display: inline; }
  .menu-btn {
    order: -1; display: inline-grid; place-items: center; width: 34px; height: 42px; margin-right: 12px; padding: 0; border: 0;
    background: none; color: #fff; cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .hero h1 { font-size: 46px; line-height: 52px; margin: 22px 0 32px; }
  .hero-inner { padding: 60px 0 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-visual { margin-top: 30px; }
  .hero-visual { margin-right: 0; }
  .f-paint, .f-finish { position: relative; top: auto; left: auto; right: auto; bottom: auto; transform: none; margin-top: 8px; }
  .hue { width: auto; }
  .hue { width: auto; }
  .perks { grid-template-columns: 1fr; padding: 90px 0 80px; gap: 26px; }
  .perks svg { width: 48px; height: 48px; }
  section { padding-bottom: 90px; }
  .cards, .stats { grid-template-columns: 1fr; }
  .promo h2, .center-head h2, .ask h2 { font-size: 30px; line-height: 36px; }
  .works { gap: 20px 36px; }
  .works span { font-size: 32px; }
}
@media (max-width: 1100px) {
  .foot-cols { grid-template-columns: repeat(2, 175px); }
  .sol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-main { padding: 60px 32px 40px; }
}
@media (max-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
  .contact, .tiles { grid-template-columns: 1fr; }
  .rec { flex-direction: column; align-items: flex-start; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { grid-template-columns: 1fr 1fr; }
  .floaty { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-title { font-size: 32px; line-height: 38px; padding: 24px 0 28px; }
  .crumbs { margin-top: 10px; }
  .pd-info h1 { font-size: 30px; line-height: 35px; }
  .pd-buy { margin: 22px 0 32px; }
  .b-main, .b-alt { height: 46px; padding: 0 20px; font-size: 17px; }
  .strip { gap: 10px; }
  .strip button { flex: 0 1 80px; min-width: 0; height: auto; aspect-ratio: 80 / 46; }
  .hl { grid-template-columns: 1fr; }
  .banner { padding: 28px 24px; min-height: 0; border-radius: 20px; }
  .banner::before, .promo::before { background: linear-gradient(180deg, rgba(17, 17, 17, .8), rgba(17, 17, 17, .5)); }
  .banner h2 { font-size: 26px; line-height: 32px; }
  .narrow, .mid { width: calc(100% - 64px); }
  .title-c { font-size: 56px; padding: 40px 0 60px; }
  .title-c.sm { font-size: 40px; padding: 40px 0 36px; }
  .qa summary { padding: 13px 16px 13px 20px; font-size: 17px; }
  .qa details p { padding: 0 18px 16px 54px; }
  .search input { font-size: 17px; }
  .contact h3 { font-size: 30px; }
  .story { padding: 24px 20px; }
  .mem-hero { padding: 60px 0 90px; }
  .mem-mark img { width: 84px; height: 84px; }
  .mem-mark svg { width: 46px; height: 46px; }
  .mem-hero h1 { font-size: 42px; line-height: 48px; letter-spacing: -1px; }
  .mem-hero .lede { font-size: 17px; line-height: 25px; margin-bottom: 40px; }
  .perks.boxed { padding-bottom: 90px; }
  .docs-main { padding: 40px 20px 20px; }
  .docs-hero { margin-bottom: 50px; }
  .docs-hero h1 { font-size: 34px; line-height: 40px; }
  .sol, .guides { grid-template-columns: 1fr 1fr; }
  .side nav { grid-template-columns: 1fr; }
  .doc h2 { font-size: 24px; }
  .legal-page h1 { font-size: 32px; line-height: 38px; }
  .lost { padding: 80px 0 110px; }
  .lost .code { font-size: 90px; }
  .lost h1 { font-size: 30px; line-height: 36px; }
  .foot-brand { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .track article[aria-hidden] { display: none; }
  .wave i { animation: none; height: 60%; }
}
a.tile.link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.tile.link:hover, a.tile.link:focus-visible { border-color: var(--line-2); background: var(--surface-2); }

/* Brand guide */
.brand .logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 14px 0; }
.brand .logo-card { margin: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.brand .logo-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; padding: 18%; image-rendering: pixelated; }
.brand .on-dark img { background: #0f0f0f; }
.brand .on-light img { background: #f4f4f4; }
.brand figcaption { display: grid; gap: 4px; padding: 14px 16px 16px; }
.brand figcaption b { color: #fff; font-size: 15px; }
.brand figcaption span { color: var(--muted); font-size: 14px; line-height: 20px; }
.brand .dl { display: flex; gap: 8px; margin-top: 8px; }
.brand .dl a { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.brand .dl a:hover, .brand .dl a:focus-visible { border-color: var(--accent); }
.brand .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 14px 0 8px; }
.brand .swatch { display: grid; gap: 4px; text-align: left; padding: 0 0 14px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.brand .swatch span { height: 90px; background: var(--c); border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.brand .swatch b, .brand .swatch code { padding: 0 14px; }
.brand .swatch b { color: #fff; font-size: 15px; }
.brand .swatch code { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.brand .swatch:hover, .brand .swatch:focus-visible { border-color: var(--accent); }
.brand .type-card { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 26px 24px; margin: 14px 0; }
.brand .type-card .type-big { font-size: 44px; line-height: 50px; font-weight: 800; color: #fff; }
.brand .type-card .type-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; color: #ccc; }
@media (max-width: 900px) {
  .brand .logo-grid, .brand .swatches { grid-template-columns: repeat(2, 1fr); }
  .brand .type-card .type-big { font-size: 32px; line-height: 38px; }
}

/* Blog: index header, featured post card, and a post page with a narrow prose column */
.blog-head { max-width: 720px; padding: 56px 0 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-head h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin: 14px 0 16px; text-wrap: balance; }
.blog-head p:last-child { color: var(--body); font-size: 19px; line-height: 1.5; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.post-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px; vertical-align: middle; background: #444; }
.post-meta .tag + *::before { display: none; }
.tag { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.post-feature {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; margin-bottom: 100px; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s, transform .2s;
}
.post-feature:hover { border-color: #3a3a3a; transform: translateY(-3px); }
.post-feature img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-feature-text { display: grid; gap: 14px; padding: 40px 44px; }
.post-feature h2 { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.post-feature-text > p:not(.post-meta) { color: var(--body); font-size: 17px; line-height: 1.6; }
.more { color: #fff; font-weight: 700; margin-top: 6px; }
.more span { display: inline-block; transition: transform .2s; }
.post-feature:hover .more span { transform: translateX(4px); }

.post { padding-bottom: 100px; }
.post-head { width: min(760px, 100% - 100px); margin: 0 auto; display: grid; justify-items: start; gap: 18px; padding-bottom: 44px; }
.post-head .post-meta { margin-top: 24px; }
.post-head h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; text-wrap: balance; }
.lede { color: var(--body); font-size: 20px; line-height: 1.55; }
.post-cover { width: min(1080px, 100% - 100px); margin: 0 auto 64px; }
.post-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--line-2); }
.prose { width: min(680px, 100% - 100px); margin: 0 auto; }
.prose h2 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.4px; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 18px; }
.prose p a { color: #fff; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.prose p a:hover { color: var(--accent); }
.feat { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat li { display: grid; align-content: start; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.feat b { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; }
.feat b::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.feat span { color: var(--body); font-size: 15px; line-height: 1.55; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); }
.prose figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.soon-grid { list-style: none; padding: 0; width: min(1080px, 100% - 100px); margin: 32px auto 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.soon-grid a { display: grid; align-content: start; gap: 6px; height: 100%; padding-bottom: 18px; border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, transform .2s; }
.soon-grid a:hover { border-color: #3a3a3a; transform: translateY(-3px); }
.soon-grid img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; margin-bottom: 10px; }
.soon-grid b { padding: 0 18px; color: #fff; font-size: 18px; }
.soon-grid span { padding: 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.post-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 16px;
  background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--accent-deep) 45%, transparent), transparent 65%), var(--surface);
  border: 1px solid var(--line-2);
}
.post-cta b { display: block; color: #fff; font-size: 19px; margin-bottom: 6px; }
.prose .post-cta p { font-size: 15px; line-height: 1.55; }
.post-cta .btn-white { flex: none; }
.prose .back { margin-top: 40px; }
.prose .back a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.prose .back a:hover { color: #fff; }
@media (max-width: 900px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature-text { padding: 26px 22px 30px; }
  .post-feature h2 { font-size: 28px; }
  .soon-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .blog-head { padding: 36px 0 32px; }
  .blog-head h1, .post-head h1 { font-size: 38px; letter-spacing: -1px; }
  .blog-head p:last-child, .lede { font-size: 17px; }
  .post-head, .post-cover, .prose, .soon-grid { width: calc(100% - 32px); }
  .post-cover { margin-bottom: 44px; }
  .post-cover img { border-radius: 12px; }
  .prose h2 { font-size: 24px; margin-top: 44px; }
  .prose p { font-size: 16px; }
  .feat, .soon-grid { grid-template-columns: 1fr; }
  .post-cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-feature:hover, .soon-grid a:hover { transform: none; }
}

/* Docs: script switcher, search results, subpages */
.switch { position: relative; margin-bottom: 12px; }
.sw-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #2c2c2c; background: #1b1b1b; color: #fff; font: 600 15px var(--font); cursor: pointer; }
.sw-btn:hover { border-color: #3a3a3a; }
.sw-btn .icon { width: 16px; height: 16px; color: #aaa; transition: transform .15s; }
.sw-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sw-list { position: absolute; z-index: 20; left: 0; right: 0; top: 46px; display: grid; gap: 2px; padding: 6px; border-radius: 10px; border: 1px solid #2c2c2c; background: #1b1b1b; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.sw-list[hidden] { display: none; }
.sw-list a { justify-content: space-between; }
.sw-list a .icon { color: var(--accent); }
.sres { display: grid; margin: -12px 0 16px; border-radius: 10px; border: 1px solid #2c2c2c; background: #1b1b1b; overflow: hidden; }
.sres[hidden] { display: none; }
.sres a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 0; border-bottom: 1px solid #262626; }
.sres a:last-child { border-bottom: 0; }
.sres b { font-size: 14px; font-weight: 600; color: #fff; }
.sres small { font-size: 12px; color: #888; }
.sres p { padding: 12px; font-size: 14px; color: #888; }
.sres.hero-res { width: min(576px, 100%); margin: 8px auto 0; text-align: left; position: relative; z-index: 5; }
.hero-res a { color: #ccc; text-decoration: none; }
.side .sres a:hover, .hero-res a:hover { background: rgba(255, 255, 255, .06); }
.sol4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sol3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.docs-hero + .dh, .dh { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.doc-head { margin-bottom: 36px; }
.doc-head h1 { font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -1px; color: #ebebeb; }
.doc-head > p:not(.crumb) { margin-top: 10px; font-size: 17px; line-height: 26px; color: rgba(179, 179, 179, .85); }
.crumb { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; font-size: 14px; color: #888; }
.crumb a { color: #aaa; text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb .icon { width: 14px; height: 14px; }
.doc.sub { border-top: 0; padding-top: 0; }
.soon-note { margin: 0 0 28px; font-size: 14px; line-height: 22px; color: #ccc; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.pn a { display: grid; gap: 2px; min-width: 0; max-width: 48%; padding: 12px 16px; border-radius: 10px; border: 1px solid #262626; background: rgba(25, 25, 25, .8); text-decoration: none; }
.pn a:hover { border-color: #3a3a3a; }
.pn a.next { text-align: right; margin-left: auto; }
.pn small { font-size: 12px; color: #888; }
.pn span { font-size: 15px; font-weight: 700; color: #fff; }
@media (max-width: 900px) {
  .sol4, .sol3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-head h1 { font-size: 32px; line-height: 38px; }
}
@media (max-width: 600px) {
  .sol4, .sol3 { grid-template-columns: 1fr 1fr; }
  .pn a { max-width: 100%; }
}

/* Checkout return pages and store.js toggles */
.lost p:not(.code) { max-width: 640px; margin-inline: auto; }
.lost .row + p { margin: 34px auto 0; font-size: 15px; }
.lost p a { color: #ccc; text-underline-offset: 3px; }
[data-unsold][hidden] { display: none; }
@media (max-width: 640px) {
  /* on phones the basket opens under the whole header, like the menu */
  .basket { position: static; }
  .basket-pop { left: 12px; right: 12px; top: 80px; width: auto; max-width: none; }
  .basket-btn { padding: 0 12px; }
}
