/* ==========================================================================
   Bump Reminder — landing page styles
   Shared verbatim by /, /ua/ and /ru/ (copied by tools/sync-locales.mjs):
   no root-absolute URLs in this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #0F0F11;
  --surface: #17171A;
  --surface-2: #1E1E22;
  --surface-sunk: #131316;
  --line: #2A2A30;
  --line-soft: #222226;
  --line-strong: #3A3A42;
  --text: #F2F2F3;
  --text-2: #E4E4E7;
  --muted: #A3A3AD;
  --dim: #8A8A94;
  --faint: #6F6F7A;
  --accent: #C8F031;
  --on-accent: #0F0F11;
  --amber: #FFB547;
  --danger: #FF6B6B;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1360px;
  --gutter: clamp(16px, 3vw, 40px);

  /* local helpers */
  --track: #26262B;
  --tag: #D4D4D8;
  --radius-card: 20px;
  --header-h: 74px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body,
h1, h2, h3, h4,
p, figure, blockquote,
dl, dd, ol, ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
}

strong {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text);
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:hover {
  color: var(--on-accent);
  transform: none;
}

/* FOUC guard: site.js reveals these with autoAlpha */
html.js [data-anim]:not([data-anim="magnetic"]):not([data-anim="progress"]) {
  visibility: hidden;
}

/* Skeleton shimmer (live-data placeholders) */
.skel {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 0%, #2A2A31 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s ease-in-out infinite;
}

@keyframes skel-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* --------------------------------------------------------------------------
   Shared components: buttons, pills, live badge, icons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  flex: none;
}

.btn-primary,
.btn-primary:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #D6F65C;
}

.btn-ghost {
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--surface);
  color: var(--text);
}

.btn-sm {
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.pill--accent {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.pill--danger {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.live--caps {
  text-transform: uppercase;
}

.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.icon-check {
  flex: none;
  color: var(--accent);
}

.icon-x {
  flex: none;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 15, 17, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(20px, 2.4vw, 32px);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0 clamp(20px, 2vw, 28px);
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.nav-link.is-active,
.nav-link[aria-current] {
  color: var(--text);
}

/* Positioned by site.js (x via transform; width or scaleX from a 1px base) */
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* Nav on its own scrollable row (the five links + brand + CTA need ~960px) */
@media (max-width: 1023.98px) {
  :root {
    --header-h: 132px;
  }

  /* Brand + CTA always share row 1 (the brand name truncates before the CTA
     can wrap onto a row of its own); the nav takes row 2. */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 0;
    column-gap: 16px;
  }

  .brand {
    justify-self: start;
    max-width: 100%;
  }

  .brand-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    flex: 1 1 100%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter);
    gap: 0 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-indicator {
    bottom: 8px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    column-gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-header .btn-sm {
    gap: 6px;
    padding: 0 10px;
    font-size: 14px;
  }

  /* the plus is decorative; dropping it keeps longer labels next to the brand */
  .site-header .btn-sm .icon {
    display: none;
  }
}

/* Very narrow phones: the logo alone (the link keeps its aria-label) */
@media (max-width: 374.98px) {
  .brand {
    min-width: 44px;
  }

  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* One row from 1024px: keep the gaps tight until there is room to spare so
   longer translations never push the CTA onto a second row. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .header-inner {
    column-gap: 16px;
  }

  .nav {
    gap: 0 16px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 5vw, 72px) 0 clamp(72px, 6.7vw, 96px);
}

.hero-title {
  max-width: 15em;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-line {
  display: block;
}

.hero-line--muted {
  color: var(--faint);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 64px;
  margin-top: 56px;
}

.hero-copy {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--muted);
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cooldown card */
.cooldown-card {
  flex: 1 1 520px;
  min-width: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.cc-title {
  font-size: 15px;
  font-weight: 600;
}

.cc-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.cc-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.cc-service {
  font-size: 15px;
  font-weight: 600;
}

.cc-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}

.cc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cc-timer {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cc-timer--amber {
  color: var(--amber);
}

.cc-next {
  flex: none;
  white-space: nowrap;
}

.cc-next-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
}

/* Narrow phones: long "next in" labels drop under the service name instead
   of squeezing it */
@media (max-width: 420px) {
  .cc-row--others .cc-row-top {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  /* wrap only when the name column would get narrower than this */
  .cc-row--others .cc-name {
    flex: 1 1 120px;
  }
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
}

.bar-fill--accent {
  background: var(--accent);
}

.bar-fill--amber {
  background: var(--amber);
}

.bar-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cc-message {
  display: flex;
  gap: 14px;
  padding: 20px 22px 22px;
  background: var(--surface-sunk);
}

.cc-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
}

.cc-msg-body {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.cc-author {
  font-size: 15px;
  font-weight: 600;
}

.tag-bot {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tag);
}

.cc-time {
  font-size: 12px;
  color: var(--dim);
}

.cc-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  margin-top: 6px;
}

.cc-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}

.cc-msg-text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.cc-msg-text strong {
  font-weight: 700;
  color: var(--text);
}

.cc-msg-text code {
  font-size: 14px;
  color: var(--muted);
}

.mention {
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Trust carousel
   -------------------------------------------------------------------------- */
.trust {
  position: relative;
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
}

.trust-head {
  text-align: center;
}

.trust-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.trust-title .accent {
  color: var(--accent);
}

.trust-hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--dim);
}

.marquee {
  position: relative;
  z-index: 5;
  margin-top: 20px;
  padding: 6px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.marquee-item {
  position: relative;
  flex: none;
}

.srv-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

button.srv-avatar:hover,
button.srv-avatar:focus-visible,
button.srv-avatar.is-active {
  transform: scale(1.08);
  border-color: var(--accent);
}

.srv-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.srv-avatar-fallback {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.marquee-item.is-skeleton .srv-avatar {
  border-color: var(--line-soft);
  background: linear-gradient(90deg, var(--surface-2) 0%, #2A2A31 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s ease-in-out infinite;
}

/* No JS, reduced motion, or set by site.js: a plain horizontal scroller */
html:not(.js) .marquee,
.marquee--static {
  overflow-x: auto;
  scrollbar-width: none;
  /* focus scrolling keeps the focused avatar clear of the edge fades */
  scroll-padding-inline: clamp(48px, 10vw, 160px);
}

html:not(.js) .marquee::-webkit-scrollbar,
.marquee--static::-webkit-scrollbar {
  display: none;
}

html:not(.js) .marquee-track,
.marquee--static .marquee-track {
  padding: 0 var(--gutter);
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(48px, 10vw, 160px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Keyboard focus inside the carousel: never hide the focused avatar */
.marquee:has(:focus-visible) .marquee-fade {
  opacity: 0;
}

@supports not selector(:has(*)) {
  .marquee:focus-within .marquee-fade {
    opacity: 0;
  }
}

.marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(15, 15, 17, 0));
}

.marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(15, 15, 17, 0));
}

/* Popover: absolutely positioned inside .trust; site.js moves it via transform
   so it sits 10px below (or above) the active avatar. */
.srv-pop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 248px;
  max-width: calc(100vw - 32px);
  padding-top: 10px;
  pointer-events: none;
}

.srv-pop.is-above {
  padding-top: 0;
  padding-bottom: 10px;
}

.srv-pop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.srv-pop-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.srv-pop-head > div {
  min-width: 0;
}

.srv-pop-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  object-fit: cover;
}

