/* =================================================================
   Telegram Mass DM — main.css
   Premium dark-first design system. Self-hosted fonts.
   Author: telegrammassdm.com
   ================================================================= */

/* ---------- Self-hosted fonts (variable, latin) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b1220;
  --bg-elev: #0f1a2e;
  --bg-elev-2: #13233d;
  --primary: #229ed9;
  --primary-2: #27a7e7;
  --accent: #7bd3f7;
  --text: #e6eef8;
  --muted: #8fa3be;
  --success: #2ecc71;
  --warning: #f5a623;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --ring: rgba(39, 167, 231, 0.55);
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 18px 50px -12px rgba(3, 10, 22, 0.7);
  --shadow-glow: 0 10px 40px -8px rgba(34, 158, 217, 0.45);
  --grad-primary: linear-gradient(135deg, #27a7e7 0%, #229ed9 55%, #1b82b8 100%);
  --grad-text: linear-gradient(120deg, #e6eef8 0%, #9fd6f5 60%, #7bd3f7 100%);
  --maxw: 1200px;
  --maxw-prose: 760px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --space: clamp(1rem, 0.6rem + 1.6vw, 1.6rem);
  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --header-h: 68px;
  color-scheme: dark;
}

/* ---------- Light theme (opt-in via system pref) ---------- */
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f3f7fc;
    --bg-elev: #ffffff;
    --bg-elev-2: #eef4fb;
    --text: #0c1828;
    --muted: #51647e;
    --border: rgba(12, 24, 40, 0.1);
    --border-strong: rgba(12, 24, 40, 0.16);
    --glass: rgba(12, 24, 40, 0.03);
    --glass-2: rgba(12, 24, 40, 0.05);
    --grad-text: linear-gradient(120deg, #0c1828 0%, #1b82b8 60%, #229ed9 100%);
    --shadow-2: 0 18px 50px -16px rgba(20, 60, 100, 0.28);
    color-scheme: light;
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100%;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul,
ol {
  padding-left: 1.2em;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.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;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2.5vw, 2rem);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--glass-2);
  border: 1px solid var(--border);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.8rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
h2.h-xl,
.h-xl {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem);
  margin-top: 0.5rem;
}
h3.h-md {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
}
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  margin-top: 0.9rem;
}
.muted {
  color: var(--muted);
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background FX: aurora + grid ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    #000 10%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    #000 10%,
    transparent 75%
  );
  opacity: 0.5;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora--1 {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -14vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.55), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  top: -6vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(123, 211, 247, 0.4), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 {
  to {
    transform: translate3d(8vw, 6vw, 0) scale(1.12);
  }
}
@keyframes drift2 {
  to {
    transform: translate3d(-7vw, 5vw, 0) scale(1.08);
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--glass-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.72em 1.3em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease,
    border-color 0.22s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  box-shadow: 0 16px 48px -10px rgba(34, 158, 217, 0.6);
}
.btn--ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--glass-2);
}
.btn--lg {
  min-height: 54px;
  padding: 0.85em 1.7em;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
}
.btn svg {
  flex: 0 0 auto;
}

/* ---------- Glass cards ---------- */
.card {
  background: linear-gradient(
    180deg,
    var(--glass-2),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-1);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
  height: 100%;
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 158, 217, 0.14);
  border: 1px solid rgba(34, 158, 217, 0.3);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(11, 18, 32, 0.85);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .site-header {
    background: rgba(243, 247, 252, 0.7);
  }
  :root[data-theme="auto"] .site-header.is-stuck {
    background: rgba(243, 247, 252, 0.9);
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.brand:hover {
  text-decoration: none;
}
.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
}
.brand strong {
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
  background: var(--glass-2);
  text-decoration: none;
}
.nav__cta {
  margin-left: 0.6rem;
  flex: 0 0 auto;
}
@media (min-width: 941px) {
  .nav__links .nav__cta {
    display: none;
  }
}
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle span::before {
  transform: translateY(-6px);
}
.nav__toggle span::after {
  transform: translateY(4px);
}
body.menu-open .nav__toggle span {
  background: transparent;
}
body.menu-open .nav__toggle span::before {
  transform: translateY(0) rotate(45deg);
}
body.menu-open .nav__toggle span::after {
  transform: translateY(-2px) rotate(-45deg);
}

