/* RiseupVPN Mirror Site — style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  /* RiseupVPN brand tokens — measured from riseup.net/assets/style.css */
  --primary: #5e9ee3;
  --primary-dark: #4a86c8;
  --header-bg: #2d6cb8;   /* darkened: WCAG AA ~5.1:1 contrast with white */
  --footer-bg: #555555;
  --bg: #e6e3dc;
  --surface: #ffffff;
  --surface-2: #efefef;
  --text: #333333;
  --text-muted: #666666;
  --border: #cccccc;
  --green: #1AAE5B;
  --red: #E03C31;
  --gold: #ffc72c;
  --shadow-card: 1px 1px 4px #CCC9C3;
  --shadow-lg: 0 4px 20px rgba(0,0,0,.15);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --transition: 0.2s ease;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; } /* clip, NOT hidden: hidden breaks the sticky header (M9) */
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.428; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: none;
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 64px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.3px; white-space: nowrap; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}

/* mobile-only language row inside the menu; hidden on desktop */
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85); padding: 6px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition);
}
.lang-btn:hover { border-color: rgba(255,255,255,.7); }
.lang-btn i { font-size: 11px; }

/* ─── HEADER CTA: white button on dark header ─── */
.site-header .btn-cta {
  background: rgba(255,255,255,.95);
  color: var(--primary-dark);
  border: none;
}
.site-header .btn-cta:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ─── ACTIVE NAV LINK (JS adds .active-page) ─── */
.nav-links > li > a.active-page {
  color: #fff;
}
.nav-links > li > a.active-page::before {
  content: '';
  position: absolute; bottom: 2px; left: 8px; right: 8px;
  height: 2px; background: rgba(255,255,255,.75); border-radius: 1px;
}
.nav-links > li > a {
  position: relative;  /* needed for active-page indicator */
}

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: #1a5fbd; color: #fff;   /* #1a5fbd on white = 5.65:1 — WCAG AA */
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { background: #1450a3; text-decoration: none; transform: translateY(-1px); }
.btn-cta:focus-visible { outline: 3px solid #1a5fbd; outline-offset: 3px; }

.btn-cta-lg {
  background: #1a5fbd; color: #fff;   /* #1a5fbd on white = 5.65:1 — WCAG AA */
  padding: 16px 36px; border-radius: var(--radius-md);
  font-size: 18px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-lg:hover { background: #1450a3; text-decoration: none; transform: translateY(-2px); }
.btn-cta-lg:focus-visible { outline: 3px solid #1a5fbd; outline-offset: 3px; }

.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #12122a 0%, #1e2a5e 60%, #0d3b82 100%);
  color: #fff; text-align: center;
  padding: var(--space-xl) var(--space-sm);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,199,44,.15); border: 1px solid rgba(255,199,44,.4);
  color: var(--gold); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: var(--space-md);
}
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.hero p { font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,.82); margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-cta-group { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.hero-price { margin-top: var(--space-md); font-size: 14px; color: rgba(255,255,255,.6); }

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, #12122a 0%, #1e2a5e 60%, #0d3b82 100%);
  color: #fff; padding: 72px var(--space-sm) 60px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(94,158,227,0.20) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(26px, 4.5vw, 48px); font-weight: 800; color: #fff; margin-bottom: var(--space-sm); }
.page-hero p { font-size: clamp(15px, 2.2vw, 18px); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: var(--space-md); }
.page-hero .hero-cta-group { justify-content: center; }

/* ─── HERO SPLIT ─── */
.hero.hero-split .hero-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  text-align: left;
}
.hero.hero-split p { margin-left: 0 !important; margin-right: 0 !important; }
.hero.hero-split .hero-cta-group { justify-content: flex-start; }
.hero-graphic {
  display: flex; align-items: center; justify-content: center;
}
.hero-graphic img {
  max-width: 420px; width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0,108,178,0.5));
  animation: floatY 4s ease-in-out infinite;
}

/* ─── ICON ROWS ─── */
.icon-rows { display: flex; flex-direction: column; gap: 20px; margin-top: var(--space-md); }
.icon-row { display: flex; gap: var(--space-md); align-items: flex-start; }
.icon-row-icon {
  min-width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; font-size: 20px; color: var(--primary);
  flex-shrink: 0;
}
.icon-row-content h3, .icon-row-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; margin-top: 0; }
.icon-row-content p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; max-width: 55ch; }

/* ─── CALLOUT GRID ─── */
.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md); margin-top: var(--space-md);
}
.callout-box {
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md); padding: var(--space-md);
}
.section-alt .callout-box { background: var(--bg); }
.callout-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.callout-box p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ─── STEPS LIST ─── */
.steps-list { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-md); }
.step-row { display: flex; gap: var(--space-md); align-items: flex-start; }
.step-num {
  min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.step-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; }
