/* The shared look of the antitheft subpages (pricing/, integrations/, supported/): the floating bar, the theme switch, the footer and the page
   building blocks, on top of system.css. The bar, the switch and the footer are copied from next.css (the landing): keep them in step.
   Each page adds its own file (pages-pricing.css, pages-integrations.css, pages-supported.css). */

/* ---- the bar: floating, liquid glass (system.css .glass.lg + liquid-glass.js), one size ---- */
:root { --bar-h: 60px; }
.nav { position: fixed; top: 12px; left: var(--gutter); right: var(--gutter); height: var(--bar-h); padding-inline: 20px 10px; border-radius: 18px; }
.wordmark-name { font-size: 22px; letter-spacing: -0.02em; color: inherit; }
.wordmark-by { font-size: 12px; }
.nav .pill { height: 32px; min-width: 32px; padding: 0 13px 0 11px; border: 0; border-radius: 999px; background: transparent; }
.nav .pill:hover { background: var(--hover-tint); }
.nav .pill--accent { color: #fff; background: var(--accent); }
.nav .pill--accent .ui-pic { color: #fff; }
.nav .pill--accent:hover { background: var(--accent); filter: brightness(1.1); }
.nav-links .pill > span { text-transform: lowercase; }
.nav-sep { align-self: center; width: 1px; height: 18px; margin-inline: 10px; background: var(--line); }
.pill.is-here { color: var(--ink); background: light-dark(rgba(16, 24, 44, 0.08), rgba(255, 255, 255, 0.12)); }
@media (max-width: 1100px) { .nav-links .pill:not(.pill--accent) > span { display: none; } .nav-links .pill:not(.pill--accent) { padding: 0; } }
@media (max-width: 720px) { .nav-links .pill--page { display: none; } .nav-sep { display: none; } .nav { padding-inline: 14px 8px; } }

/* ---- the theme switch: bottom right, sun | moon with a thumb ---- */
.theme-fab {
  position: fixed; z-index: 45; right: 26px; bottom: 22px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
  width: 72px; height: 38px; padding: 3px;
  border-radius: 999px;
  border: 1px solid light-dark(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.18));
  background: linear-gradient(180deg, light-dark(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16)), light-dark(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06)));
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2)), 0 14px 30px -14px light-dark(rgba(24, 40, 84, 0.45), rgba(0, 0, 0, 0.7));
  color: var(--muted);
  cursor: pointer;
}
.theme-fab::before { content: ""; position: absolute; top: 3px; left: 3px; width: 32px; height: 30px; border-radius: 999px; background: light-dark(rgba(16, 24, 44, 0.08), rgba(255, 255, 255, 0.12)); transition: transform 0.3s var(--ease); }
.theme-fab .ui-pic { position: relative; font-size: 17px; transition: color 0.2s ease; }
.theme-fab:hover { color: var(--ink); }
.theme-fab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.theme-fab::before { transform: translateX(32px); }
.theme-fab .fab-moon { color: var(--ink); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-fab::before { transform: none; }
  :root:not([data-theme="dark"]) .theme-fab .fab-sun { color: var(--ink); }
  :root:not([data-theme="dark"]) .theme-fab .fab-moon { color: inherit; }
}
:root[data-theme="light"] .theme-fab::before { transform: none; }
:root[data-theme="light"] .theme-fab .fab-sun { color: var(--ink); }
:root[data-theme="light"] .theme-fab .fab-moon { color: inherit; }
:root[data-theme="dark"] .theme-fab::before { transform: translateX(32px); }
:root[data-theme="dark"] .theme-fab .fab-moon { color: var(--ink); }
:root[data-theme="dark"] .theme-fab .fab-sun { color: inherit; }
@media (hover: none) { .theme-fab { right: 14px; bottom: 14px; } }

/* ---- the footer ---- */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-block: 20px; }
.foot-motto { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.foot-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.15s ease; }
.foot-link .ui-pic { font-size: 15px; }
.foot-link:hover { color: var(--ink); }
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.foot-co { flex-basis: 100%; font-size: 11px; line-height: 1.5; color: var(--muted); max-width: 90ch; }
/* the footer is also a .pg-sec (for the gutters and the top line): it keeps its own short padding, not a section's */
.pg-sec.foot { padding-block: 22px 32px; margin-top: clamp(24px, 4vw, 64px); }
.pg-band + .foot { margin-top: 0; border-top: 0; }   /* the closing band ends the page: the footer follows it directly */
.foot-legal { row-gap: 8px; }

