/* =====================================================================
   Pinnacle Recovery — design system
   Dark, cybersecurity-inspired. No external dependencies.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  /* Surfaces */
  --bg:            #05080f;
  --bg-soft:       #080d18;
  --surface:       #0b1220;
  --surface-2:     #0f1829;
  --surface-3:     #141f33;
  --border:        #1b2942;
  --border-soft:   #16223a;
  --border-bright: #24375a;

  /* Text */
  --text:          #e8eefb;
  --text-strong:   #f7fafe;
  --muted:         #92a6c6;
  --muted-dim:     #6b7f9e;

  /* Brand */
  --accent:        #00d3f2;
  --accent-soft:   #5ce6ff;
  --accent-deep:   #0891b2;
  --accent-glow:   rgba(0, 211, 242, .18);
  --violet:        #7c5cff;
  --violet-soft:   #a58bff;

  /* Status */
  --success:       #22c98a;
  --success-bg:    rgba(34, 201, 138, .12);
  --warn:          #f0b429;
  --warn-bg:       rgba(240, 180, 41, .12);
  --danger:        #ff5f6d;
  --danger-bg:     rgba(255, 95, 109, .12);
  --info:          #47a9ff;
  --info-bg:       rgba(71, 169, 255, .12);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;

  /* Effects */
  --shadow:    0 18px 50px -22px rgba(0, 0, 0, .85);
  --shadow-lg: 0 32px 80px -30px rgba(0, 0, 0, .9);
  --ring:      0 0 0 3px var(--accent-glow);

  --max: 1200px;
  --max-narrow: 760px;
}

/* ---------- 2. Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient grid + glow, purely decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(0, 211, 242, .10), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(124, 92, 255, .10), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--text-strong);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.075rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-soft); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
li::marker { color: var(--accent-deep); }

hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: .12em .42em;
  border-radius: 5px;
  color: var(--accent-soft);
  word-break: break-word;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.6;
  color: var(--muted);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.35rem;
  border-left: 3px solid var(--accent-deep);
  color: var(--muted);
  font-style: italic;
}

::selection { background: rgba(0, 211, 242, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .85rem 1.4rem;
  background: var(--accent);
  color: #01121a;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-alt { background: linear-gradient(180deg, transparent, rgba(11, 18, 32, .55) 12%, rgba(11, 18, 32, .55) 88%, transparent); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split-reverse > :first-child { order: 2; }
}

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.text-muted { color: var(--muted); }
.text-dim { color: var(--muted-dim); }
.text-small { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.hidden { display: none !important; }
.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;
}

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section-head.center .eyebrow::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.72; }

/* ---------- 4. Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0aa6d6 55%, var(--violet) 165%);
  color: #01121a;
  box-shadow: 0 10px 30px -12px rgba(0, 211, 242, .55);
}
.btn-primary:hover {
  color: #01121a;
  box-shadow: 0 16px 40px -12px rgba(0, 211, 242, .7);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, .045);
  border-color: var(--border-bright);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .085);
  border-color: var(--accent-deep);
  color: var(--text-strong);
}

.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); background: rgba(255,255,255,.03); }

.btn-whatsapp { background: #22c55e; color: #04140a; box-shadow: 0 10px 30px -14px rgba(34, 197, 94, .7); }
.btn-whatsapp:hover { background: #16a34a; color: #04140a; transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: #1a0407; }
.btn-danger:hover { background: #ff4757; color: #1a0407; }

.btn-sm { padding: .55rem 1rem; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row.center { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .92rem;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Cards ------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card-hover:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p { margin-top: .8rem; }

.card-accent { border-color: rgba(0, 211, 242, .3); }
.card-accent::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--violet), transparent);
}

.card-link { display: flex; flex-direction: column; color: inherit; height: 100%; }
.card-link:hover { color: inherit; }
.card-link h3 { transition: color .18s ease; }
.card-link:hover h3 { color: var(--accent-soft); }

/* ---------- Card cover art ------------------------------------------- */
.card.has-cover { padding: 0; overflow: hidden; }
.card.has-cover .card-body {
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card.has-cover .card-body > :last-child { margin-top: auto; }

.card-cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 400 / 180;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.card-cover {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
/* Uploaded photographs crop to fill rather than distort */
.card-cover-img { object-fit: cover; }
.card-hover:hover .card-cover { transform: scale(1.06); }

/* Fade so overlaid text stays legible on any pattern */
.card-cover-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 20, .82));
  pointer-events: none;
}
.card-cover-badge {
  position: absolute;
  left: 1rem;
  bottom: .85rem;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.card-cover-meta {
  position: absolute;
  right: 1rem;
  bottom: .95rem;
  z-index: 2;
  font-size: .74rem;
  color: rgba(232, 238, 251, .72);
  font-family: var(--mono);
}

/* ---------- Illustrations -------------------------------------------- */
.figure { position: relative; display: block; }
.figure img, .figure svg { display: block; width: 100%; height: auto; }

.figure-glow::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 78%);
  filter: blur(28px);
}

