:root {
  --blue: #2556FF;
  --blue-dark: #1A42D4;
  --dark: #07080F;
  --dark-2: #0D0F1C;
  --off-white: #F4F4F0;
  --mid: #E4E4DE;
}

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Keeps section headings clear of the 64px sticky navbar */
section[id] { scroll-margin-top: 72px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fff;
  color: var(--dark);
}

.font-display { font-family: 'Syne', sans-serif; }

/* ── Colors ── */
.text-blue { color: var(--blue); }
.bg-blue { background: var(--blue); }

/* ── Nav ── */
#navbar { transition: box-shadow 0.3s ease; }
.nav-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.08); }

/* ── Buttons ── */
.btn-blue {
  background: var(--blue);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.15s ease;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid rgba(7,8,15,0.18);
  color: var(--dark);
  font-weight: 500;
  transition: border-color 0.18s, background 0.18s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── Lang toggle ── */
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lang-btn.active {
  background: var(--dark);
  color: #fff;
}
.lang-btn:hover:not(.active) { color: var(--dark); }

/* ── Hero ── */
.hero-dot-grid {
  background-image: radial-gradient(circle, rgba(37,86,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Hero starfield ── */
.hero-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Two tiled dot layers twinkling out of phase so the field never pulses as one */
.hero-stars::before,
.hero-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 24%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 68% 12%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1.6px 1.6px at 42% 66%, rgba(150,180,255,0.85), transparent),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.6px 1.6px at 56% 40%, rgba(37,86,255,0.95), transparent);
  background-size: 340px 340px;
  animation: star-twinkle 5s ease-in-out infinite;
}

.hero-stars::after {
  background-size: 520px 520px;
  animation-duration: 8s;
  animation-delay: -3s;
  opacity: 0.55;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.95; }
}

/* Hero → white handoff. Positioned so it paints above the dot grid, starfield
   and glow, which otherwise tint the strip and leave a hard line where they stop. */
.hero-fade {
  position: relative;
  z-index: 20;
  height: 40px;
  /* Tinted toward the hero's blue rather than neutral white, so the midpoint of
     the ramp reads as haze instead of grey sludge over the near-black hero. */
  background: linear-gradient(
    to bottom,
    rgba(220,230,255,0) 0%,
    rgba(220,230,255,0.13) 42%,
    rgba(235,240,255,0.55) 74%,
    #ffffff 100%
  );
}

@media (min-width: 640px) {
  .hero-fade { height: 56px; }
}

/* Carries the hero's blue glow a little way into the first white section
   so the two backgrounds meet gradually instead of at a seam. */
.section-fade-top {
  background-image: linear-gradient(to bottom, rgba(37,86,255,0.055), rgba(37,86,255,0) 130px);
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 110px;
  border-radius: 999px;
  /* Bright head at the bottom end, which rotation points along the travel direction */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(140,175,255,0.85) 55%, #ffffff 100%);
  filter: drop-shadow(0 0 6px rgba(37,86,255,0.9));
  opacity: 0;
  animation: shooting-star 7s linear infinite;
}

@keyframes shooting-star {
  0%        { opacity: 0; transform: translate3d(0, 0, 0) rotate(45deg); }
  6%        { opacity: 1; }
  55%       { opacity: 1; }
  70%, 100% { opacity: 0; transform: translate3d(-70vh, 70vh, 0) rotate(45deg); }
}

.shooting-star:nth-child(1) { top: -8%; left: 32%; animation-delay: 0s;    animation-duration: 6s; }
.shooting-star:nth-child(2) { top: -12%; left: 62%; animation-delay: 2.4s; animation-duration: 7.5s; }
.shooting-star:nth-child(3) { top: 4%;  left: 88%; animation-delay: 4.1s;  animation-duration: 6.8s; }
.shooting-star:nth-child(4) { top: -6%; left: 105%; animation-delay: 6.3s; animation-duration: 8.2s; }
.shooting-star:nth-child(5) { top: 18%; left: 48%; animation-delay: 9s;    animation-duration: 7s; }

@media (prefers-reduced-motion: reduce) {
  .hero-stars::before,
  .hero-stars::after {
    animation: none;
    opacity: 0.6;
  }
  .shooting-star { display: none; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Feature cards ── */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--mid);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,86,255,0.08);
  border-color: rgba(37,86,255,0.3);
}

/* ── Demo cards ── */
.demo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--mid);
  display: flex;
  flex-direction: column;
}
/* Keeps the buttons on a row of cards level even when one description
   runs an extra line, which Lithuanian regularly does. */