@media (max-width: 940px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__cta--desktop {
    display: none;
  }
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(11, 18, 32, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem clamp(1rem, 5vw, 2rem) 1.4rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    max-height: calc(var(--vh, 1vh) * 100 - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  body.menu-open .nav__links {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav__links a {
    padding: 0.85rem 0.8rem;
    font-size: 1.05rem;
  }
  .nav__links .nav__cta {
    margin: 0.6rem 0 0;
  }
  .nav__links .btn {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 6vw, 5.5rem)
    clamp(2.5rem, 1.5rem + 4vw, 4rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.4rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.6vw, 3.8rem);
  margin-top: 1rem;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.25rem);
  margin-top: 1.1rem;
  max-width: 38ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.3rem;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.trust-strip strong {
  color: var(--text);
}
.trust-strip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

/* hero visual */
.hero__visual {
  position: relative;
}
.mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--bg-elev), var(--bg));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--glass-2);
}
.mock__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c3a52;
  display: inline-block;
}
.mock__bar i:nth-child(1) {
  background: #ff6b6b;
}
.mock__bar i:nth-child(2) {
  background: #f5a623;
}
.mock__bar i:nth-child(3) {
  background: #2ecc71;
}
.mock__title {
  margin-left: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Key takeaways ---------- */
.takeaways {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: var(--glass);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.5rem) clamp(1.2rem, 1rem + 1vw, 1.7rem);
}
.takeaways h2,
.takeaways h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.takeaways li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text);
  font-size: 0.98rem;
}
.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.18);
}

/* ---------- AEO answer block ---------- */
.answer {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  font-size: 1.04rem;
  color: var(--text);
  margin-block: 0.4rem 1.1rem;
}
.answer strong:first-child {
  color: var(--accent);
}

/* ---------- Updated badge ---------- */
.updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--glass-2);
  border: 1px solid var(--border);
  padding: 0.32em 0.8em;
  border-radius: 999px;
  font-weight: 500;
}
.updated .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding-block: 1rem 0;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.crumbs li::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--border-strong);
}
.crumbs li:last-child::after {
  content: "";
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--accent);
}

/* ---------- Steps (HowTo) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
}
.step__num {
  counter-increment: step;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}
.step__num::before {
  content: counter(step);
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.step p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}
table.cmp caption {
  text-align: left;
  padding: 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
table.cmp th,
table.cmp td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.cmp thead th {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  background: var(--glass-2);
  position: sticky;
  top: 0;
}
table.cmp tbody th {
  font-weight: 600;
  color: var(--text);
}
table.cmp td {
  color: var(--muted);
}
table.cmp tr:last-child td,
table.cmp tbody tr:last-child td,
table.cmp tbody tr:last-child th {
  border-bottom: none;
}
.tick {
  color: var(--success);
  font-weight: 700;
}
.cross {
  color: var(--muted);
}
.col-feature {
  background: rgba(34, 158, 217, 0.06);
}

/* ---------- Testimonials ---------- */
.tcard {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.tcard p {
  color: var(--text);
  font-size: 1rem;
}
.tcard__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  flex: 0 0 auto;
  font-size: 0.95rem;
}
.tcard__who b {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.tcard__who span {
  font-size: 0.85rem;
  color: var(--muted);
}
.stars {
  color: #f5b942;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  padding: 1.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Pricing ---------- */
.price-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass-2);
  margin-inline: auto;
}
.price-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.price-toggle button[aria-pressed="true"] {
  background: var(--grad-primary);
  color: #fff;
}
.price-toggle .save {
  font-size: 0.75rem;
  color: var(--success);
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: rgba(34, 158, 217, 0.5);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.plan__tag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 999px;
}
.plan__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.plan__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  margin-top: 0.4rem;
  line-height: 1;
}
.plan__price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.plan__price[data-annual] {
  display: none;
}
.plan ul.feat {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 0.6rem;
}
.plan ul.feat li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.plan ul.feat li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .faq__a {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
}
.faq .faq__a p + p {
  margin-top: 0.7rem;
}

/* ---------- Glossary ---------- */
.glossary {
  display: grid;
  gap: 0.8rem;
}
.glossary dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}
.glossary dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.glossary > div {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
}

/* ---------- Citable passage / source note ---------- */
.cite {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--border-strong);
  padding-left: 0.9rem;
  margin-top: 0.8rem;
}
.cite a {
  color: var(--accent);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 158, 217, 0.35);
  background: linear-gradient(
    140deg,
    rgba(34, 158, 217, 0.16),
    rgba(123, 211, 247, 0.05)
  );
  padding: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 158, 217, 0.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem);
  position: relative;
}
.cta-band p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0.9rem auto 0;
  position: relative;
}
.cta-band .hero__cta {
  justify-content: center;
}

/* ---------- Use-case chips ---------- */
.usecases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.usecase {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.usecase:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--glass-2);
}
.usecase svg {
  color: var(--accent);
}

