/* Cove VPN — covevpn.com
   Shared styles for the marketing site. Brand palette:
   - Navy  #0F1B33 (primary brand)
   - Mint  #5EF0D1 (accent / CTA on dark)
*/

:root {
  --bg: #ffffff;
  --bg-elev: #f7f8fa;
  --bg-strong: #f1f3f6;
  --fg: #0f172a;
  --fg-soft: #1f2937;
  --muted: #5b6470;
  --border: #e3e6ea;
  --brand: #0F1B33;
  --accent: #5EF0D1;
  --accent-2: #14b8a6;
  --warn: #f59e0b;
  --danger: #ef4444;
  --code-bg: #f4f5f7;
  --hero-bg: linear-gradient(160deg, #0F1B33 0%, #14223f 55%, #1c2c4f 100%);
  --hero-fg: #ffffff;
  --hero-muted: #b6c0d3;
  --hero-border: rgba(255,255,255,0.12);
  --shadow-sm: 0 1px 2px rgba(15,27,51,0.04), 0 1px 3px rgba(15,27,51,0.06);
  --shadow-md: 0 4px 12px rgba(15,27,51,0.06), 0 2px 4px rgba(15,27,51,0.04);
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-elev: #11161f;
    --bg-strong: #161c27;
    --fg: #e6e6e6;
    --fg-soft: #cbd1d9;
    --muted: #8c95a3;
    --border: #232a36;
    --brand: #5EF0D1;
    --accent: #5EF0D1;
    --accent-2: #34d399;
    --code-bg: #161a20;
    --hero-bg: linear-gradient(160deg, #0a1224 0%, #0F1B33 55%, #14223f 100%);
    --hero-fg: #ffffff;
    --hero-muted: #b6c0d3;
    --hero-border: rgba(255,255,255,0.10);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--hero { padding: 88px 0 96px; }

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: 0 0 28px; }
.brand__word { font-size: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  color: var(--fg-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.is-active { color: var(--brand); }

@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .brand__word { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #0F1B33;
  border-color: var(--accent);
}
.btn--primary:hover { background: #6ef5d8; }
.btn--ghost {
  background: transparent;
  color: var(--hero-fg);
  border-color: var(--hero-border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--border);
}
.btn--secondary:hover { background: var(--bg-strong); }

/* Play store style CTA */
.play-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: #ffffff;
  color: #0F1B33;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.0);
  transition: transform .08s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px rgba(94,240,209,0.18);
}
.play-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(94,240,209,0.24); }
.play-cta__icon { width: 28px; height: 28px; flex: 0 0 28px; }
.play-cta__label { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.play-cta__small { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6470; }
.play-cta__large { font-size: 18px; font-weight: 700; color: #0F1B33; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(94,240,209,0.18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -20%;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(96,165,250,0.12), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.hero__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(94,240,209,0.10);
  color: var(--accent);
  border: 1px solid rgba(94,240,209,0.30);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
  color: var(--hero-fg);
}
.hero__title .grad {
  background: linear-gradient(90deg, #5EF0D1 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--hero-muted);
  margin: 0 auto 32px;
  max-width: 640px;
}
.hero__ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero__fineprint {
  margin-top: 18px;
  color: var(--hero-muted);
  font-size: 13px;
}

/* Country strip */
.country-strip {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hero-border);
  text-align: center;
}
.country-strip__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-muted);
  margin: 0 0 14px;
}
.country-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  list-style: none;
  padding: 0; margin: 0;
  color: var(--hero-fg);
  font-size: 14px;
  font-weight: 500;
}
.country-strip__list li { opacity: 0.86; }

/* ---------- Section headings ---------- */
.section__eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--fg);
}
.section__lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
}
.section__head--center { text-align: center; }
.section__head--center .section__lede { margin-left: auto; margin-right: auto; }

/* ---------- Feature grid ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.feature__icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--brand);
  border-radius: 9px;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .feature__icon { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { font-size: 17px; font-weight: 600; margin: 0 0 6px; color: var(--fg); }
.feature__desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .step__num { background: var(--accent); color: #0F1B33; }
}
.step__title { font-size: 17px; font-weight: 600; margin: 0 0 6px; color: var(--fg); }
.step__desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Highlight band ---------- */
.band {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 760px) {
  .band__grid { grid-template-columns: 1fr; gap: 28px; }
}
.band__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat__num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
}
.stat__label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ (details/summary) ---------- */
.faq { display: grid; gap: 10px; }
.faq__group + .faq__group { margin-top: 32px; }
.faq__group-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 12px;
}
details.qa {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color .15s ease;
}
details.qa[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
details.qa > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--fg);
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--muted);
  font-weight: 400;
  transition: transform .15s ease;
}
details.qa[open] > summary::after { content: "−"; }
details.qa .qa__body {
  padding: 0 20px 18px;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.65;
}
details.qa .qa__body p:first-child { margin-top: 0; }
details.qa .qa__body p:last-child { margin-bottom: 0; }

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card__item h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.contact-card__item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}
.contact-card__item p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--hero-bg);
  color: var(--hero-fg);
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% 30% auto auto;
  width: 500px; height: 500px;
  background: radial-gradient(closest-side, rgba(94,240,209,0.16), transparent 70%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--hero-fg);
  letter-spacing: -0.01em;
}
.cta-band p {
  color: var(--hero-muted);
  margin: 0 auto 24px;
  max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h5 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 600;
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer__bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Generic page header (non-hero pages) ---------- */
.page-head {
  padding: 64px 0 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 700;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
  font-size: 17px;
}

/* ---------- Privacy policy doc content ---------- */
.doc-body { padding: 24px 0 64px; max-width: 820px; }
.doc-body h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  color: var(--fg);
}
.doc-body h3 { font-size: 17px; margin: 24px 0 8px; color: var(--fg); }
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0;
  background: var(--bg-elev);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.doc-body th, .doc-body td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.doc-body th { background: var(--bg-strong); font-weight: 600; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin: 4px 0; }
.doc-body .updated { color: var(--muted); font-size: 14px; }

/* Language switcher reused on privacy page */
.lang {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 12px;
}
.lang button {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.lang button.is-active {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .lang button.is-active { color: #0F1B33; }
}
.doc { display: none; }
.doc.is-active { display: block; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-muted { color: var(--muted); }