.demo-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.demo-cta {
  margin-top: auto;
  align-self: flex-start;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* ── Pricing ── */
.price-card {
  border: 1.5px solid var(--mid);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.price-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.price-card.featured { border-color: var(--blue); }

/* ── Step number ── */
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  color: rgba(37,86,255,0.08);
  line-height: 1;
}

/* ── Form ── */
.form-input {
  width: 100%;
  border: 1.5px solid var(--mid);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fff;
  color: var(--dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,86,255,0.1);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

/* ── Brand lockup ── */
/* The supplied logo is a stacked lockup, too tall for a 64px bar, so the nav
   pairs the mark with the wordmark set in Syne to match. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-mark {
  height: 22px;
  width: auto;
  display: block;
}
@media (min-width: 640px) {
  .brand-mark { height: 25px; }
}

.footer-logo {
  height: 46px;
  width: auto;
  display: block;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--mid);
  padding: 48px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand p { margin-top: 8px; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 2px;
}

.footer-link {
  font-size: 14px;
  color: #666;
  transition: color 0.15s ease;
  width: fit-content;
}
.footer-link:hover { color: var(--blue); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--off-white);
}

/* ── Process steps (sticky scroll scrub on desktop) ── */
.process-section {
  --process-steps: 4;
  --process-progress: 0;
  position: relative;
  overflow: clip;
}

.process-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.process-intro { margin-bottom: 2.5rem; }

.process-atmosphere,
.process-visual,
.process-progress { display: none; }

.process-stage { display: block; }

.process-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-panel {
  background: #fff;
  border: 1px solid var(--mid);
  border-radius: 1rem;
  padding: 1.75rem;
  position: relative;
}

@media (min-width: 640px) {
  .process-panels {
    grid-template-columns: 1fr 1fr;
  }
  .step-title { min-height: 3.2em; }
}

@media (min-width: 1024px) {
  .process-panels {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Scrub mode — enabled by JS when desktop + motion is OK */
.js .process-section.is-scrubbing .process-track {
  height: calc(100vh * (var(--process-steps) + 0.35));
}

.js .process-section.is-scrubbing .process-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.js .process-section.is-scrubbing .process-atmosphere {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.process-atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.process-atmosphere-glow {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 640px;
  max-height: 640px;
  left: 8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,86,255,0.16) 0%, rgba(37,86,255,0.04) 45%, transparent 70%);
  transform: translate3d(
    calc(var(--process-progress) * 40px),
    calc(var(--process-progress) * -28px),
    0
  );
  transition: transform 0.15s linear;
  will-change: transform;
}

.process-orbit {
  position: absolute;
  border: 1px solid rgba(37,86,255,0.14);
  border-radius: 50%;
  animation: process-spin 28s linear infinite;
}

.process-orbit-a {
  width: min(38vw, 420px);
  height: min(38vw, 420px);
  left: 6%;
  top: 22%;
  border-style: dashed;
  animation-duration: 36s;
}

.process-orbit-b {
  width: min(28vw, 300px);
  height: min(28vw, 300px);
  left: 12%;
  top: 30%;
  border-color: rgba(37,86,255,0.22);
  animation-direction: reverse;
  animation-duration: 22s;
}

.process-orbit-c {
  width: min(18vw, 180px);
  height: min(18vw, 180px);
  left: 18%;
  top: 38%;
  border-color: rgba(37,86,255,0.1);
  animation-duration: 16s;
}

.process-float {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  animation: process-drift 7s ease-in-out infinite;
}

.process-float-a { left: 22%; top: 28%; animation-delay: 0s; }
.process-float-b {
  left: 34%;
  top: 58%;
  width: 5px;
  height: 5px;
  opacity: 0.22;
  animation-delay: -2.4s;
  animation-duration: 9s;
}
.process-float-c {
  left: 14%;
  top: 62%;
  width: 11px;
  height: 11px;
  background: transparent;
  border: 1.5px solid rgba(37,86,255,0.35);
  animation-delay: -4s;
  animation-duration: 11s;
}

@keyframes process-spin {
  to { transform: rotate(360deg); }
}

@keyframes process-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

.js .process-section.is-scrubbing .process-inner {
  width: 100%;
  padding-top: 5.25rem;
  padding-bottom: 2.5rem;
}

.js .process-section.is-scrubbing .process-intro {
  margin-bottom: 1.25rem;
}

.js .process-section.is-scrubbing .process-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 10rem);
}

.js .process-section.is-scrubbing .process-visual {
  display: grid;
  place-items: center;
  position: relative;
  min-height: min(52vh, 420px);
}

.process-ring {
  position: absolute;
  width: min(70%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(37,86,255,0.16);
  animation: process-pulse 4.5s ease-in-out infinite;
}

.process-ring-delayed {
  width: min(88%, 420px);
  border-style: dashed;
  border-color: rgba(37,86,255,0.1);
  animation-delay: -1.6s;
  animation-duration: 6s;
}

@keyframes process-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.045); opacity: 1; }
}

