/* ============================================================
   AdPlexity Social Coupon — Official-brand dark/purple UI
   Palette matched to adplexity.io:
   #000000 · #151515 · #f7f7f9 · #ffffff · #6637ed
   ============================================================ */

:root {
  --black: #000000;
  --dark: #151515;
  --canvas: #f7f7f9;
  --white: #ffffff;
  --purple: #6637ed;
  --purple-dark: #5429cc;      /* hover shade of brand purple */
  --purple-light: #9d7bff;     /* readable tint on dark backgrounds */
  --purple-tint: rgba(102, 55, 237, 0.08);
  --purple-tint-strong: rgba(102, 55, 237, 0.16);
  --ink: #151515;
  --muted: #55555f;
  --muted-dark: #b9b9c7;       /* muted text on dark backgrounds */
  --border: #e6e6ec;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(21, 21, 21, 0.07);
  --shadow-lg: 0 10px 34px rgba(21, 21, 21, 0.13);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--white);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-badge {
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand .brand-accent { color: var(--purple-light); }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.main-nav a.nav-cta {
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
}
.main-nav a.nav-cta:hover { background: var(--purple-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.25rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-blue, .btn-orange {
  background: var(--purple);
  color: var(--white) !important;
}
.btn-blue:hover, .btn-orange:hover { background: var(--purple-dark); }
/* Annual-deal button: dark by default (for light cards/sidebars)… */
.btn-green {
  background: var(--dark);
  color: var(--white) !important;
  border: 2px solid var(--dark);
}
.btn-green:hover { background: var(--black); border-color: var(--black); }
/* …but white when it sits on a dark surface (hero, CTA band, dark sidebar card) */
.deal-hero .btn-green,
.article-hero .btn-green,
.final-cta-band .btn-green,
.sidebar-deal .btn-green,
.block-cta .btn-green {
  background: var(--white);
  color: var(--dark) !important;
  border-color: var(--white);
}
.deal-hero .btn-green:hover,
.article-hero .btn-green:hover,
.final-cta-band .btn-green:hover,
.sidebar-deal .btn-green:hover,
.block-cta .btn-green:hover { background: var(--canvas); border-color: var(--canvas); }
.btn-outline-light {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.deal-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--black) 100%);
  color: var(--white);
  padding: 35px 0 35px;
}

/* ============================================================
   ReactBits-inspired effects (used with js/effects.js)
   ============================================================ */

/* Aurora — animated gradient blobs behind dark heroes */
.fx-aurora-host { position: relative; overflow: hidden; isolation: isolate; }
.fx-aurora-host > .container { position: relative; z-index: 2; }
.fx-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.fx-aurora-1 {
  width: 480px; height: 480px;
  left: -120px; top: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(102, 55, 237, 0.85), transparent 65%);
  animation: fx-aurora-a 16s ease-in-out infinite alternate;
}
.fx-aurora-2 {
  width: 420px; height: 420px;
  right: -100px; top: -120px;
  background: radial-gradient(circle at 60% 40%, rgba(157, 123, 255, 0.5), transparent 65%);
  animation: fx-aurora-b 20s ease-in-out infinite alternate;
}
.fx-aurora-3 {
  width: 380px; height: 380px;
  left: 38%; bottom: -220px;
  background: radial-gradient(circle at 50% 50%, rgba(84, 41, 204, 0.6), transparent 65%);
  animation: fx-aurora-c 18s ease-in-out infinite alternate;
}
@keyframes fx-aurora-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(90px, 50px) scale(1.18); }
}
@keyframes fx-aurora-b {
  0%   { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-80px, 40px) scale(0.92); }
}
@keyframes fx-aurora-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -50px) scale(1.22); }
}

