/* Surfshark Mirror Site — style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #de2e4c;       /* Surfshark red CTA */
  --primary-dark: #b82440;
  --teal: #1ebfbf;           /* Surfshark brand teal (DESIGN.md Color-10) */
  --teal-dark: #17a0a0;
  --dark: #16191c;
  --header-bg: #ffffff;     /* Surfshark white header */
  --bg: #ffffff;
  --surface: #f5f5f6;
  --surface-2: #ebebec;
  --text: #16191c;
  --text-muted: #5b6065;
  --text-on-dark: #ffffff;
  --green: #1aae5b;
  --red: #de2e4c;
  --border: #e0e0e2;
  --radius-sm: 4px;
  --radius-md: 12px;        /* measured card radius */
  --radius-lg: 20px;
  --radius-xl: 8px;          /* CTA button radius — square style */
  --shadow-card: 0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --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: 'Inter', Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; 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: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.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; flex-shrink: 0; }
.logo { height: 36px; width: auto; max-width: 180px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--text); 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: var(--teal); background: rgba(30,191,191,.07); 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 var(--border);
  color: var(--text); 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), color var(--transition);
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.lang-btn i { font-size: 11px; }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap; display: inline-block;
  box-shadow: 0 4px 16px rgba(222,46,76,.35);
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(222,46,76,.45); }

.btn-cta-lg, .btn-lg {
  background: var(--primary); color: #fff;
  padding: 16px 40px; border-radius: var(--radius-xl);
  font-size: 18px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(222,46,76,.35);
}
.btn-cta-lg:hover, .btn-lg:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(222,46,76,.45); }

.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: var(--text); font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: var(--bg);
  text-align: center;
  padding: var(--space-md) var(--space-sm) var(--space-xl);
}
.hero-inner {
  position: relative;
  max-width: 1360px; margin: 0 auto;
  background: var(--teal);
  border-radius: 32px;
  padding: var(--space-xl) var(--space-lg);
  overflow: hidden;
  color: #000;
}
.hero-inner::after {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 55%; height: 200%;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.18);
  color: #000; padding: 6px 18px; 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: #000; }
.hero p { font-size: clamp(16px, 2.5vw, 20px); color: rgba(0,0,0,.72); 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(0,0,0,.6); }