/* ---- the page ---- */
main.pg { padding-top: calc(var(--bar-h) + 12px); overflow-x: clip; }
.pg-hero { padding-inline: var(--gutter); padding-block: clamp(32px, 4.5vw, 80px) clamp(28px, 3.5vw, 56px); }
.pg-h1 { font-size: clamp(38px, 4.4vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; max-width: 18ch; }
.pg-lede { margin-top: clamp(14px, 1.6vw, 22px); max-width: 56ch; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pg-sec { padding-inline: var(--gutter); padding-block: clamp(36px, 4.5vw, 76px); border-top: 1px solid var(--line); }
.pg-h2 { font-size: clamp(28px, 3.2vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; max-width: 22ch; }
.pg-h3 { font-size: clamp(19px, 1.5vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.pg-p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.pg-p strong { color: var(--ink); font-weight: 600; }
.pg-p a, .pg-link { color: var(--accent-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.pg-p a:hover, .pg-link:hover { text-decoration-color: currentColor; }
.pg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
@media (max-width: 980px) { .pg-split { grid-template-columns: minmax(0, 1fr); } }

/* buttons: the site's own, a solid accent and a hairline one */
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; transition: filter 0.2s ease, transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease; }
.pg-btn:active { transform: scale(0.98); }
.pg-btn--solid { background: var(--accent); color: #fff; }
.pg-btn--solid:hover { filter: brightness(1.1); }
.pg-btn--line { border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); }
.pg-btn--line:hover { border-color: var(--ink); background: var(--hover-tint); }
.pg-btn .ui-pic { font-size: 17px; }

/* a code block: a hairline box, mono, with a copy button */
.pg-code { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.pg-code pre { margin: 0; padding: 18px 56px 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-code .iconbtn { position: absolute; top: 10px; right: 10px; }
.pg-code .icon-check { display: none; color: var(--good); }
.pg-code.is-copied .icon-copy { display: none; }
.pg-code.is-copied .icon-check { display: block; }

/* chips */
.pg-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pg-chip--good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.pg-chip--accent { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* the closing band, as on the landing (next.css .pers-*) but neutral (owner: no colour on these pages): full width, Lady Justice standing at
   its left edge (one ink colour through an alpha mask, a light-ink figure on dark and a dark-ink one on light), and the words beside her */
.pg-band { --pw: clamp(200px, 22vw, 330px); position: relative; isolation: isolate; display: grid; grid-template-columns: calc(var(--pw) - var(--gutter)) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: stretch; padding-inline: var(--gutter); padding-top: clamp(40px, 5vw, 76px); margin-top: clamp(24px, 4vw, 64px); }
.pg-band::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 3%, transparent);   /* no colour: a faint neutral tint, so the band still reads as its own section (the landing's has the accent) */
}
.pg-close-emblem {
  --emb: url(img/app/justice-emblem-dark.png);
  display: block; align-self: end; width: var(--pw); aspect-ratio: 849 / 1538; margin-left: calc(var(--gutter) * -1);
  background: var(--ink); -webkit-mask: var(--emb) left bottom / contain no-repeat; mask: var(--emb) left bottom / contain no-repeat; pointer-events: none;
}
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) .pg-close-emblem { --emb: url(img/app/justice-emblem-light.png); } }
html[data-theme="light"] .pg-close-emblem { --emb: url(img/app/justice-emblem-light.png); }
@media (max-width: 760px) { .pg-band { grid-template-columns: minmax(0, 1fr); } .pg-close-emblem { width: min(300px, 70%); order: 2; } }
.pg-close { align-self: center; display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(40px, 5vw, 76px); }
.pg-close .pg-h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; max-width: none; }
.pg-close-sub { margin: 0; font-size: clamp(19px, 1.9vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.pg-close-go { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; margin-top: 10px; padding-bottom: 5px; border-bottom: 3px solid var(--accent-2); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.pg-close-go .ui-pic { font-size: 0.8em; color: var(--accent-2); transition: transform 0.2s var(--ease); }
.pg-close-go:hover { border-bottom-color: var(--accent); }
.pg-close-go:hover .ui-pic { transform: translateX(4px); }
.pg-close-go:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.pg-close-note { margin: 6px 0 0; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pg-close-note b { font-weight: 600; color: var(--ink); }
.pg-close-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* a section reveals as it enters (pages.js) */
.js .pg-rise { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
/* hidden only while waiting to rise (pages.js): never before the visitor scrolls */
.js .pg-rise.pending { opacity: 0; transform: translateY(14px); transition: none; }
.js .pg-rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .pg-rise, .js .pg-rise.pending { opacity: 1; transform: none; transition: none; } }

/* the page's own scrollbar, as on the landing (next.css): the native one is hidden (it took layout width), a fixed pill floats over the page (pages.js) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.sbar { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: 14px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.sbar.is-on, .sbar.is-drag, .sbar:hover { opacity: 1; }
.sbar-thumb { position: absolute; right: 3px; width: 6px; min-height: 36px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 34%, transparent); pointer-events: auto; cursor: grab; transition: width 0.15s ease, background-color 0.15s ease; }
.sbar-thumb:hover, .sbar.is-drag .sbar-thumb { width: 9px; background: color-mix(in srgb, var(--accent-2) 75%, transparent); }
.sbar.is-drag .sbar-thumb { cursor: grabbing; }
@media (hover: none) { .sbar { display: none; } }


/* the bar at the very top of a page is not glass at all: no fill, no edge ring, no shadow, no blur and no lens. The fill and the shadow ease in when the page scrolls; the blur and the
   lens switch on with it (a blur cannot be faded: with the page's plain top behind the bar, that switch is not seen). pages.js toggles .is-top, which the markup also carries so there
   is no flash. An experiment (owner, 2026-11-05): remove .is-top from the bars' markup, or these two rules, to go back to the always-glass bar. */
.nav.glass.lg { transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.nav.glass.lg.is-top, .nav.glass.lg.lg-on.is-top { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
