/* psiphonvpn.app — Psiphon dark-brand theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Psiphon dark palette */
  --primary:        #ff7a1a;
  --primary-dark:   #ea5a0b;
  --gold:           #ff7a1a;
  --bg:             #0e0f12;
  --surface:        #141519;
  --surface-2:      #18181b;
  --header-bg:      rgba(23,26,31,.85);
  --dark:           #0a0b0d;
  --text:           #f5f5f7;
  --text-muted:     #9ca3af;
  --green:          #22c55e;
  --red:            #ef4444;
  --border:         #2f3037;
  --card:           #18181b;
  --card-border:    #2f3037;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      28px;
  --shadow-card:    0 2px 16px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.3);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.55);
  --shadow-nav:     0 8px 40px rgba(0,0,0,.45);
  --transition:     0.2s ease;
  --dur-fast:       0.15s;
  --dur-md:         0.25s;
  --ease:           cubic-bezier(.4,0,.2,1);
  --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%; }
body {
  font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  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; color: var(--text); }

/* ─── HEADER (floating pill) ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  padding: 12px 8px 4px;
}
.nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-md);
  height: 52px; gap: var(--space-sm);
  background: var(--header-bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 25px; width: auto; max-width: 140px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.08); 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; }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--primary); color: #fff;
  padding: 9px 18px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover {
  background: var(--primary-dark); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,122,26,.35);
}
.btn-lg {
  padding: 14px 32px; font-size: 16px; font-weight: 700; border-radius: var(--radius-lg);
}
.btn-cta:hover.btn-lg { transform: translateY(-2px); }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,122,26,.12) 0%, transparent 70%),
              linear-gradient(180deg, #0e0f12 0%, #0e0f12 100%);
  color: #fff; text-align: center;
  padding: calc(var(--space-xl) + 32px) var(--space-sm) var(--space-xl);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.05;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.35);
  color: var(--primary); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: var(--space-md);
  animation: fadeInDown var(--dur-md) var(--ease) both;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  margin-bottom: var(--space-sm); color: #fff;
  animation: fadeInUp var(--dur-md) .07s var(--ease) both;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,.75);
  margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto;
  animation: fadeInUp var(--dur-md) .14s var(--ease) both;
}
.hero-cta-group {
  display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap;
  animation: fadeInUp var(--dur-md) .2s var(--ease) both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero p, .hero-cta-group { animation: none; }
}

/* ─── ANSWER BOX (LLM-citable chunk) ─── */
.answer-box {
  background: var(--surface); border-top: 3px solid var(--primary);
  padding: var(--space-lg) var(--space-sm);
}
.answer-box-inner { max-width: 800px; margin: 0 auto; }
.answer-box-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--primary); margin-bottom: var(--space-xs);
}
.answer-box-q { font-size: clamp(18px, 3vw, 26px); font-weight: 700; margin-bottom: var(--space-sm); color: var(--text); }
.answer-box-a { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,122,26,.10) 0%, transparent 70%),
              var(--bg);
  color: #fff; text-align: center;
  padding: calc(var(--space-xl) + 32px) var(--space-sm) var(--space-lg);
}
.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,.72); max-width: 600px; margin: 0 auto; }
.page-hero .hero-cta-group { margin-top: var(--space-md); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(22px, 3.5vw, 38px); font-weight: 800; margin-bottom: 10px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 700px; margin: 0 auto var(--space-lg); text-align: center; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: rgba(255,122,26,.3);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.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; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: box-shadow var(--transition), border-color var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(255,122,26,.12);
}
.pricing-card:hover { box-shadow: var(--shadow-card); border-color: rgba(255,122,26,.35); }
.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: 13px; 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-period { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); margin-top: 6px; }
.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; }

/* ─── 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); transition: color var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 0 var(--space-sm);
  font-size: 15px; color: var(--text-muted); line-height: 1.75;
  animation: fadeInUp var(--dur-fast) var(--ease) both;
}
.faq-item.open .faq-a { display: block; }
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.65);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
}
.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: 25px; width: auto; margin-bottom: var(--space-sm);
  /* SVG already white, no filter needed */
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-heading {
  color: #fff; font-size: 13px; font-weight: 700;
  margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08); 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; }

/* ─── COMPARE TABLE ─── */
.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;
  font-size: 14px;
}
.compare-table th { font-weight: 700; color: var(--text-muted); font-size: 13px; }
.compare-table .highlight { background: rgba(255,122,26,.08); font-weight: 700; color: var(--text); }

/* ─── BULLET LISTS ─── */
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin: 8px 0; color: var(--text-muted); font-size: 15px; }

/* ─── DEVICE CARDS (M14) ─── */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.device-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.device-card:hover { border-color: rgba(255,122,26,.35); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.device-icon { font-size: 36px; width: 44px; height: 44px; line-height: 44px; color: var(--primary); fill: var(--primary); flex-shrink: 0; }
.device-card h3 { margin: 0; font-size: 20px; color: var(--text); }
.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: 4px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }

/* ─── PAYMENT METHODS (M13) ─── */
.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(--card-border);
  border-radius: var(--radius-md); padding: 10px 18px;
  font-weight: 600; font-size: 14px;
  background: var(--card); color: var(--text-muted);
}

/* ─── CN update date (§18 freshness signal) ─── */
time.updated { display: inline-block; margin: 0 0 var(--space-sm); font-size: 13px; opacity: .6; color: var(--text-muted); }
.hero time.updated { color: rgba(255,255,255,.65); }

/* ─── MOBILE NAV ─── */
@media (max-width: 768px) {
  .site-header { padding: 8px 8px 2px; }
  .nav { padding: 0 12px; height: 48px; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 12px);
    left: var(--space-sm); right: var(--space-sm);
    flex-direction: column; align-items: stretch;
    height: auto; max-height: none; overflow: visible;
    background: #1a1b1f;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 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: 13px 0; font-size: 16px; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); 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,.65);
  }
  .nav-links li.mobile-lang a.active { color: var(--primary); font-weight: 700; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .btn-cta.btn-lg, .hero-cta-group a, .device-card .btn-cta, .pricing-cta .btn-cta {
    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; }
  .device-card { text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── STICKY HEADER (M9) ─── */
.site-header { position: sticky; top: 0; z-index: 1000; }

/* ─── DROPDOWN (M3/M4/M8/M26) ─── */
.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;
}
/* M26 bridge: prevent gap between trigger and panel */
.dropdown-panel::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.dropdown-panel-inner {
  background: var(--card); border: 1px solid var(--card-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.open > .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; }

.dropdown-toggle {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; padding: 7px 12px;
}
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }

.nav-links .dropdown-panel { left: 0; right: auto; }

@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 13px 0; font-size: 16px; }
  .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; }
  .nav-links .dropdown-panel-inner { background: rgba(255,255,255,.04); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { color: rgba(255,255,255,.8); text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.tag {
  display: inline-block; background: rgba(255,122,26,.12); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px;
}