/* BlurText — word-by-word blur+rise reveal on hero H1 */
.fx-blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.45em);
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
}
.fx-blur-in .fx-blur-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ScrollReveal — fade/rise on scroll */
.fx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fx-reveal.fx-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SpotlightCard — mouse-tracking radial glow */
.fx-spotlight { position: relative; overflow: hidden; }
.fx-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--fx-x, 50%) var(--fx-y, 50%),
              rgba(102, 55, 237, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.fx-spotlight:hover::after { opacity: 1; }

/* ShinyText — moving sheen across primary CTAs */
.fx-shine { position: relative; overflow: hidden; }
.fx-shine::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent 20%,
              rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: skewX(-20deg);
  animation: fx-shine-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fx-shine-sweep {
  0%, 55% { left: -80%; }
  100%    { left: 130%; }
}

/* Hero art — wrapper bobs, image/coupon box tilts toward pointer */
.fx-float { animation: fx-float-bob 6s ease-in-out infinite; }
.fx-float img, .fx-float .hero-coupon-box { transition: transform 0.25s ease; will-change: transform; }
@keyframes fx-float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-aurora-blob, .fx-shine::before, .fx-float { animation: none !important; }
  .fx-reveal { opacity: 1; transform: none; transition: none; }
  .fx-blur-word { opacity: 1; filter: none; transform: none; transition: none; }
}
.deal-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.deal-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--muted-dark);
  max-width: 700px;
  margin: 0 0 26px;
}
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-tint-strong);
  border: 1px solid rgba(102, 55, 237, 0.6);
  color: var(--purple-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-disclosure { font-size: 0.8rem; color: #8a8a96; max-width: 640px; }

/* Hero with illustration */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}
.hero-art { min-width: 0; }
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

/* ---------------- Homepage hero coupon box (ticket style) ---------------- */
.hero-coupon-box {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--ink);
  max-width: 400px;
  margin-left: auto;
}


.hcb-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(102, 55, 237, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hcb-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 2px;
}
.hcb-off {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--purple);
  letter-spacing: -0.03em;
}
.hcb-off small { font-size: 2rem; font-weight: 800; }
.hcb-off-label {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hcb-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hcb-now { font-size: 1.7rem; font-weight: 800; color: var(--dark); }
.hcb-was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.hcb-per { font-size: 0.88rem; color: var(--muted); }

.hcb-perks {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.hcb-perks li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
}
.hcb-perks i { color: var(--purple); font-size: 0.8rem; }

.hcb-divider {
  position: relative;
  border-top: 2px dashed var(--border);
  margin: 12px -26px 14px;
}
/* ticket notches punched at the perforation line */
.hcb-divider::before,
.hcb-divider::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--black); /* matches hero gradient end */
  top: -14px;
  z-index: 2;
}
.hcb-divider::before { left: -13px; }
.hcb-divider::after { right: -13px; }

.hcb-code-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}
.hcb-coupon-row { margin-bottom: 12px; }
.hcb-cta { margin-bottom: 12px; }

.hcb-annual {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.hcb-annual strong { color: var(--dark); }
.hcb-annual-code {
  background: var(--purple-tint);
  color: var(--purple);
  border: 1px dashed rgba(102, 55, 237, 0.5);
  border-radius: 6px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 7px;
  cursor: pointer;
}
.hcb-annual-code:hover { background: var(--purple-tint-strong); }
.hcb-annual-code.copied { background: var(--purple); color: var(--white); }

.hcb-verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--purple);
}

@media (max-width: 900px) {
  .hero-coupon-box { margin: 10px auto 0; max-width: 420px; }
  .hcb-divider::before, .hcb-divider::after { display: none; }
}

/* ---------------- Proof strip ---------------- */
.proof-strip { background: var(--black); border-top: 1px solid #222; padding: 26px 0; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.proof-card { text-align: center; color: var(--white); padding: 8px 4px; }
.proof-card .proof-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--purple-light);
  display: block;
}
.proof-card .proof-label { font-size: 0.85rem; color: var(--muted-dark); }

/* ---------------- Sections ---------------- */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--dark);
}
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 34px; font-size: 1.05rem; }

