/* Emissario — the styles of every page but not-found.html, which carries
   its own. One dark theme, and the fonts of the visitor's system: the site
   loads no font file. */

:root {
  color-scheme: dark;
  --bg: #05060b;
  --bg-2: #090b13;
  --panel: #0b0d16;
  --panel-2: #10131e;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(168, 176, 255, 0.1);
  --line-2: rgba(168, 176, 255, 0.18);
  --line-3: rgba(168, 176, 255, 0.3);
  --text: #eef0f8;
  --text-2: #b3b9cc;
  --muted: #7c839a;
  --accent: #8b7bff;
  --accent-strong: #6f5cff;
  --accent-2: #3fd3ff;
  --accent-3: #4cf0b2;
  --warn: #ffb65c;
  --err: #ff6f86;
  --grad: linear-gradient(105deg, #a594ff 0%, #6f8bff 42%, #3fd3ff 100%);
  --grad-btn: linear-gradient(105deg, #7b61ff 0%, #5a74ff 50%, #2fb8ff 100%);
  --glow: 0 0 0 1px rgba(139, 123, 255, 0.35), 0 10px 40px -10px rgba(111, 92, 255, 0.55);
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* The ambient light behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 88% -12%, rgba(98, 92, 255, 0.16), transparent 62%),
    radial-gradient(900px 520px at -12% 6%, rgba(63, 211, 255, 0.07), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(98, 92, 255, 0.08), transparent 60%);
}

::selection {
  background: rgba(139, 123, 255, 0.4);
  color: #fff;
}

[hidden] {
  display: none !important;
}

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

a {
  color: #b5aaff;
  text-decoration: underline;
  text-decoration-color: rgba(181, 170, 255, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: #d9d2ff;
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 1.45rem + 4.3vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.034em;
}
h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3rem);
  letter-spacing: -0.028em;
  line-height: 1.08;
}
h3 {
  font-size: 1.14rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
p {
  margin: 0 0 1em;
  color: var(--text-2);
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
strong {
  color: var(--text);
  font-weight: 600;
}
ul,
ol {
  color: var(--text-2);
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}
:not(pre) > code {
  padding: 0.12em 0.42em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(139, 123, 255, 0.08);
  color: #d3ccff;
  white-space: nowrap;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap.narrow {
  width: min(820px, 100% - 2 * var(--gutter));
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.mono {
  font-family: var(--mono);
}
.center {
  text-align: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(5, 6, 11, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 6, 11, 0.82);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover {
  color: #fff;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 20px -6px rgba(111, 92, 255, 0.7);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 450;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(139, 123, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(139, 123, 255, 0.28);
}
.site-nav .nav-chat {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--line-3);
  background: var(--surface-2);
}
.lang-switch svg {
  width: 14px;
  height: 14px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .close-icon {
  display: none;
}
.nav-toggle[aria-expanded="true"] .open-icon {
  display: none;
}
.nav-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 14, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  .header-actions .btn {
    display: none;
  }
  .site-nav .nav-chat {
    display: block;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--grad-btn);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font: 550 0.95rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(139, 123, 255, 0.4), 0 10px 32px -10px rgba(111, 92, 255, 0.75);
  transition: transform 0.2s, box-shadow 0.25s, filter 0.2s, background 0.2s, color 0.2s;
}
.btn:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(139, 123, 255, 0.55), 0 16px 40px -10px rgba(111, 92, 255, 0.85);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn.ghost,
.btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn.ghost:hover,
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-3);
  filter: none;
}
.btn.sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn.lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.3);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn .live-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(76, 240, 178, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 240, 178, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(76, 240, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 240, 178, 0);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}
.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.text-link:hover {
  color: #fff;
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Labels and chips ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font: 500 0.74rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker .live-dot {
  flex-shrink: 0;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-2);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 500 0.8rem/1.3 var(--mono);
}
.chip svg {
  width: 14px;
  height: 14px;
}
.chip.ok {
  border-color: rgba(76, 240, 178, 0.3);
  color: #9af5d3;
  background: rgba(76, 240, 178, 0.06);
}
.chip.accent {
  border-color: rgba(139, 123, 255, 0.35);
  color: #cfc6ff;
  background: rgba(139, 123, 255, 0.08);
}
.chip.cyan {
  border-color: rgba(63, 211, 255, 0.3);
  color: #a6e9ff;
  background: rgba(63, 211, 255, 0.06);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(56px, 7.5vw, 100px) 0;
}
.section.tight {
  padding: clamp(40px, 6vw, 72px) 0;
}
.section.line-top {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .label {
  justify-content: center;
}
.section-head p {
  font-size: 1.08rem;
}
.lead {
  max-width: 680px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.6;
}

/* A faint grid that fades out, behind heroes and some sections. */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(150, 160, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 160, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 25%, transparent 78%);
}
.orb {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
  background: radial-gradient(circle, rgba(111, 92, 255, 0.55), rgba(63, 211, 255, 0.12) 55%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-60px, 40px, 0) scale(1.08);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6.5vw, 88px) 0 clamp(28px, 4vw, 48px);
  overflow: clip;
}
.hero .orb {
  top: -260px;
  right: -160px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .lead {
  margin-bottom: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 500 0.8rem/1.4 var(--mono);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--accent-3);
}
.hero-side {
  position: relative;
}
.hero-side::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(111, 92, 255, 0.35), transparent);
  filter: blur(30px);
}
.hero-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}
.hero-caption svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The head of an inner page. */
.page-head {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
  overflow: clip;
}
.page-head .orb {
  top: -320px;
  right: -200px;
  opacity: 0.45;
}
.page-head h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem);
}
.page-head .lead {
  margin-bottom: 0;
}
.page-head .btn-row {
  margin-top: 32px;
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card > :last-child {
  margin-bottom: 0;
}
a.card,
.card.link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.25s;
}
a.card:hover,
.card.link:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(139, 123, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 50px -24px rgba(111, 92, 255, 0.5);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  font-size: 0.96rem;
}
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 550;
}
.card .more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
a.card:hover .more svg {
  transform: translateX(3px);
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(139, 123, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.22), rgba(63, 211, 255, 0.06));
  color: #d6ceff;
  box-shadow: 0 8px 24px -10px rgba(111, 92, 255, 0.6);
}
.icon-box svg {
  width: 21px;
  height: 21px;
}
.icon-box.cyan {
  border-color: rgba(63, 211, 255, 0.3);
  background: linear-gradient(160deg, rgba(63, 211, 255, 0.2), rgba(63, 211, 255, 0.04));
  color: #b3ecff;
}
.icon-box.mint {
  border-color: rgba(76, 240, 178, 0.3);
  background: linear-gradient(160deg, rgba(76, 240, 178, 0.18), rgba(76, 240, 178, 0.03));
  color: #a9f7d9;
}

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The bento of the home page. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.bento > * {
  grid-column: span 2;
}
.bento > .wide {
  grid-column: span 3;
}
.bento > .xwide {
  grid-column: span 4;
}
.bento > .full {
  grid-column: 1 / -1;
}
.bento .card {
  display: flex;
  flex-direction: column;
}
.bento .card .more {
  margin-top: auto;
  padding-top: 16px;
}
.bento > .tall {
  grid-row: span 2;
}
.bento .shot-mini {
  height: 220px;
  margin: 2px -6px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.bento .tall .shot-mini {
  flex: 1;
  height: auto;
  min-height: 240px;
}
.bento .shot-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.92;
  transition: transform 0.6s, opacity 0.3s;
}
.bento a.card:hover .shot-mini img {
  transform: scale(1.03);
  opacity: 1;
}
@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento > *,
  .bento > .wide,
  .bento > .xwide {
    grid-column: span 1;
  }
  .bento > .tall {
    grid-row: auto;
  }
  .bento > .xwide,
  .bento > .full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento > *,
  .bento > .wide,
  .bento > .xwide {
    grid-column: 1 / -1;
  }
}

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  list-style: none;
  overflow: hidden;
}
.facts li {
  position: relative;
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.facts li:first-child {
  border-left: 0;
}
.facts .value {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font: 650 clamp(1.3rem, 1.05rem + 0.8vw, 1.7rem)/1.2 var(--font);
  letter-spacing: -0.03em;
}
.facts .value.grad-text {
  display: inline-block;
}
.facts .what {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
@media (max-width: 1000px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .facts li:nth-child(2n) {
    border-left: 1px solid var(--line);
  }
  .facts li:nth-child(-n + 2) {
    border-top: 0;
  }
  .facts li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---------- Windows, consoles, code ---------- */

.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 19, 30, 0.96), rgba(9, 11, 19, 0.96));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(111, 92, 255, 0.5);
}
.window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 148, 255, 0.7), rgba(63, 211, 255, 0.6), transparent);
  opacity: 0.8;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.dots {
  display: inline-flex;
  gap: 7px;
  flex-shrink: 0;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.window-title {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font: 500 0.78rem/1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-body {
  padding: 18px 20px;
}

.code {
  position: relative;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #070810;
}
.code:last-child {
  margin-bottom: 0;
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #d8dcf0;
  font-size: 0.84rem;
  line-height: 1.75;
  tab-size: 2;
  scrollbar-width: thin;
}
.code .code-label {
  display: block;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 0.74rem/1.2 var(--mono);
  letter-spacing: 0.06em;
}
.code .c {
  color: #6b7390;
}
.code .p {
  color: var(--accent-2);
  user-select: none;
}
.code .k {
  color: #c4b8ff;
}
.code .s {
  color: #8ff0c8;
}
.copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(13, 15, 25, 0.9);
  color: var(--text-2);
  font: 500 0.74rem/1 var(--mono);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.copy-btn:hover {
  opacity: 1;
  color: var(--text);
  border-color: var(--line-3);
}
.code:has(.code-label) .copy-btn {
  top: 5px;
}

/* A folder tree. */
.tree {
  margin: 0;
  padding: 18px 20px;
  color: #d8dcf0;
  font: 0.84rem/1.85 var(--mono);
  white-space: pre;
  overflow-x: auto;
}
.tree .c {
  color: #6b7390;
}
.tree .d {
  color: #a6e9ff;
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
}
.shot-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9), 0 0 50px -30px rgba(111, 92, 255, 0.45);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.shot-frame:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
  box-shadow: 0 34px 80px -35px rgba(0, 0, 0, 0.9), 0 0 60px -24px rgba(111, 92, 255, 0.6);
}
.shot-frame .window-bar {
  padding: 9px 14px;
}
.shot-frame .dots i {
  width: 9px;
  height: 9px;
}
.shot-frame img {
  width: 100%;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top;
}
.shot-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(8, 9, 16, 0.85);
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.shot-zoom svg {
  width: 17px;
  height: 17px;
}
.shot-frame:hover .shot-zoom,
.shot-frame:focus-visible .shot-zoom {
  opacity: 1;
  transform: none;
}
.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.98rem;
}

