/* VPN Safely — vpnsafely.online */

:root {
  --bg: #ffffff;
  --bg-tint: #f3f9fe;
  --surface: #ffffff;
  --surface-2: #eef6fd;
  --line: #dce8f4;
  --line-strong: #c1d6e9;
  --text: #0e1c2b;
  --muted: #51657a;
  --muted-2: #7e90a4;
  --accent: #0271c1;
  --accent-2: #03a9f2;
  --accent-deep: #01378d;
  --ok: #15a34a;
  --warn: #c2564a;
  --shadow-sm: 0 1px 2px rgba(1, 55, 141, 0.06), 0 4px 14px -6px rgba(1, 55, 141, 0.12);
  --shadow-lg: 0 30px 70px -28px rgba(1, 55, 141, 0.38);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --measure: 760px;
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 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(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 13px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: linear-gradient(135deg, #02409f, #0a83d2); }

.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-tint) 60%, #e8f3fd 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% 25% auto -12%;
  height: 600px;
  background: radial-gradient(closest-side, rgba(3, 169, 242, 0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(1, 55, 141, 0.10), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(2, 113, 193, 0.09);
  border: 1px solid rgba(2, 113, 193, 0.2);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero p.lead { font-size: clamp(1.04rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

.hero-note { margin: 20px 0 0; font-size: 0.9rem; color: var(--muted-2); }

/* ---------- screenshot cards: store renders, promo text cropped off ---------- */

.shot-card {
  width: min(430px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  background: #eef6fd;
  box-shadow: var(--shadow-lg);
}
.shot-card img { width: 100%; }

.shot-card--sm { width: min(390px, 100%); }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 92px) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel--muted { background: var(--surface-2); box-shadow: none; }

.panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  margin-bottom: 18px;
}

.tick, .cross {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.tick { background: rgba(21, 163, 74, 0.12); color: var(--ok); border: 1px solid rgba(21, 163, 74, 0.3); }
.cross { background: rgba(194, 86, 74, 0.1); color: var(--warn); border: 1px solid rgba(194, 86, 74, 0.28); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); font-size: 0.97rem; }
.list-plain li:last-child { margin-bottom: 0; }
.list-plain li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.list-plain--warn li::before { background: var(--warn); }

/* screenshot + copy */

.shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.shot-copy p { color: var(--muted); }
.shot-copy .list-plain { margin-top: 22px; }

/* table */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 460px; }

th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td strong { color: var(--text); font-weight: 600; }

/* ---------- contact form ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }

label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
}
textarea { min-height: 132px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 113, 193, 0.16);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-hint { font-size: 0.87rem; color: var(--muted-2); margin: 14px 0 0; }

.contact-aside p { color: var(--muted); }

.mail-box {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface-2);
  margin: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.mail-box:hover { text-decoration: none; border-color: var(--accent); }
.mail-box small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

/* ---------- legal pages ---------- */

.page-head { padding: clamp(46px, 6vw, 72px) 0 30px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.page-head .container { max-width: var(--measure); }
.page-head h1 { margin-bottom: 12px; }
.page-head .meta { color: var(--muted-2); font-size: 0.93rem; margin: 0; }

.legal { padding: 46px 0 84px; }
.legal .container { max-width: var(--measure); }

.legal h2 { font-size: 1.32rem; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 30px; font-size: 1.04rem; }
.legal p, .legal li { color: #364b60; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--text); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 20px 22px;
  margin: 26px 0;
}
.callout p { margin-bottom: 0; }
.callout p + p { margin-top: 0.9em; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 22px 24px; margin-bottom: 38px; }
.toc h2 {
  font-size: 0.84rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
}
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 6px; color: var(--muted); }

/* FAQ */

details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.01rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; line-height: 1; flex: none; }
details[open] summary::after { content: "\2013"; }
details > p, details > ol, details > ul { color: var(--muted); margin-top: 0; padding-bottom: 6px; }
details > ol, details > ul { padding-left: 22px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: linear-gradient(160deg, var(--accent-deep), #024a9e);
  color: #dce9f7;
}
.site-footer .brand { color: #fff; }
.site-footer a { color: #cfe3f7; }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; align-items: flex-start; }

.footer-brand { max-width: 34ch; }
.footer-brand p { color: #a8c6e6; font-size: 0.91rem; margin: 14px 0 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.footer-links a { font-size: 0.94rem; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: #9dbdde;
  font-size: 0.87rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-copy { order: -1; }
  .toc ol { columns: 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow-sm);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .card, .panel, .form-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
