:root {
  --bg: #0e0a1a;
  --bg-raised: #16101f;
  --bg-sidebar: #100b19;
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.68);
  --ink-faint: rgba(255, 255, 255, 0.48);
  --border: rgba(255, 255, 255, 0.12);
  --g1: #6e56fa;
  --g2: #ff5da2;
  --g3: #ff9f5a;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --content-width: 1040px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* Safety net against any one wide element making the whole page pan
     sideways on a phone. clip (not hidden) so the sticky header keeps
     working. */
  overflow-x: clip;
}

/* Ambient gradient mesh behind the whole page, fixed so it reads as one
   continuous wash while scrolling rather than repeating per-section. A
   slow drift keeps the page feeling alive without calling attention to
   itself. */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(46% 40% at 12% 10%, rgba(110, 86, 250, 0.5), transparent),
    radial-gradient(42% 38% at 90% 6%, rgba(255, 93, 162, 0.4), transparent),
    radial-gradient(48% 46% at 78% 92%, rgba(255, 159, 90, 0.35), transparent),
    radial-gradient(38% 36% at 4% 88%, rgba(110, 86, 250, 0.32), transparent);
  animation: meshDrift 26s ease-in-out infinite;
}

@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

a {
  color: var(--ink);
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--glass-bg);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- announce bar ---------- */

.announce-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 44px 10px 16px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  position: relative;
}

.announce-bar[hidden] {
  display: none;
}

.announce-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.announce-bar-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.announce-bar-arrow {
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.announce-bar-link:hover .announce-bar-arrow {
  transform: translateX(3px);
}

.announce-bar-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.announce-bar-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

@media (max-width: 560px) {
  .announce-bar {
    padding: 9px 40px 9px 14px;
  }
  .announce-bar-link {
    gap: 8px;
    font-size: 0.8rem;
    text-align: left;
  }
}

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 10, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  display: block;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

.nav-links a:not(.btn) {
  position: relative;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 150ms ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  transition: right 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

.nav-links a:not(.btn):hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

/* Hamburger, only shown at phone width (see the 760px block at the end
   of this file). The three bars fold into an X while the menu is open. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 150ms ease;
}

.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-muted);
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-icon-btn:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 150ms ease, background-color 150ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms ease;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary:hover,
.btn-light:hover {
  box-shadow: 0 10px 26px -10px rgba(255, 255, 255, 0.35);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: #ffffff;
  color: #16101f;
}

.btn-light {
  background: #ffffff;
  color: #16101f;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ---------- layout ---------- */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 10px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.section-head p {
  color: var(--ink-muted);
  margin: 12px 0 0;
}

.big-statement {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 auto 32px;
}

.no-data-note {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.no-data-note a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- glass card (shared) ---------- */

.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
  overflow: hidden;
}

/* Cursor-follow glow, position set on --mx/--my by motion.js. Only cards
   opted into .glass-glow get it, so it stays a hero/feature accent
   rather than firing on every glass surface (nav, demo window, etc). */
.glass-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(178, 130, 255, 0.28), rgba(255, 93, 162, 0.1) 45%, transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass-glow:hover::before {
  opacity: 1;
}

.glass-glow:hover {
  transform: translateY(-3px);
  border-color: rgba(178, 130, 255, 0.35);
  box-shadow: 0 18px 40px -20px rgba(110, 86, 250, 0.45);
}

/* ---------- modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 6, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  max-width: 440px;
  width: 100%;
  padding: 28px;
  background: var(--bg-raised);
}

.modal h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.modal p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.modal p a {
  color: var(--ink);
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glass-glow, .glass-glow::before {
    transition: none;
  }
  .marquee-row {
    animation: none;
  }
}

/* ---------- hero ---------- */

/* Set (in px) by sizeHeroToViewport() in index.html, from the actual
   rendered height of the announce bar + header - the 64px here is only
   a fallback for the instant before that script runs. */
:root {
  --chrome-height: 64px;
}

#hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--chrome-height));
  /* svh = the viewport with mobile Safari / Chrome toolbars showing, so
     the hero doesn't run under them. 100vh above stays as the fallback. */
  min-height: calc(100svh - var(--chrome-height));
  padding: 28px 24px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}

/* Full bleed valley backdrop behind the hero (main is width capped, so
   this breaks out to the viewport width). The CSS image is the still;
   hero-scene.js fades its WebGL canvas in on top once it can animate. */
.hero-scene {
  position: absolute;
  top: 0;
  /* Runs a little past the hero so the fade below spans the boundary
     into the next section instead of ending on it. */
  bottom: -160px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  overflow: hidden;
  background: #1a1430 url("/hero/valley.jpg") center / cover no-repeat;
  /* Feathers the tree line out to transparent so the page's own
     background (gradient mesh included) shows through, rather than
     fading to a flat colour band. Eased stops avoid a visible edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.88) 62%, rgba(0, 0, 0, 0.62) 72%, rgba(0, 0, 0, 0.32) 82%, rgba(0, 0, 0, 0.1) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0, 0, 0, 0.88) 62%, rgba(0, 0, 0, 0.62) 72%, rgba(0, 0, 0, 0.32) 82%, rgba(0, 0, 0, 0.1) 91%, transparent 100%);
}

.hero-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

.hero-scene canvas.ready {
  opacity: 1;
}

/* Scrim: keeps the headline readable over the bright sky and the fact
   bar readable over the trees. The fade into the page is the mask above. */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(14, 10, 26, 0.45), transparent 75%),
    linear-gradient(to bottom, rgba(14, 10, 26, 0.25) 0%, rgba(14, 10, 26, 0.1) 45%, rgba(14, 10, 26, 0.45) 75%, rgba(14, 10, 26, 0.45) 100%);
}