.figure-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.figure-caption {
  font-size: .78rem;
  color: var(--muted-dim);
  text-align: center;
  margin-top: .9rem;
}

/* Keeps a small illustration from being blown up inside a full-width section */
.figure-narrow { max-width: 780px; margin-inline: auto; }

/* Icon chip */
.icon-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  background: linear-gradient(150deg, rgba(0, 211, 242, .17), rgba(124, 92, 255, .13));
  border: 1px solid rgba(0, 211, 242, .26);
  color: var(--accent-soft);
  flex: none;
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip-lg { width: 58px; height: 58px; border-radius: 15px; }
.icon-chip-lg svg { width: 27px; height: 27px; }

/* ---------- 6. Badges / pills ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .3rem .68rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-accent  { background: var(--accent-glow); color: var(--accent-soft); border-color: rgba(0, 211, 242, .3); }
.badge-success { background: var(--success-bg); color: var(--success); border-color: rgba(34, 201, 138, .3); }
.badge-warn    { background: var(--warn-bg);    color: var(--warn);    border-color: rgba(240, 180, 41, .3); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(255, 95, 109, .3); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border-color: rgba(71, 169, 255, .3); }
.badge-muted   { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--border); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .95rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}
.pill-live { color: var(--success); border-color: rgba(34, 201, 138, .3); background: var(--success-bg); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot-pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.75); }
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- 7. Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 15, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border-soft);
  background: rgba(5, 8, 15, .93);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--text-strong); flex: none; }
.brand:hover { color: var(--text-strong); }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(0, 211, 242, .2), rgba(124, 92, 255, .18));
  border: 1px solid rgba(0, 211, 242, .32);
  color: var(--accent);
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }

/* Uploaded logo used as a square badge */
.brand-mark.has-logo {
  background: none;
  border: 0;
  overflow: hidden;
  padding: 0;
}
.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

/* Uploaded wordmark standing in for the icon and the name together */
.brand-full {
  height: 38px;
  width: auto;
  max-width: min(260px, 46vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 750; font-size: 1.06rem; letter-spacing: -.02em; }
.brand-sub { font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted-dim); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 550;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.nav-link.is-active { color: var(--accent); background: rgba(0, 211, 242, .09); }

.nav-caret {
  width: 7px; height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .7;
  transition: transform .22s ease;
}

/* ---- Dropdown ---- */
.nav-group { position: relative; }

.nav-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  z-index: 60;
  min-width: 268px;
  padding: .45rem;
  display: grid;
  gap: .1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  /* visibility is never interpolated: it flips instantly on open, and is
     held back until the fade finishes on close. */
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

/* Desktop opens on hover or keyboard focus, with no JavaScript involved —
   :focus-within covers tabbing from the trigger into the menu. */
@media (min-width: 1081px) {
  .nav-group:hover > .nav-menu,
  .nav-group:focus-within > .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
  }
  .nav-group:hover .nav-caret,
  .nav-group:focus-within .nav-caret { transform: rotate(-135deg) translate(-2px, -2px); }
  .nav-group:hover > .nav-link,
  .nav-group:focus-within > .nav-link { color: var(--text); background: rgba(255, 255, 255, .045); }
}

/* Bridges the gap so the pointer can travel from trigger to menu */
.nav-menu::before {
  content: "";
  position: absolute;
  inset: -.5rem 0 100% 0;
}

