/* PandaVPN site. Same language as the app: paper, ink outlines, hard offset shadows, one red. */
:root {
  --paper: #f3f2ec;
  --card: #ffffff;
  --red: #e3262b;
  --red-soft: #f6d5d2;
  --ink: #141414;
  --muted: #5d5c57;
  --line: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 22px;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); border: var(--line); padding: 8px 14px; border-radius: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: var(--line); background: var(--card); }
.word { font: 900 22px/1 var(--display); letter-spacing: -0.02em; }
.word b { color: var(--red); font-weight: 900; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-weight: 650; font-size: 15px; }
.nav a:hover { color: var(--red); }
.lang {
  border: var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-decoration: none; background: var(--card);
}
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Shared surfaces */
.card { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill {
  display: inline-block; border: var(--line); border-radius: 999px; padding: 6px 16px;
  font: 800 12px/1 var(--text); letter-spacing: 0.32em; text-transform: uppercase; background: var(--card);
}
.label { font: 800 13px/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
.red { color: var(--red); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }

.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border: var(--line); border-radius: 18px; box-shadow: var(--shadow); background: var(--red); color: #fff;
  font: 800 17px/1 var(--text); text-decoration: none; transition: transform .08s, box-shadow .08s;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.button.light { background: var(--card); color: var(--ink); }
.button.soon { background: var(--card); color: var(--muted); box-shadow: none; border-style: dashed; cursor: default; }
.button.soon:hover { transform: none; }
.button small { font-weight: 650; font-size: 13px; opacity: .8; }
.buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero */
.hero { padding: 36px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { margin: 0 0 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.facts li { border: var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; background: var(--card); }
.stage { position: relative; display: flex; justify-content: center; }
.stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--red-soft); top: 8%; left: 50%; transform: translateX(-50%);
}
.phone {
  position: relative; width: min(300px, 74vw); border: 3px solid var(--ink); border-radius: 46px;
  padding: 9px; background: var(--ink); box-shadow: 9px 9px 0 var(--ink);
}
.phone img { border-radius: 37px; width: 100%; height: auto; }
.stage .phone.back { position: absolute; transform: rotate(7deg) translate(36%, 6%); opacity: 1; z-index: 0; }
.stage .phone.front { z-index: 1; transform: rotate(-3deg) translateX(-12%); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { margin-top: 12px; padding-bottom: 12px; }
  .stage .phone.front { transform: rotate(-3deg) translateX(-14%); }
  .stage .phone.back { transform: rotate(7deg) translate(30%, 6%); }
}

/* Sections */
section { padding: 72px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.dark { background: var(--ink); color: #fff; }
.dark .label { color: #b9b8b1; }
.dark .card { background: #1f1f1f; border-color: #fff; box-shadow: 5px 5px 0 var(--red); color: #fff; }
.dark .card p { color: #c9c8c2; }
.reds { background: var(--red); color: #fff; }
.reds .label { color: #ffd9d6; }
.reds .lead { color: #fff; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; border: var(--line); display: grid; place-items: center;
  background: var(--red); color: #fff; margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature p { margin: 8px 0 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 24px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font: 900 20px/1 var(--display); margin-bottom: 16px; border: 2.5px solid #fff;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.plans { display: grid; gap: 14px; }
.plan { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 800; }
.plan span:last-child { color: var(--muted); font-weight: 650; font-size: 15px; }
.plan.best { border-color: var(--red); box-shadow: 5px 5px 0 var(--red); }
.note { color: var(--muted); font-size: 15px; }

.faq { display: grid; gap: 14px; max-width: 860px; }
.faq details { padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 24px/1 var(--display); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Document pages */
.doc { padding: 24px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc header { margin-bottom: 28px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 18px 0 12px; }
.doc .meta { color: var(--muted); }
.doc article { padding: clamp(22px, 4vw, 40px); }
.doc article h2 { font-size: 24px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { color: #2b2b29; }
.doc article ul { padding-left: 1.2em; }
.doc article li { margin: 6px 0; }
.contact { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; margin-bottom: 26px; }
.contact strong { font: 900 22px/1.2 var(--display); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.toc a { display: inline-block; border: var(--line); border-radius: 999px; padding: 6px 14px; background: var(--card); text-decoration: none; font-weight: 700; font-size: 14px; }

/* Footer */
.foot { padding: 44px 0 56px; border-top: var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot nav a { text-decoration: none; font-weight: 650; }
.foot nav a:hover { color: var(--red); }
.foot p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

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