.step-row .step-content h3 { margin-top: 0; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-sm);
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 28px; font-weight: 800; color: var(--primary);
  display: block; line-height: 1;
}
.trust-label {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-top: 6px; display: block;
}
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: var(--space-xs);
}
.section-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: var(--space-sm); text-align: center; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: var(--space-lg); text-align: center; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--space-sm); color: var(--primary);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── SPLIT ROW ─── */
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 320px; object-fit: cover; }
.split-content .section-title { font-size: clamp(22px, 3vw, 34px); text-align: left; }
.split-content .section-sub { text-align: left; margin-left: 0; margin-right: 0; }
.check-list { margin: var(--space-sm) 0 var(--space-md); }
.check-list li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: box-shadow var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(0,111,207,.08);
}
.pricing-card:hover { box-shadow: var(--shadow-card); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); margin-top: 6px; }
.pricing-divider { height: 1px; background: var(--border); margin: var(--space-sm) 0; }
.pricing-features li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '\2715'; color: var(--border); }
.pricing-cta { width: 100%; padding: 13px; border-radius: var(--radius-md); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: var(--space-sm); display: block; text-align: center; transition: all var(--transition); background: var(--primary); color: #fff; border: none; }
.pricing-cta:hover { background: var(--primary-dark); text-decoration: none; }
.pricing-card.popular .pricing-cta { background: var(--primary); }

/* ─── IMAGE STRIP ─── */
.image-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.image-strip-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── AWARDS ─── */
.awards-row {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.award-item { text-align: center; }
.award-icon { font-size: 40px; color: var(--gold); margin-bottom: 8px; }
.award-title { font-size: 14px; font-weight: 700; }
.award-sub { font-size: 12px; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--footer-bg); color: rgba(255,255,255,.7);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 36px; width: auto; filter: brightness(1.5); }
.footer-brand-name { display: block; font-size: 18px; font-weight: 700; color: #fff; margin: var(--space-xs) 0 var(--space-sm); letter-spacing: -.3px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-sm);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; }
.social-links { display: flex; gap: 12px; }
.social-links a { color: rgba(255,255,255,.5); font-size: 18px; transition: color var(--transition); }
.social-links a:hover { color: #fff; text-decoration: none; }

/* ─── PLATFORM ICONS ─── */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}
.platform-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm); text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.platform-card i { font-size: 36px; color: var(--primary); margin-bottom: var(--space-sm); }
.platform-card span { font-size: 14px; font-weight: 600; display: block; }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center;
  padding: var(--space-lg) var(--space-sm); border-radius: var(--radius-xl);
  margin: var(--space-lg) 0;
}
.guarantee-banner h2 { font-size: clamp(22px, 4vw, 36px); margin-bottom: var(--space-sm); color: #fff; }
.guarantee-banner p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #12122a 0%, #1e2a5e 100%);
  color: #fff; text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 14px 32px; border-radius: var(--radius-md); font-size: 16px; font-weight: 700;
  transition: background var(--transition);
}
.form-submit:hover { background: var(--primary-dark); }

/* ─── PROSE (privacy/terms) ─── */
.prose { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    height: auto; max-height: none;
    overflow: visible;
    background: var(--header-bg);
    box-shadow: 0 8px 16px rgba(0,0,0,.24);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; }

  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  /* Lang switcher INSIDE mobile menu */
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12);
    width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    color: rgba(255,255,255,.75);
  }
  .nav-links li.mobile-lang a.active { color: var(--gold); font-weight: 700; }

  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .btn-cta-lg, .btn-cta, .hero-cta-group a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
  .hero-cta-group { flex-direction: column; align-items: center; }

  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .awards-row { flex-direction: column; gap: var(--space-md); }
}

/* ─── UTILITY ─── */
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.tag {
  display: inline-block; background: var(--surface-2); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ═══ COMMON-MISTAKE RULES (website-quality-standards.md §26, checked by qa_mistakes.py) ═══ */
/* M9 sticky header everywhere */
.site-header { position: sticky; top: 0; z-index: 1000; }
/* M3/M4/M8 nav dropdown (device/product pages grouped): hover-intent on desktop, tap-toggle on mobile */
.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }
.dropdown-toggle {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; padding: 8px 12px;
}
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }
/* footer column titles are not headings (keeps H1→H2→H3 order intact, M17) */
.footer-heading { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
/* M14 device/product cards on the download hub */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.device-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md); display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.device-card .device-icon { font-size: 36px; width: 40px; height: 40px; line-height: 40px; color: var(--primary); } /* M22 one size */
.device-card h3 { margin: 0; font-size: 20px; }
.device-card h3 a { color: inherit; }
.device-card ul { margin: 0; padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 2px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }
/* M13 payment methods, M24 comparison table, M19 bullet lists */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 600; background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.compare-table .highlight { background: var(--surface); font-weight: 700; }
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin: 6px 0; }
.bullets-centered { max-width: 640px; margin: 0 auto; }
.bullets-centered .bullets li { margin: 10px 0; }