.nav-menu a {
  display: grid;
  gap: .1rem;
  padding: .6rem .75rem;
  border-radius: 9px;
  color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
.nav-menu a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-menu a.is-active { background: rgba(0, 211, 242, .1); color: var(--accent-soft); }
.nav-menu-label { font-size: .9rem; font-weight: 600; color: inherit; }
.nav-menu-desc { font-size: .76rem; color: var(--muted-dim); line-height: 1.45; }
.nav-menu a:hover .nav-menu-desc { color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav, .header-actions { display: none; }

  .site-header.is-open .nav,
  .site-header.is-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: .3rem;
  }
  .site-header.is-open .header-inner { flex-wrap: wrap; padding-bottom: 1.25rem; }
  .site-header.is-open .nav {
    margin: .5rem 0 0;
    padding-top: .85rem;
    border-top: 1px solid var(--border-soft);
    max-height: min(62vh, 520px);
    overflow-y: auto;
    gap: .1rem;
  }
  .site-header.is-open .nav-link { padding: .75rem .85rem; font-size: .95rem; width: 100%; }
  .site-header.is-open .header-actions { margin-top: .75rem; }
  .site-header.is-open .header-actions .btn { width: 100%; }

  /* Groups expand inline instead of floating over the page */
  .site-header.is-open .nav-group { width: 100%; }
  .site-header.is-open .nav-toggle-btn { justify-content: space-between; }
  .site-header.is-open .nav-menu {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: none;
    padding: .1rem 0 .35rem .85rem;
    margin-left: .35rem;
    border-left: 1px solid var(--border-soft);
    border-radius: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-header.is-open .nav-group.is-open .nav-menu { display: grid; }
  .site-header.is-open .nav-group.is-open .nav-caret { transform: rotate(-135deg) translate(-2px, -2px); }
  .site-header.is-open .nav-menu::before { display: none; }
  .site-header.is-open .nav-menu-desc { display: none; }
}

/* Top alert strip */
.topbar {
  background: linear-gradient(90deg, rgba(0, 211, 242, .1), rgba(124, 92, 255, .1));
  border-bottom: 1px solid var(--border-soft);
  font-size: .82rem;
  color: var(--muted);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 40px;
  text-align: center;
  padding-block: .45rem;
}
.topbar strong { color: var(--text); }
@media (max-width: 640px) { .topbar { display: none; } }

/* ---------- 7b. Translate widget --------------------------------------
   Google injects its own markup, so these rules mostly reshape what it
   produces rather than styling elements of ours. */
.translate-widget {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .6rem .3rem .55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  flex: none;
  max-width: 190px;
}
.translate-widget > svg { flex: none; color: var(--accent-deep); }

/* Placeholder shown until Google's <select> has been injected */
.translate-fallback { font-size: .84rem; color: var(--muted-dim); }
.translate-widget.is-ready .translate-fallback { display: none; }

#pinnacle-translate { min-width: 0; }

.goog-te-gadget {
  font-size: 0 !important;
  color: transparent !important;
  line-height: 1 !important;
}
.goog-te-gadget .goog-te-combo {
  margin: 0 !important;
  padding: .25rem 1.4rem .25rem .35rem;
  max-width: 130px;
  font-family: var(--font);
  font-size: .84rem;
  line-height: 1.4;
  color: var(--text);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392a6c6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .1rem center;
  background-size: 15px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.goog-te-gadget .goog-te-combo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.goog-te-gadget .goog-te-combo option { background: var(--surface-2); color: var(--text); }

/* Google's own attribution line inside the gadget — the credit is carried
   in the footer instead, where it does not crowd the header control. */
.goog-te-gadget > span { display: none; }

/* Fallback control, used when the in-page widget returns no languages */
.translate-select {
  padding: .25rem 1.4rem .25rem .35rem;
  max-width: 130px;
  font-family: var(--font);
  font-size: .84rem;
  line-height: 1.4;
  color: var(--text);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392a6c6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .1rem center;
  background-size: 15px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.translate-select:disabled { cursor: not-allowed; opacity: .55; }
.translate-select option { background: var(--surface-2); color: var(--text); }
.translate-widget.is-unavailable { opacity: .6; }

/* Suppress the injected top banner and the page offset it forces */
.goog-te-banner-frame,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; position: static !important; }

/* Hover tooltip bubble Google adds over translated text */
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 1080px) {
  .translate-widget { max-width: none; width: 100%; justify-content: flex-start; padding: .55rem .7rem; }
  .goog-te-gadget .goog-te-combo,
  .translate-select { max-width: none; width: 100%; font-size: .95rem; }
}

/* ---------- 8. Hero -------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }

/* ---- Optional hero background photograph -----------------------------
   Two stacked layers: the image itself at reduced opacity, then a scrim
   graded darkest on the left where the headline sits. The site runs a dark
   theme, so a light photo needs both before text contrast is acceptable. */
.hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: var(--hero-img-opacity, .28);
  /* Pulls a light stock photo toward the site's palette */
  filter: grayscale(.35) contrast(1.05) brightness(.82);
}

.hero.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg,
      rgba(5, 8, 15, calc(var(--hero-scrim, .88) + .06)) 0%,
      rgba(5, 8, 15, var(--hero-scrim, .88)) 42%,
      rgba(5, 8, 15, calc(var(--hero-scrim, .88) * .72)) 100%),
    linear-gradient(180deg, rgba(5, 8, 15, .5) 0%, transparent 28%, rgba(5, 8, 15, .82) 100%);
}

.hero.has-bg > * { position: relative; z-index: 1; }

/* On narrow screens the text sits over the middle of the photo, so the
   scrim has to be flat and stronger rather than graded sideways. */
