/* =========================================================
   Zervaz site — shared stylesheet
   ========================================================= */

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

/* ---------- Accessibility: skip-to-content link ---------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #0a84ff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-160%);
  transition: transform 140ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ---------- Download page ---------- */

main.download-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 96px;
}

.download-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 0 56px;
}

.download-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #f3f5f9;
}

.download-hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: #b6bccb;
  margin: 0;
  line-height: 1.5;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 920px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-grid > li { display: block; }

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 36px 24px 28px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color 160ms ease, border-color 160ms ease,
              transform 100ms ease, box-shadow 160ms ease;
}

a.store-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30);
}

a.store-card:active { transform: translateY(0); }

a.store-card:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.65);
  outline-offset: 3px;
}

.store-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-card-icon svg {
  width: 30px;
  height: 30px;
  fill: #f3f5f9;
}

.store-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.store-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8b91a4;
  font-weight: 600;
}

.store-card-name {
  font-size: 22px;
  font-weight: 700;
  color: #f3f5f9;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.store-card-platforms {
  margin-top: 6px;
  font-size: 13px;
  color: #b6bccb;
  letter-spacing: 0.01em;
}

.store-card--soon {
  cursor: default;
}

.store-card--soon .store-card-icon { opacity: 0.55; }
.store-card--soon .store-card-name { color: #cdd1dd; }
.store-card--soon .store-card-platforms { color: #8b91a4; }

.store-soon-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  color: #cdd1dd;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .store-grid { grid-template-columns: 1fr; max-width: 480px; }
  main.download-page { padding: 48px 20px 72px; }
  .download-hero { margin-bottom: 36px; }
}

/* ---------- 404 page ---------- */

main.error-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px 96px;
}

.error-card {
  text-align: center;
  max-width: 520px;
}

.error-card .error-code {
  margin: 0 0 8px;
  font-size: clamp(72px, 14vw, 132px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #2a3140;
}

.error-card h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #f3f5f9;
}

.error-card .error-body {
  font-size: 16px;
  line-height: 1.6;
  color: #b6bccb;
  margin: 0 0 32px;
}

.error-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.error-actions .btn-primary,
.error-actions .btn-secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  transition: filter 120ms ease, transform 80ms ease, background-color 120ms ease;
}

.error-actions .btn-primary {
  color: #ffffff;
  background: #0a84ff;
  box-shadow: 0 6px 18px rgba(10, 132, 255, 0.30);
}

.error-actions .btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.error-actions .btn-secondary {
  color: #f3f5f9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.error-actions .btn-secondary:hover { background: rgba(255, 255, 255, 0.10); }


html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0a0e14;
  color: #e7eaf2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-text {
  background: linear-gradient(135deg, #f3f5f9 0%, #f3f5f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #b6bccb;
}

.site-header nav > a {
  color: #b6bccb;
  text-decoration: none;
  transition: color 120ms ease;
}

.site-header nav > a:hover { color: #f3f5f9; }

/* ---------- Language switcher ---------- */
/*
   Native <details>/<summary> dropdown. Closed: a small pill that
   shows the current language code (e.g. "EN") and a chevron. Open:
   a card-style menu drops down below it with all five locales and a
   checkmark next to the active one. The card is positioned with
   `absolute` so it doesn't push the header taller, and the parent
   <details> has `position: relative` so the menu anchors correctly.
*/

.lang-switcher {
  position: relative;
  font-size: 13px;
  line-height: 1;
}

.lang-switcher > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d9e3;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  user-select: none;
}

.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary::marker { display: none; content: ""; }

.lang-switcher > summary:hover,
.lang-switcher > summary:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f3f5f9;
  outline: none;
}

.lang-switcher[open] > summary {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f3f5f9;
}

.lang-current-code {
  font-feature-settings: "tnum" 1;
}

.lang-chevron {
  width: 10px;
  height: 7px;
  color: currentColor;
  transition: transform 160ms ease;
  flex-shrink: 0;
}

.lang-switcher[open] > summary .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 50;
  /* Smooth open animation. <details> doesn't animate height natively
     but we can fade/slide the menu in. */
  animation: lang-menu-in 140ms ease;
}

@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #c5cad4;
  text-decoration: none;
  font-weight: 500;
  transition: background 100ms ease, color 100ms ease;
}

.lang-item:hover,
.lang-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f9;
  outline: none;
}

.lang-item.is-active {
  color: #f3f5f9;
  background: rgba(96, 165, 250, 0.08);
}

