/* Final interaction layer: follows the existing dark/green visual system. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--lime);
  color: #15200d;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s cubic-bezier(.2, 0, 0, 1);
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.topbar nav a,
.vpn-link,
.account-link,
.buy-button,
.button,
.icon-action,
.product-card,
.service-card,
.package-card,
.brief-form input,
.brief-form select,
.brief-form textarea {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.topbar nav a {
  position: relative;
  padding: 8px 0;
}

.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--lime);
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .18s ease, transform .18s cubic-bezier(.2, 0, 0, 1);
}

.topbar nav a:hover::after,
.topbar nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(165, 232, 90, .12);
}

.brief-form .privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.brief-form .privacy-consent input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--lime);
}

.privacy-consent a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: rgba(165, 232, 90, .65);
  text-underline-offset: 3px;
}

#guides,
#services,
#packages,
#brief {
  scroll-margin-top: 96px;
}

footer {
  flex-wrap: wrap;
  gap: 12px 20px;
}

.product-visual img,
.service-card img {
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}

@media (prefers-reduced-motion: no-preference) {
  .button:active,
  .vpn-link:active,
  .account-link:active,
  .buy-button:active,
  .icon-action:active { transform: scale(.96); }

  .product-card:hover .product-visual img,
  .service-card:hover img { transform: scale(1.025); }

  .product-visual img,
  .service-card img {
    transition: transform .34s cubic-bezier(.2, 0, 0, 1), filter .34s cubic-bezier(.2, 0, 0, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .topbar { gap: 8px; }
  .brand-word { white-space: nowrap; }
  .hero-actions .button { width: 100%; }
  .hero-actions .secondary { background: rgba(23, 30, 27, .8); }
}

body.checkout-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.checkout-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(480px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 32px));
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -50%);
  -webkit-overflow-scrolling: touch;
}

.checkout-dialog::backdrop { background: rgba(4, 8, 6, .76); }

.payment-method {
  min-height: 64px;
  touch-action: manipulation;
}

.payment-method:disabled {
  cursor: wait;
  opacity: .62;
}

@media (max-width: 600px) {
  .checkout-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }

  .checkout-dialog h2 {
    padding-right: 40px;
    font-size: 28px;
    line-height: 1.1;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .payment-method { min-height: 72px; }
}