@media (max-width: 860px) {
  .hero.has-bg::before { background-position: center; opacity: calc(var(--hero-img-opacity, .28) * .75); }
  .hero.has-bg::after {
    background:
      linear-gradient(180deg,
        rgba(5, 8, 15, calc(var(--hero-scrim, .88) + .04)) 0%,
        rgba(5, 8, 15, var(--hero-scrim, .88)) 60%,
        rgba(5, 8, 15, .95) 100%);
  }
}
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(115deg, var(--accent) 10%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { max-width: 56ch; margin-bottom: 2rem; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}
.hero-proof-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 750;
  color: var(--text-strong);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero-proof-item span { font-size: .8rem; color: var(--muted-dim); }

/* Terminal-style visual panel */
.hero-panel {
  background: linear-gradient(165deg, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .022);
}
.hero-panel-bar .lights { display: flex; gap: .35rem; }
.hero-panel-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-bright); }
.hero-panel-bar .lights i:first-child { background: #ff5f57; }
.hero-panel-bar .lights i:nth-child(2) { background: #febc2e; }
.hero-panel-bar .lights i:nth-child(3) { background: #28c840; }
.hero-panel-bar .title {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted-dim);
  margin-left: .4rem;
}

/* Illustration seated inside the hero panel */
.hero-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(120% 100% at 20% 90%, rgba(0, 211, 242, .09), transparent 60%), var(--bg-soft);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-panel-body { padding: 1.15rem 1.35rem; display: grid; gap: .6rem; }

.trace-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .7rem .85rem;
  background: rgba(255, 255, 255, .022);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: .82rem;
}
.trace-row .step {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(0, 211, 242, .13);
  border: 1px solid rgba(0, 211, 242, .26);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--mono);
}
.trace-row .label { color: var(--text); font-weight: 550; }
.trace-row .meta { font-family: var(--mono); font-size: .72rem; color: var(--muted-dim); }
.trace-row.is-done .step { background: var(--success-bg); border-color: rgba(34,201,138,.35); color: var(--success); }
.trace-row.is-active { border-color: rgba(0, 211, 242, .35); background: rgba(0, 211, 242, .05); }

.hero-panel-foot {
  border-top: 1px solid var(--border-soft);
  padding: .9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .76rem;
  color: var(--muted-dim);
  font-family: var(--mono);
}

/* ---------- 9. Trust bar --------------------------------------------- */
.trustbar {
  border-block: 1px solid var(--border-soft);
  background: rgba(11, 18, 32, .5);
  padding-block: 1.5rem;
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 550;
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- 10. Stats ------------------------------------------------ */
.stat-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  pointer-events: none;
}
.stat-value {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -.032em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  margin-bottom: .3rem;
}
.stat-value .unit { font-size: .55em; color: var(--accent); margin-left: .08em; }
.stat-label { font-size: .84rem; color: var(--muted); font-weight: 550; }
.stat-note { font-size: .74rem; color: var(--muted-dim); margin-top: .55rem; }
.stat-card .icon-chip { position: absolute; top: 1.5rem; right: 1.5rem; margin: 0; width: 38px; height: 38px; }
.stat-card .icon-chip svg { width: 18px; height: 18px; }

/* Bar chart */
.bars { display: grid; gap: .9rem; }
.bar-row { display: grid; gap: .4rem; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .86rem; }
.bar-head .name { color: var(--text); }
.bar-head .val { color: var(--muted-dim); font-family: var(--mono); font-size: .78rem; flex: none; }
.bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  /* --w carries the final value so the bar is correct without JavaScript. */
  width: var(--w, 0);
}
.js .bar-fill { width: 0; transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }

/* Column chart */
.columns {
  display: flex;
  align-items: flex-end;
  gap: clamp(.3rem, 1.2vw, .7rem);
  height: 190px;
  padding-top: 1rem;
}
.column { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; justify-content: flex-end; min-width: 0; }
.column-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  min-height: 4px;
  height: var(--h, 0);
  position: relative;
}
.js .column-bar { height: 0; transition: height 1s cubic-bezier(.22, 1, .36, 1); }
.column-bar[data-value="0"] { background: rgba(255, 255, 255, .07); }
.column-label { font-size: .68rem; color: var(--muted-dim); font-family: var(--mono); }
.column-value { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 11. Process / timeline ----------------------------------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) { .steps-inline { grid-template-columns: repeat(5, 1fr); } }

.step-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.4rem;
}
.step-card .step-num {
  position: absolute;
  top: -14px; left: 1.4rem;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  color: #01121a;
  font-weight: 750;
  font-size: .84rem;
  font-family: var(--mono);
  box-shadow: 0 6px 18px -8px rgba(0, 211, 242, .8);
}
.step-card h3 { font-size: 1.08rem; margin-top: .4rem; }
.step-card p { font-size: .9rem; }

