/* OPNexus website — one stylesheet, mobile first, no external requests (no web fonts, no CDN).
   Brand colours come from the app itself (frontend/tailwind.config.ts): network blue #0073A8 and
   flame orange #D94F00. Light/dark follows the system setting unless the visitor picked one
   with the header toggle (html[data-theme]). Base rules target a 360px phone; wider screens
   are layered on with min-width queries. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #4a5568;
  --border: #dbe3ec;
  --brand: #005e89;
  --btn: #0073a8;
  --btn-hover: #005e89;
  --flame: #b34200;
  --wordmark-opn: #d94f00;
  --wordmark-exus: #0073a8;
  --code-bg: #0b1220;
  --code-text: #e2e8f0;
  --ring: #0073a8;
  --glow-a: rgb(0 115 168 / 0.14);
  --glow-b: rgb(217 79 0 / 0.1);
  --shadow: 0 1px 2px rgb(11 18 32 / 0.06), 0 18px 40px -12px rgb(11 18 32 / 0.2);
  --radius: 12px;
  --grid: rgb(11 18 32 / 0.045);
  --gutter: 1.25rem;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08090b;
  --bg-soft: #101216;
  --surface: #171a1f;
  --text: #f4f6f8;
  --muted: #a4adba;
  --border: #2a2f37;
  --brand: #66b9dd;
  --btn: #0073a8;
  --btn-hover: #0a86c0;
  --flame: #f0a06a;
  --wordmark-opn: #e8752f;
  --wordmark-exus: #4aa8d4;
  --code-bg: #04050a;
  --ring: #7dbeeb;
  --glow-a: rgb(74 168 212 / 0.16);
  --glow-b: rgb(232 117 47 / 0.12);
  --grid: rgb(255 255 255 / 0.05);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 16px 44px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090b;
    --bg-soft: #101216;
    --surface: #171a1f;
    --text: #f4f6f8;
    --muted: #a4adba;
    --border: #2a2f37;
    --brand: #66b9dd;
    --btn-hover: #0a86c0;
    --flame: #f0a06a;
    --wordmark-opn: #e8752f;
    --wordmark-exus: #4aa8d4;
    --code-bg: #04050a;
    --ring: #7dbeeb;
    --glow-a: rgb(74 168 212 / 0.16);
    --glow-b: rgb(232 117 47 / 0.12);
    --grid: rgb(255 255 255 / 0.05);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 16px 44px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--bg-soft); border: 1px solid var(--border); padding: 0.1em 0.35em; border-radius: 6px; font-size: 0.88em; overflow-wrap: anywhere; }
kbd { background: var(--bg-soft); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 0.05em 0.4em; font-size: 0.85em; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--btn); color: #fff; padding: 0.7rem 1rem; border-radius: 10px; z-index: 50; }
.skip:focus { top: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding: clamp(3rem, 8vw, 6rem) 0; }
.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.75rem; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 8.5vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.7rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.012em; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flame); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 999px; padding: 0.3rem 0.95rem 0.3rem 0.75rem; margin-bottom: 1.4rem; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wordmark-exus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wordmark-exus) 25%, transparent); }
.sec-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.grad { background: linear-gradient(100deg, var(--wordmark-opn), var(--wordmark-exus) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; gap: 0.5rem; min-height: 60px; }
.btn.cta-head { display: none; }
.wordmark { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; margin-right: auto; line-height: 1; padding: 0.5rem 0; }
.wordmark .opn { color: var(--wordmark-opn); }
.wordmark .exus { color: var(--wordmark-exus); font-weight: 750; }
nav.main { display: none; }
.icon-btn, .pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; padding: 0 0.7rem; }
.icon-btn:hover, .pill:hover { border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .panel { position: fixed; left: 0; right: 0; top: calc(60px + env(safe-area-inset-top)); background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem var(--gutter) 1.25rem; box-shadow: var(--shadow); max-height: calc(100dvh - 60px); overflow-y: auto; }
details.menu .panel a { display: block; padding: 0.95rem 0.25rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
details.menu .panel a:last-child { border-bottom: 0; }
.menu-btn .close { display: none; }
details.menu[open] .menu-btn .open { display: none; }
details.menu[open] .menu-btn .close { display: block; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.center .btns { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 10px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--btn); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.14); }
.btn.sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.92rem; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn.ghost:hover { border-color: var(--brand); }
@media (max-width: 479px) { .hero .btn, .cta .btn { width: 100%; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 0; overflow: clip; background:
  radial-gradient(60rem 28rem at 15% -8%, var(--glow-a), transparent 70%),
  radial-gradient(48rem 24rem at 95% 4%, var(--glow-b), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero .lead { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.75rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.chips li { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.chips li:not(:last-child)::after { content: "·"; margin-left: 0.75rem; opacity: 0.55; }
@media (max-width: 639px) { .chips { gap: 0.2rem 1.1rem; } .chips li::after { display: none; } }
.hero-stage { position: relative; margin-top: clamp(2.25rem, 6vw, 4rem); }
.hero-stage .phone { width: min(260px, 70vw); margin-inline: auto; }
.hero-stage .desk { display: none; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 5rem; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }

/* ---------- screenshot frames ---------- */
.shot { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot .chrome { display: flex; align-items: center; gap: 6px; padding: 0.55rem 0.8rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.shot .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot .chrome span { margin-left: 0.6rem; flex: 1; max-width: 18rem; font-size: 0.72rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.05rem 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot figcaption { padding: 0.8rem 1rem; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--border); }
.zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
.phone { margin: 0; position: relative; border-radius: 34px; padding: 8px; background: #11151b; border: 1px solid #2c333d; box-shadow: var(--shadow); }
.phone img { border-radius: 27px; width: 100%; }
.phone::before { content: ""; position: absolute; left: 50%; top: 14px; width: 28%; height: 5px; border-radius: 3px; background: rgb(255 255 255 / 0.18); transform: translateX(-50%); z-index: 1; }

/* desktop screenshot frames are unreadable on a phone, so phones get the mobile screenshots instead */
.only-desk { display: none; }
.only-mob { display: block; }
.mob-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.mob-shots.n1 { grid-template-columns: minmax(0, 220px); justify-content: center; }
.mob-shots figure { margin: 0; }
.mob-shots figcaption, .phone-cap { text-align: center; font-size: 0.88rem; color: var(--muted); margin: 0.7rem 0 0; }
.phone-solo .phone { width: min(260px, 72vw); margin-inline: auto; }
@media (min-width: 640px) {
  .only-desk { display: block; }
  .only-mob { display: none; }
}

/* ---------- facts strip ---------- */
.facts { padding: 0; border-block: 1px solid var(--border); background: var(--bg); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: 1.5rem 1.1rem; border-top: 1px solid var(--border); }
.facts li:nth-child(-n+2) { border-top: 0; }
.facts li:nth-child(even) { border-left: 1px solid var(--border); }
.facts strong { display: block; font-size: 2rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.45rem; font-variant-numeric: tabular-nums; color: var(--brand); }
.facts span { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* ---------- change flow ---------- */
.flow { display: grid; gap: 2rem; align-items: center; }
.steps { display: grid; gap: 1rem; margin: 0; counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 4.25rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.15rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 750; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- showcase tabs ---------- */
.tablist { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem var(--gutter) 0.75rem; margin: 0 calc(-1 * var(--gutter)) 1.25rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; font-size: 0.95rem; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.js .panel[hidden] { display: none; }
.panel { display: grid; gap: 1.5rem; }
.js .panel { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel .copy h3 { font-size: 1.5rem; }
.panel .copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (min-width: 640px) { .panel .shots { display: grid; gap: 1.25rem; align-content: start; } }
.no-js .tablist { display: none; }
.no-js .panel { margin-bottom: 3rem; }

/* ---------- mobile section ---------- */
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 68vw); gap: 1.25rem; overflow-x: auto; padding: 0.5rem var(--gutter) 1.5rem; margin: 2rem calc(-1 * var(--gutter)) 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.phones { list-style: none; }
.phones > li { scroll-snap-align: center; }
.phones figure { margin: 0; }
.phones figcaption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }
.mini { display: grid; gap: 1rem; margin-top: 1rem; padding: 0; list-style: none; }
.mini li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.mini h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- feature catalogue ---------- */
.cat { display: grid; gap: 0.5rem; padding: 2rem 0; border-top: 1px solid var(--border); }
.cat > h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.2rem; line-height: 1.25; margin: 0; align-self: start; }
.cat > h3 .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--btn) 12%, transparent); color: var(--brand); flex: none; }
.cat > h3 .ico svg { width: 19px; height: 19px; }
.cards { display: grid; gap: 0; }
.item { padding: 1rem 0; border-top: 1px solid var(--border); }
.item:first-child { border-top: 0; padding-top: 0.5rem; }
.item h4 { font-size: 1rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } .item:nth-child(2) { border-top: 0; padding-top: 0.5rem; } }
@media (min-width: 900px) { .cat { grid-template-columns: 250px 1fr; gap: 3rem; padding: 2.25rem 0; } .cat > h3 { position: sticky; top: 5.5rem; } }

