/* WeVPN website. Colors match HomeColors in lib/main.dart. */
:root {
  --bg: #052e39;
  --surface: #0b4152;
  --surface2: #124d60;
  --accent: #19e6b3;
  --accent2: #22c7f2;
  --text: #ffffff;
  --muted: #9ca3af;
  --faint: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Soft corner glows, like the app's GlowBackground. */
body::before,
body::after {
  content: "";
  position: absolute;
  width: min(640px, 100%);
  height: 640px;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: 0;
  right: 0;
  background: radial-gradient(circle 360px at 100% 0, rgba(34, 199, 242, 0.16) 0%, rgba(34, 199, 242, 0.06) 50%, rgba(34, 199, 242, 0) 100%);
}
body::after {
  bottom: 0;
  left: 0;
  background: radial-gradient(circle 380px at 0 100%, rgba(25, 230, 179, 0.16) 0%, rgba(25, 230, 179, 0.06) 50%, rgba(25, 230, 179, 0) 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent2);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}

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

.narrow {
  max-width: 780px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.site-nav ul {
  display: flex;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #04232c;
  box-shadow: 0 10px 30px rgba(25, 230, 179, 0.22);
}
.btn:hover {
  color: #04232c;
  filter: brightness(1.06);
}
.btn svg {
  width: 22px;
  height: 22px;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover {
  color: var(--text);
  background: var(--surface2);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(34, 199, 242, 0.25);
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lead {
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 32px;
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.cta-note {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}
.hero-shot {
  justify-self: center;
  width: min(360px, 100%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}
.hero-shot img {
  border-radius: 28px;
}

/* Sections */
section {
  padding: 56px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  flex: 1 1 280px;
  max-width: calc((100% - 36px) / 3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}
.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.feature ul {
  color: var(--muted);
  font-size: 16px;
  margin: 10px 0 0;
  padding-left: 20px;
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface2);
  color: var(--accent);
}
.icon svg {
  width: 24px;
  height: 24px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.screens img {
  border-radius: 22px;
  border: 1px solid var(--border);
}

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.notice h2 {
  font-size: 24px;
}
.notice ul {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}
.notice li + li {
  margin-top: 8px;
}

.final-cta {
  text-align: center;
}
.final-cta .cta-row {
  justify-content: center;
}

/* Legal and support pages */
.page-head {
  padding: 56px 0 24px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 12px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
}

.legal {
  padding: 8px 0 64px;
}
.legal section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
}
.legal h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
.legal h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.legal p,
.legal li {
  color: #c5cad1;
  font-size: 16px;
}
.legal p {
  margin: 0 0 12px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 4px;
}
.legal strong {
  color: var(--text);
  font-weight: 650;
}
.legal > :last-child,
.legal section > :last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 24px;
}
.toc summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.toc ol {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
  font-size: 15px;
}
.toc li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.contact-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
.contact-card p {
  margin: 0 0 8px;
  color: #c5cad1;
}
.contact-card p:last-child {
  margin-bottom: 0;
}
.email {
  font-size: 20px;
  font-weight: 700;
  word-break: break-all;
}
.placeholder {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  border: 1px dashed rgba(250, 204, 21, 0.55);
  border-radius: 6px;
  padding: 0 6px;
}

.faq {
  padding: 24px 0 8px;
}
.faq h2 {
  font-size: 28px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-weight: 650;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 26px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq .answer {
  padding: 0 24px 20px;
  color: #c5cad1;
  font-size: 16px;
}
.faq .answer p {
  margin: 0 0 10px;
}
.faq .answer ol,
.faq .answer ul {
  margin: 0 0 10px;
  padding-left: 22px;
}
.faq .answer > :last-child {
  margin-bottom: 0;
}
.path {
  color: var(--text);
  font-weight: 600;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 15px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--text);
}
.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .feature {
    max-width: none;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .screens {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .site-nav ul {
    justify-content: flex-start;
    gap: 4px 18px;
  }
  .hero {
    padding: 40px 0 16px;
  }
  .lead {
    font-size: 18px;
  }
  section {
    padding: 40px 0;
  }
  .screens {
    gap: 12px;
  }
  .screens img {
    border-radius: 14px;
  }
  .legal section,
  .contact-card,
  .notice {
    padding: 20px;
  }
  .toc ol {
    columns: 1;
  }
  .faq summary {
    padding: 18px 48px 18px 18px;
    font-size: 17px;
  }
  .faq summary::after {
    right: 18px;
  }
  .faq .answer {
    padding: 0 18px 18px;
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.final-cta .lead {
  margin-left: auto;
  margin-right: auto;
}
.policies {
  padding-bottom: 40px;
}
.policies h2 {
  font-size: 28px;
}

/* 404 */
.not-found {
  padding: 96px 0;
  text-align: center;
}
.not-found .cta-row {
  justify-content: center;
}
.not-found .hero-logo,
.not-found .lead {
  margin-left: auto;
  margin-right: auto;
}
