/* Quick Dial NG website. Palette taken from the extension's Anori theme and settings UI. */
:root {
  --bg: #04130e;
  --bg-2: #071c15;
  --bg-3: #0b271d;
  --panel: rgba(255, 255, 255, .055);
  --panel-2: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);
  --text: #eaf4ef;
  --muted: #a3bcb0;
  --faint: #6f8b7e;
  --brand: #0f7a4f;
  --brand-2: #17a066;
  --mint: #5fe3a8;
  --amber: #f2b84b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), 0 10px 30px -15px rgba(0, 0, 0, .6);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 15% -10%, rgba(23, 160, 102, .28), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(15, 122, 79, .22), transparent 60%);
  background-repeat: no-repeat;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9af0c8; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd { overflow-wrap: anywhere; font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: #03140d; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 19, 14, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand b { font-weight: 800; color: #03140d; background: var(--mint); border-radius: 6px; padding: 0 .32em; font-size: .82em; margin-left: .1em; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .96rem; }
.site-nav ul a:hover { color: var(--text); background: var(--panel); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 24px 24px; background: rgba(4, 19, 14, .97); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(23, 160, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: .92rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--mint); border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.band { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .025) 80%, transparent); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 110px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-copy .lead { margin: 0 auto 30px; }
.hero-copy .btn-row { justify-content: center; }
.hero h1 .accent { background: linear-gradient(100deg, #9af0c8, var(--mint) 40%, #2fbf85); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-decoration: none; margin-bottom: 24px; }
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill .tag { background: var(--brand); color: #fff; font-weight: 750; font-size: .78rem; border-radius: 999px; padding: 2px 9px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; color: var(--faint); font-size: .9rem; list-style: none; padding: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--mint); }

.stage { position: relative; max-width: 1080px; margin: 0 auto; perspective: 1800px; }
.browser { position: relative; border-radius: 16px; overflow: hidden; background: #1c1b22; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px -20px rgba(23, 160, 102, .45); }
.stage .browser { transform: rotateX(8deg); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.stage.in .browser { transform: rotateX(0); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: #2b2a33; border-bottom: 1px solid rgba(0, 0, 0, .35); }
.dots { display: flex; gap: 7px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #55545e; display: block; }
.tab { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; background: #42414d; border-radius: 8px; color: #fbfbfe; font-size: .8rem; font-weight: 550; }
.tab .logo-mark { width: 14px; height: 14px; }
.urlbar { flex: 1; height: 30px; border-radius: 8px; background: #1c1b22; color: #a6a5ad; font-size: .8rem; display: flex; align-items: center; padding: 0 12px; max-width: 520px; }
.browser img { width: 100%; height: auto; }
.float-card { position: absolute; width: 34%; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3); transform: translateY(24px); opacity: 0; transition: transform .9s .25s cubic-bezier(.2, .7, .2, 1), opacity .9s .25s; }
.stage.in .float-card { transform: none; opacity: 1; }
.float-card.right { right: -5%; bottom: -14%; }
@media (max-width: 860px) { .float-card { display: none; } }

/* ---------- trust strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.strip > div { background: var(--bg-2); padding: 22px 24px; }
.strip strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.strip span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- cards / features ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: border-color .2s, background .2s, transform .2s; }
.card:hover { border-color: var(--line-2); background: var(--panel-2); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45em; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(145deg, rgba(95, 227, 168, .22), rgba(15, 122, 79, .25)); border: 1px solid rgba(95, 227, 168, .3); color: var(--mint); }
.icon svg { width: 24px; height: 24px; }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split.flip > :first-child { order: 0; } }
.split + .split { margin-top: 110px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 650; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; background: rgba(95, 227, 168, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fe3a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid rgba(95, 227, 168, .35); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-3); }
.shot img { width: 100%; }
.dialog-shot { max-width: 520px; margin: 0 auto; }
figure { margin: 0; }
figcaption { color: var(--faint); font-size: .9rem; margin-top: 12px; }

/* ---------- how it works diagram ---------- */
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 3vw, 36px); }
.diagram svg { width: 100%; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; color: var(--muted); }
.steps li strong { display: block; color: var(--text); margin-bottom: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- performance small multiples ---------- */
.perf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .perf { grid-template-columns: minmax(0, 1fr); } }
.perf-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.perf-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.perf-card .sub { color: var(--faint); font-size: .88rem; margin-bottom: 22px; min-height: 2.9em; }
.big { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 4px; }
.big small { font-size: .42em; letter-spacing: 0; font-weight: 650; color: var(--muted); margin-left: 6px; }
.bar-list { display: grid; gap: 12px; margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.bar-track { position: relative; height: 18px; }
.bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 4px; }
.bar.orig { background: #5d6f67; }
.bar.ng { background: var(--mint); }
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--text); font-size: .84rem; white-space: nowrap; padding-left: 8px; }
.bar-row:hover .bar { filter: brightness(1.15); }
.w-100 { width: 100%; } .w-38 { width: 38%; } .w-14 { width: 14.3%; } .w-1 { width: 1%; }
.legend { display: flex; gap: 20px; justify-content: center; margin-top: 22px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .orig { background: #5d6f67; } .legend .ng { background: var(--mint); }
details.table-view { margin-top: 18px; text-align: center; }
details.table-view summary { cursor: pointer; color: var(--muted); font-size: .9rem; display: inline-block; }
details.table-view table { margin: 14px auto 0; text-align: left; }

/* ---------- themes gallery ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 650; font-size: .95rem; color: var(--muted); background: transparent; border: 0; border-radius: 11px; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { color: var(--text); background: var(--panel-2); }
.tabpanel[hidden] { display: none; }
.gallery-center { text-align: center; }
.gallery-center .shot { text-align: left; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 700; }
td { color: var(--muted); }
thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq details[open] { background: var(--panel-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { color: var(--muted); padding-bottom: 20px; }
.faq .a p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { border-radius: 28px; padding: clamp(36px, 6vw, 72px); text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(95, 227, 168, .25), transparent 70%), linear-gradient(160deg, #0c3a29, #062118); border: 1px solid rgba(95, 227, 168, .25); box-shadow: var(--shadow); }
.cta .lead { margin: 0 auto 28px; }
.cta .btn-row { justify-content: center; }

/* ---------- page header (subpages) ---------- */
.page-hero { padding: 72px 0 24px; }
.page-hero .lead { margin-bottom: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--muted); }
.prose li { margin-bottom: .4em; }
.prose li strong, .prose p strong { color: var(--text); }
.prose p { color: var(--muted); }
pre { background: #020c08; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: .82rem; line-height: 1.55; color: #cde8db; white-space: pre-wrap; word-break: break-all; }
pre code { background: none; border: 0; padding: 0; }
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; font: inherit; font-size: .8rem; font-weight: 650; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.copy-btn:hover { background: var(--brand); }
.note { border-left: 3px solid var(--amber); background: rgba(242, 184, 75, .08); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--muted); margin: 1.4em 0; }
.note strong { color: var(--text); }
.install-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .install-cards { grid-template-columns: minmax(0, 1fr); } }
.install-cards .card.recommended { border-color: rgba(95, 227, 168, .45); background: linear-gradient(160deg, rgba(95, 227, 168, .1), rgba(255, 255, 255, .04)); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #03140d; background: var(--mint); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
.card .btn { margin-top: 22px; }
ol.howto { counter-reset: h; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
ol.howto > li { counter-increment: h; position: relative; padding: 22px 24px 22px 76px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
ol.howto > li::before { content: counter(h); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
ol.howto > li strong:first-child { display: block; color: var(--text); margin-bottom: 4px; font-size: 1.05rem; }
ol.howto ul { margin: 10px 0 0; }

/* ---------- changelog ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--mint), rgba(95, 227, 168, .05)); }
.timeline > li { position: relative; padding: 0 0 44px 48px; }
.timeline > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--mint); }
.timeline > li.latest::before { background: var(--mint); box-shadow: 0 0 0 6px rgba(95, 227, 168, .18); }
.rel-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.rel-head h2 { font-size: 1.5rem; margin: 0; }
.rel-head time { color: var(--faint); font-size: .92rem; }
.rel-head .badge { margin: 0; }
.timeline ul { color: var(--muted); padding-left: 1.2em; margin: 0; }
.timeline ul li { margin-bottom: .45em; }
.timeline ul strong { color: var(--text); }

/* ---------- lightbox ---------- */
.zoom { cursor: zoom-in; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1280px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(2, 10, 7, .88); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; }
dialog.lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .6); color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
dialog.lightbox p { color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 28px; background: rgba(0, 0, 0, .18); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid p { margin-top: 14px; max-width: 42ch; font-size: .95rem; }
.footer-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--muted); text-decoration: none; }
.footer-grid ul a:hover { color: var(--text); }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.footer-base a { color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 0 80px; }
.nf .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; background: linear-gradient(120deg, var(--mint), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .btn-row { justify-content: center; }

@media (forced-colors: active) { .bar.orig, .bar.ng, .legend i { forced-color-adjust: none; } }