.lang-name { white-space: nowrap; }

.lang-check {
  width: 14px;
  height: 14px;
  color: #60a5fa;
  flex-shrink: 0;
}

/* When the user prefers reduced motion, drop the slide-in animation
   and the chevron rotation easing. */
@media (prefers-reduced-motion: reduce) {
  .lang-menu { animation: none; }
  .lang-chevron { transition: none; }
}

/* ---------- Landing page (index) ---------- */

main.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.landing-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b91a4;
}

.landing-section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 0 24px;
}

.landing-section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #f3f5f9;
}

.landing-section-lede {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: #b6bccb;
}

.landing-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #ffffff;
  background: #0a84ff;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: filter 120ms ease, transform 80ms ease, box-shadow 120ms ease;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.30);
}

.btn-cta-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.40);
}

.btn-cta-primary:active { transform: translateY(0); filter: brightness(0.96); }

.btn-cta-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.landing-hero {
  text-align: center;
  padding: clamp(72px, 14vh, 140px) 24px clamp(56px, 10vh, 96px);
  max-width: 980px;
  margin: 0 auto;
}

.landing-title {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #f3f5f9;
}

.landing-lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: #b6bccb;
}

.landing-lede strong {
  color: #f3f5f9;
  font-weight: 700;
}

/* ---------- Leak section ---------- */

.landing-leak {
  padding: 48px 24px 96px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.leak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.leak-card {
  position: relative;
  padding: 28px 28px 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.leak-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6c7287;
  margin-bottom: 14px;
}

.leak-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f3f5f9;
}

.leak-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #b6bccb;
}

@media (max-width: 720px) {
  .leak-grid { grid-template-columns: 1fr; }
}

/* ---------- Product / screenshot section ---------- */

.landing-product {
  padding: 48px 24px 96px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.product-shot {
  margin: 0;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Slideshow inside .product-shot */

/* Heading that tracks the currently visible slide (Windows / Apple /
 * iPad & Android / iPhone & Android). Sits flush with the top of the
 * .product-shot card; corners on the outer edges inherit the card's
 * radius so the bar looks fused with the frame. The image area below
 * keeps only the bottom corners rounded so the divider line between
 * heading and image is flat. */
.slide-heading {
  margin: 0;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f5f6f8;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.product-shot .slides {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 640;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  overflow: hidden;
}

.product-shot .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.product-shot .slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .product-shot .slide { transition: none; }
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
}

.slide-dots button {
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease;
}

.slide-dots button:hover { background: rgba(255, 255, 255, 0.32); }
.slide-dots button[aria-selected="true"] {
  background: #0a84ff;
  width: 36px;
}
.slide-dots button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Capability cards under the product screenshot */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}

.capability {
  position: relative;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.capability::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: #0a84ff;
}

.capability h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #f3f5f9;
}

.capability p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #b6bccb;
}

@media (max-width: 900px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 48px;
  }
}

@media (max-width: 520px) {
  .capability-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Customer reviews carousel ---------- */

.landing-reviews {
  padding: 48px 24px 96px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.reviews-carousel {
  --reviews-visible: 4;
  --reviews-gap: 20px;
  position: relative;
}

.reviews-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews-viewport::-webkit-scrollbar { display: none; }

.reviews-viewport:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 4px;
  border-radius: 12px;
}

.reviews-track {
  display: flex;
  gap: var(--reviews-gap);
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.review-card {
  flex: 0 0 calc(
    (100% - (var(--reviews-visible) - 1) * var(--reviews-gap)) /
      var(--reviews-visible)
  );
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: left;
}

.review-photo {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

.review-quote {
  margin: 0;
  flex: 1;
}

.review-quote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #d6dae6;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.review-author strong {
  font-size: 14px;
  font-weight: 700;
  color: #f3f5f9;
  letter-spacing: -0.005em;
}

.review-author span {
  font-size: 12px;
  color: #8b91a4;
  letter-spacing: 0.01em;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 0 0;
}

.review-nav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d6dae6;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease, transform 100ms ease;
}

.review-nav:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f3f5f9;
}

.review-nav:active { transform: scale(0.96); }

.review-nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.review-nav[disabled] {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.review-dots {
  display: flex;
  gap: 8px;
}

.review-dots button {
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease;
}

.review-dots button:hover { background: rgba(255, 255, 255, 0.32); }

.review-dots button[aria-selected="true"] {
  background: #0a84ff;
  width: 32px;
}

.review-dots button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .reviews-carousel { --reviews-visible: 3; }
}