/* Vertical timeline */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-deep), var(--border-soft));
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent-deep);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--accent-glow); }
.timeline-item.is-muted::before { border-color: var(--border-bright); }
.timeline-time { font-size: .76rem; color: var(--muted-dim); font-family: var(--mono); margin-bottom: .25rem; }
.timeline-item h4 { margin-bottom: .35rem; font-size: 1rem; }
.timeline-item p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* ---------- 12. Testimonials ----------------------------------------- */
.testimonial-viewport { overflow: hidden; position: relative; }
.testimonial-viewport::before,
.testimonial-viewport::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.testimonial-viewport::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.testimonial-viewport::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.testimonial-track {
  display: flex;
  gap: 1.25rem;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 min(100%, 400px);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.stars { display: flex; gap: .15rem; color: var(--warn); }
.stars svg { width: 15px; height: 15px; }
.stars .empty { color: var(--border-bright); }

.testimonial-quote { font-size: .96rem; line-height: 1.72; color: var(--text); flex: 1; }
.testimonial-quote::before { content: "\201C"; color: var(--accent-deep); font-size: 1.6em; line-height: 0; vertical-align: -.28em; margin-right: .1em; }

.testimonial-author { display: flex; align-items: center; gap: .85rem; padding-top: 1.1rem; border-top: 1px solid var(--border-soft); }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(0, 211, 242, .2), rgba(124, 92, 255, .2));
  border: 1px solid var(--border-bright);
  color: var(--accent-soft);
  font-weight: 700;
  font-size: .84rem;
  flex: none;
}
.testimonial-author .name { font-weight: 650; font-size: .92rem; color: var(--text-strong); }
.testimonial-author .meta { font-size: .78rem; color: var(--muted-dim); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.carousel-btn:hover { border-color: var(--accent-deep); background: rgba(0, 211, 242, .08); }
.carousel-btn svg { width: 17px; height: 17px; }
.carousel-dots { display: flex; gap: .45rem; }
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--border-bright);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.carousel-dot.is-active { width: 22px; background: var(--accent); }

/* ---------- 13. Forms ------------------------------------------------ */
.form-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow);
}

fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; }
fieldset:last-of-type { margin-bottom: 1.5rem; }

.fieldset-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.4rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border-soft);
}
.fieldset-head legend, .fieldset-head .legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  padding: 0;
}
.fieldset-head .step-tag {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 211, 242, .26);
  padding: .12rem .5rem;
  border-radius: 6px;
  flex: none;
}
.fieldset-note { font-size: .85rem; color: var(--muted-dim); margin: -.85rem 0 1.35rem; }

.field { margin-bottom: 1.35rem; }
.field:last-child { margin-bottom: 0; }

.field-row { display: grid; gap: 1.35rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-row-2 { grid-template-columns: 1fr 1fr; }
  .field-row-3 { grid-template-columns: repeat(3, 1fr); }
}

label, .label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}
label .optional { font-weight: 400; color: var(--muted-dim); font-size: .82em; margin-left: .3rem; }
label .req { color: var(--danger); margin-left: .15rem; }

.hint { font-size: .8rem; color: var(--muted-dim); margin-top: .4rem; line-height: 1.55; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], input[type="date"], input[type="search"],
select, textarea {
  width: 100%;
  padding: .78rem .95rem;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  appearance: none;
  -webkit-appearance: none;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.65; }
textarea.tall { min-height: 210px; }

input::placeholder, textarea::placeholder { color: #4d5f7d; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: var(--ring);
  background: #060b14;
}

input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 95, 109, .16);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392a6c6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 17px;
  padding-right: 2.6rem;
  cursor: pointer;
}
select option { background: var(--surface-2); color: var(--text); }

input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.65); cursor: pointer; }

.field-error { display: block; font-size: .82rem; color: var(--danger); margin-top: .42rem; font-weight: 500; }

/* Checkbox / radio */
.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .8rem;
  align-items: start;
  cursor: pointer;
  font-weight: 400;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}