/* The full-size view of a screenshot. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(3, 4, 8, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox.open {
  opacity: 1;
}
.lightbox img {
  max-width: min(1440px, 100%);
  max-height: calc(100vh - 140px);
  width: auto;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.lightbox p {
  max-width: 820px;
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(15, 17, 28, 0.9);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature.flip > :first-child {
  order: 2;
}
.feature.text-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}
.feature h2 {
  margin-bottom: 16px;
}
.feature .lead {
  margin-bottom: 26px;
  font-size: 1.08rem;
}
@media (max-width: 980px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.flip > :first-child {
    order: 0;
  }
}

/* A list with check marks. */
.checks {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(76, 240, 178, 0.35);
  border-radius: 6px;
  background: rgba(76, 240, 178, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cf0b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.checks.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
@media (max-width: 720px) {
  .checks.two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Key–value specs. */
.specs {
  display: grid;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.specs > div:first-child {
  border-top: 0;
}
.specs dt {
  color: #cfc6ff;
  font: 500 0.84rem/1.5 var(--mono);
  word-break: break-word;
}
.specs dd {
  margin: 0;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.5;
}
.specs dd strong {
  font-weight: 550;
}
@media (max-width: 560px) {
  .specs > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font: 500 0.85rem/1 var(--mono);
  text-decoration: none;
}
.doc-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
.doc-link:hover {
  color: #fff;
}
.doc-link:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Category nav (features) ---------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 11, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.subnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar {
  display: none;
}
.subnav a {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.subnav a:hover,
.subnav a.active {
  color: var(--text);
  background: var(--surface-2);
}
.subnav a.active {
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.group-head .num {
  color: var(--accent-2);
  font: 500 0.82rem var(--mono);
}
.group-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}
.group-head p {
  margin: 0 0 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}
@media (max-width: 760px) {
  .group-head {
    flex-wrap: wrap;
  }
  .group-head p {
    margin: 0;
    text-align: left;
  }
}
.feature-block + .feature-block {
  margin-top: clamp(56px, 8vw, 104px);
}

/* ---------- Flow diagrams ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow > li {
  position: relative;
  padding: 0 14px;
  counter-increment: flow;
}
.flow > li:first-child {
  padding-left: 0;
}
.flow > li:last-child {
  padding-right: 0;
}
.flow .node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.flow .node::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 12px);
  background-size: 24px 1px;
  animation: dash 1.2s linear infinite;
}
.flow > li:last-child .node::after {
  background: linear-gradient(90deg, var(--line-3), transparent);
  animation: none;
}
@keyframes dash {
  to {
    background-position: 24px 0;
  }
}
.flow .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(139, 123, 255, 0.4);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.25), rgba(63, 211, 255, 0.05));
  color: #ddd6ff;
  box-shadow: 0 0 30px -8px rgba(111, 92, 255, 0.7);
}
.flow .step svg {
  width: 21px;
  height: 21px;
}
.flow h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.flow h3::before {
  content: counter(flow, decimal-leading-zero) " ";
  color: var(--accent-2);
  font: 500 0.78rem var(--mono);
  letter-spacing: 0.04em;
}
.flow p {
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .flow > li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0 18px;
    padding: 0 0 26px;
  }
  .flow .node {
    grid-row: span 2;
    flex-direction: column;
    align-items: center;
    margin: 0;
    height: 100%;
  }
  .flow .node::after {
    width: 1px;
    height: auto;
    min-height: 20px;
    margin-top: 8px;
    background: repeating-linear-gradient(180deg, var(--line-3) 0 6px, transparent 6px 12px);
    animation: none;
  }
  .flow > li:last-child .node::after {
    display: none;
  }
  .flow > li:last-child {
    padding-bottom: 0;
  }
}

/* The architecture of the home page. */
.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.arch-col {
  display: grid;
  gap: 14px;
  align-content: center;
}
.arch-node {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.arch-node h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.arch-node h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}
.arch-node p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.arch-node code {
  font-size: 0.8em;
}
.arch-core {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(139, 123, 255, 0.45);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(111, 92, 255, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(20, 22, 38, 0.95), rgba(10, 12, 22, 0.95));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 80px -20px rgba(111, 92, 255, 0.55);
}
.arch-core-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.arch-core-head img {
  border-radius: 10px;
}
.arch-core-head strong {
  display: block;
  font-size: 1.05rem;
}
.arch-core-head span {
  color: var(--muted);
  font: 500 0.75rem var(--mono);
}
.arch-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.arch-modules li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.3;
}
.arch-modules svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #c4b8ff;
}
.arch-db {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(76, 240, 178, 0.35);
  border-radius: 10px;
  color: #a9f7d9;
  font: 500 0.78rem/1.4 var(--mono);
}
.arch-db svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.arch-link {
  position: relative;
  width: clamp(28px, 4vw, 64px);
  align-self: center;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(139, 123, 255, 0.15), rgba(63, 211, 255, 0.35));
}
.arch-link::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -30%;
  width: 30%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #9fe9ff, transparent);
  animation: packet 2.4s ease-in-out infinite;
}
.arch-link.rev::after {
  animation-delay: 1.2s;
}
@keyframes packet {
  0% {
    left: -30%;
  }
  100% {
    left: 100%;
  }
}
@media (max-width: 980px) {
  .arch {
    grid-template-columns: minmax(0, 1fr);
  }
  .arch-link {
    justify-self: center;
    width: 2px;
    height: 34px;
    background: linear-gradient(180deg, rgba(139, 123, 255, 0.15), rgba(63, 211, 255, 0.35));
  }
  .arch-link::after {
    top: -30%;
    left: -1px;
    width: 4px;
    height: 30%;
    background: linear-gradient(180deg, transparent, #9fe9ff, transparent);
    animation-name: packet-v;
  }
  @keyframes packet-v {
    0% {
      top: -30%;
    }
    100% {
      top: 100%;
    }
  }
}
@media (max-width: 340px) {
  .arch-modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Token meter, redaction, pipelines ---------- */

.panel-rows {
  display: grid;
  gap: 10px;
}
.limit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.limit-row .icon-box {
  grid-row: span 2;
  margin: 0;
  width: 40px;
  height: 40px;
}
.limit-row .k {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--text);
  font: 600 0.98rem/1.3 var(--font);
}
.limit-row .k em {
  color: var(--muted);
  font: 400 0.82rem var(--font);
  font-style: normal;
}
.limit-row .v {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.redact {
  margin: 0;
  padding: 18px 20px;
  color: var(--text-2);
  font: 0.86rem/1.8 var(--mono);
  white-space: pre-wrap;
}
.redact mark {
  padding: 1px 6px;
  border: 1px solid rgba(63, 211, 255, 0.35);
  border-radius: 6px;
  background: rgba(63, 211, 255, 0.1);
  color: #a6e9ff;
}
.redact del {
  color: #ff9cad;
  text-decoration-color: rgba(255, 111, 134, 0.7);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pipeline li {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--accent-2);
  border-right: 1.5px solid var(--accent-2);
  transform: translateY(-50%) rotate(45deg);
}
.pipeline .step-no {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.1em;
}
.pipeline h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.pipeline p {
  font-size: 0.87rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline li:nth-child(2)::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipeline li:not(:last-child)::after {
    top: auto;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
    display: block;
  }
}

/* A table of what is sent, or of limits. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th,
.table td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  border-top: 0;
  color: var(--muted);
  font: 500 0.74rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table td:first-child {
  color: var(--text);
  font-weight: 500;
}
.table td {
  color: var(--text-2);
}

/* ---------- Security band ---------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(63, 211, 255, 0.12), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(111, 92, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(14, 16, 27, 0.9), rgba(8, 9, 16, 0.9));
}
.band .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000 10%, transparent 70%);
}
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 920px) {
  .band-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sec-list li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.sec-list svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-3);
}
.sec-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.93rem;
}
.sec-list span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
@media (max-width: 560px) {
  .sec-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Two paths ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.path-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 40px);
}
.path-card .tag {
  align-self: flex-start;
  margin-bottom: 20px;
}
.path-card h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem);
  letter-spacing: -0.03em;
}
.path-card .checks {
  margin-top: 6px;
}
.path-card .btn-row {
  margin-top: auto;
  padding-top: 8px;
}
.path-card.featured {
  border-color: rgba(139, 123, 255, 0.4);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(111, 92, 255, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 70px -40px rgba(111, 92, 255, 0.8);
}
.path-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 14px;
  color: var(--muted);
}
.path-card .price strong {
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}
@media (max-width: 800px) {
  .paths {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 8px);
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(111, 92, 255, 0.28), transparent 65%),
    linear-gradient(180deg, rgba(14, 16, 27, 0.9), rgba(8, 9, 16, 0.92));
}
.cta-final h2 {
  max-width: 760px;
  margin-inline: auto;
}
.cta-final p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
}
.cta-final .btn-row {
  justify-content: center;
}

/* ---------- Notes and status ---------- */

.note {
  display: flex;
  gap: 14px;
  margin: 0 0 1.25rem;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: rgba(139, 123, 255, 0.06);
  color: var(--text-2);
  font-size: 0.94rem;
}
.note > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #c4b8ff;
}
.note p {
  margin: 0;
}
.note.warn {
  border-color: rgba(255, 182, 92, 0.32);
  background: rgba(255, 182, 92, 0.06);
}
.note.warn > svg {
  color: var(--warn);
}
.note.narrow {
  max-width: 640px;
}

.status:empty {
  display: none;
}
.status {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.92rem;
}
.status p {
  margin: 0 0 6px;
  color: inherit;
}
.status p:last-child {
  margin: 0;
}
.status.ok {
  border-color: rgba(76, 240, 178, 0.35);
  background: rgba(76, 240, 178, 0.07);
  color: #b8f8df;
}
.status.err {
  border-color: rgba(255, 111, 134, 0.38);
  background: rgba(255, 111, 134, 0.07);
  color: #ffc2cc;
}
.status.info {
  border-color: rgba(63, 211, 255, 0.3);
  background: rgba(63, 211, 255, 0.06);
  color: #bfefff;
}
.alt-contacts {
  margin: 6px 0 0;
  padding-left: 18px;
}
.alt-contacts li {
  margin: 2px 0;
}

/* ---------- Forms ---------- */

.form-card {
  max-width: 720px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label,
.label-text {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(5, 6, 12, 0.6);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder,
textarea::placeholder {
  color: #5d6479;
}
input:hover,
textarea:hover {
  border-color: var(--line-3);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(139, 123, 255, 0.7);
  background: rgba(8, 9, 18, 0.85);
  box-shadow: 0 0 0 4px rgba(139, 123, 255, 0.16);
}
textarea {
  min-height: 150px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 22px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-strong);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The page of a form, with its side column. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.split > aside {
  display: grid;
  gap: 16px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
.side-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.side-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}
.side-card p,
.side-card li {
  font-size: 0.9rem;
}
.side-card ul {
  margin: 0;
  padding-left: 18px;
}
.side-card li + li {
  margin-top: 6px;
}

/* ---------- Chat ---------- */

.chat {
  display: flex;
  flex-direction: column;
}
.chat .window-bar .ai-pill {
  margin-left: auto;
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(76, 240, 178, 0.3);
  border-radius: 999px;
  background: rgba(76, 240, 178, 0.07);
  color: #a9f7d9;
  font: 500 0.7rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ai-pill .live-dot {
  width: 6px;
  height: 6px;
}
.chat-disclosure {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(63, 211, 255, 0.045);
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.5;
}
.chat-disclosure svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-2);
}
.chat-disclosure strong {
  color: #cdf3ff;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  max-height: 420px;
  margin: 0;
  padding: 20px 18px;
  overflow-y: auto;
  list-style: none;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 176, 255, 0.2) transparent;
}
.chat.full-page .chat-log {
  min-height: 360px;
  max-height: min(62vh, 640px);
}
.msg {
  display: flex;
  gap: 11px;
  max-width: 92%;
  animation: rise 0.35s ease-out both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.msg .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(139, 123, 255, 0.4);
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.35), rgba(63, 211, 255, 0.12));
  color: #e4deff;
}
.msg .avatar svg {
  width: 16px;
  height: 16px;
}
.msg .bubble {
  min-width: 0;
}
.msg .who {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font: 500 0.7rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.msg .text {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg.user .avatar {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}
.msg.user .who {
  text-align: right;
}
.msg.user .text {
  border-color: rgba(139, 123, 255, 0.35);
  border-radius: 14px 4px 14px 14px;
  background: linear-gradient(160deg, rgba(123, 97, 255, 0.28), rgba(63, 120, 255, 0.14));
}
.msg.pending .text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.typing {
  display: inline-flex;
  gap: 4px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  padding: 18px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.chat-empty .avatar-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(139, 123, 255, 0.45);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.35), rgba(63, 211, 255, 0.1));
  color: #e4deff;
  box-shadow: 0 0 40px -6px rgba(111, 92, 255, 0.7);
}
.chat-empty .avatar-lg svg {
  width: 24px;
  height: 24px;
}
.chat-empty strong {
  color: var(--text);
  font-size: 1rem;
}
.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}
.chat-suggest[hidden] {
  display: none;
}
.chat-suggest button {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 450 0.82rem/1.3 var(--font);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chat-suggest button:hover {
  color: var(--text);
  border-color: rgba(139, 123, 255, 0.5);
  background: rgba(139, 123, 255, 0.1);
}
.chat-form {
  position: relative;
  margin: 0 14px;
}
.chat-form textarea {
  min-height: 56px;
  max-height: 200px;
  padding: 15px 60px 15px 16px;
  border-radius: 14px;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.chat-send {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--grad-btn);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(111, 92, 255, 0.8);
  transition: filter 0.2s, transform 0.2s, opacity 0.2s;
}
.chat-send:hover {
  filter: brightness(1.12);
}
.chat-send[disabled] {
  opacity: 0.45;
  cursor: wait;
}
.chat-send svg {
  width: 18px;
  height: 18px;
}
.chat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 10px 18px 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.chat-foot .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 500 0.8rem/1.2 var(--font);
  cursor: pointer;
  text-decoration: none;
}
.chat-foot .link-btn:hover {
  color: var(--text);
}
.chat-foot .link-btn svg {
  width: 14px;
  height: 14px;
}
.chat-foot .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
}
.chat .status {
  margin: 0 14px 14px;
}
.chat-note {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Install ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font: 500 0.88rem/1.2 var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tabs button:hover {
  color: var(--text);
}
.tabs button[aria-selected="true"] {
  background: rgba(139, 123, 255, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(139, 123, 255, 0.35);
}
.tab-panel h3 {
  font-size: 0.95rem;
}
.js .tab-panels .tab-panel[hidden] {
  display: none;
}
.platforms {
  display: grid;
  gap: 18px;
}

.steps-v {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stepv;
}
.steps-v > li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 24px;
  padding-bottom: clamp(40px, 6vw, 64px);
  counter-increment: stepv;
}
.steps-v > li::before {
  content: counter(stepv, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(139, 123, 255, 0.45);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.25), rgba(63, 211, 255, 0.06));
  color: #e4deff;
  font: 550 0.95rem var(--mono);
  box-shadow: 0 0 30px -8px rgba(111, 92, 255, 0.7);
}
.steps-v > li::after {
  content: "";
  position: absolute;
  top: 60px;
  bottom: 8px;
  left: 26px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-3), transparent);
}
.steps-v > li:last-child {
  padding-bottom: 0;
}
.steps-v > li:last-child::after {
  display: none;
}
.steps-v > li > div {
  min-width: 0;
  padding-top: 10px;
}
.steps-v h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
}
@media (max-width: 560px) {
  .steps-v > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-v > li::after {
    display: none;
  }
  .steps-v > li > div {
    padding-top: 16px;
  }
}