@media (max-width: 860px) {
  .reviews-carousel { --reviews-visible: 2; }
}

@media (max-width: 560px) {
  .reviews-carousel { --reviews-visible: 1; --reviews-gap: 16px; }
  .landing-reviews { padding: 32px 20px 64px; }
}

/* ---------- Final CTA ---------- */

.landing-final {
  text-align: center;
  padding: 64px 24px 120px;
  max-width: 720px;
  margin: 0 auto;
}

.landing-final h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #f3f5f9;
}

.landing-final p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: #b6bccb;
}

@media (max-width: 640px) {
  .landing-leak,
  .landing-product { padding: 32px 20px 64px; }
  .landing-final { padding: 48px 20px 80px; }
  .leak-card { padding: 24px 22px 22px; }
}

/* ---------- Legal pages (privacy, terms) ---------- */

main.legal {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  width: 100%;
}

main.legal h1 {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #f3f5f9 0%, #f3f5f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

main.legal .updated {
  margin: 0 0 40px;
  font-size: 13px;
  color: #8b91a4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main.legal h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3f5f9;
  margin: 40px 0 12px;
}

main.legal p {
  font-size: 16px;
  line-height: 1.7;
  color: #cdd1dd;
  margin: 0 0 16px;
}

main.legal a {
  color: #b6bccb;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

main.legal a:hover { color: #f3f5f9; }

main.legal ol {
  list-style: none;
  counter-reset: legal-counter;
  padding-left: 0;
  margin: 24px 0;
}

main.legal ol > li {
  counter-increment: legal-counter;
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
}

main.legal ol > li::before {
  content: counter(legal-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #b6bccb;
  background: rgba(255, 255, 255, 0.06);
}

main.legal ol > li h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3f5f9;
  margin: 6px 0 8px;
}

main.legal ol > li p {
  margin: 0;
}

main.legal .copyright {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #8b91a4;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8b91a4;
}

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

.site-footer a {
  color: #b6bccb;
  text-decoration: none;
  transition: color 120ms ease;
}

.site-footer a:hover { color: #f3f5f9; }

/* ---------- Mobile ---------- */

/* ---------- Support page (Contact form) ---------- */

main.support {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 56px 24px 96px;
}

.support-card {
  width: 100%;
  max-width: 720px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.support-card-head { margin-bottom: 28px; }

.support-card-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6bccb;
  margin-bottom: 12px;
  font-weight: 600;
}

.support-card-head h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #f3f5f9 0%, #f3f5f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.support-card-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #cdd1dd;
  max-width: 50ch;
}

.support-form { display: flex; flex-direction: column; gap: 18px; }

.support-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.support-form .field { display: flex; flex-direction: column; gap: 6px; }

.support-form .field-label {
  font-size: 13px;
  font-weight: 600;
  color: #e7eaf2;
  letter-spacing: 0.01em;
}

.support-form .field-label em {
  font-style: normal;
  font-weight: 400;
  color: #8b91a4;
  margin-left: 4px;
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #f3f5f9;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
  resize: vertical;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
  color: #6c7287;
}

.support-form input:hover,
.support-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.65);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.20);
}

.support-form input.invalid {
  border-color: rgba(255, 95, 95, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 95, 95, 0.10);
}

.support-form textarea {
  min-height: 160px;
  line-height: 1.5;
  font-family: inherit;
}

.support-card-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-card-foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #b6bccb;
}

