/* dnzFX site v6 "paper and film". Base styles and components. Scroll scenes live in scenes.css.
   Direction: warm paper, ink text, one serif (Playfair Display) for display type, Geist for everything else.
   Dark and gold scenes come from the screenshots. Brand purple is used for the "FX" of the logo only.
   Reduced-motion rules are top-level @media blocks on purpose: mode.js flips only top-level rules. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/PlayfairDisplay.ttf) format("truetype"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(fonts/PlayfairDisplay-Italic.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist-sans.woff2) format("woff2"); }

/* tone colours transition when a scene takes over the middle of the screen (site.js sets html[data-tone]) */
@property --fg { syntax: "<color>"; inherits: true; initial-value: #f1ecfa; }
@property --mut { syntax: "<color>"; inherits: true; initial-value: #aaa3c4; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(241, 236, 250, .16); }
@property --tbg { syntax: "<color>"; inherits: true; initial-value: #0b0714; }

:root {
  --paper: #0b0714; --paper2: #1a1230; --ink: #f1ecfa; --night: #06040c; --gold: #0c1a3a; --purple: #a66bff;
  --fg: #f1ecfa; --mut: #aaa3c4; --line: rgba(241, 236, 250, .16); --tbg: #0b0714;
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 4vw, 56px);
  transition: --fg .8s ease, --mut .8s ease, --line .8s ease, --tbg .8s ease;
}
html[data-tone="night"] { --fg: #efe9df; --mut: #a39c92; --line: rgba(239, 233, 223, .18); --tbg: #06040c; }
html[data-tone="gold"] { --fg: #eaf0ff; --mut: #a9b6d9; --line: rgba(234, 240, 255, .18); --tbg: #0c1a3a; }
/* without JS every scene paints its own background */
html:not(.js) [data-tone="night"] { --fg: #efe9df; --mut: #a39c92; --line: rgba(239, 233, 223, .18); background: var(--night); color: var(--fg); }
html:not(.js) [data-tone="gold"] { --fg: #eaf0ff; --mut: #a9b6d9; --line: rgba(234, 240, 255, .18); background: var(--gold); color: var(--fg); }

* { box-sizing: border-box; margin: 0; }
html { background: radial-gradient(80% 55% at 12% 0%, rgba(179, 107, 255, .26), transparent 62%), radial-gradient(70% 50% at 92% 28%, rgba(124, 92, 255, .2), transparent 62%), radial-gradient(60% 45% at 40% 100%, rgba(77, 184, 255, .08), transparent 65%), var(--paper) fixed; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { color: var(--fg); font: 400 17px/1.6 var(--sans); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
::selection { background: rgba(166, 107, 255, .35); }
code { font: .88em/1.4 var(--mono); background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 2px 7px; border-radius: 5px; overflow-wrap: anywhere; }
.wrap, .fwrap { width: min(1180px, calc(100% - 2 * var(--gut))); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fixed colour fields behind everything; only opacity changes */
.tones { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.tones i { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.tones .t-night { background: var(--night); } .tones .t-gold { background: radial-gradient(120% 90% at 70% 20%, #1c3a78, var(--gold) 55%, #070f26); }
html[data-tone="night"] .t-night, html[data-tone="gold"] .t-gold { opacity: 1; }

/* page transitions between pages of the site (Chrome, Edge, Safari) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
h1 { font-size: clamp(44px, 7.6vw, 112px); }
h2 { font-size: clamp(34px, 4.8vw, 68px); margin-bottom: 18px; }
h3 { font: 500 20px/1.3 var(--sans); letter-spacing: -.015em; }
em { font-style: italic; }
.kicker { font: 500 13.5px/1.4 var(--sans); letter-spacing: 0; color: var(--mut); margin-bottom: 18px; }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.sub { color: var(--mut); font-size: 18px; max-width: 54ch; }
.lead { font-size: 19px; color: var(--mut); max-width: 42ch; }
section { padding: clamp(80px, 12vw, 160px) 0; }
section[data-tone="paper"] + section[data-tone="paper"] { padding-top: 0; }

/* ---------- logo ---------- */
.logo { font: 800 22px/1 var(--sans); letter-spacing: -.035em; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.logo b { color: var(--purple); font-weight: 800; }

/* ---------- nav: one floating glass bar ---------- */
.nav { position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 24px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 4px 6px 4px 18px; border-radius: 99px; color: var(--fg); view-transition-name: site-nav; }
.nav .l, .nav .r { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.nav .r { justify-content: flex-end; }
.nav a:not(.logo):not(.btn) { color: var(--mut); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 99px; transition: color .2s; }
.nav a:not(.logo):not(.btn):hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]:not(.logo) { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 6px; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 760px) {
  .nav { display: flex; padding-left: 14px; gap: 4px; }
  .nav .logo { order: -1; margin-right: auto; font-size: 20px; }
  .nav .l a, .nav .r a:not(.btn) { padding: 0 8px; font-size: 13.5px; }
  .nav .btn, .nav .hide-s { display: none; }
  .nav .r .show-s { display: inline; }
}
.nav .show-s { display: none; }

/* liquid glass: nav, compare knob and tags, one caption chip. Always over imagery or a colour field. */
.glass, .nav, .compare .knob, .compare .tag, .compare .hint {
  background: color-mix(in srgb, var(--tbg) 52%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.compare .knob, .compare .tag, .compare .hint, .glass-chip { background: rgba(20, 18, 22, .28); border-color: rgba(255, 255, 255, .28); color: #fff; }
.lgx .glass-chip, .lgx .compare .knob, .lgx .compare .tag, .lgx .compare .hint { backdrop-filter: url(#lg-refract) blur(5px) saturate(1.7) brightness(1.06); }
.lgx .nav { backdrop-filter: url(#lg-refract-soft) blur(14px) saturate(1.5); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 99px; font: 500 15.5px/1 var(--sans);
  text-decoration: none; color: var(--fg); border: 1px solid var(--line); background: transparent; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { border-color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--fg); color: var(--tbg); border-color: var(--fg); }
.btn.primary:hover { background: color-mix(in srgb, var(--fg) 86%, var(--tbg)); }
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ---------- section heads ---------- */
.head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.head h2 { margin: 0; } .head .sub { margin: 0; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ---------- before / after comparison (logic in site.js) ---------- */
.compare { position: relative; overflow: hidden; border-radius: 6px; background: #000; aspect-ratio: 16 / 9; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; --pos: 50%;
  box-shadow: 0 50px 100px -50px rgba(23, 21, 26, .55); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.compare .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 18px rgba(255, 255, 255, .5); }
.compare .knob { position: absolute; top: 50%; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--ease); }
.compare:hover .knob, .compare.drag .knob { transform: scale(1.1); }
.compare .knob svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* tags stay at the bottom so they never cover the FPS counter in the top-left of the Optimizer shots */
.compare .tag, .compare .hint { position: absolute; bottom: 16px; padding: 8px 14px; border-radius: 99px; font: 500 13px/1 var(--sans); pointer-events: none; }
.compare .tag.l { left: 16px; } .compare .tag.r { right: 16px; }
.compare .hint { left: 50%; transform: translateX(-50%); transition: opacity .5s; }
.compare.touched .hint { opacity: 0; }
@media (max-width: 520px) { .compare .hint { display: none; } .compare .tag { bottom: 10px; } .compare .tag.l { left: 10px; } .compare .tag.r { right: 10px; } .compare .knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; } }

/* ---------- media frames ---------- */
.reel { display: block; position: relative; overflow: hidden; border-radius: 6px; background: #1a1816; aspect-ratio: 16 / 9; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.glass-chip { position: absolute; right: 18px; top: 18px; padding: 12px 18px; border-radius: 18px; display: grid; gap: 3px; pointer-events: none; }
.glass-chip b { font: 600 24px/1 var(--sans); letter-spacing: -.035em; } .glass-chip small { font-size: 12.5px; color: rgba(255, 255, 255, .85); }

/* ---------- feature list (quiet, typographic) ---------- */
.flist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.flist li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.flist b { display: block; font: 500 19px/1.3 var(--sans); letter-spacing: -.015em; margin-bottom: 4px; }
.flist span { display: block; color: var(--mut); font-size: 15.5px; max-width: 40ch; }
@media (max-width: 700px) { .flist { grid-template-columns: 1fr; } }

/* ---------- steps: a real sequence, so they keep numbers ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 1px solid var(--fg); font-size: 16px; color: var(--mut); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 52px/1 var(--serif); color: var(--fg); letter-spacing: -.03em; margin-bottom: 22px; }
.steps b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- verify ---------- */
.hashbox { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding: 22px 0; border-block: 1px solid var(--line); }
.hashbox .hv { flex: 1; min-width: 0; } .hashbox small { display: block; color: var(--mut); font-size: 13.5px; margin-bottom: 6px; }
.hashbox code { background: none; padding: 0; font-size: 14.5px; }
.copy { min-height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--fg); font: 500 14px/1 var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s; }
.copy:hover { border-color: var(--fg); } .copy.done { background: var(--fg); color: var(--tbg); }
.note-small { margin-top: 16px; color: var(--mut); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px 80px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 100% no-repeat; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--mut); max-width: 62ch; }

/* ---------- pricing (Optimizer) ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--fg); }
.plan small { font-size: 14px; color: var(--mut); }
.plan b { font: 400 clamp(56px, 7vw, 88px)/1 var(--serif); letter-spacing: -.03em; }
.plan p { color: var(--mut); flex: 1; max-width: 44ch; }
.plan .btn { align-self: flex-start; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- showcase gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid transparent; background: none; color: var(--mut); font: 500 15px/1 var(--sans); cursor: pointer; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; position: relative; }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; cursor: zoom-in; color: #fff; text-align: left; font: inherit; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 12, .85)); opacity: 0; transition: opacity .3s; }
.shot .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); font-weight: 500; font-size: 15px; }
.shot .cap small { display: block; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 400; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover::after, .shot:focus-visible::after, .shot:hover .cap, .shot:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .shot::after { opacity: .9; } .shot .cap { opacity: 1; transform: none; } }
.shot.hide { display: none; }
.shot.pop { animation: pop .55s var(--ease) both; } @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(10, 9, 12, .94); color: #efe9df; }
.lightbox.open { display: grid; animation: lb-in .3s ease both; } @keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1500px, 94vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 4px; animation: lb-img .5s var(--ease) both; } @keyframes lb-img { from { opacity: 0; transform: scale(.97); } }
.lightbox figcaption { margin-top: 14px; color: #a39c92; font-size: 15px; } .lightbox figcaption b { color: #efe9df; font-weight: 500; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(239, 233, 223, .25); background: rgba(239, 233, 223, .06); color: #efe9df; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(239, 233, 223, .14); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; margin-top: -26px; } .lb-next { right: 20px; top: 50%; margin-top: -26px; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; } .lb-prev { left: calc(50% - 70px); } .lb-next { right: calc(50% - 70px); } }

/* ---------- inner page head and legal pages ---------- */
.page-head { padding: clamp(130px, 16vw, 200px) 0 clamp(40px, 6vw, 80px); }
.page-head h1 { margin-bottom: 22px; }
.doc { max-width: 760px; padding: 150px 0 60px; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 10px; }
.doc .meta { color: var(--mut); margin-bottom: 36px; font-size: 15px; }
.doc h2 { font: 600 22px/1.3 var(--sans); letter-spacing: -.02em; margin: 44px 0 10px; }
.doc p, .doc li { color: #3a3631; } .doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; } .doc li { margin: 6px 0; }
.doc .key { border-left: 2px solid var(--ink); padding: 8px 0 8px 16px; margin: 14px 0; }
.doc .note { background: var(--paper2); border-radius: 4px; padding: 14px 18px; margin: 20px 0; font-size: 15.5px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14.5px; font-weight: 500; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer: works-with strip, link columns ---------- */
footer { padding: clamp(80px, 10vw, 140px) 0 28px; overflow: clip; }
.works { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding: 26px 0; border-block: 1px solid var(--line); color: var(--mut); font-size: 15px; }
.works span:first-child { color: var(--fg); }
.works b { font: 400 22px/1.2 var(--serif); color: var(--fg); letter-spacing: -.01em; }
.fcols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding: 48px 0 24px; font-size: 14px; }
.fcols p { color: var(--mut); max-width: 34ch; }
.fcols h3 { font: 500 13px/1 var(--sans); color: var(--mut); margin-bottom: 10px; }
.fcols ul { list-style: none; padding: 0; }
.fcols a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; color: var(--fg); }
.fcols a:hover { text-decoration: underline; }

/* footer "Get it" buttons: brand-coloured pills that fill on hover */
.fcols ul.gbtns { display: grid; gap: 10px; justify-items: start; }
.fcols a.gb { --b: var(--purple); position: relative; overflow: hidden; gap: 10px; min-height: 46px; padding: 0 16px 0 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); background: color-mix(in srgb, var(--fg) 6%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 560; text-decoration: none; transition: transform .35s var(--ease), background .35s, border-color .35s, color .35s, box-shadow .35s; }
.fcols a.gb svg { width: 19px; height: 19px; flex: none; }
.fcols a.gb .go { width: 15px; height: 15px; opacity: 0; margin-left: -6px; transform: translate(-4px, 4px); transition: opacity .3s, transform .35s var(--ease), margin .35s var(--ease); }
.fcols a.gb:hover { text-decoration: none; transform: translateY(-2px); color: #fff; background: var(--b); border-color: var(--b); box-shadow: 0 14px 30px -12px var(--b); }
.fcols a.gb:hover .go { opacity: 1; margin-left: 0; transform: none; }
.fcols a.gb:active { transform: scale(.97); }
.fcols a.gb-patreon { --b: #ff424d; color: #fff; background: #ff424d; border-color: #ff424d; box-shadow: 0 12px 28px -14px #ff424d; }
.fcols a.gb-patreon:hover { --b: #ff5a64; }
.fcols a.gb-key { --b: #a66bff; } .fcols a.gb-discord { --b: #5865f2; } .fcols a.gb-youtube { --b: #ff1f1f; }
@media (prefers-reduced-motion: reduce) { .fcols a.gb:hover { transform: none; } }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr 1fr; } .fcols > div:first-child { grid-column: 1 / -1; } .fcols a { min-height: 44px; } }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; color: var(--mut); font-size: 13px; }
.mtoggle { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--fg); font: 500 13px/1 var(--sans); cursor: pointer; }
.mtoggle:hover { border-color: var(--fg); }

/* reduced motion: no page slide, no smooth scroll. scenes.css removes travel. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .shot img, .btn, .btn .arr { transition: none; }
  .shot:hover img, .shot:focus-visible img, .btn:hover .arr { transform: none; }
  .shot.pop { animation: none; }
}

/* ---------- Optimizer page extras ---------- */
.facts { list-style: none; padding: 22px 0 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 36px; color: var(--mut); font-size: 15px; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 10px; vertical-align: middle; }
.result { margin-top: clamp(64px, 8vw, 110px); display: grid; justify-items: center; text-align: center; gap: 12px; }
.result h3 { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; }
.result img { width: 100%; max-width: 760px; border-radius: 6px; margin-top: 14px; }

/* nav at the very top sits on flat paper: no glass there */
.nav { transition: background-color .4s, border-color .4s, box-shadow .4s; }
.at-top .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; }

/* ---------- button language, v2: every button is a pill with an icon; brand actions use the brand colour; hover fills + lifts ---------- */
.btn { position: relative; transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.btn .bi { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--fg) 45%, transparent); }
.btn:active { transform: scale(.97); }
.btn.primary:hover { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 16px 34px -12px var(--purple); }
.btn.b-patreon { background: #ff424d; border-color: #ff424d; color: #fff; box-shadow: 0 12px 28px -14px #ff424d; }
.btn.b-patreon:hover { background: #ff5a64; border-color: #ff5a64; box-shadow: 0 16px 34px -12px #ff424d; }
.btn.b-discord:hover { background: #5865f2; border-color: #5865f2; color: #fff; box-shadow: 0 16px 34px -12px #5865f2; }
.btn.b-key:hover { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 16px 34px -12px var(--purple); }
.btn.b-youtube:hover { background: #ff1f1f; border-color: #ff1f1f; color: #fff; box-shadow: 0 16px 34px -12px #ff1f1f; }
.nav a:not(.logo):not(.btn):hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.nav .btn.b-patreon { min-height: 40px; padding: 0 16px 0 13px; }
.fcols a.gb-n { --b: var(--purple); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.specs { margin-top: -18px; font-size: 15px; } .specs b { color: var(--fg); font-weight: 560; }

/* ---------- Optimizer page: fact pills, scene tag, zoomable app screenshots with pill captions ---------- */
.facts { gap: 10px; padding-top: 26px; }
.facts li { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 13px; border-radius: 99px; color: var(--fg); font-weight: 500; font-size: 14.5px; border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); background: color-mix(in srgb, var(--fg) 7%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.facts li::before { display: none; }
.facts li svg { width: 18px; height: 18px; flex: none; color: var(--purple); }
.facts li:hover { transform: translateY(-2px); border-color: var(--purple); background: color-mix(in srgb, var(--purple) 16%, transparent); }
.scene-tag { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 99px; font-weight: 600; color: #fff; background: rgba(20, 10, 40, .42); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 28px -10px rgba(0, 0, 0, .55); }
.scene-tag i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; animation: cap-ping 2.2s ease-out infinite; }
.tilts figure.zoomable { position: relative; cursor: zoom-in; }
.tilts figure.zoomable img { transition: transform .8s var(--ease), filter .4s; }
.tilts figure.zoomable:hover img, .tilts figure.zoomable:focus-visible img { transform: scale(1.035); filter: brightness(1.08); }
.zoomtag { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 11px; border-radius: 99px; font: 600 13px/1 var(--sans); color: #fff; background: rgba(20, 10, 40, .5); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; }
.zoomtag svg { width: 16px; height: 16px; }
.tilts figure.zoomable:hover .zoomtag, .tilts figure.zoomable:focus-visible .zoomtag { opacity: 1; transform: none; }
@media (hover: none) { .zoomtag { opacity: 1; transform: none; } }
.tilts figure.zoomable figcaption { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 16px 9px 13px; border-radius: 99px; font: 500 14px/1.2 var(--sans); color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); background: color-mix(in srgb, var(--fg) 7%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s, background .3s; }
.tilts figure.zoomable figcaption .ci { width: 16px; height: 16px; flex: none; color: var(--purple); }
.tilts figure.zoomable:hover figcaption { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 16%, transparent); }
@media (prefers-reduced-motion: reduce) { .facts li:hover, .tilts figure.zoomable:hover img { transform: none; } .scene-tag i { animation: none; } }

/* ---------- nav links as pills with icons ---------- */
.nav .l, .nav .r { gap: 8px; }
.nav a:not(.logo):not(.btn) { gap: 8px; min-height: 40px; padding: 0 15px 0 12px; font-weight: 500; color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); background: color-mix(in srgb, var(--fg) 6%, transparent); text-decoration: none !important; transition: background .3s, border-color .3s, transform .35s var(--ease), color .3s; }
.nav a .ni { width: 17px; height: 17px; flex: none; color: var(--purple); transition: transform .35s var(--ease); }
.nav a:not(.logo):not(.btn):hover { transform: translateY(-1px); border-color: var(--purple); background: color-mix(in srgb, var(--purple) 20%, transparent); }
.nav a:not(.logo):not(.btn):hover .ni { transform: scale(1.12) rotate(-6deg); }
.nav a[aria-current="page"]:not(.logo) { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 24%, transparent); }

@media (prefers-reduced-motion: reduce) { .nav a:not(.logo):not(.btn):hover, .nav a:hover .ni { transform: none; } }

/* phones: two rows, so the pills keep their desktop icons: logo and Buy on top, the three links below */
@media (max-width: 760px) {
  .nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px 4px; padding: 6px 8px 8px; border-radius: 26px; }
  .nav .l, .nav .r { display: contents; }
  .nav .logo { grid-area: 1 / 1 / 2 / 3; margin: 0; padding-left: 8px; justify-self: start; }
  .nav .btn.b-buy { grid-area: 1 / 3; justify-self: end; min-height: 40px; padding: 0 18px; font-size: 14px; }
  .nav .l a, .nav .r a:not(.btn) { grid-row: 2; font-size: 13px; }
  .nav .ni { display: block; width: 15px; height: 15px; }
  .nav a:not(.logo):not(.btn) { gap: 6px; padding: 0 11px 0 9px; justify-content: center; white-space: nowrap; }
  .nav .r .hide-s { display: inline; } .nav .r .show-s { display: none; }
  header.hero { padding-top: 130px; }
  section.scene .stage { padding-top: 112px; }
}
@media (max-width: 389px) {
  .nav { padding-inline: 6px; } .nav .l a, .nav .r a:not(.btn) { font-size: 12.5px; }
  .nav a:not(.logo):not(.btn) { gap: 5px; padding: 0 8px 0 7px; }
}
@media (max-width: 374px) {
  .nav { padding-inline: 5px; gap: 6px 3px; } .nav .l a, .nav .r a:not(.btn) { font-size: 11.5px; }
  .nav a:not(.logo):not(.btn) { gap: 4px; padding: 0 6px 0 5px; } .nav .ni { width: 13px; height: 13px; }
  .nav .r .hide-s { display: none; } .nav .r .show-s { display: inline; }
}

/* ---------- plans / buy section ---------- */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.offer { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); background: color-mix(in srgb, var(--fg) 5%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.offer:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 24px 50px -28px var(--purple); }
.offer.hot { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 14%, transparent); }
.offer .badge { position: absolute; top: -13px; left: 22px; padding: 6px 13px; border-radius: 99px; font: 700 12px/1 var(--sans); color: #fff; background: var(--purple); box-shadow: 0 8px 20px -8px var(--purple); }
.offer .oname { font: 600 17px/1.25 var(--sans); letter-spacing: -.015em; color: var(--fg); margin: 0; }
.offer .oprice { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--mut); }
.offer .oprice b { font: 400 54px/1 var(--serif); letter-spacing: -.03em; color: var(--fg); }
.offer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; flex: 1; font-size: 15px; color: var(--mut); }
.offer li { display: flex; gap: 10px; align-items: flex-start; }
.offer li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: #3ddc97; }
.offer .btn { width: 100%; }
.offer.wide { grid-column: 1 / -1; margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 22px 26px; }
.offer.wide .odesc { margin: 0; color: var(--mut); max-width: 62ch; }
.offer.wide .btn { width: auto; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--mut); }
@media (max-width: 1060px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .offers { grid-template-columns: 1fr; } .offer.wide { grid-template-columns: 1fr; gap: 14px; } .offer.wide .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .offer:hover { transform: none; } }

/* ---------- buy page: artwork on every offer, Buy button in the nav ---------- */
.btn.b-buy { background: linear-gradient(135deg, #b36bff, #7c5cff); border-color: transparent; color: #fff; box-shadow: 0 12px 28px -14px #a66bff; }
.btn.b-buy:hover { background: linear-gradient(135deg, #c283ff, #8d70ff); border-color: transparent; box-shadow: 0 16px 34px -12px #a66bff; }
.nav .btn.b-buy { display: inline-flex; }
.nav a.b-buy[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 40%, transparent); }
.offer { padding: 0; overflow: hidden; }
.offer .oart { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.offer .oart img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.offer:hover .oart img { transform: scale(1.06); }
.offer .obody { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; flex: 1; }
.offer .badge { z-index: 3; }
.offer.wide { grid-template-columns: minmax(260px, 420px) 1fr; gap: 0; padding: 0; align-items: stretch; }
.offer.wide .oart { aspect-ratio: auto; min-height: 100%; }
.offer.wide .obody { justify-content: center; }
.offer.wide .btn { align-self: flex-start; }
@media (max-width: 760px) { .offer.wide { grid-template-columns: 1fr; } .offer.wide .oart { aspect-ratio: 16 / 9; } .offer.wide .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .offer:hover .oart img { transform: none; } }