/* ─── TEAL BUTTON (secondary on hero) ─── */
.btn-teal {
  background: #000; color: #fff;
  padding: 12px 28px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; display: inline-block;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-teal:hover { background: #333; text-decoration: none; transform: translateY(-2px); }
.btn-teal-lg {
  background: #000; color: #fff;
  padding: 16px 40px; border-radius: var(--radius-xl);
  font-size: 18px; font-weight: 700; display: inline-block;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-teal-lg:hover { background: #333; text-decoration: none; transform: translateY(-2px); }

/* ─── 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); }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: var(--space-lg); }
.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); }
.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 { margin-top: var(--space-sm); }
.pricing-cta .btn-cta { width: 100%; display: block; text-align: center; box-sizing: border-box; }

/* ─── 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(--dark); 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: none; margin-bottom: var(--space-sm); }
.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: var(--teal);
  color: #000; text-align: center;
  padding: var(--space-lg) var(--space-sm); border-radius: 32px;
  margin: var(--space-lg) 0;
}
.guarantee-banner h2 { font-size: clamp(22px, 4vw, 36px); margin-bottom: var(--space-sm); color: #000; }
.guarantee-banner p { font-size: 16px; color: rgba(0,0,0,.72); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--bg);
  text-align: center;
  padding: var(--space-md) var(--space-sm) 0;
}
.page-hero .container {
  background: #f1f1f1;
  border-radius: 32px;
  padding: 64px var(--space-lg) var(--space-xl);
  max-width: 1360px;
  color: var(--text);
  overflow: hidden;
  position: relative;
}
.page-hero .container::after { display: none; }
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); color: var(--text); position: relative; z-index: 1; }
.page-hero .updated { color: var(--text-muted); position: relative; z-index: 1; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto var(--space-md); position: relative; z-index: 1; }
.page-hero .hero-cta-group { position: relative; z-index: 1; }
/* CTA on inner-page hero: brand teal bg, dark text, thin outline */
.page-hero .btn-cta {
  background: var(--teal); color: var(--dark);
  border: 1px solid var(--dark);
  animation: none;
  box-shadow: none;
}
.page-hero .btn-cta:hover { background: var(--teal-dark); box-shadow: none; }

/* ─── 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; color: var(--text); }

  .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 var(--border);
    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: var(--text-muted);
  }
  .nav-links li.mobile-lang a.active { color: var(--teal); 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; }

  .hero { padding-bottom: var(--space-md); }
  .hero-inner { padding: 40px var(--space-md); }

  .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;
}

/* ─── CN mode: visible update date under the H1 (cn.bing freshness signal, §18) ─── */
time.updated { display: inline-block; margin: 0 0 var(--space-sm); font-size: 14px; opacity: .75; }
.hero time.updated { color: rgba(255,255,255,.8); }

/* ═══ 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(3, 1fr); gap: var(--space-md); }
@media (max-width: 900px) { .device-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .device-grid { grid-template-columns: 1fr; } }
.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; }
.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 */
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONS — hero image, BF popup, footer banner,
   payment cards, analytics, animations, centering fixes
   ═══════════════════════════════════════════════════════════ */

/* ─── CENTERING: section titles + subtitles ─── */
.section-title { text-align: center; }
.section > .container > p,
.section > .container > .section-sub { text-align: center; }

/* ─── HERO WITH IMAGE ─── */
.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  text-align: left;
}
.hero-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hero-content .hero-cta-group { justify-content: flex-start; }
/* align all hero-content children to same left edge as the auto-margin paragraph */
.hero-content h1,
.hero-content .updated,
.hero-content .hero-checks,
.hero-content .hero-cta-group {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .updated { display: block; }
.hero-image {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 0;
  object-fit: cover;
  animation: floatBob 5s ease-in-out infinite;
  box-shadow: none;
}
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content .hero-cta-group { justify-content: center; }
  .hero-image { flex: none; width: 100%; max-width: 380px; }
}
@media (max-width: 600px) {
  .hero-image { display: none; }
  .hero-inner { text-align: center; }
}

/* ─── FOOTER BANNER ─── */
.footer-banner-link { display: block; }
.footer-banner-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity var(--transition);
}
.footer-banner-img:hover { opacity: .92; }

/* ─── BF POPUP (Black Friday, bottom-right) ─── */
.bf-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: bfFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  max-width: 320px;
}
@keyframes bfFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bf-popup a { display: block; }
.bf-img { width: 100%; height: auto; display: block; }
.bf-close {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none; cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}
.bf-close:hover { background: rgba(0,0,0,.8); }
@media (max-width: 480px) {
  .bf-popup { max-width: 240px; bottom: 12px; right: 12px; }
}

/* ─── PAYMENT CARDS ─── */
.payment-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: var(--space-md);
}
.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 90px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.payment-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pay-icon { display: flex; align-items: center; }
.pay-icon svg { display: block; }
.payment-card span { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ─── ANALYTICS PAGE: STAT CARDS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  animation: fadeUp 0.5s ease both;
}
.stat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.stat-card:nth-child(1) { animation-delay: .05s }
.stat-card:nth-child(2) { animation-delay: .10s }
.stat-card:nth-child(3) { animation-delay: .15s }
.stat-card:nth-child(4) { animation-delay: .20s }
.stat-card:nth-child(5) { animation-delay: .25s }
.stat-card:nth-child(6) { animation-delay: .30s }
.stat-icon { font-size: 28px; color: var(--teal); margin-bottom: 10px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ─── ANALYTICS: SPEED BARS ─── */
.speed-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.speed-row { }
.speed-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.speed-name { font-size: 15px; font-weight: 500; }
.speed-val { font-size: 14px; font-weight: 700; color: var(--teal); }
.speed-track {
  height: 10px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.speed-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 100px;
  animation: growBar 1s ease both;
}

/* ─── ANALYTICS: PROTOCOL GRID ─── */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.proto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow var(--transition);
}
.proto-card:hover { box-shadow: var(--shadow-card); }
.proto-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.proto-name i { color: var(--teal); margin-right: 6px; }
.proto-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 100px;
  width: var(--pct);
  margin-bottom: 10px;
  animation: growBar .8s ease both;
}
.proto-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── ANALYTICS: AUDIT TIMELINE ─── */
.audit-timeline {
  max-width: 700px;
  margin: var(--space-md) auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.audit-timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.audit-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  position: relative;
  animation: fadeUp .5s ease both;
}
.audit-item:nth-child(1) { animation-delay: .05s }
.audit-item:nth-child(2) { animation-delay: .15s }
.audit-item:nth-child(3) { animation-delay: .25s }
.audit-item:nth-child(4) { animation-delay: .35s }
.audit-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(30,191,191,.15);
}
.audit-body { flex: 1; }
.audit-date { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.audit-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.audit-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── ANALYTICS: RATING GRID ─── */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.rating-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.rating-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.rating-platform { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.rating-stars { font-size: 22px; color: #fbbf24; margin-bottom: 4px; }
.rating-score { font-size: 28px; font-weight: 800; color: var(--text); }
.rating-count { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes growBar {
  from { width: 0; }
}
@keyframes pulseCta {
  0%, 100% { box-shadow: 0 4px 16px rgba(222,46,76,.35); }
  50%       { box-shadow: 0 4px 28px rgba(222,46,76,.65); }
}

/* apply animations */
.feature-card { animation: fadeUp .5s ease both; }
.feature-card:nth-child(1) { animation-delay: .05s }
.feature-card:nth-child(2) { animation-delay: .12s }
.feature-card:nth-child(3) { animation-delay: .19s }
.feature-card:nth-child(4) { animation-delay: .26s }
.feature-card:nth-child(5) { animation-delay: .33s }
.feature-card:nth-child(6) { animation-delay: .40s }

.btn-cta { animation: none; border: 1px solid rgba(255,255,255,.35); }
.btn-cta:hover { animation: none; }

.hero-content { animation: fadeUp .6s ease both; }

/* ─── LOGIN BUTTON (white outlined, header) ─── */
.btn-login {
  background: #fff; color: var(--dark);
  padding: 8px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-login:hover { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30,191,191,.12); text-decoration: none; }

/* ─── INFO GRID (card set replacing long paras) ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.info-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);
}
.info-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.info-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(30,191,191,.1); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--space-sm); color: var(--teal);
}
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── STATS MINI GRID (homepage data section) ─── */
.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
  align-items: start;
}
.stat-mini {
  display: flex; gap: var(--space-sm); align-items: flex-start;
  grid-column: 1;
}
.stat-mini-img { width: 100%; border-radius: var(--radius-md); object-fit: cover; max-height: 240px; }
.stat-mini-body strong { font-size: 20px; font-weight: 800; display: block; margin-bottom: 6px; }
.stat-mini-body p { font-size: 14px; color: var(--text-muted); margin: 0; }
.stat-mini-items {
  grid-column: 2;
  display: flex; flex-direction: column; gap: 14px;
}
.stat-mini-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
}
.stat-mini-row i { color: var(--teal); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 768px) {
  .stats-mini-grid { grid-template-columns: 1fr; }
  .stat-mini, .stat-mini-items { grid-column: 1; }
}

/* ─── HERO CHECKMARKS ─── */
.hero-checks {
  list-style: none; padding: 0; margin: 18px 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-checks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--dark);
}
.hero-checks li i {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}

/* ─── FAQ ARROW ─── */
.faq-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--teal);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ─── DEVICE CARD REDESIGN ─── */
.device-card-hd {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.device-card .device-icon {
  font-size: 40px; color: var(--teal);
  width: auto; height: auto; line-height: 1;
}
.device-card h3 { font-size: 18px; margin: 0; }
.device-chk { padding: 0; list-style: none; margin: 0; flex: 1; }
.device-chk li {
  font-size: 14px; color: var(--text-muted);
  padding: 5px 0; display: flex; align-items: flex-start; gap: 8px;
}
.device-chk li::before {
  content: '\2713';
  color: var(--teal); font-weight: 700; font-size: 14px;
  flex-shrink: 0; margin-top: 1px;
}
.btn-device {
  display: block; width: 100%; text-align: center; margin-top: auto; padding-top: 14px;
  padding: 11px 20px; border-radius: var(--radius-xl);
  background: var(--teal); color: var(--dark);
  font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--dark);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-device:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }

/* ─── PROSE ALTERNATING BLOCKS ─── */
.prose-alt { display: flex; flex-direction: column; gap: 20px; margin-top: var(--space-sm); }
.prose-block {
  max-width: 68%; padding: var(--space-md);
  background: var(--surface); border-radius: var(--radius-lg);
}
.prose-block--left {
  align-self: flex-start;
  border-left: 3px solid var(--teal); border-right: none;
}
.prose-block--right {
  align-self: flex-end;
  border-right: 3px solid var(--teal); border-left: none;
}
.prose-block p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.8; }
@media (max-width: 768px) {
  .prose-block { max-width: 100%; }
  .prose-block--right { align-self: auto; }
}

/* ─── STAT FACTS (data section) ─── */
.stat-facts { display: flex; flex-direction: column; gap: 18px; }
.stat-fact {
  display: flex; gap: 14px; align-items: flex-start;
}
.stat-fact > i { color: var(--teal); font-size: 20px; flex-shrink: 0; margin-top: 3px; }
.stat-fact strong { font-size: 17px; font-weight: 800; display: block; margin-bottom: 3px; }
.stat-fact p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.stat-facts-link { margin-top: 10px; }

/* ─── FOOTER LOGO (white) ─── */
.footer-brand .logo-footer {
  filter: brightness(0) invert(1);
  height: 36px; width: auto; margin-bottom: var(--space-sm);
}

