:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f8;
  --text: #101014;
  --text-muted: #5a5a66;
  --border: #e6e6eb;
  --accent: #0071e3;
  --accent-hover: #0062c3;
  --radius: 12px;
  --radius-lg: 22px;
  --max-width: 720px;        /* reading width — privacy, support pages */
  --max-width-wide: 1080px;  /* marketing width — header, hero, sections, footer */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --bg-subtle: #14141a;
    --text: #f2f2f5;
    --text-muted: #9999a3;
    --border: #24242c;
    --accent: #2a8cff;
    --accent-hover: #4da0ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

/* Keyboard focus — visible only when tabbing, not on mouse click */
:focus {
  outline: none;
}

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

.btn:focus-visible {
  outline-offset: 4px;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.nav a {
  color: var(--text-muted);
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}

.hero-video {
  position: relative;
  width: 100%;
  max-width: 260px;
  flex-shrink: 0;
  aspect-ratio: 540 / 1168;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-subtle);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-video.is-loaded video {
  opacity: 1;
}

.hero-video-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.hero-video.is-loaded .hero-video-spinner {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    opacity: 0.5;
  }
  .hero-video video {
    transition: none;
  }
}

.hero-text {
  width: 100%;
  max-width: 580px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Desktop: two columns, video flush right, text flush left */
@media (min-width: 1080px) {
  .hero {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    padding: 96px 48px 72px;
    text-align: left;
  }

  .hero-video {
    max-width: 300px;
  }

  .hero h1 {
    font-size: 52px;
  }
}

/* ---------- Hero value stats (price + privacy) ---------- */

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin: 0 0 36px;
}

@media (min-width: 1080px) {
  .hero-stats {
    justify-content: flex-start;
  }
  .btn-group {
    justify-content: flex-start;
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-stat-big {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 20px;
  }
  .hero-stat-big {
    font-size: 28px;
  }
  .hero-stat-divider {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s, transform 0.05s;
  border: 1px solid var(--accent);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text);
  border-color: var(--border);
}

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

section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 56px 24px;
}

section h2 {
  text-align: center;
  font-size: 30px;
  margin: 0 0 36px;
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  padding: 22px 24px 22px 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  background: var(--bg-subtle);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.steps strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.steps span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Features grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Content (privacy, support) ---------- */

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

.content h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.content .updated {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 40px;
}

.content h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.content p {
  margin: 12px 0;
}

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

.content li {
  margin-bottom: 6px;
}

.content strong {
  font-weight: 600;
}

/* ---------- Details / FAQ ---------- */

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--bg-subtle);
}

details[open] {
  background: var(--bg);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

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

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 14px 0 4px;
  color: var(--text-muted);
  font-size: 16px;
}

details p:first-of-type {
  margin-top: 14px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.site-footer-links a {
  color: var(--text-muted);
  margin-right: 20px;
}

.site-footer-links a:last-child {
  margin-right: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero {
    padding: 40px 24px 32px;
    gap: 32px;
  }
  .hero-video {
    max-width: 220px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 18px;
  }
  section {
    padding: 40px 24px;
  }
  section h2 {
    font-size: 26px;
  }
  .content h1 {
    font-size: 32px;
  }
  .nav {
    gap: 16px;
  }
  .site-header-inner {
    flex-wrap: wrap;
  }
}