/* Intro: the hero text waits for the animation, then pops in one piece
   at a time and stays. */
.hero-anim .hero-center > * {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-anim.hero-revealed .hero-center > * {
  opacity: 1;
  transform: none;
}

.hero-anim.hero-revealed .hero-center > :nth-child(2) { transition-delay: 120ms; }
.hero-anim.hero-revealed .hero-center > :nth-child(3) { transition-delay: 240ms; }
.hero-anim.hero-revealed .hero-center > :nth-child(4) { transition-delay: 330ms; }
.hero-anim.hero-revealed .hero-center > :nth-child(5) { transition-delay: 400ms; }
.hero-anim.hero-revealed .hero-center > :nth-child(n + 6) { transition-delay: 480ms; }

.hero-center {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-problem {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.hero-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-chip svg {
  flex-shrink: 0;
}

.hero-heading {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero-accent {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--ink-muted);
  font-size: 1.04rem;
  max-width: 520px;
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 14px 34px;
  font-size: 0.98rem;
  font-weight: 600;
}

.hero-cta-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- hero rating (above the fold star badge) ---------- */

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}

.hero-rating[hidden] {
  display: none;
}

.hero-rating-stars {
  position: relative;
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 2px;
}

.hero-rating-stars .stars-base {
  color: var(--glass-border);
}

.hero-rating-stars .stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--g3);
}

.hero-rating-text {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ---------- fact bar ---------- */

.fact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 32px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: left;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--g1);
}

.fact-item:nth-child(2) { border-left-color: var(--g2); }
.fact-item:nth-child(3) { border-left-color: var(--g3); }
.fact-item:nth-child(4) { border-left-color: var(--g1); }

.fact-item .num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.fact-item .label {
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.35;
}

.fact-bar-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin: 10px 0 0;
}

/* ---------- features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}

.feature-icon.g1 { background: linear-gradient(135deg, #7c6bff, #b06bff); }
.feature-icon.g2 { background: linear-gradient(135deg, #ff5da2, #ff8fb8); }
.feature-icon.g3 { background: linear-gradient(135deg, #ff9f5a, #ffc06b); }
.feature-icon.g4 { background: linear-gradient(135deg, #5ad0c7, #6e9bfa); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.testimonials-grid[hidden] {
  display: none;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 26px 26px;
}

.testimonial-quote-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
}

.testimonial-quote-mark-wrap.g1 { background: linear-gradient(135deg, #7c6bff, #b06bff); }
.testimonial-quote-mark-wrap.g2 { background: linear-gradient(135deg, #ff5da2, #ff8fb8); }
.testimonial-quote-mark-wrap.g3 { background: linear-gradient(135deg, #ff9f5a, #ffc06b); }
.testimonial-quote-mark-wrap.g4 { background: linear-gradient(135deg, #5ad0c7, #6e9bfa); }

.testimonial-quote {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.testimonial-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.testimonial-avatar.g1 { background: linear-gradient(135deg, #7c6bff, #b06bff); }
.testimonial-avatar.g2 { background: linear-gradient(135deg, #ff5da2, #ff8fb8); }
.testimonial-avatar.g3 { background: linear-gradient(135deg, #ff9f5a, #ffc06b); }
.testimonial-avatar.g4 { background: linear-gradient(135deg, #5ad0c7, #6e9bfa); }

.testimonial-attribution {
  margin: 0;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.testimonial-role {
  display: block;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.testimonial-logo {
  height: 30px;
  width: auto;
  max-width: 120px;
  margin-left: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
}

/* A single real testimonial reads as a placeholder in a 3-up grid, so
   it gets its own bigger, centered "featured quote" treatment instead -
   the multi-card grid only kicks in once there's more than one. */