.check + .check { margin-top: .85rem; }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  border: 1.5px solid var(--border-bright);
  background: var(--bg-soft);
  border-radius: 6px;
  cursor: pointer;
  flex: none;
  display: grid;
  place-content: center;
  appearance: none;
  -webkit-appearance: none;
  transition: background .16s ease, border-color .16s ease;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input[type="checkbox"]::before {
  content: "";
  width: 11px; height: 11px;
  transform: scale(0);
  transition: transform .14s ease;
  box-shadow: inset 1em 1em #01121a;
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 82% 0, 39% 62%);
}
.check input[type="radio"]::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform .14s ease;
  box-shadow: inset 1em 1em #01121a;
}
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check strong { color: var(--text); font-weight: 600; display: block; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* Card-style radio group */
.choice-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.choice:hover { border-color: var(--border-bright); color: var(--text); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--border-bright);
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color .16s ease;
}
.choice .choice-dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .16s ease;
}
.choice:has(input:checked) { border-color: var(--accent-deep); background: rgba(0, 211, 242, .07); color: var(--text-strong); }
.choice:has(input:checked) .choice-dot { border-color: var(--accent); }
.choice:has(input:checked) .choice-dot::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, .015);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(0, 211, 242, .05); }
.dropzone svg { width: 34px; height: 34px; color: var(--accent-deep); margin: 0 auto .9rem; }
.dropzone strong { display: block; color: var(--text); margin-bottom: .3rem; font-size: .96rem; }
.dropzone span { font-size: .82rem; color: var(--muted-dim); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.file-list { margin-top: 1rem; display: grid; gap: .5rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  font-size: .85rem;
}
.file-item svg { width: 17px; height: 17px; color: var(--accent-deep); flex: none; }
.file-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-item .size { color: var(--muted-dim); font-size: .78rem; font-family: var(--mono); flex: none; }
.file-item.is-invalid { border-color: rgba(255, 95, 109, .4); }
.file-item.is-invalid .name { color: var(--danger); }

.char-count { font-size: .76rem; color: var(--muted-dim); text-align: right; margin-top: .35rem; font-family: var(--mono); }
.char-count.is-warn { color: var(--warn); }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 14. Alerts ----------------------------------------------- */
.alert {
  display: flex;
  gap: .9rem;
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.alert:last-child { margin-bottom: 0; }
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.alert p { margin: 0; }
.alert p + p { margin-top: .5rem; }
.alert strong { display: block; margin-bottom: .15rem; }

.alert-success { background: var(--success-bg); border-color: rgba(34, 201, 138, .3); color: #b3f0d5; }
.alert-success svg, .alert-success strong { color: var(--success); }
.alert-error   { background: var(--danger-bg);  border-color: rgba(255, 95, 109, .3); color: #ffc9ce; }
.alert-error svg, .alert-error strong { color: var(--danger); }
.alert-warning { background: var(--warn-bg);    border-color: rgba(240, 180, 41, .3); color: #f8e0ac; }
.alert-warning svg, .alert-warning strong { color: var(--warn); }
.alert-info    { background: var(--info-bg);    border-color: rgba(71, 169, 255, .3); color: #c3e0ff; }
.alert-info svg, .alert-info strong { color: var(--info); }

.flash-stack { position: fixed; top: 90px; right: var(--gutter); z-index: 200; width: min(400px, calc(100vw - 2 * var(--gutter))); }
.flash-stack .alert {
  box-shadow: var(--shadow-lg);
  background-color: var(--surface-2);
  animation: flash-in .35s cubic-bezier(.22, 1, .36, 1);
}
@keyframes flash-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.flash-stack .alert.is-leaving { opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease; }
.flash-close {
  background: none; border: 0; color: inherit; opacity: .55;
  cursor: pointer; padding: 0; font-size: 1.15rem; line-height: 1; align-self: flex-start;
}
.flash-close:hover { opacity: 1; }

/* Callout */
.callout {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(0, 211, 242, .07), transparent 70%);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
}
.callout-warn { border-left-color: var(--warn); background: linear-gradient(90deg, rgba(240, 180, 41, .08), transparent 70%); }
.callout-danger { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(255, 95, 109, .08), transparent 70%); }
.callout h4 { margin-bottom: .4rem; font-size: .98rem; }
.callout p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

/* ---------- 15. Article prose ---------------------------------------- */
.prose { font-size: 1.03rem; line-height: 1.78; color: #d3ddec; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.6em; font-size: 1.55rem; }
.prose h3 { margin-top: 2.2em; font-size: 1.22rem; color: var(--text-strong); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent-deep); }
.prose strong { color: var(--text-strong); font-weight: 650; }
.prose a { text-decoration: underline; text-decoration-color: rgba(0, 211, 242, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose pre { margin-block: 1.6em; }

/* Denser variant for prose shown inside admin panels */
.prose-compact { font-size: .93rem; line-height: 1.7; }
.prose-compact > * + * { margin-top: 1em; }

.article-cover { margin: 0 0 2rem; }
.article-cover-frame {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1000 / 300;
  box-shadow: var(--shadow);
}
.article-cover .card-cover { width: 100%; height: 100%; }
@media (max-width: 640px) { .article-cover-frame { aspect-ratio: 16 / 7; } }

.article-head { border-bottom: 1px solid var(--border-soft); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; font-size: .84rem; color: var(--muted-dim); }
.article-meta .sep { color: var(--border-bright); }

.toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dim); margin-bottom: .85rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .4em; font-size: .9rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }

/* ---------- 16. Breadcrumb / page head -------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(0, 211, 242, .045), transparent);
}

/* Decorative circuit topology, fading out behind the heading */
.page-head::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(560px, 52%);
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220' fill='none' stroke='%2300d3f2' stroke-width='1.1'%3E%3Cpath d='M10 60h48l22-22h50'/%3E%3Cpath d='M10 150h30l26 26h74'/%3E%3Cpath d='M160 38v54l26 26v62'/%3E%3Cpath d='M96 220v-42l-30-30V96'/%3E%3Cpath d='M130 38V6'/%3E%3Ccircle cx='58' cy='60' r='3.4'/%3E%3Ccircle cx='130' cy='38' r='3.4'/%3E%3Ccircle cx='160' cy='92' r='3.4'/%3E%3Ccircle cx='66' cy='176' r='3.4'/%3E%3Ccircle cx='186' cy='118' r='3.4'/%3E%3Ccircle cx='66' cy='96' r='3.4'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mask-image: linear-gradient(270deg, #000 5%, transparent 88%);
  -webkit-mask-image: linear-gradient(270deg, #000 5%, transparent 88%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .75rem; }
.page-head p { color: var(--muted); font-size: 1.06rem; max-width: 68ch; margin-bottom: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--muted-dim);
  margin-bottom: 1.1rem;
  padding: 0;
  list-style: none;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.breadcrumb li + li::before { content: "/"; color: var(--border-bright); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- 17. CTA -------------------------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(0, 211, 242, .13), transparent 62%),
    radial-gradient(520px 240px at 88% 100%, rgba(124, 92, 255, .13), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { margin-bottom: .85rem; }
.cta-band p { color: var(--muted); max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; font-size: 1.06rem; }

/* ---------- 18. Case tracker ----------------------------------------- */
.case-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 2rem;
}
.case-ref { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--text-strong); letter-spacing: .02em; }

.progress-track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; margin-block: 1rem .6rem; }
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--violet));
  width: var(--w, 0);
}
.js .progress-fill { width: 0; transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }

.kv { display: grid; gap: .1rem; }
.kv-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .92rem;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { color: var(--muted-dim); font-size: .86rem; }
.kv-row dd { margin: 0; color: var(--text); word-break: break-word; }
@media (max-width: 640px) { .kv-row { grid-template-columns: 1fr; gap: .2rem; } }

.msg-thread { display: grid; gap: .9rem; margin-bottom: 1.75rem; }
.msg {
  max-width: 82%;
  padding: .9rem 1.15rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.65;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.msg-client { margin-left: auto; background: rgba(0, 211, 242, .08); border-color: rgba(0, 211, 242, .22); border-bottom-right-radius: 4px; }
.msg-team { border-bottom-left-radius: 4px; }
.msg-meta { font-size: .74rem; color: var(--muted-dim); margin-top: .5rem; font-family: var(--mono); }

/* ---------- 18b. Evidence + copyable identifiers ----------------------
   Shared by the public case tracker, the report confirmation page and the
   admin case view, so these belong here rather than in admin.css. */
.evidence-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--bg-soft);
  font-size: .87rem;
}
.evidence-item > svg { width: 18px; height: 18px; color: var(--accent-deep); flex: none; }
.evidence-item .info { flex: 1; min-width: 0; }
.evidence-item .name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-item .hash {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Thumbnail for image evidence, in place of the generic file icon */
.evidence-thumb {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.evidence-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evidence-thumb svg { width: 20px; height: 20px; color: var(--accent-deep); }

.copy-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  word-break: break-all;
}
.copy-field span { flex: 1; min-width: 0; }

.copy-btn {
  background: none;
  border: 0;
  color: var(--muted-dim);
  cursor: pointer;
  padding: .2rem;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 5px;
}
.copy-btn:hover { color: var(--accent); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.is-copied { color: var(--success); }

/* ---------- 19. Footer ----------------------------------------------- */
.site-footer {
  margin-top: var(--section);
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, transparent, rgba(8, 13, 24, .8));
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }

.footer-about p { color: var(--muted); font-size: .9rem; max-width: 42ch; }
.footer-col h4 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted-dim);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-contact { display: grid; gap: .8rem; font-size: .9rem; color: var(--muted); }
.footer-contact div { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent-deep); flex: none; margin-top: 3px; }