/* ---------------- Pricing / deal cards ---------------- */
.deal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.deal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.deal-card .deal-head {
  padding: 18px 24px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.deal-head-orange { background: var(--purple); }
.deal-head-green { background: var(--dark); }
.deal-head .deal-tag {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.deal-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.deal-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.deal-price .price-now {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}
.deal-price .price-was {
  font-size: 1.2rem;
  color: var(--purple);
  text-decoration: line-through;
  white-space: nowrap;
}
.deal-price .price-unit { color: var(--muted); font-size: 0.95rem; }
.deal-note { color: var(--muted); font-size: 0.95rem; margin: 0; }
.deal-save {
  background: var(--purple-tint);
  border: 1px solid rgba(102, 55, 237, 0.4);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 10px 14px;
}

.coupon-row {
  display: flex;
  align-items: stretch;
  border: 2px dashed var(--purple);
  border-radius: 10px;
  overflow: hidden;
  background: var(--purple-tint);
}
.coupon-row .coupon-code {
  flex: 1;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--purple);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  user-select: all;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
.coupon-row .coupon-copy-btn {
  background: var(--purple);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 18px;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
}
.coupon-row .coupon-copy-btn:hover { background: var(--purple-dark); }
.coupon-row .coupon-copy-btn.copied { background: var(--dark); color: var(--white); }

.deal-cta-wrap { margin-top: auto; padding-top: 4px; }

/* ---------------- Article loading skeleton ---------------- */
.article-skeleton { padding: 4px 0; }
.sk {
  position: relative;
  overflow: hidden;
  background: #ececf2;
  border-radius: 8px;
}
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: sk-shimmer 1.4s ease-in-out infinite;
}
@keyframes sk-shimmer {
  100% { transform: translateX(100%); }
}
.sk-line { height: 16px; margin-bottom: 14px; }
.sk-line.sk-w40 { width: 40%; height: 26px; margin-bottom: 20px; }
.sk-line.sk-w50 { width: 50%; height: 22px; margin-top: 10px; }
.sk-line.sk-w60 { width: 60%; }
.sk-line.sk-w75 { width: 75%; }
.sk-line.sk-w85 { width: 85%; }
.sk-line.sk-w90 { width: 90%; }
.sk-block { height: 150px; margin: 20px 0; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
}

/* ---------------- Article hub cards ---------------- */
.batch-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.batch-1 { background: var(--purple-tint-strong); color: var(--purple); }
.batch-2 { background: rgba(21, 21, 21, 0.08); color: var(--dark); }
.batch-3 { background: var(--purple-tint); color: var(--purple); border: 1px solid rgba(102, 55, 237, 0.3); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  color: var(--ink);
  overflow: hidden; /* clip the full-bleed thumbnail */
  min-width: 0;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.article-card .card-thumb {
  align-self: stretch;      /* stretch to card width, then bleed via margins */
  width: auto;
  max-width: none;
  margin: -22px -22px 4px;
  border-radius: 0;         /* card overflow:hidden rounds the top corners */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-card .card-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--purple);
}
.article-card h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}
.article-card p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1; }
.article-card .card-link { font-weight: 700; font-size: 0.9rem; color: var(--purple); }

/* ---------------- Feature tiles ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-tile {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-tile .tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--purple);
  margin-bottom: 14px;
}
.feature-tile:nth-child(even) .tile-icon { background: var(--dark); }
.feature-tile h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--dark); }
.feature-tile p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------------- Final CTA band ---------------- */
.final-cta-band {
  background: linear-gradient(160deg, var(--purple) 0%, #3d1d99 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.final-cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; font-weight: 800; }
.final-cta-band p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 26px; }
.final-cta-band .hero-ctas { justify-content: center; }
.final-cta-band .btn-orange { background: var(--white); color: var(--purple) !important; }
.final-cta-band .btn-orange:hover { background: var(--canvas); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--black);
  color: #8a8a96;
  padding: 44px 0 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #8a8a96; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #6b6b76;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--black) 100%);
  color: var(--white);
  padding: 35px 0 35px;
}
.article-hero .breadcrumbs {
  font-size: 0.82rem;
  color: #8a8a96;
  margin-bottom: 16px;
}
.article-hero .breadcrumbs a { color: var(--muted-dark); }
.article-hero h1 {
  font-size: 40px;
  line-height: 1.18;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted-dark);
}
.article-hero .article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-hero .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 36px; }
.article-hero .hero-art img { max-height: 240px; object-fit: cover; width: 100%; }

/* Featured image inside article body */
.article-featured-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 0 8px;
}
figure.article-figure { margin: 26px 0; }
figure.article-figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding: 48px 0 64px;
  align-items: start;
}

/* Article body typography */
.article-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
  min-width: 0;
}
.article-body > h1:first-child { display: none; } /* H1 already in hero */
.article-body h2 {
  font-size: 1.55rem;
  color: var(--dark);
  font-weight: 800;
  margin: 42px 0 14px;
  padding-top: 18px;
  border-top: 3px solid var(--canvas);
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}
.article-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.article-body h3 {
  font-size: 1.18rem;
  color: var(--dark);
  font-weight: 700;
  margin: 28px 0 10px;
  scroll-margin-top: 90px;
}
.article-body h4 { font-size: 1.02rem; color: var(--dark); margin: 22px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
.article-body li { margin-bottom: 7px; }
.article-body strong { color: var(--black); }

.article-body code {
  background: var(--purple-tint);
  color: var(--purple);
  border: 1px solid rgba(102, 55, 237, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
  font-weight: 600;
  user-select: all;
  overflow-wrap: anywhere;
}
.article-body pre {
  background: var(--black);
  color: #e6e0ff;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.88rem;
  margin: 0 0 18px;
}
.article-body pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-weight: 400;
  user-select: text;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: 10px; border: 1px solid var(--border); }
.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  min-width: 560px;
}
.article-body th {
  background: var(--dark);
  color: var(--white);
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  white-space: nowrap;
}
.article-body td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) { background: var(--canvas); }