/* ─── TUNNEL DIAGRAM (why-riseup split row) ─── */
.tunnel-diagram-col { height: auto !important; overflow: visible !important; }
.tunnel-diagram-col svg { width: 100%; height: auto; display: block; }
.section-sub { max-width: 720px; margin: 0 auto var(--space-md); text-align: center; color: var(--text-muted); }

@media (max-width: 768px) {
  .nav { padding: 0 16px; }                                  /* M7 not flush to the edges */
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 14px 0; font-size: 17px; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel,
  .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }     /* M4 open / M8 close on tap */
  .nav-links .dropdown-panel-inner { background: rgba(255,255,255,.06); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { color: rgba(255,255,255,.85); text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }            /* M21 two footer columns */
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }            /* M21 stays two columns on phones */
}

/* ═══════════════════════════════════════════════════════════════
   VISUAL ENHANCEMENTS — animations, platform badges, stats bar,
   how-it-works diagram, step-flow, scroll-reveal
   ═══════════════════════════════════════════════════════════════ */

/* ─── BTN-LG ─── */
.btn-lg {
  font-size: 17px !important;
  padding: 15px 36px !important;
}

/* ─── PLATFORM BADGES ─── */
.platform-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: var(--space-md);
}
.platform-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 20px;
  color: var(--text); font-size: 15px; font-weight: 600;
  text-decoration: none;
  flex: 1 1 150px; max-width: 210px;         /* equal width on desktop */
  transition: border-color .25s, color .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);     /* lighter shadow */
}
.platform-badge:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-3px); box-shadow: var(--shadow-card);
  text-decoration: none;
}
.platform-badge i { font-size: 24px; }

/* ─── KEYFRAMES ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,158,227,.5); }
  50%       { box-shadow: 0 0 0 12px rgba(94,158,227,0); }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO ENHANCEMENTS ─── */
.hero { overflow: hidden; }

/* large decorative background shield */
.hero::after {
  content: '\f3ed';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  font-size: 400px;
  color: rgba(255,255,255,.04);
  right: -60px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
  animation: floatY 8s ease-in-out infinite;
}

/* hero floating orb */
.hero-inner { position: relative; }
.hero-inner::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,158,227,.18) 0%, transparent 70%);
  left: -160px; top: -100px;
  pointer-events: none;
}

/* hero text fade-in */
.hero-inner > * { animation: fadeInUp .8s ease both; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .25s; }
.hero-inner > :nth-child(4) { animation-delay: .35s; }

/* CTA glow pulse */
.btn-cta-lg, .btn-lg.btn-cta {
  animation: pulseGlow 2.8s ease-in-out 1.5s 3;
}

/* ─── SMOOTH FAQ ─── */
.faq-a {
  display: block !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height .38s ease, padding .3s ease !important;
}
.faq-item.open .faq-a {
  max-height: 500px !important;
  padding-bottom: var(--space-sm) !important;
}

/* chevron via pseudo-element */
.faq-q { position: relative; padding-right: 36px; }
.faq-q i { display: none; } /* hide existing <i> if present */
.faq-q::after {
  content: '';
  position: absolute; right: 4px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .3s ease;
}
.faq-item.open .faq-q::after {
  transform: translateY(-35%) rotate(-135deg);
}

/* feature card stagger */
.feature-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.feature-grid .feature-card:nth-child(2) { transition-delay: .07s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: .14s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: .21s; }
.feature-grid .feature-card:nth-child(5) { transition-delay: .28s; }
.feature-grid .feature-card:nth-child(6) { transition-delay: .35s; }

/* ─── STATS BAR ─── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 14px var(--space-sm);  /* tighter vertical */
}
.stats-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-around;
  flex-wrap: wrap; gap: var(--space-sm);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 36px; font-weight: 900; color: #fff;
  display: block; line-height: 1;
  animation: countUp .6s ease both;
}
.stat-label {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.95);
  text-transform: uppercase; letter-spacing: .4px;
  margin-top: 5px; display: block;
}