/* ---------- Logo marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  align-items: center;
}
.marquee__track span {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--muted);
  font-size: 1.05rem;
  white-space: nowrap;
  opacity: 0.7;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn {
  width: 100%;
}
@media (max-width: 940px) {
  .mobile-cta {
    display: block;
  }
  body {
    padding-bottom: 76px;
  }
}

/* ---------- Floating side button ---------- */
.float-cta {
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.4rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 85;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease;
}
.float-cta:hover {
  transform: scale(1.07) translateY(-2px);
  text-decoration: none;
}
.float-cta svg {
  width: 26px;
  height: 26px;
}
.float-cta::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(39, 167, 231, 0.5);
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@media (max-width: 940px) {
  .float-cta {
    bottom: 84px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(15, 26, 46, 0.5));
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) 2rem;
  margin-top: var(--section-y);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer__brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  max-width: 34ch;
}
.footer__col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer__col a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer__col a:hover {
  color: var(--accent);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer__bottom a {
  color: var(--muted);
}

/* ---------- Prose / article ---------- */
.prose {
  max-width: var(--maxw-prose);
  margin-inline: auto;
}
.prose > * + * {
  margin-top: 1.1rem;
}
.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  margin-top: 2.4rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}
.prose p,
.prose li {
  color: #cdd9ea;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .prose p,
  :root[data-theme="auto"] .prose li {
    color: #243344;
  }
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
}
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.6rem 0 0.6rem 1.2rem;
  color: var(--muted);
  font-style: italic;
}
.prose figure {
  margin: 1.6rem 0;
}
.prose figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}
.prose figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.3rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---------- Blog cards ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.post-card__body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.post-card__cat {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card h3 {
  font-size: 1.18rem;
}
.post-card h3 a {
  color: var(--text);
}
.post-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}
.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.post-card__more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.post-card__thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Notice / disclaimer ---------- */
.notice {
  border: 1px solid rgba(245, 166, 35, 0.3);
  background: rgba(245, 166, 35, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--text);
  font-size: 0.95rem;
}
.notice strong {
  color: var(--warning);
}
.notice--info {
  border-color: rgba(34, 158, 217, 0.3);
  background: rgba(34, 158, 217, 0.08);
}
.notice--info strong {
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.contact-card .brand__logo {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

/* ---------- Reveal animation (JS-gated) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
.js [data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
.js [data-reveal-delay="3"] {
  transition-delay: 0.24s;
}
.js [data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(5rem, 3rem + 14vw, 11rem);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Utilities ---------- */
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.6rem;
}
.mt-2 {
  margin-top: 1.2rem;
}
.mt-3 {
  margin-top: 1.8rem;
}
.mb-2 {
  margin-bottom: 1.2rem;
}
.flex {
  display: flex;
}
.wrap {
  flex-wrap: wrap;
}
.gap {
  gap: 0.8rem;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin-block: var(--section-y);
}

/* ---------- Reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .aurora,
  .marquee__track,
  .float-cta::after,
  .updated .pulse {
    animation: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .mobile-cta,
  .float-cta,
  .bg-fx,
  .cta-band {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* =================================================================
   Design refinement v2 — symmetry + polish (overrides above)
   ================================================================= */

/* Centered, symmetric heroes site-wide */
.hero {
  text-align: center;
}
.hero h1 {
  margin-inline: auto;
  max-width: 20ch;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero__lead {
  max-width: 60ch;
  margin-inline: auto;
}
.hero__cta {
  justify-content: center;
}
.trust-strip {
  justify-content: center;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  margin: 0 0 0.4rem;
}

/* Consistent centered section headers */
.section-head {
  margin-inline: auto;
  text-align: center;
}

/* Centered, glowing hero showcase (dashboard mock below the copy) */
.hero__visual--center {
  max-width: 920px;
  margin: clamp(2rem, 1rem + 4vw, 3.6rem) auto 0;
  position: relative;
}
.hero__visual--center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12%;
  width: 84%;
  height: 74%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(34, 158, 217, 0.5), transparent 70%);
  filter: blur(66px);
  z-index: -1;
  pointer-events: none;
}
.hero__visual--center .mock {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.hero__visual--center .mock:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -20px rgba(3, 10, 22, 0.8);
}

/* Premium card hover: gradient top accent + glow */
.card--hover::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card--hover:hover::after {
  opacity: 1;
}

/* Equal-height, balanced card grids */
.grid > .card {
  height: 100%;
}

/* Slightly tighter, balanced eyebrow rhythm in section heads */
.section-head .eyebrow {
  margin-bottom: 0.2rem;
}