/* ---------- Gallery ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filters button {
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font: 500 0.86rem/1.2 var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.filters button:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.filters button[aria-pressed="true"] {
  border-color: rgba(139, 123, 255, 0.5);
  background: rgba(139, 123, 255, 0.16);
  color: var(--text);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(18px, 2.4vw, 30px);
}
.gallery .shot[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 940px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
}
.calc-questions {
  display: grid;
  gap: 14px;
}
.q-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 1.3rem;
}
.q-group-title:first-of-type {
  margin-top: 0;
}
.q-group-title + p {
  margin: -6px 0 2px;
}
.q {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color 0.25s;
}
.q:focus-within {
  border-color: var(--line-3);
}
.q[hidden] {
  display: none;
}
.q legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  color: var(--text);
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.45;
}
.q legend + * {
  clear: both;
}
.q .hint {
  margin: -6px 0 14px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.q[data-q="purpose"] .choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .q[data-q="purpose"] .choices {
    grid-template-columns: minmax(0, 1fr);
  }
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice > span {
  position: relative;
  display: block;
  min-height: 48px;
  height: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(5, 6, 12, 0.45);
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.choice > span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1.5px solid var(--line-3);
  border-radius: 50%;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}
.choice:hover > span {
  border-color: var(--line-3);
  color: var(--text);
}
.choice input:checked + span {
  border-color: rgba(139, 123, 255, 0.65);
  background: linear-gradient(160deg, rgba(123, 97, 255, 0.2), rgba(63, 120, 255, 0.07));
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.12);
}
.choice input:checked + span::before {
  border: 5px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 12px rgba(139, 123, 255, 0.8);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.choice [data-cost],
.choice [data-pct] {
  white-space: nowrap;
  color: var(--muted);
  font: 500 0.8rem var(--mono);
}
@media (max-width: 560px) {
  .choice [data-cost],
  .choice [data-pct] {
    white-space: normal;
  }
}
.choice input:checked + span [data-cost],
.choice input:checked + span [data-pct] {
  color: #b5f3ff;
}

.calc-result {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-color: rgba(139, 123, 255, 0.35);
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(111, 92, 255, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(16, 19, 30, 0.95), rgba(9, 11, 19, 0.95));
  box-shadow: 0 30px 80px -40px rgba(111, 92, 255, 0.7);
}
@media (max-width: 940px) {
  .calc-result {
    position: static;
  }
}
.calc-result h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
}
.estimate-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.lines {
  width: 100%;
  margin-bottom: 4px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.lines td {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
.lines tr:first-child td {
  border-top: 0;
}
.lines td.num {
  padding-left: 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
}
.lines tr.base td:first-child {
  color: var(--text);
  font-weight: 550;
}
.lines tr.sub td {
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.lines tr.group td {
  border-top-color: var(--line-2);
  color: var(--text);
  font-weight: 500;
}
.lines tr.discount td {
  color: #9af5d3;
}
.lines tr.discount td.num {
  color: #9af5d3;
}
.lines tr.total td {
  padding-top: 16px;
  border-top: 1px solid var(--line-3);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}
.lines tr.total td.num {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.free-label {
  color: #9af5d3;
}
.progress {
  margin: 14px 0 16px;
  color: #bfefff;
  font-size: 0.86rem;
}
.progress:empty {
  display: none;
}
.calc-result .btn-row {
  margin-top: 16px;
}
.not-included {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
.not-included ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.total-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(139, 123, 255, 0.45);
  border-radius: 16px;
  background: rgba(12, 14, 24, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 40px -15px rgba(111, 92, 255, 0.8);
  transition: transform 0.3s, opacity 0.3s;
}
.total-bar span {
  color: var(--text-2);
  font-size: 0.86rem;
}
.total-bar strong {
  font: 600 1.15rem var(--mono);
}
.total-bar.away {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
@media (max-width: 940px) {
  .total-bar:not([hidden]) {
    display: flex;
  }
}

/* ---------- Prose (privacy) ---------- */

