/* ============================================================
   Sifaro VPN — product page
   Takes its palette from the app itself: a magenta-to-violet
   gradient on a near-white ground. The gradient is used for
   the mark and one accent only; body text stays high-contrast
   ink so everything clears WCAG AA.
   ============================================================ */

:root {
  --bg:      #FFFFFF;
  --bg-2:    #F7F4FB;
  --ink:     #1B1725;
  --muted:   #585167;   /* 7.0:1 on white */
  --violet:  #5B21C0;   /* 8.2:1 on white — links and small text */
  --magenta: #C0248B;
  --rule:    #E7E1EF;

  --wrap: 1080px;
  --gut:  22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
[id] { scroll-margin-top: 84px; }

/* ── top bar ────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.bar__in { display: flex; align-items: center; gap: 24px; height: 62px; }
.bar__home img { width: 74px; }
.bar__nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.bar__nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.bar__nav a:hover { color: var(--ink); border-bottom-color: var(--magenta); }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 62px 0 12px; }
.hero__in { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.hero__icon {
  width: 82px; height: 82px; border-radius: 22%;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(27,23,37,.12), 0 14px 28px -10px rgba(91,33,192,.36);
}
.flag {
  display: inline-block;
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em;
  color: var(--violet);
  background: #F1EAFB;
  border: 1px solid #DDCEF5;
  padding: 6px 12px; border-radius: 980px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.04; letter-spacing: -.03em; font-weight: 680;
  margin-bottom: 18px;
}
.hero__tag { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 36ch; }
.hero__meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero__shot img {
  width: 100%; border-radius: 26px;
  box-shadow: 0 2px 6px rgba(27,23,37,.10), 0 32px 60px -20px rgba(91,33,192,.34);
}

/* ── bands ──────────────────────────────────────────────── */
.band { padding: 82px 0; }
.band--tint { background: var(--bg-2); }
.h-sec {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12; letter-spacing: -.022em; font-weight: 660;
  margin-bottom: 14px;
}
.lede { color: var(--muted); margin-bottom: 32px; max-width: 62ch; }

.feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 34px 40px; margin-top: 34px;
}
.feats h3 {
  font-size: 19px; font-weight: 650; letter-spacing: -.01em;
  margin-bottom: 8px; padding-top: 16px;
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--magenta), var(--violet)) 1;
}
.feats p { color: var(--muted); font-size: 16px; }

/* ── brand film ─────────────────────────────────────────── */
.band--film { background: var(--bg-2); }
.film { margin-top: 30px; }
.film video {
  width: 100%; height: auto; display: block;
  border-radius: 18px; border: 1px solid var(--rule);
  box-shadow: 0 2px 6px rgba(27,23,37,.07), 0 26px 50px -22px rgba(91,33,192,.34);
  background: #F3EFF9;
}
.film figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* the hero was 770px tall purely because of the phone shot, which left a
   gap above the shorter copy column */
.hero__in { align-items: center; }
.hero__shot { max-width: 268px; justify-self: end; }

/* ── gallery ────────────────────────────────────────────── */
.gallery {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 26px;
  scrollbar-width: thin;
}
.gallery figure { flex: 0 0 232px; scroll-snap-align: center; }
.gallery img {
  width: 232px; border-radius: 20px; border: 1px solid var(--rule);
  box-shadow: 0 2px 5px rgba(27,23,37,.07), 0 18px 34px -16px rgba(91,33,192,.3);
}
.gallery figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

/* ── plans ──────────────────────────────────────────────── */
.plans { display: grid; gap: 10px; max-width: 620px; }
.plans li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px;
  align-items: baseline;
  padding: 16px 20px; border: 1px solid var(--rule); border-radius: 12px;
}
.plans .is-best { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.plans__len   { font-weight: 620; }
.plans__price { font-weight: 680; font-size: 19px; }
.plans__note  { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

.legal { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 16px; }
.legal a { color: var(--violet); border-bottom: 1px solid rgba(91,33,192,.35); padding-bottom: 1px; }
.legal a:hover { border-bottom-color: var(--violet); }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--bg-2); border-top: 1px solid var(--rule); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; }
.foot a { color: var(--violet); }
.foot a:hover { text-decoration: underline; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 34px; }
  .hero__shot { max-width: 280px; margin-inline: auto; }
  .bar__nav a { display: none; }
  .band { padding: 58px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