/* ─── 404 PAGE ─── */
.section-404 { padding: 80px 0 100px; }
.container-404 { text-align: center; max-width: 640px; margin: 0 auto; }
.err-code {
  font-size: clamp(100px, 20vw, 160px);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--teal) 0%, #0e8f8f 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -6px;
}
.err-shark {
  font-size: 56px; color: var(--teal);
  margin: 8px 0 20px;
  animation: floatBob 3s ease-in-out infinite;
}
.err-title {
  font-size: clamp(22px, 4vw, 30px); font-weight: 800;
  color: var(--dark); margin: 0 0 14px; line-height: 1.3;
}
.err-sub {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7; margin: 0 auto 36px; max-width: 500px;
}
.err-links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.err-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
}
.err-btn-sec {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 22px; border-radius: var(--radius-xl);
  background: var(--surface); color: var(--dark);
  font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--border);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.err-btn-sec:hover { background: #e8f4f4; transform: translateY(-2px); }
@media (max-width: 480px) {
  .err-links { flex-direction: column; align-items: center; }
  .err-btn-sec, .err-btn-primary { width: 100%; justify-content: center; }
}

/* ─── TEAL INLINE CTA LINK (organic section links) ─── */
.btn-cta--teal {
  display: inline-block;
  background: none;
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
  animation: none;
  box-shadow: none;
  border-radius: 0;
  border-top: none; border-left: none; border-right: none;
}
.btn-cta--teal:hover { color: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; }


/* ─── GLOBE LANGUAGE SWITCHER ─── */
.lang-switcher { position: relative; display: flex; align-items: center; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text); display: flex; align-items: center;
  gap: 4px; padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 15px;
}
.lang-btn:hover { background: var(--surface); }
.lang-arrow { font-size: 10px; transition: transform var(--transition); }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); min-width: 110px; z-index: 200;
  padding: 4px 0;
}
/* M26: pseudo-element bridge prevents hover gap closing dropdown */
.lang-switcher::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: 100%; height: 10px; z-index: 199;
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher.ls-open .lang-dropdown { display: block; }
.lang-switcher.ls-open .lang-arrow { transform: rotate(180deg); }
.lang-opt {
  display: block; padding: 8px 16px; color: var(--text);
  text-decoration: none; font-size: 14px; white-space: nowrap;
}
.lang-opt:hover { background: var(--surface); }
.lang-opt--active { font-weight: 600; color: var(--teal); }
/* inside mobile menu */
.nav-menu .lang-switcher { flex-direction: column; align-items: flex-start; padding: 8px 0; }
.nav-menu .lang-btn { font-size: 15px; padding: 6px 0; }
.nav-menu .lang-dropdown {
  display: none; position: static; box-shadow: none; border-radius: 0;
  background: transparent; padding: 0 0 0 20px;
}
.nav-menu .lang-switcher.ls-open .lang-dropdown { display: block; }
.nav-menu .lang-opt { font-size: 14px; padding: 6px 0; }
