/* ============================================================
   FOLLOWER-SITE-FACTORY — base stylesheet
   ------------------------------------------------------------
   This file is the reusable ENGINE. Every new site edits ONLY
   the token block at the top (colors, fonts, radius) — the
   component rules below never change. This is how 50 sites can
   look genuinely different while all being "obviously well made."

   Rules encoded here (see 02-build-checklist.md for the source):
   - ONE accent color, rationed to CTA / "Most Popular" / verified ticks
   - neutral canvas + ink, no IG gradient washes
   - sticky mobile buy-bar, discrete package cards, one popular badge
   - restrained shadows, hairline borders, no colored glows
   ============================================================ */

:root {
  /* ---- BRAND TOKENS — the ONLY block a new site should edit ----------
     FOLLOWERS.CHEAP identity v2 (2026-07-14): full Path-Social clone per
     Charlie's request. Raspberry #EE1D52, Poppins/Roboto, promo-red +
     orange + yellow secondaries live in css/site.css (--ps-*). */
  --canvas:       #FFFFFF;   /* page background */
  --surface:      #FFFFFF;   /* cards */
  --surface-2:    #F7F7F7;   /* alt/tinted bands, segmented-control track */
  --ink:          #111111;   /* body text / headings */
  --ink-muted:    #555555;
  --ink-faint:    #8A8F98;
  --line:         #EAEAEA;
  --line-strong:  #D9D9D9;

  --accent:       #EE1D52;   /* Path-Social raspberry */
  --accent-hover: #D0143F;
  --accent-ink:   #FFFFFF;
  --accent-tint:  #FDE8EE;
  --accent-ring:  rgba(238,29,82,.28);

  --ok:           #17A66B;
  --ok-tint:      #E7F6EF;
  --danger:       #E0264C;
  --trustpilot:   #00B67A;   /* never restyle this one — it's the real widget's color */

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Roboto', system-ui, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;

  /* ---- everything below is the fixed engine — do not edit per-site --- */
  --shadow-sm: 0 1px 2px rgba(20,20,26,.05);
  --shadow-md: 0 8px 24px -12px rgba(20,20,26,.12);
  --shadow-lg: 0 20px 48px -24px rgba(20,20,26,.18);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0;
}
h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.375rem); }
p { margin: 0 0 1em; color: var(--ink-muted); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.num, .price { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
section { padding-block: clamp(56px, 4vw + 32px, 112px); }
.hairline { height: 1px; background: var(--line); border: 0; }

/* ---- BUTTONS ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding-inline: 24px; border-radius: var(--r-md);
  font-weight: 700; font-size: 16px; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out);
  touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
@media (max-width: 640px) { .btn { width: 100%; height: 52px; } }

/* ---- HEADER / NAV ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; padding: 8px; }
.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px;
  display: none; align-items: center; justify-content: center;
}
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---- HERO --------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 64px); }
.hero .lead { max-width: 560px; font-size: 19px; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--ink-muted); }
.stars { color: #F2A93B; letter-spacing: 2px; }
.ticker {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface-2);
  border-radius: var(--r-full); padding: 8px 16px; font-size: 14px; color: var(--ink-muted); margin-top: 16px;
}
.ticker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--ink-muted); }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure svg { color: var(--ok); flex: 0 0 auto; }

/* ---- SEGMENTED CONTROL (platform / service tabs) ------------------------ */
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-full); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; font-family: var(--font-body); font-weight: 700;
  font-size: 14px; color: var(--ink-muted); padding: 8px 18px; border-radius: var(--r-full); cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---- PACKAGE CARDS ------------------------------------------------------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.pack {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px 22px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pack:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } }
.pack--popular { border: 2px solid var(--accent); }
.pack__badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-full); padding: 4px 14px; white-space: nowrap;
}
.pack__qty { font-size: 15px; color: var(--ink-muted); font-weight: 600; }
.pack__price { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin: 6px 0 2px; }
.pack__anchor { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.strike { color: var(--ink-faint); text-decoration: line-through; font-size: 14px; }
.pack__save { background: var(--ok-tint); color: var(--ok); font-weight: 700; font-size: 12px; border-radius: var(--r-sm); padding: 2px 8px; }
.pack ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--ink-muted); display: grid; gap: 8px; }
.pack li { display: flex; gap: 8px; align-items: flex-start; }
.pack li svg { color: var(--ok); flex: 0 0 auto; margin-top: 3px; }
.pack .btn { width: 100%; }
.pack__meta { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* ---- TRUST RAIL ----------------------------------------------------------- */
.rail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; color: var(--ink-muted);
  font-size: 14px; font-weight: 600; margin-top: 20px;
}
.rail .item { display: inline-flex; align-items: center; gap: 8px; }
.rail .item svg { color: var(--ok); flex: 0 0 auto; }
.pay-logos { display: inline-flex; gap: 6px; align-items: center; }
.pay-logos .logo {
  width: 36px; height: 24px; border-radius: 4px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px;
  font-weight: 700; color: var(--ink-muted); background: var(--surface-2);
}

/* ---- REVIEWS ---------------------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.review .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: var(--r-full); background: var(--accent-tint);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  font-family: var(--font-display);
}
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: 12px; font-weight: 700; margin-top: 2px; }
.trustpilot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.tp-badge { background: var(--trustpilot); color: #fff; border-radius: 4px; padding: 4px 8px; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }

/* ---- COMPARISON TABLE --------------------------------------------------------- */
.cmp-wrap { overflow-x: auto; margin-top: 24px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-width: 480px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; }
table.cmp td.us { color: var(--accent); font-weight: 700; }
table.cmp td.them { color: var(--ink-faint); }
table.cmp tr:last-child td { border-bottom: 0; }

/* ---- FAQ ACCORDION ------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; text-align: left; padding: 18px 0; font-weight: 700;
  font-size: 16px; font-family: var(--font-body); cursor: pointer; color: var(--ink);
}
.faq-q svg { transition: transform 200ms var(--ease-out); flex: 0 0 auto; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 18px; }

/* ---- STICKY MOBILE BUY BAR ------------------------------------------------------ */
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: none; align-items: center;
  justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
}
@media (max-width: 900px) { .buybar.is-active { display: flex; } }

/* ---- CART DRAWER ------------------------------------------------------------------ */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100vw); background: var(--surface);
  box-shadow: var(--shadow-lg); z-index: 90; transform: translateX(100%);
  transition: transform 260ms var(--ease-out); display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-scrim { position: fixed; inset: 0; background: rgba(20,20,26,.4); z-index: 89; opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease-out); }
.cart-scrim.open { opacity: 1; pointer-events: auto; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 14px; }
.cart-item-meta { font-size: 13px; color: var(--ink-muted); }
.cart-foot { padding: 20px; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 48px 0; color: var(--ink-faint); }

/* ---- FOOTER --------------------------------------------------------------------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 48px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); }
.footer-disclaimer { font-size: 13px; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 24px; max-width: 720px; }

/* ---- MOTION SAFETY -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---- FONT LOAD (swap the @import in <head> per site instead if preferred) ------- */