.prose {
  max-width: 760px;
}
.prose h2 {
  margin: 2.6em 0 0.6em;
  padding-top: 0.2em;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin: 0.45em 0;
}
.prose li::marker {
  color: var(--accent);
}
.toc-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.toc-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc-card li {
  counter-increment: toc;
}
.toc-card a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: none;
}
.toc-card a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font: 500 0.76rem/1.9 var(--mono);
}
.toc-card a:hover {
  color: var(--text);
}
.with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .with-toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc-card {
    position: static;
    order: -1;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.6), rgba(5, 6, 11, 1));
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(720px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(165, 148, 255, 0.8), rgba(63, 211, 255, 0.7), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-grid > div:first-child p {
  max-width: 340px;
  margin-top: 16px;
  font-size: 0.92rem;
}
.site-footer h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font: 500 0.74rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  margin: 0 0 10px;
}
.site-footer li a {
  color: var(--text-2);
  font-size: 0.92rem;
  text-decoration: none;
}
.site-footer li a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-bottom p {
  margin: 0;
  color: inherit;
}
.served-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.76rem var(--mono);
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal.d1 {
  transition-delay: 0.08s;
}
.js .reveal.d2 {
  transition-delay: 0.16s;
}
.js .reveal.d3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .orb,
  .grid-bg,
  .total-bar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ---------- Additions ---------- */