.srv-pop-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.srv-pop-avatar[hidden] {
  display: none;
}

.srv-pop-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.srv-pop-rank {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.srv-pop-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.srv-pop-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.srv-pop-stats dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.srv-pop-stats dd {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.srv-pop-stats dd.srv-pop-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-2);
}

.flag {
  flex: none;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Live stats strip
   -------------------------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
}

.stats-label,
.stat {
  flex: 1 1 200px;
  min-width: 0;
  padding: 36px 0;
}

.stats-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.stats-note {
  font-size: 14px;
  color: var(--dim);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* Tablets: the label on its own row, the three numbers in one row below */
@media (min-width: 560px) and (max-width: 1023.98px) {
  .stats-grid {
    column-gap: 32px;
  }

  .stats-label {
    flex-basis: 100%;
    padding-bottom: 0;
  }

  .stat {
    flex: 1 1 0;
  }
}

@media (max-width: 559.98px) {
  .stats-grid {
    column-gap: 24px;
    padding-bottom: 12px;
  }

  .stats-label {
    flex-basis: 100%;
    padding: 28px 0 8px;
  }

  .stat {
    flex-basis: 40%;
    padding: 16px 0;
  }
}

/* --------------------------------------------------------------------------
   Sections: shared head
   -------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.stats + .section {
  padding-top: 104px;
  border-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-num {
  color: var(--accent);
}

.eyebrow-line {
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--line-strong);
}

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

.section-title {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-lead {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 460px;
  font-size: 17px;
  color: var(--muted);
}

@media (max-width: 599.98px) {
  .section {
    padding: 72px 0;
  }

  .stats + .section {
    padding-top: 80px;
  }

  .section-head {
    margin-bottom: 40px;
  }
}

/* --------------------------------------------------------------------------
   01 Why not auto-bump
   -------------------------------------------------------------------------- */
.compare {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.compare-card {
  flex: 1 1 360px;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.compare-card--safe {
  background: var(--surface);
  border-color: var(--accent);
}

.compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.compare-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.compare-card--risky .compare-head h3 {
  color: var(--muted);
}

.compare-head .pill {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--muted);
}

.compare-list svg {
  margin-top: 3px;
}

.compare-card--safe .compare-list li {
  border-top-color: var(--line);
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   02 How it works
   -------------------------------------------------------------------------- */
/* One column, then all three side by side (never a 2 + 1 split) */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-title code {
  font-weight: 500;
  color: var(--accent);
}

.step-text {
  font-size: 16px;
  color: var(--muted);
}

.cycle {
  margin-top: 20px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface-sunk);
}

.cycle-label {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cycle-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.cycle-node {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
}

.cycle-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
}

.cycle-dot--accent {
  background: var(--accent);
}

.cycle-time {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}

.cycle-text {
  font-size: 14px;
  color: var(--muted);
}

.cycle-bar {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.cycle-bar-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.cycle-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--amber) 0 12px, transparent 12px 18px);
  transform-origin: left center;
}