.testimonials-grid.featured {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.testimonials-grid.featured .testimonial-card {
  padding: 44px 44px 38px;
  text-align: center;
  align-items: center;
}

.testimonials-grid.featured .testimonial-quote-mark-wrap {
  width: 54px;
  height: 54px;
}

.testimonials-grid.featured .testimonial-quote {
  font-size: 1.35rem;
  line-height: 1.45;
}

.testimonials-grid.featured .testimonial-footer {
  width: 100%;
  margin-top: 6px;
}

.testimonials-grid.featured .testimonial-attribution {
  text-align: left;
}

.testimonials-grid.featured .testimonial-logo {
  height: 38px;
  max-width: 150px;
}

/* ---------- testimonial wall (endless marquee) ---------- */

.testimonial-wall {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.testimonial-wall[hidden] {
  display: none;
}

.marquee-row {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
}

.marquee-row.reverse {
  animation-direction: reverse;
  animation-duration: 68s;
}

.marquee-row:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-row .testimonial-card {
  width: 340px;
  flex-shrink: 0;
}

/* ---------- how it works / product dashboard ---------- */

.how-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
}

.step .step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--g1), #b06bff); }
.step:nth-child(2) .step-num { background: linear-gradient(135deg, var(--g2), #ff8fb8); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, var(--g3), #ffc06b); }

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2px 0 6px;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- download ---------- */

.download-quickpick {
  max-width: 460px;
  margin: 0 auto 12px;
  padding: 26px 28px;
  text-align: center;
}

.download-quickpick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}

.download-quickpick label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.download-quickpick select {
  width: 100%;
  appearance: none;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 11px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.68' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.download-quickpick select:focus-visible {
  outline: 2px solid var(--g1);
  outline-offset: 2px;
}

.download-quickpick option {
  color: #16101f;
}

.download-quickpick .version {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.download-table-lede {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.download-table-wrap {
  max-width: 640px;
  margin: 0 auto;
  overflow-x: auto;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
}

.download-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 12px 10px;
}

.download-table th:last-child,
.download-table td:last-child {
  text-align: right;
  width: 130px;
}

.download-table th:nth-child(2),
.download-table td:nth-child(2) {
  width: 100px;
}

.download-table td {
  border-top: 1px solid var(--glass-border);
  padding: 14px 12px;
  font-size: 0.9rem;
  vertical-align: middle;
}

.download-table-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.download-table-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  background: var(--glass-bg-strong);
}

.download-table .version {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.download-table .btn {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.download-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 24px 0 0;
}

/* ---------- community ---------- */

.community-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.community-post {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
}

.community-post-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.95rem;
}

.community-post-votes svg {
  color: var(--g2);
}

.community-post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.community-post-body p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.community-post-body time {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.community-post-delete {
  align-self: flex-start;
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 1.3rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.community-post-delete:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.community-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 40px 0;
}

.download-note a {
  color: var(--ink-muted);
  text-decoration: underline;
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  padding: 22px 26px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.faq-item a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- final cta ---------- */

.final-cta-card {
  padding: 56px 32px;
  text-align: center;
}

.final-cta-card h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.final-cta-card p {
  color: var(--ink-muted);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* ---------- footer ---------- */

footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)) 1;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-faint);
}

.footer-links a:hover {
  color: var(--ink-muted);
}

/* ---------- legal pages ---------- */

.legal {
  padding: 48px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 8px 0 28px;
}