.feature-title {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.feature .feature-title + .lead {
  margin-bottom: 24px;
}
.feature .doc-link {
  margin-top: 4px;
}
.feature .code {
  margin-bottom: 22px;
}

/* A flow drawn top to bottom, whatever the width. */
.feature .flow {
  grid-template-columns: minmax(0, 1fr);
}
.feature .flow > li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 18px;
  padding: 0 0 18px;
}
.feature .flow .node {
  grid-row: span 2;
  flex-direction: column;
  align-items: center;
  margin: 0;
  height: 100%;
}
.feature .flow .node::after {
  width: 1px;
  height: auto;
  min-height: 14px;
  margin-top: 8px;
  background: repeating-linear-gradient(180deg, var(--line-3) 0 6px, transparent 6px 12px);
  animation: none;
}
.feature .flow > li:last-child .node::after {
  display: none;
}
.feature .flow > li:last-child {
  padding-bottom: 0;
}
.feature .flow h3 {
  margin-top: 10px;
}

.feature.top {
  align-items: start;
}
.redact del,
.redact mark {
  white-space: nowrap;
}

/* On the features page the picture stays in view beside a long text. */
.feature-block .feature {
  align-items: start;
}
@media (min-width: 981px) {
  .feature-block .feature > .reveal.d1 {
    position: sticky;
    top: calc(var(--header-h) + 84px);
  }
}

