/* ============================================
   BulkOptOut.com — Main Stylesheet
   ============================================ */

:root {
  --navy:      #0a0f2e;
  --blue:      #1a3a8f;
  --blue-mid:  #2456c8;
  --blue-light:#4a7fee;
  --ca-green:  #1b6b3a;
  --ca-green-light: #e8f5ed;
  --nonca-blue:#1a3a8f;
  --nonca-blue-light: #e8f0ff;
  --orange:    #e65100;
  --orange-light: #fff3e0;
  --white:     #ffffff;
  --off-white: #f7f9fc;
  --grey-100:  #f0f4f8;
  --grey-200:  #dde4ee;
  --grey-400:  #8a96a8;
  --grey-600:  #4a5568;
  --grey-900:  #1a202c;
  --text:      #1a202c;
  --text-light:#4a5568;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 16px rgba(10,15,46,0.10);
  --shadow-lg: 0 8px 40px rgba(10,15,46,0.16);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Layout ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 640px; }

/* ============================================
   ALERT BAR
   ============================================ */
.alert-bar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 48px 10px 20px;
  font-size: 0.9rem;
  position: relative;
  z-index: 100;
}
.alert-bar strong { font-weight: 700; }
.alert-icon { margin-right: 6px; font-size: 1rem; }
.alert-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  opacity: 0.85;
}
.alert-close:hover { opacity: 1; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--blue-light); }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue-mid);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--blue-light) !important; text-decoration: none !important; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b4a 60%, #162566 100%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #5b9cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ---- Countdown ---- */
.countdown-wrap {
  margin-bottom: 40px;
}
.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 28px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.countdown-unit span {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.countdown-unit small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.countdown-sep {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
  padding: 0 2px;
}

/* ---- CA / Non-CA Selector ---- */
.residence-selector { margin-top: 8px; }
.selector-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.selector-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-selector {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-selector:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn-yes {
  background: #22c55e;
  color: var(--white);
}
.btn-no {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-yes.active { box-shadow: 0 0 0 3px rgba(34,197,94,0.5); }
.btn-no.active { box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ============================================
   SECTIONS — general
   ============================================ */
.section { padding: 72px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 44px;
}
.section-header { margin-bottom: 44px; }
.section-tag {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.ca-tag   { background: var(--ca-green-light); color: var(--ca-green); }
.nonca-tag { background: var(--nonca-blue-light); color: var(--nonca-blue); }

/* ---- Explainer Cards ---- */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.explainer-card {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.explainer-icon { font-size: 2rem; margin-bottom: 12px; }
.explainer-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.explainer-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }

/* ============================================
   CA SECTION
   ============================================ */
.section-ca { background: var(--ca-green-light); border-top: 4px solid var(--ca-green); }
.ca-header h2 { color: var(--ca-green); }

/* ---- Steps ---- */
.steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 36px; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(27,107,58,0.15);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--ca-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 2px;
}
.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.step-body p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }
.step-body a { color: var(--ca-green); font-weight: 600; }

.step-cta { text-align: center; margin: 36px 0 28px; }
.btn-primary {
  display: inline-block;
  background: var(--ca-green);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s;
  box-shadow: 0 4px 16px rgba(27,107,58,0.3);
}
.btn-primary:hover {
  background: #145a2f;
  transform: translateY(-2px);
  text-decoration: none;
}
.step-cta-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ca-green);
}

/* ---- AdSense wrap ---- */
.adsense-wrap { margin: 32px 0; min-height: 90px; }

/* ---- Info Box ---- */
.info-box {
  background: var(--white);
  border: 1px solid rgba(27,107,58,0.25);
  border-left: 4px solid var(--ca-green);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}
.info-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.info-box p  { font-size: 0.9rem; color: var(--text-light); }
.info-box-blue {
  border-color: rgba(26,58,143,0.2);
  border-left-color: var(--blue-mid);
}

/* ============================================
   NON-CA SECTION
   ============================================ */
.section-nonca { background: var(--nonca-blue-light); border-top: 4px solid var(--blue-mid); }
.nonca-header h2 { color: var(--nonca-blue); }

/* ---- State Table ---- */
.state-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 44px;
  box-shadow: var(--shadow);
}
.state-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}
.state-table-wrap { overflow-x: auto; }
.state-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.state-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--grey-100);
  border-bottom: 2px solid var(--grey-200);
  font-weight: 700;
  color: var(--grey-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.state-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--grey-100);
  color: var(--text-light);
}
.state-table tr.highlight-row td { background: #e8f5ed; color: var(--navy); }
.state-table tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red   { background: #fee2e2; color: #b91c1c; }
.badge-grey  { background: var(--grey-100); color: var(--grey-600); }
.table-note  { font-size: 0.82rem; color: var(--text-light); margin-top: 12px; }

/* ---- Broker Directory ---- */
.broker-dir-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.broker-dir-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.broker-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.broker-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.broker-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.broker-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; flex: 1; }
.broker-link {
  display: inline-block;
  margin-top: 4px;
  background: var(--blue-mid);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
  text-decoration: none;
}
.broker-link:hover { background: var(--blue); text-decoration: none; }

/* ---- VPN Section ---- */
.vpn-section {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.vpn-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.vpn-section p  { font-size: 0.92rem; color: var(--text-light); margin-bottom: 18px; }
.vpn-banner { overflow: hidden; border-radius: 8px; }
.vpn-banner img { display: block; width: 100%; max-width: 970px; margin: 0 auto; border-radius: 8px; }

/* ============================================
   ONGOING PROTECTION — AFFILIATE
   ============================================ */
.section-protection { background: var(--navy); color: var(--white); }
.section-protection h2 { color: var(--white); }
.section-protection .section-intro { color: rgba(255,255,255,0.72); }

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.affiliate-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color var(--transition);
}
.affiliate-card:hover { border-color: rgba(255,255,255,0.28); }
.affiliate-featured {
  border-color: #5b9cf6;
  background: rgba(91,156,246,0.08);
}
.affiliate-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: #5b9cf6;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.05em;
}
.affiliate-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.affiliate-price {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}
.affiliate-features {
  list-style: none;
  flex: 1;
}
.affiliate-features li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-left: 18px;
  position: relative;
}
.affiliate-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}
.btn-affiliate {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, opacity var(--transition);
  background: #5b9cf6;
  color: var(--navy);
}
.btn-affiliate:hover { transform: translateY(-1px); opacity: 0.9; text-decoration: none; }
.btn-affiliate-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.affiliate-disclosure {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ============================================
   FAQ
   ============================================ */
.section-faq { background: var(--off-white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--grey-100); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blue-mid);
  transition: transform var(--transition);
  line-height: 1;
}
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--grey-100);
}
.faq-a.open { display: block; }
.faq-a p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; padding-top: 14px; }

/* ============================================
   EMAIL SIGNUP
   ============================================ */
.section-email { background: var(--navy); padding: 60px 0; }
.email-signup-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}
.email-signup-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.email-signup-box p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 24px;
  line-height: 1.6;
}
#eo-form-container { width: 100%; }
#eo-form-container > div,
#eo-form-container .emailoctopus-form-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.7);
  padding: 52px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand strong {
  font-size: 1.1rem;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-links h4,
.footer-legal h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-links ul,
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a,
.footer-legal a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-legal a:hover { color: var(--white); }
.footer-bottom {
  padding: 18px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ============================================
   SECTION VISIBILITY (CA / Non-CA toggle)
   ============================================ */
[data-section] { transition: opacity 0.3s ease; }
[data-section].section-hidden {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .explainer-grid { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links li:not(:last-child) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 2rem; }
  .countdown { padding: 12px 16px; gap: 2px; }
  .countdown-unit { min-width: 44px; }
  .countdown-unit span { font-size: 1.8rem; }
  .selector-btns { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat strong { font-size: 1.4rem; }
  .section { padding: 48px 0; }
  .broker-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .email-signup-box { padding: 24px 18px; }
  .affiliate-grid { gap: 16px; }
  .nav-links { display: none; }