.legal .draft-notice {
  border-left: 3px solid var(--g2);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.legal .draft-notice a { text-decoration: underline; }

.legal .body-card {
  padding: 40px 44px;
}

.legal h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p, .legal li {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.legal p a, .legal li a {
  text-decoration: underline;
  color: var(--ink);
}

.legal ul {
  padding-left: 20px;
}

/* ---------- updates / patch notes ---------- */

.updates-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.update-item {
  padding: 0;
  overflow: hidden;
}

.update-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.update-summary::-webkit-details-marker {
  display: none;
}

.update-summary::marker {
  content: "";
}

.update-version {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  white-space: nowrap;
}

.update-summary-text {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.update-date {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 3px;
}

.update-chevron {
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 200ms ease;
}

details.update-item[open] .update-chevron {
  transform: rotate(180deg);
}

.update-body {
  padding: 2px 26px 26px;
  margin-top: -4px;
}

.update-group + .update-group {
  margin-top: 18px;
}

.update-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.update-group-label.fixed { color: #5ad0c7; }
.update-group-label.changed { color: #ffc06b; }
.update-group-label.added { color: #b06bff; }
.update-group-label.disabled { color: #e5484d; }

.update-body ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.update-body li {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- auth pages ---------- */

.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 72px 0 96px;
}

.auth-card {
  padding: 40px 36px;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  text-align: center;
}

.auth-card p.sub {
  color: var(--ink-muted);
  font-size: 0.94rem;
  text-align: center;
  margin: 0 0 28px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  font-family: var(--font-sans);
}

.form-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.form-field .hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 6px;
}

.form-message {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.86rem;
  margin-bottom: 16px;
  display: none;
}

.form-message.error {
  background: rgba(255, 93, 93, 0.14);
  border: 1px solid rgba(255, 93, 93, 0.35);
  color: #ffb3b3;
}

.form-message.success {
  background: rgba(90, 208, 199, 0.14);
  border: 1px solid rgba(90, 208, 199, 0.35);
  color: #9fe8e0;
}

.form-message.visible {
  display: block;
}

.auth-submit {
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 24px;
}

.auth-switch a {
  text-decoration: underline;
  color: var(--ink);
}

/* ---------- account page ---------- */

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.account-row:last-of-type {
  border-bottom: none;
}

.account-row .label {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.account-row .value {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 18px;
}

.account-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.account-card {
  padding: 28px 30px;
}

.account-card p.note {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 14px 0 0;
}

.danger-card {
  padding: 28px 30px;
  border-color: rgba(255, 93, 93, 0.3) !important;
  background: rgba(255, 93, 93, 0.05) !important;
}

.danger-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.danger-card p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.btn-danger {
  background: #e5484d;
  color: #fff;
}

.confirm-panel {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 93, 93, 0.25);
}

.confirm-panel.visible {
  display: block;
}

.confirm-panel .confirm-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.confirm-panel .confirm-row .btn {
  flex: 1;
  min-width: 140px;
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(178, 130, 255, 0.45);
  background: var(--glass-bg-strong);
}

.price-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
}

.price-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.price-tagline {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
  min-height: 2.7em;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-amount .num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-amount .period {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.price-note {
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin: 0 0 26px;
}

.price-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.price-features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #5ad0c7;
}

.price-features li strong {
  color: var(--ink);
  font-weight: 600;
}

.pricing-note {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.pricing-note a {
  color: inherit;
  text-decoration: underline;
}

.price-offer {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 6px 0 4px;
}

.price-offer-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 2px;
}

.price-offer strong {
  color: #5ad0c7;
  font-weight: 600;
}

/* Three cards get cramped before the full single-column collapse below
   kicks in at 720px - drops to one column a bit earlier than the rest of
   the site's grids so no card is ever squeezed under ~230px wide. */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .d-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .marquee-row .testimonial-card {
    width: min(280px, 78vw);
  }
}

/* Touch screens have no real hover: without this, a tapped card or
   button keeps its lifted "hover" state until something else is
   tapped. */
@media (hover: none) {
  .btn:hover,
  .glass-glow:hover {
    transform: none;
    box-shadow: none;
  }
  .glass-glow:hover::before {
    opacity: 0;
  }
  .glass-glow:hover {
    border-color: var(--glass-border);
  }
}

/* ---------- phone nav ---------- */

@media (max-width: 760px) {
  .nav {
    gap: 10px;
    padding: 10px 16px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 16px 14px;
    background: rgba(14, 10, 26, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
  }
  .nav-open .nav-links {
    display: flex;
  }
  .nav-links a:not(.btn) {
    padding: 14px 4px;
    font-size: 1.02rem;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:not(.btn):last-child {
    border-bottom: none;
  }
  .nav-links a:not(.btn)::after {
    display: none;
  }
}

/* ---------- phone layout ---------- */

@media (max-width: 600px) {
  main {
    padding: 0 16px;
  }
  section {
    padding: 48px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }

  #hero {
    padding: 32px 0;
  }
  .lede {
    font-size: 1rem;
  }
  .fact-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
  .fact-item {
    padding-left: 10px;
  }
  .fact-item .num {
    font-size: 1.4rem;
  }

  .feature-card {
    padding: 22px 20px;
  }
  .faq-item {
    padding: 20px;
  }
  .final-cta-card {
    padding: 40px 20px;
  }
  .final-cta-card .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .final-cta-card .cta-row .btn {
    text-align: center;
  }

  .testimonial-card {
    padding: 24px 20px 20px;
  }
  .testimonials-grid.featured .testimonial-card {
    padding: 30px 22px 26px;
  }
  .testimonials-grid.featured .testimonial-quote {
    font-size: 1.12rem;
  }
  .testimonial-logo,
  .testimonials-grid.featured .testimonial-logo {
    height: 26px;
    max-width: 90px;
  }

  /* Download: the three column table becomes one card per platform, the
     button to the right of the name and version. */
  .download-quickpick {
    padding: 22px 18px;
  }
  .download-table,
  .download-table tbody {
    display: block;
  }
  .download-table thead {
    display: none;
  }
  .download-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 4px;
    border-top: 1px solid var(--glass-border);
  }
  .download-table td,
  .download-table td:nth-child(2),
  .download-table td:last-child {
    border-top: none;
    padding: 0;
    width: auto;
    text-align: left;
  }
  .download-table td.version {
    grid-column: 1;
    padding-left: 40px;
    font-size: 0.8rem;
  }
  .download-table td:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .download-table .btn {
    padding: 9px 16px;
  }

  .community-post {
    gap: 12px;
    padding: 16px;
  }
  .community-post-votes {
    min-width: 40px;
  }

  .legal {
    padding: 36px 0 56px;
  }
  .legal h1 {
    font-size: 1.75rem;
  }
  .legal .body-card {
    padding: 26px 20px;
  }
  .legal .draft-notice {
    padding: 14px 16px;
  }

  .update-summary {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 18px;
  }
  .update-summary-text {
    order: 3;
    flex-basis: 100%;
  }
  .update-chevron {
    margin-left: auto;
  }
  .update-body {
    padding: 2px 18px 20px;
  }

  .auth-wrap {
    padding: 40px 0 64px;
  }
  .auth-card {
    padding: 30px 22px;
  }
  .account-wrap {
    padding: 40px 16px 64px;
  }
  .account-card,
  .danger-card {
    padding: 22px 20px;
  }

  .price-card {
    padding: 30px 22px;
  }

  .modal-overlay {
    padding: 16px;
  }
  .modal {
    padding: 22px;
  }

  /* iOS Safari zooms the whole page in when a field under 16px gets
     focus, and doesn't zoom back out. */
  .download-quickpick select,
  .form-field input {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
}

/* ---------- admin insights ---------- */

.insights {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.insights-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g2);
}

.insights h1 {
  font-size: 2rem;
  letter-spacing: -0.015em;
  margin: 4px 0 6px;
}

.insights-sub,
.insights-section-sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0;
}

.insights-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.insights-updated {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.insights-refresh {
  padding: 8px 18px;
  font-size: 0.86rem;
}

.insights-message {
  padding: 22px 24px;
  color: var(--ink-muted);
}

.insights-message[hidden] {
  display: none;
}

.insights-message a {
  color: var(--ink);
  text-decoration: underline;
}

.insights-section-title {
  font-size: 1.15rem;
  margin: 36px 0 4px;
}

.insights-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}

.insights-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 16px;
}

.insights-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.insights-kpi-label {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.insights-table-wrap {
  border-radius: 16px;
  overflow-x: auto;
}

.insights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.insights-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 18px;
  border-bottom: 1px solid var(--glass-border);
}

.insights-table td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

.insights-table tr:first-child td {
  border-top: none;
}

.insights-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.insights-empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 28px 18px !important;
}

@media (max-width: 600px) {
  .insights {
    padding: 32px 0 56px;
  }
  .insights-kpis {
    grid-template-columns: 1fr;
  }
  .insights-table th,
  .insights-table td {
    padding: 10px 12px;
  }
}