.process-giant {
  position: relative;
  z-index: 1;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(7rem, 18vw, 12.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(165deg, rgba(37,86,255,0.22) 0%, rgba(37,86,255,0.08) 55%, rgba(37,86,255,0.18) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  user-select: none;
}

.process-giant.is-swap {
  opacity: 0;
  transform: translateY(24px) scale(0.94);
}

.process-visual-label {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(37,86,255,0.55);
}

.js .process-section.is-scrubbing .process-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 34rem;
  justify-self: start;
}

.js .process-section.is-scrubbing .process-progress {
  display: block;
  max-width: none;
  margin: 0;
}

.process-progress-track {
  height: 2px;
  background: rgba(37, 86, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.process-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: inherit;
  transform-origin: left center;
  will-change: width;
}

.process-dots {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-dot {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #b0b0a8;
  transition: color 0.25s ease, transform 0.25s ease;
}

.process-dot.is-active {
  color: var(--blue);
  transform: translateY(-1px);
}

.process-dot.is-done {
  color: rgba(37,86,255,0.55);
}

.js .process-section.is-scrubbing .process-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  max-width: none;
  margin: 0;
  min-height: 14.5rem;
}

.js .process-section.is-scrubbing .process-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 22px 60px rgba(7, 8, 15, 0.07);
  border-color: rgba(37, 86, 255, 0.2);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(37,86,255,0.18), rgba(37,86,255,0.02)) border-box;
  border: 1px solid transparent;
  padding: 2rem;
}

.js .process-section.is-scrubbing .process-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.js .process-section.is-scrubbing .process-panel .step-num {
  display: none;
}

.js .process-section.is-scrubbing .step-title {
  min-height: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.js .process-section.is-scrubbing .process-panel p {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 32rem;
  color: #666;
}

/* Soft accent shift per step — glow leans as progress advances */
.js .process-section.is-scrubbing[data-active-step="1"] .process-atmosphere-glow {
  left: 10%;
  top: 20%;
}
.js .process-section.is-scrubbing[data-active-step="2"] .process-atmosphere-glow {
  left: 14%;
  top: 24%;
}
.js .process-section.is-scrubbing[data-active-step="3"] .process-atmosphere-glow {
  left: 18%;
  top: 16%;
}

@media (max-width: 980px) {
  .js .process-section.is-scrubbing .process-stage {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-height: 0;
  }
  .js .process-section.is-scrubbing .process-visual {
    min-height: 160px;
  }
  .process-giant {
    font-size: clamp(5rem, 22vw, 7.5rem);
  }
  .process-visual-label { display: none; }
  .process-orbit-a,
  .process-orbit-b,
  .process-orbit-c { left: 50%; transform-origin: center; margin-left: -19vw; }
  .process-atmosphere-glow { left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .process-orbit,
  .process-float,
  .process-ring { animation: none; }

  .js .process-section.is-scrubbing .process-track { height: auto; }
  .js .process-section.is-scrubbing .process-sticky {
    position: relative;
    min-height: 0;
    display: block;
    overflow: visible;
  }
  .js .process-section.is-scrubbing .process-atmosphere,
  .js .process-section.is-scrubbing .process-visual,
  .js .process-section.is-scrubbing .process-progress { display: none; }
  .js .process-section.is-scrubbing .process-stage { display: block; }
  .js .process-section.is-scrubbing .process-panels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: none;
    min-height: 0;
  }
  .js .process-section.is-scrubbing .process-panel {
    grid-area: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--mid);
    background: #fff;
    padding: 1.75rem;
  }
  .js .process-section.is-scrubbing .process-panel .step-num {
    display: block;
    font-size: 4rem;
    color: rgba(37, 86, 255, 0.08);
  }
  .js .process-section.is-scrubbing .step-title {
    min-height: 3.2em;
    font-size: 1.125rem;
  }
  .js .process-section.is-scrubbing .process-panel p {
    font-size: 0.875rem;
  }
}