/* ---------- compare slider ---------- */
.compare { --pos: 50%; position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); touch-action: pan-y; }
.compare img { width: 100%; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .top img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--btn); pointer-events: none; }
.compare .handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 4px 14px rgb(0 0 0 / 0.35); }
.compare:focus-within .handle::after { outline: 3px solid var(--ring); outline-offset: 2px; }
.compare .tag { position: absolute; bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgb(0 0 0 / 0.65); color: #fff; z-index: 1; }
.compare .tag.l { left: 0.75rem; } .compare .tag.r { right: 0.75rem; }

/* ---------- security ---------- */
.sec-grid { display: grid; gap: 0.9rem; margin-top: 1.5rem; }

/* ---------- releases ---------- */
.timeline { list-style: none; margin: 2rem 0 0; max-width: 46rem; padding: 0 0 0 1.4rem; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 1.5rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.4rem; top: 0.45rem; width: 12px; height: 12px; margin-left: -7px; border-radius: 50%; background: var(--wordmark-exus); border: 3px solid var(--bg); box-sizing: content-box; }
.timeline li:first-child::before { background: var(--wordmark-opn); }
.timeline .v { font-weight: 750; }
.timeline .v small { font-weight: 600; color: var(--muted); margin-left: 0.4rem; }
.timeline p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin: 2rem auto 0; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 650; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- install ---------- */
.cols { display: grid; gap: 2rem; }
.cols > * { min-width: 0; }
.code { position: relative; margin: 0 0 1rem; }
pre { background: var(--code-bg); color: var(--code-text); border-radius: 14px; padding: 1.15rem 1.15rem; overflow-x: auto; font-size: 0.88rem; line-height: 1.75; margin: 0; border: 1px solid var(--border); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
pre .c { color: #8b9bb0; }
.copy-btn { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.5rem auto; min-height: 40px; padding: 0 0.9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 650; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.code { display: flex; flex-direction: column; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn .i-check { display: none; }
.copy-btn:hover { border-color: var(--brand); }
.copy-btn[data-state="done"] { background: #0f7a4a; border-color: #0f7a4a; color: #fff; }
.copy-btn[data-state="done"] .i-copy { display: none; }
.copy-btn[data-state="done"] .i-check { display: block; }
.copy-btn[data-state="fail"] { border-color: var(--flame); color: var(--flame); }
pre::selection, pre *::selection { background: #1d6fa5; color: #fff; }
.copy-btn:hover { border-color: #64748b; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 1.7rem; position: relative; margin-bottom: 0.8rem; }
ul.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.cta { text-align: center; background:
  radial-gradient(40rem 18rem at 20% 0%, var(--glow-a), transparent 70%),
  radial-gradient(36rem 16rem at 90% 100%, var(--glow-b), transparent 70%); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 3rem 0 calc(2.5rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.92rem; }
.fcols { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2.5rem; }
.fcols .brand { grid-column: 1 / -1; }
.fcols .brand .wordmark { font-size: 1.4rem; margin: 0 0 0.6rem; display: inline-block; padding: 0; }
.fcols .brand p { max-width: 24rem; margin: 0; }
.fcols h2 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin: 0 0 0.75rem; font-weight: 700; }
.fcols ul { list-style: none; margin: 0; padding: 0; }
.fcols li a { display: inline-block; padding: 0.35rem 0; color: var(--muted); text-decoration: none; }
.fcols li a:hover { color: var(--brand); text-decoration: underline; }
.fine { border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.85rem; }
.fine p { max-width: 56rem; margin-bottom: 0.6rem; }
@media (min-width: 900px) { .fcols { grid-template-columns: 1.6fr repeat(4, 1fr); } .fcols .brand { grid-column: auto; } }

/* ---------- gallery page ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.gallery { display: grid; gap: 1.5rem; }
.gallery .shot { display: flex; flex-direction: column; }
.gallery .shot figcaption { margin-top: auto; }
.gallery h3 { margin: 0; font-size: 1rem; }
.gallery figcaption p { margin: 0.2rem 0 0; font-size: 0.9rem; }
.gal-group { margin-top: 2.5rem; }
.gal-group > h2 { font-size: 1.5rem; }
.js [data-cat][hidden] { display: none; }

dialog.lightbox { width: min(96vw, 1500px); max-width: none; max-height: 94dvh; padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / 0.6); overflow: auto; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / 0.78); }
dialog.lightbox img { width: 100%; }
dialog.lightbox .x { position: sticky; top: 0.5rem; float: right; margin: 0.5rem; z-index: 2; }

/* ---------- legal pages ---------- */
.legal { max-width: 46rem; padding: 3rem 0; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.todo { background: #fff3cd; color: #5c4400; padding: 0 0.3em; border-radius: 4px; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  :root { --gutter: 1.75rem; }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(-n+2), .facts li:nth-child(even) { border-top: 0; border-left: 1px solid var(--border); padding: 1.9rem 1.5rem; }
  .facts li:first-child { border-left: 0; padding-left: 0; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .mini { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tablist { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .hero-stage .phone { width: 250px; }
}
/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  :root { --gutter: 2rem; }
  .hero-stage { max-width: 1080px; margin-inline: auto; }
  .hero-stage .desk { display: block; }
  .hero-stage .phone { position: absolute; right: -1rem; bottom: -3rem; width: 210px; margin: 0; z-index: 2; }
  .flow { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
  .panel.two .shots { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: repeat(3, 1fr); }
  .phones { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (min-width: 1000px) {
  details.menu { display: none; }
  nav.main { display: flex; gap: 0.25rem; align-items: center; margin-right: 0.5rem; }
  nav.main a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.8rem; border-radius: 10px; }
  nav.main a:hover { background: var(--bg-soft); color: var(--brand); }
  .wordmark { margin-right: 1.5rem; }
  .bar { gap: 0.5rem; }
  nav.main { margin-right: auto; }
}
@media (min-width: 1100px) {
  .btn.cta-head { display: inline-flex; margin-left: 0.25rem; }
  .gallery.three { grid-template-columns: repeat(3, 1fr); }
}

/* small utilities (kept as classes so a strict Content-Security-Policy without 'unsafe-inline' works) */
.sprite { position: absolute; }
.compare.narrow { max-width: 1000px; margin-inline: auto; }
.mt { margin-top: 2rem; }
.mt-s { margin-top: 1rem; }
.page-title { font-size: clamp(2rem, 6vw, 3.2rem); }

/* ---------- toast + back-to-top ---------- */
.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translate(-50%, 1rem); z-index: 60; max-width: min(92vw, 28rem); padding: 0.75rem 1.1rem; border-radius: 12px; background: #0b1220; color: #fff; font-size: 0.92rem; font-weight: 600; box-shadow: var(--shadow); border: 1px solid #2a2f37; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; pointer-events: none; text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 22px; height: 22px; }
nav.main a[aria-current="true"] { color: var(--brand); background: var(--bg-soft); }