/* ─── HOW-IT-WORKS DIAGRAM ─── */
.hiw-diagram {
  margin: var(--space-lg) auto;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hiw-diagram img { width: 100%; height: auto; }
.hiw-diagram svg { width: 100%; height: auto; display: block; }

/* ─── STEP FLOW ─── */
.step-flow {
  display: flex; flex-direction: column; gap: 0;
  margin: var(--space-lg) 0 var(--space-md);
}
.step-item {
  display: flex; gap: var(--space-md); align-items: flex-start;
  padding: var(--space-md) 0; position: relative;
}
.step-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 23px; top: 72px; bottom: -10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border));
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(94,158,227,.4);
}
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; margin-top: 10px; }
.step-content p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ─── MOBILE adjustments for new components ─── */
@media (max-width: 768px) {
  .hero.hero-split .hero-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero.hero-split { text-align: center; }
  .hero.hero-split p { margin-left: auto !important; margin-right: auto !important; }
  .hero.hero-split .hero-cta-group { justify-content: center; }
  .hero-graphic { order: -1; }
  .hero-graphic img { max-width: 260px; }
  .page-hero .hero-cta-group { justify-content: center; }
  .hero::after { font-size: 200px; opacity: .03; right: -30px; }
  .hero-inner::before { width: 200px; height: 200px; left: -100px; }
  .platform-badge { padding: 11px 18px; font-size: 14px; }
  .platform-badge i { font-size: 20px; }
  .stat-num { font-size: 28px; }
  .stats-bar-inner { gap: var(--space-sm); justify-content: center; }
  .stat-item { min-width: 120px; }
}
@media (max-width: 768px) {
  .platform-badge {
    flex: 0 1 calc(50% - 6px); max-width: none;   /* 2-column grid, no overflow */
  }
  .platform-badges { gap: 10px; overflow-x: visible; }
}
@media (max-width: 480px) {
  .platform-badges { gap: 10px; }
  .platform-badge { padding: 10px 16px; font-size: 13px; flex: 0 1 calc(50% - 5px); max-width: none; }
  .stat-item { min-width: 100px; }
}
@media (max-width: 360px) {
  .platform-badge { flex: 0 1 100%; max-width: none; }  /* single column on very small */
}

/* ─── PREFERS-REDUCED-MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  /* Disable all CSS animations and scroll-reveal transitions */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-inner > * { animation: none !important; }
  .hero-graphic img { animation: none !important; }
  .hero::after { animation: none !important; }
  .btn-cta-lg, .btn-lg.btn-cta { animation: none !important; }
  .hero-inner::before { animation: none !important; }
  .stat-num { animation: none !important; }
  /* Keep instant transitions only */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── COMPARISON DIAGRAM GRID ─── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
@media (max-width: 768px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; text-align: center; }
.compare-title--bad { color: #e53935; }
.compare-title--good { color: #1e88e5; }
.compare-caption { font-size: 13px; text-align: center; margin-top: 8px; padding: 6px 12px; border-radius: 6px; }
.compare-caption--bad { background: #fff5f5; color: #c62828; }
.compare-caption--good { background: #f0f7ff; color: #1565c0; }
.compare-explain { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-top: var(--space-lg); }
@media (max-width: 768px) { .compare-explain { grid-template-columns: 1fr; } }

/* ─── CENTERED CONTENT CONTAINER ─── */
.content-centered { max-width: 760px; margin: 0 auto; }

/* ─── STATUS INDICATOR GRID ─── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1023px) { .status-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .status-grid { grid-template-columns: 1fr; } }
.status-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); text-align: center; }
.status-icon { font-size: 2.2rem; margin-bottom: var(--space-xs); }
.status-icon i { display: block; width: 1.25em; height: 1.25em; line-height: 1.25em; margin: 0 auto; } /* M22: uniform icon size */
.status-label { font-size: 1.1rem; font-weight: 700; margin: 0 0 var(--space-xs); }

/* ─── SCROLL ANCHOR ─── */
.scroll-anchor { display: block; height: 0; overflow: hidden; visibility: hidden; scroll-margin-top: 0; }

/* ─── HELP QUICK NAV ─── */
.help-quicknav {
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.help-quicknav a {
  display: inline-block;
  padding: 0.35em 1em;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.help-quicknav a:hover, .help-quicknav a:focus-visible {
  background: var(--primary); color: #fff;
  outline: none;
}

/* section headings need offset for sticky header when targeted via anchor */
.section-title { scroll-margin-top: 72px; }

/* ─── CODE BLOCKS IN FAQ ─── */
.faq-a pre { margin: var(--space-xs) 0; border-radius: var(--radius-md); overflow-x: auto; }
.faq-a pre code {
  display: block;
  background: #263238;
  color: #cfd8dc;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: var(--space-sm) var(--space-md);
  white-space: pre;
}

/* ─── HOW IT WORKS — image alongside icon rows ─── */
.hiw-with-image { display: flex; gap: var(--space-xl); align-items: center; }
.hiw-with-image .icon-rows { flex: 1 1 55%; min-width: 0; }
.hiw-img-col { flex: 0 0 40%; max-width: 420px; }
.hiw-img-col img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
@media (max-width: 899px) {
  .hiw-with-image { flex-direction: column; }
  .hiw-img-col { max-width: 100%; width: 100%; flex: none; }
}
