/* DejaVPN website: shared styles for the landing, download, privacy and source pages. */
:root {
  --bg: #f7f5f1; --surface: #ffffff; --surface-2: #efebe4; --ink: #17140f; --muted: #6d675d;
  --line: #e6e1d8; --accent: #f07a0e; --accent-ink: #ffffff; --accent-soft: #fdebd8;
  --green: #2f9e4f; --green-soft: #e3f3e7; --purple: #7a52d6; --purple-soft: #eee8fb;
  --shadow: 0 1px 2px rgba(23, 20, 15, .04), 0 12px 32px rgba(23, 20, 15, .07);
  --radius: 20px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b; --surface: #181714; --surface-2: #23211d; --ink: #f4f1eb; --muted: #a39d92;
    --line: #2c2a25; --accent: #ff9330; --accent-ink: #1a0f02; --accent-soft: #3a2614;
    --green: #4cc46e; --green-soft: #17301e; --purple: #a888f0; --purple-soft: #2a2140;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 10px; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 560px) { .nav nav a.opt { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 650; padding: 12px 20px; border-radius: 14px; border: 0; font-size: 16px; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 9px 14px; font-size: 15px; border-radius: 12px; }

/* Landing hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -1.6px; margin: 18px 0 16px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.platforms { margin-top: 22px; color: var(--muted); font-size: 14px; }

/* Phone mockup (pure CSS, no screenshot) */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: #0b0b0c; border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 80px rgba(23, 20, 15, .22), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.screen { background: #000; border-radius: 34px; padding: 18px 12px 16px; color: #f2f2f7; font-size: 12px; overflow: hidden; }
.screen .top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; }
.screen .top b { font-size: 22px; letter-spacing: -.4px; }
.screen .dots { display: flex; gap: 6px; }
.screen .dots i { width: 22px; height: 22px; border-radius: 50%; background: #1c1c1e; display: block; }
.scard { background: #1c1c1e; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.status { display: flex; justify-content: space-between; align-items: center; }
.status small { color: #4cc46e; font-weight: 700; font-size: 10px; letter-spacing: .4px; }
.status .big { font-size: 17px; font-weight: 700; margin-top: 2px; }
.status .sub { color: #98989f; font-size: 11px; }
.power { width: 50px; height: 50px; border-radius: 50%; background: #30d158; display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(48, 209, 88, .18); }
.power svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #2c2c2e; text-align: center; }
.stats b { display: block; font-size: 12px; }
.stats span { color: #98989f; font-size: 10px; }
.subhead { display: flex; align-items: center; gap: 8px; }
.subhead .tile { width: 28px; height: 28px; border-radius: 8px; background: #30d158; flex: none; }
.subhead b { font-size: 13px; }
.seal { width: 13px; height: 13px; flex: none; }
.bar { height: 4px; background: #2c2c2e; border-radius: 4px; margin: 9px 0 5px; }
.bar i { display: block; width: 18%; height: 100%; background: #ff9f0a; border-radius: 4px; }
.row2 { display: flex; justify-content: space-between; font-size: 10.5px; }
.row2 .ok { color: #4cc46e; }
.srv { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #2c2c2e; }
.srv:first-of-type { border-top: 0; }
.flag { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.srv .n { flex: 1; min-width: 0; }
.srv .n b { display: block; font-size: 12px; font-weight: 600; }
.srv .n span { color: #98989f; font-size: 10.5px; }
.chip { font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }
.chip svg { width: 9px; height: 9px; fill: currentColor; vertical-align: -0.5px; margin-right: 2px; }
.chip.g { color: #4cc46e; background: rgba(76, 196, 110, .16); }
.chip.p { color: #b49af5; background: rgba(168, 136, 240, .18); }
.tog { width: 34px; height: 20px; border-radius: 10px; background: #39393d; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.tog.on { background: #30d158; }
.tog.on::after { left: 16px; }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 64px; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.8px; line-height: 1.15; margin: 0 0 10px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.band { background: var(--surface); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); display: flex;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.6px; }
.band p { margin: 0; color: var(--muted); }

/* Download page */
.page-head { padding: 48px 0 28px; text-align: center; }
.page-head img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -1px; margin: 16px 0 6px; }
.page-head p { color: var(--muted); margin: 0; font-size: 17px; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dl .card { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.dl .card.you { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.dl .card.you::before { content: "Your device"; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.os { display: flex; align-items: center; gap: 12px; }
.os svg { width: 34px; height: 34px; flex: none; }
.os b { font-size: 18px; }
.os small { display: block; color: var(--muted); font-size: 13px; }
.dl .btn { width: 100%; }
.soon { text-align: center; color: var(--muted); background: var(--surface-2); padding: 12px; border-radius: 14px; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; }

/* Long-form pages (privacy, source) */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); letter-spacing: -1px; margin: 0 0 4px; }
.doc h2 { font-size: 21px; letter-spacing: -.3px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.muted { color: var(--muted); }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
code, pre { background: var(--surface-2); border-radius: 6px; font-size: .9em; }
code { padding: 1px 6px; word-break: break-word; }
pre { padding: 12px 14px; overflow-x: auto; }
.summary, .doc .card { background: var(--surface); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
.doc .btn { margin-top: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 4px 0 0; }