.footer-disclaimer {
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .015);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted-dim);
  margin-bottom: 2rem;
}
.footer-disclaimer strong { color: var(--muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  font-size: .82rem;
  color: var(--muted-dim);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: var(--muted-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 20. Floating controls -------------------------------------
   Our own controls live bottom-LEFT. The bottom-right corner is left clear
   for a third-party live chat widget, which almost always anchors itself
   there and cannot be repositioned reliably. */
:root {
  --dock-gap: clamp(1rem, 3vw, 1.75rem);
  --dock-stack: 66px; /* vertical step between stacked buttons */
}

.wa-float {
  position: fixed;
  left: var(--dock-gap);
  bottom: var(--dock-gap);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .95rem .7rem .7rem;
  border-radius: 99px;
  background: #22c55e;
  color: #04140a;
  font-weight: 650;
  font-size: .88rem;
  box-shadow: 0 14px 38px -12px rgba(34, 197, 94, .65), 0 0 0 0 rgba(34, 197, 94, .5);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-ring 3.4s ease-out infinite;
}
.wa-float:hover { color: #04140a; transform: translateY(-2px) scale(1.02); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float .wa-text { display: block; }
@media (max-width: 560px) {
  .wa-float { padding: .8rem; }
  .wa-float .wa-text { display: none; }
}
@keyframes wa-ring {
  0%       { box-shadow: 0 14px 38px -12px rgba(34,197,94,.65), 0 0 0 0 rgba(34,197,94,.45); }
  55%,100% { box-shadow: 0 14px 38px -12px rgba(34,197,94,.65), 0 0 0 18px rgba(34,197,94,0); }
}

.back-to-top {
  position: fixed;
  left: var(--dock-gap);
  bottom: calc(var(--dock-gap) + var(--dock-stack));
  z-index: 149;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(15, 24, 41, .9);
  border: 1px solid var(--border-bright);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, color .18s ease;
  backdrop-filter: blur(8px);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: var(--accent); border-color: var(--accent-deep); }
.back-to-top svg { width: 17px; height: 17px; }

/* No WhatsApp button below it, so drop to the baseline instead. */
.back-to-top.is-alone { bottom: var(--dock-gap); }

/* ---------- Activity popup -------------------------------------------
   Sits above the bottom-left dock, keeping the bottom-right corner free
   for a live chat widget. */
.activity-pop {
  position: fixed;
  left: var(--dock-gap);
  bottom: calc(var(--dock-gap) + var(--dock-stack) + 52px);
  z-index: 148;
  width: min(330px, calc(100vw - 2 * var(--dock-gap)));
  padding: .95rem 1.05rem .8rem;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: auto;
}
.activity-pop[hidden] { display: none; }
.activity-pop.is-shown { opacity: 1; transform: none; }

.activity-body { display: flex; align-items: center; gap: .8rem; }

.activity-icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(0, 211, 242, .18), rgba(124, 92, 255, .14));
  border: 1px solid rgba(0, 211, 242, .28);
  color: var(--accent-soft);
}
.activity-icon svg { width: 18px; height: 18px; }
.activity-pop.is-resolved .activity-icon {
  background: var(--success-bg);
  border-color: rgba(34, 201, 138, .35);
  color: var(--success);
}

.activity-text { min-width: 0; display: grid; gap: .1rem; }
.activity-label { font-size: .89rem; font-weight: 650; color: var(--text-strong); line-height: 1.3; }
.activity-meta { font-size: .78rem; color: var(--muted-dim); }

.activity-note {
  display: block;
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid var(--border-soft);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.activity-close {
  position: absolute;
  top: .4rem; right: .55rem;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.activity-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

@media (max-width: 560px) {
  /* Keep the same clearance above the dock — the back-to-top button still
     occupies a full row, so a smaller offset would collide with it. */
  .activity-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-pop { transition: opacity .2s ease; transform: none; }
  .activity-pop.is-shown { transform: none; }
}

/* ---------- 21. FAQ accordion ---------------------------------------- */
.faq-list { display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--border-bright); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text-strong);
  list-style: none;
  transition: color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-soft); }
.faq-item summary::after {
  content: "";
  width: 11px; height: 11px;
  flex: none;
  margin-top: 6px;
  border-right: 2px solid var(--muted-dim);
  border-bottom: 2px solid var(--muted-dim);
  transform: rotate(45deg);
  transition: transform .25s ease, border-color .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq-answer { padding: 0 1.35rem 1.35rem; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.faq-answer > *:first-child { margin-top: 0; }
.faq-answer a { text-decoration: underline; text-underline-offset: 2px; }

.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group h3 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }

/* ---------- 22. Tables ----------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
thead th {
  text-align: left;
  padding: .9rem 1.1rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .022);
  white-space: nowrap;
}
tbody td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(255, 255, 255, .022); }
td .mono, th .mono { font-size: .84em; }

.empty-state { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted-dim); }
.empty-state svg { width: 42px; height: 42px; margin: 0 auto 1rem; color: var(--border-bright); }
.empty-state h3 { color: var(--muted); font-size: 1.05rem; }

/* ---------- 23. Pagination ------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: .7rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: .88rem;
  color: var(--muted);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.pagination a:hover { border-color: var(--accent-deep); color: var(--text); background: rgba(0, 211, 242, .06); }
.pagination .is-current { background: rgba(0, 211, 242, .11); border-color: var(--accent-deep); color: var(--accent-soft); font-weight: 650; }
.pagination .is-disabled { opacity: .35; pointer-events: none; }

/* ---------- 24. Filter bar ------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: 2rem;
}
.filter-chip {
  padding: .5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-bright); }
.filter-chip.is-active { background: rgba(0, 211, 242, .1); border-color: var(--accent-deep); color: var(--accent-soft); font-weight: 600; }

/* ---------- 25. Reveal on scroll -------------------------------------
   Only hidden once JavaScript has confirmed it can reveal them again.
   Without JS the .js class is never added and content renders normally. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 26. Print ------------------------------------------------ */
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after,
  .site-header, .site-footer, .wa-float, .back-to-top, .flash-stack, .topbar, .btn { display: none !important; }
  .card, .form-card, .table-wrap { border: 1px solid #ccc; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  .prose, .text-muted, p { color: #222 !important; }
}