.cycle-bar-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   03 Features
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg);
}

.feature-icon {
  flex: none;
  color: var(--accent);
}

.feature-title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 600;
}

.feature-text {
  font-size: 15px;
  color: var(--muted);
}

.feature-text code {
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   04 Commands
   -------------------------------------------------------------------------- */
.commands {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  overflow: hidden;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  margin-bottom: -1px;
}

.command {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  min-width: 0;
  padding: 20px clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line-soft);
}

.command-name {
  flex: 0 0 150px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.command-desc {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   05 Community
   -------------------------------------------------------------------------- */
.community {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.panel {
  flex: 1 1 420px;
  min-width: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Top servers */
.top-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 69px;
  padding: 14px 24px;
  border-top: 1px solid var(--line-soft);
}

.top-rank {
  flex: none;
  width: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}

.top-rank--1 {
  color: var(--accent);
}

.top-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  object-fit: cover;
}

.top-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.top-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-members {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Activity feed */
.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 69px;
  padding: 14px 24px;
  border-top: 1px solid var(--line-soft);
}

.feed-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  object-fit: cover;
}

.feed-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.feed-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-server {
  font-weight: 600;
}

.feed-verb {
  color: var(--muted);
}

.feed-time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
}

.feed-item--empty {
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* Skeleton rows */
.skel--rank {
  width: 18px;
  height: 12px;
}

.skel--avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.skel--avatar-sm {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.skel--name {
  flex: 0 1 auto;
  width: 46%;
  height: 14px;
}

.skel--num {
  flex: none;
  width: 52px;
  height: 12px;
  margin-left: auto;
}

.skel--time {
  flex: none;
  width: 64px;
  height: 12px;
  margin-left: auto;
}

.is-skeleton:nth-child(2) .skel--name { width: 38%; }
.is-skeleton:nth-child(3) .skel--name { width: 52%; }
.is-skeleton:nth-child(4) .skel--name { width: 34%; }
.is-skeleton:nth-child(5) .skel--name { width: 44%; }

/* --------------------------------------------------------------------------
   06 FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
}

.faq-intro {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 440px;
}

.faq-intro .section-title {
  display: block;
}

.faq-text {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
}

.faq-cta {
  min-height: 48px;
  margin-top: 28px;
  padding: 0 20px;
}

.faq-list {
  flex: 2 1 560px;
  min-width: 0;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item dt {
  font-size: 18px;
  font-weight: 600;
}

.faq-item dd {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
}

.faq-item code {
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 0 0 96px;
}

.cta {
  padding: clamp(28px, 5vw, 72px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.cta-title,
.cta-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta-text {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 599.98px) {
  .cta-section {
    padding-bottom: 72px;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-logo {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-brand p {
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  font-size: 14px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  .skel,
  .marquee-item.is-skeleton .srv-avatar {
    animation: none;
    background: var(--surface-2);
  }

  .marquee {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: clamp(48px, 10vw, 160px);
  }

  .marquee::-webkit-scrollbar {
    display: none;
  }

  .marquee-track {
    padding: 0 var(--gutter);
  }
}

/* --------------------------------------------------------------------------
   site.js state hooks (appended by the motion pass: JS-added classes only,
   no existing rule is changed)
   -------------------------------------------------------------------------- */
/* A live-data request failed or came back empty: stop the skeleton shimmer */
.is-idle .skel,
.marquee-track.is-idle .marquee-item.is-skeleton .srv-avatar {
  animation: none;
}

/* The server popover can be hovered while it is open */
.srv-pop.is-open {
  pointer-events: auto;
}

/* Fresh activity row: site.js tweens --flash 0 → .12 → 0 */
.feed-item.is-new {
  background-color: rgb(200 240 49 / var(--flash, 0));
}

/* Safe compare card glows once on reveal: site.js tweens --glow 0 → 1 → 0 */
.compare-card--safe.is-glowing {
  box-shadow:
    0 0 0 calc(var(--glow, 0) * 4px) rgb(200 240 49 / calc(var(--glow, 0) * 0.16)),
    0 0 calc(var(--glow, 0) * 48px) rgb(200 240 49 / calc(var(--glow, 0) * 0.22));
}

/* SplitText line masks (overflow: clip): room for descenders and tall
   diacritics without changing the line box (padding would add a gap, the
   negative margins collapse between block siblings) */
.split-line-mask {
  overflow-clip-margin: 0.12em;
}

/* Hero card story: the typing dots sit over the message text slot so the
   card never changes height (site.js sets `top` to the text's offset) */
.cc-msg-body.is-animated {
  position: relative;
}

.cc-msg-body.is-animated .cc-typing {
  position: absolute;
  left: 0;
  margin-top: 0;
}