/* Symmetric divider accent */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  max-width: 920px;
  margin-inline: auto;
}

/* ===== Data + campaign-report mockups (proof) ===== */
.mock__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--glass-2);
  border: 1px solid var(--border);
  padding: 0.24em 0.6em;
  border-radius: 999px;
}
.chip strong {
  color: var(--accent);
}
.mock .table-wrap {
  border: none;
  border-radius: 0;
  background: transparent;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 420px;
}
.data-table thead th {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--glass-2);
}
.data-table td {
  padding: 0.58rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.data-table .u {
  color: var(--accent);
  font-weight: 600;
}
.data-table .muted {
  color: var(--muted);
}
.data-table .num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.data-table .prev {
  color: var(--muted);
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18em 0.62em;
  border-radius: 999px;
  white-space: nowrap;
}
.st i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.st--on {
  color: #74e0a3;
  background: rgba(46, 204, 113, 0.12);
}
.st--on i {
  background: #2ecc71;
}
.st--rc {
  color: #f3c677;
  background: rgba(245, 166, 35, 0.12);
}
.st--rc i {
  background: #f5a623;
}
.st--off {
  color: var(--muted);
  background: var(--glass-2);
}
.st--off i {
  background: #5a6b85;
}
.st--sent {
  color: #74e0a3;
  background: rgba(46, 204, 113, 0.12);
}
.proof-grid {
  align-items: start;
}
.proof-col .answer {
  margin-bottom: 1rem;
}

/* ===== Code block (technical pages) ===== */
.code {
  background: #0a1322;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}
.code code {
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, Consolas,
    monospace;
  color: #cfe3f5;
  white-space: pre;
}
.code .c {
  color: #6b86a6;
  font-style: italic;
}
.code .k {
  color: #7bd3f7;
}
.code .s {
  color: #9be6b4;
}
.code-cap {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.4rem;
}

/* Compact stat/limit table reuse: tighten cmp on narrow cards */
.cmp.tight th,
.cmp.tight td {
  padding: 0.7rem 0.9rem;
}

/* =================================================================
   Device-specific mobile compatibility (classes set by main.js)
   ================================================================= */

/* No backdrop-filter support OR low-end "lite" mode -> solid, readable surfaces */
.no-blur .site-header,
.lite .site-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: var(--bg) !important;
}
.no-blur .card,
.lite .card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: var(--bg-elev) !important;
}
.no-blur .btn--ghost,
.lite .btn--ghost {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.no-blur .mobile-cta,
.lite .mobile-cta {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: var(--bg) !important;
}
@media (max-width: 940px) {
  .no-blur .nav__links,
  .lite .nav__links {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: var(--bg) !important;
  }
}

/* Lite mode: drop GPU-heavy ambient effects on low-end / data-saver devices */
.lite .bg-fx,
.lite .aurora {
  display: none !important;
}
.lite .cta-band::before,
.lite .hero__visual--center::before {
  display: none;
}
.lite .float-cta::after,
.lite .updated .pulse,
.lite .marquee__track {
  animation: none !important;
}
.lite [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Touch devices: don't let hover transforms "stick" after a tap */
html.is-touch .card--hover:hover,
html.is-touch .usecase:hover,
html.is-touch .hero__visual--center .mock:hover,
html.is-touch .plan--featured:hover,
html.is-touch .btn:hover,
html.is-touch .float-cta:hover {
  transform: none;
}
html.is-touch .card--hover:hover {
  box-shadow: var(--shadow-1);
  border-color: var(--border);
}
html.is-touch .card--hover:hover::after {
  opacity: 0;
}

/* iOS: momentum scrolling for horizontal scrollers (tables, code) */
.is-ios .table-wrap,
.is-ios .code {
  -webkit-overflow-scrolling: touch;
}

/* Slightly larger tap comfort for inline links on touch (no layout shift) */
@media (hover: none) and (max-width: 560px) {
  .btn {
    min-height: 48px;
  }
}

/* ===== Performance: skip rendering off-screen sections (no visual change) =====
   The browser defers layout/paint of sections that are not near the viewport,
   improving first render on these long pages. contain-intrinsic-size: auto
   remembers each section's real size so the scrollbar stays accurate. */
.section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ===== Mobile hero balance / symmetry polish ===== */
.hero__lead,
.lead {
  text-wrap: pretty;
}
@media (max-width: 600px) {
  /* Equal-width, stacked CTAs read symmetrically on phones */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  /* Drop the dot separators so the trust strip never leaves a dangling "•" */
  .trust-strip {
    gap: 0.35rem 1.1rem;
  }
  .trust-strip .dot {
    display: none;
  }
}