/* ── Scroll reveal ── */
/* Scoped to .js so the page still renders if the script never runs. main.js
   sets window.revealReady; the head script drops .js if that never happens. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ── Demo preview mock ── */
.demo-screen {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.demo-bar { height: 22px; display: flex; align-items: center; padding: 0 10px; gap: 5px; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; }

/* Detailer mock palette */
.mock-dark { background: #0B0B0B; }
.mock-gold { background: #C8841A; }

/* Mechanic mock palette */
.mock-white { background: #F6F5F3; }
.mock-red { background: #C8201E; }

/* ── Pay page ── */
/* Self-contained: css/tailwind.css is a pruned build generated from index.html,
   so utilities this page would need (p-5, py-16, shrink-0, sm:gap-6 …) don't exist. */
.pay-body {
  background: var(--dark);
  color: #fff;
}

.pay-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.pay-page-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.pay-page-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 55% at 50% 0%, rgba(37,86,255,0.20) 0%, transparent 65%);
}

.pay-wrap {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

@media (min-width: 640px) {
  .pay-wrap { padding: 32px 32px 96px; }
}

.pay-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
}
.pay-brand img { height: 22px; width: auto; display: block; }

.pay-back {
  font-size: 13px;
  font-weight: 500;
  color: #8b90a3;
  transition: color 0.15s ease;
}
.pay-back:hover { color: #fff; }

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37,86,255,0.15);
  border: 1px solid rgba(37,86,255,0.28);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f9cff;
}
.pay-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.pay-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}

.pay-lede {
  font-size: 15px;
  line-height: 1.65;
  color: #8b90a3;
  max-width: 32rem;
  margin-bottom: 26px;
}

/* Plan switch — real links so it works without JS */
.pay-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.pay-toggle a {
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #9297aa;
  transition: color 0.15s ease, background 0.15s ease;
}
.pay-toggle a:hover { color: #fff; }
html[data-plan="basic"] .pay-toggle a[data-plan-link="basic"],
html[data-plan="pro"] .pay-toggle a[data-plan-link="pro"] {
  background: var(--blue);
  color: #fff;
}

/* Without JS no plan is selected, so both blocks stay visible and each keeps
   its own heading rather than the page guessing wrong. */
html[data-plan="basic"] .pay-plan[data-plan="pro"],
html[data-plan="pro"] .pay-plan[data-plan="basic"] { display: none; }
html[data-plan] .pay-plan-heading { display: none; }

.pay-plan-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
  padding-top: 10px;
}

.pay-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.pay-summary > div {
  background: #0A0C16;
  padding: 13px 12px;
}
.pay-summary dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f748a;
  margin-bottom: 6px;
}
.pay-summary dd {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .pay-summary > div { padding: 14px 18px; }
  .pay-summary dt { letter-spacing: 0.11em; }
  .pay-summary dd { font-size: 18px; }
}

.pay-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
}
/* Connector between the numbered markers */
.pay-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: -18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(37,86,255,0.5), rgba(255,255,255,0.05));
}

.pay-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: rgba(37,86,255,0.18);
  border: 1px solid rgba(37,86,255,0.5);
}

.pay-card {
  border-radius: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pay-card:hover {
  border-color: rgba(37,86,255,0.45);
  background: rgba(37,86,255,0.06);
}
@media (min-width: 640px) {
  .pay-card { padding: 22px 24px; }
}

.pay-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.pay-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}

.pay-amount {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.pay-amount span {
  font-size: 13px;
  font-weight: 600;
  color: #8b90a3;
}

.pay-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8adc0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}

.pay-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #8b90a3;
  margin-bottom: 18px;
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s ease, transform 0.15s ease;
}
.pay-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.pay-btn svg { width: 15px; height: 15px; }

.pay-btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}
.pay-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.24);
}

@media (min-width: 640px) {
  .pay-btn { width: auto; display: inline-flex; }
}

.pay-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 34px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  line-height: 1.6;
  color: #8b90a3;
}
.pay-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: #7f9cff;
}

.pay-foot {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #6f748a;
}
.pay-foot a { color: #7f9cff; }
.pay-foot a:hover { color: #fff; }

/* ── Mobile menu ── */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--off-white);
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s ease;
}
.mobile-menu-btn:hover { background: var(--mid); }
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--mid);
  padding: 12px 20px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.mobile-menu-panel.open { display: block; }
@media (min-width: 768px) {
  .mobile-menu-panel { display: none !important; }
}

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid var(--off-white);
  transition: color 0.15s ease;
}
.mobile-nav-link:hover { color: var(--blue); }

body.menu-open { overflow: hidden; }