/* An icon with no size of its own takes the size of the text around it. */
:where(svg[aria-hidden="true"]) {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.calc-result h2 svg {
  width: 22px;
  height: 22px;
  color: var(--accent-2);
}

/* Grid and flex children never grow past their track on a small screen. */
.hero-grid > *,
.feature > *,
.split > *,
.calc > *,
.band-grid > *,
.with-toc > * {
  min-width: 0;
}
@media (max-width: 560px) {
  .hero .btn-row .btn {
    flex: 1 1 auto;
  }
  .window-bar .ai-pill {
    padding: 4px 8px;
  }
}
.code:not(:has(.code-label)) pre {
  padding-right: 84px;
}

/* ---------- Plain-language blocks ---------- */

/* The link under the hero buttons, for the technical reader. */
.hero-alt {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* A label at the top of a card: "Free", "One-time"… */
.card > .chip:first-child {
  margin-bottom: 18px;
}

/* An example of the assistant's instructions, written as a plain document. */
.doc-sample {
  padding: 22px 24px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
}
.doc-sample h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.doc-sample p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.doc-sample ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

/* Questions and answers, and the technical details folded under a feature:
   both are <details>, open on a click. */
.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: var(--line-2);
}
.faq summary,
.tech > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker,
.tech > summary::-webkit-details-marker {
  display: none;
}
.faq summary {
  padding: 18px 22px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
}
.faq summary::after,
.tech > summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b9cc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after,
.tech[open] > summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 22px 20px;
}
.faq .answer p {
  font-size: 0.97rem;
}

.tech {
  margin: 0 0 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
}
.tech > summary {
  padding: 13px 16px;
  color: var(--muted);
  font: 500 0.8rem/1.3 var(--mono);
  letter-spacing: 0.04em;
}
.tech > summary:hover {
  color: var(--text-2);
}
.tech[open] > summary {
  border-bottom: 1px dashed var(--line-2);
}
.tech-body {
  padding: 18px 18px 4px;
}
.tech-body .checks li {
  font-size: 0.9rem;
}
.tech-body > p {
  font-size: 0.92rem;
}
.tech-body > :last-child {
  margin-bottom: 14px;
}
.tech-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}
.tech-list .tech {
  margin: 0;
}