.support-card-foot a {
  color: #f3f5f9;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.support-card-foot a:hover,
.support-card-foot a:focus-visible {
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.support-form .field-hint {
  font-size: 12px;
  color: #8b91a4;
  margin-top: 2px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn-primary {
  position: relative;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: #0a84ff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  min-width: 180px;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 120ms ease, opacity 120ms ease, filter 120ms ease;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(10, 132, 255, 0.35);
  filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.96);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-primary .btn-spinner {
  width: 18px;
  height: 18px;
  display: none;
  animation: spin 0.9s linear infinite;
}

.btn-primary .btn-spinner circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 18 56;
}

.btn-primary.is-sending .btn-label { opacity: 0.7; }
.btn-primary.is-sending .btn-spinner { display: block; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.actions-hint {
  margin: 0;
  font-size: 12px;
  color: #8b91a4;
}

.actions-hint a { color: #b6bccb; text-decoration: underline; text-underline-offset: 2px; }
.actions-hint a:hover { color: #f3f5f9; }

.feedback {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
  display: none;
  border: 1px solid transparent;
  animation: feedback-in 200ms ease-out both;
}

.feedback.visible { display: block; }
.feedback strong { color: inherit; }
.feedback em { font-style: normal; color: inherit; opacity: 0.85; }

.feedback.ok {
  color: #c5f3d4;
  background: rgba(40, 200, 100, 0.10);
  border-color: rgba(40, 200, 100, 0.35);
}

.feedback.error {
  color: #ffd2d2;
  background: rgba(255, 95, 95, 0.10);
  border-color: rgba(255, 95, 95, 0.35);
}

@keyframes feedback-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .site-header, .site-footer { padding: 20px 20px; }
  .site-header nav { gap: 12px; }
  .lang-switcher > summary { padding: 6px 8px 6px 10px; }
  .lang-menu { min-width: 160px; }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .site-footer .links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  main.legal { padding: 40px 20px 64px; }
  main.legal h1 { font-size: 36px; }
  main.legal h2,
  main.legal ol > li h3 { font-size: 13px; }
  main.legal ol > li { padding-left: 48px; }
  main.legal ol > li::before { width: 32px; height: 32px; font-size: 13px; }

  main.support { padding: 32px 16px 64px; }
  .support-card { padding: 28px 22px 24px; border-radius: 16px; }
  .support-form .row { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   Cookie consent — banner + preferences modal
   ========================================================= */

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(10, 13, 20, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e7eaf2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cc-banner.cc-visible { opacity: 1; transform: translateY(0); }
.cc-banner.cc-leaving { opacity: 0; transform: translateY(20px); }

.cc-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}

.cc-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cc-emoji {
  font-size: 22px;
  line-height: 1.1;
  flex-shrink: 0;
  margin-top: 2px;
}

.cc-banner-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #f3f5f9;
}

.cc-banner-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #b6bccb;
}

.cc-banner-body a {
  color: #b6bccb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-banner-body a:hover { color: #f3f5f9; }

.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Buttons (shared between banner + modal) ---------- */

.cc-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease,
              color 120ms ease, filter 120ms ease;
  white-space: nowrap;
}

.cc-btn:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.65);
  outline-offset: 2px;
}

.cc-btn-primary {
  color: #ffffff;
  background: #0a84ff;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.30);
}

.cc-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cc-btn-primary:active { transform: translateY(0); filter: brightness(0.96); }

.cc-btn-secondary {
  color: #f3f5f9;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.cc-btn-secondary:hover { background: rgba(255, 255, 255, 0.10); }

.cc-btn-ghost {
  color: #b6bccb;
  background: transparent;
}

.cc-btn-ghost:hover { color: #f3f5f9; background: rgba(255, 255, 255, 0.04); }

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

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.cc-overlay.cc-visible { opacity: 1; }
.cc-overlay.cc-leaving { opacity: 0; }

.cc-modal {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
              #0d1218;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: #e7eaf2;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cc-overlay.cc-visible .cc-modal { transform: translateY(0) scale(1); }

.cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cc-icon-btn {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: #b6bccb;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: color 120ms ease, background-color 120ms ease;
}

.cc-icon-btn:hover { color: #f3f5f9; background: rgba(255, 255, 255, 0.06); }

.cc-modal-intro {
  margin: 0;
  padding: 16px 24px 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b6bccb;
}

.cc-toggle-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 8px;
  overflow-y: auto;
  flex: 1;
}

.cc-toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cc-toggle-row:last-child { border-bottom: 0; }

.cc-toggle-row > div { flex: 1; min-width: 0; }

.cc-toggle-row h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3f5f9;
}

.cc-toggle-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8b91a4;
}

.cc-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.cc-pill-locked {
  color: #b6bccb;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.cc-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.cc-switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3f5f9;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cc-switch input:checked + .cc-switch-slider {
  background: #0a84ff;
  border-color: transparent;
}

.cc-switch input:checked + .cc-switch-slider::before {
  transform: translateX(18px);
}

.cc-switch input:focus-visible + .cc-switch-slider {
  outline: 2px solid rgba(10, 132, 255, 0.65);
  outline-offset: 2px;
}

.cc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .cc-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
  }
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }
  .cc-banner-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .cc-banner-actions .cc-btn { flex: 1; min-width: 0; padding: 11px 12px; }
  .cc-modal-actions { flex-direction: column-reverse; }
  .cc-modal-actions .cc-btn { width: 100%; }
}