/* Blockquotes → styled blocks */
.article-body blockquote {
  margin: 26px 0;
  padding: 22px 26px;
  border-radius: 12px;
  background: var(--purple-tint);
  border-left: 5px solid var(--purple);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Semantic block variants (set by renderer via data-block) */
.block-verified, .block-answer {
  background: var(--purple-tint) !important;
  border-left-color: var(--purple) !important;
}
.block-monthly, .block-annual {
  background: var(--purple-tint) !important;
  border-left-color: var(--purple) !important;
}
.block-warning {
  background: rgba(21, 21, 21, 0.05) !important;
  border-left-color: var(--dark) !important;
}
.block-compliance, .block-originality {
  background: rgba(21, 21, 21, 0.05) !important;
  border-left-color: var(--black) !important;
}
.block-cta {
  background: var(--black) !important;
  border-left-color: var(--purple) !important;
  color: #dcdce4;
}
.block-cta strong, .block-cta b { color: var(--white); }
.block-cta code { background: rgba(255,255,255,0.1); color: var(--purple-light); border-color: rgba(255,255,255,0.22); }
.block-cta a:not(.btn) { color: var(--purple-light); }
.block-cta .btn { margin-top: 6px; }

/* Inline copy chip injected next to coupon codes */
.code-copy-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  vertical-align: middle;
}
.code-copy-chip:hover { background: var(--purple-dark); }
.code-copy-chip.copied { background: var(--dark); color: var(--white); }

/* CTA links inside article rendered as buttons */
.article-body a.md-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white) !important;
  font-weight: 700;
  padding: 13px 24px;
  min-height: 46px;
  border-radius: 10px;
  margin: 4px 0;
}
.article-body a.md-cta-btn:hover { background: var(--purple-dark); text-decoration: none; }

/* ---------------- FAQ boxes (built by renderer) ---------------- */
.faq-heading { position: relative; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 26px;
}
.faq-item {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 55, 237, 0.35);
  border-left-color: var(--purple);
  transform: translateY(-1px);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-q-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--purple-tint-strong);
  color: var(--purple);
  font-size: 0.95rem;
  margin-top: 1px;
}
.article-body .faq-q-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
}
.faq-a {
  margin-top: 10px;
  padding-left: 38px;
  color: var(--muted);
  font-size: 0.97rem;
}
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child, .faq-a ul:last-child, .faq-a ol:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--dark); }
@media (max-width: 600px) {
  .faq-item { padding: 16px 16px; }
  .faq-a { padding-left: 0; }
}

/* ---------------- Sidebar ---------------- */
.article-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.sidebar-deal {
  background: var(--black);
  color: var(--white);
  border: none;
}
.sidebar-deal h3 { color: var(--purple-light); }
.sidebar-deal .side-price { font-size: 2rem; font-weight: 800; }
.sidebar-deal .side-was { color: var(--purple-light); text-decoration: line-through; font-size: 1rem; margin-left: 8px; }
.sidebar-deal p { font-size: 0.85rem; color: var(--muted-dark); margin: 8px 0 14px; }
.sidebar-deal .coupon-row { background: rgba(255,255,255,0.06); margin-bottom: 12px; }
.sidebar-deal .coupon-row .coupon-code { color: var(--purple-light); }

.toc-list { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; max-height: 320px; overflow-y: auto; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  color: var(--muted);
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  border-left: 3px solid transparent;
}
.toc-list a:hover { background: var(--canvas); color: var(--purple); text-decoration: none; }

.related-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.related-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--canvas); }
.related-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-list a { color: var(--dark); font-weight: 600; }
.related-list a:hover { color: var(--purple); }

/* ---------------- Sticky mobile CTA ---------------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--black);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 70;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.sticky-cta .btn { width: 100%; min-height: 46px; font-size: 0.95rem; }

/* Loading state */
.article-loading { text-align: center; color: var(--muted); padding: 70px 0; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; }
  .hero-grid, .article-hero .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { max-width: 560px; }
  .article-sidebar { position: static; order: 2; }
  .article-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .deal-hero h1, .article-hero h1 { font-size: 30px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.45);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; min-height: 44px; display: flex; align-items: center; }
  .deal-cards { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-body { padding: 26px 20px; }
  .deal-price .price-now { font-size: 2.2rem; }
  .sticky-cta.show { display: block; }
  .section { padding: 44px 0; }
}
