/* ============================================================
   Consentik Homepage v3 — all styles scoped to #home-v3-root
   ============================================================ */

#home-v3-root {
  --bg: #ffffff;
  --bg-soft: #f4faf6;
  --ink: #053b3b;
  --ink-2: #0a4f48;
  --muted: #4a6a64;
  --muted-2: #7a8f8a;
  --line: #d8ebde;
  --line-strong: #b8d9c2;
  --primary: #045d2e;
  --green-deep: #045d2e;
  --green: #0fa84a;
  --check: #0fa84a;
  --accent: #def8a8;
  --highlight: #E7FD99;
  --danger: #d94545;
  --shadow-sm: 0 1px 2px rgba(10,18,48,.05), 0 2px 6px rgba(10,18,48,.04);
  --shadow: 0 4px 14px rgba(10,18,48,.06), 0 12px 40px rgba(10,18,48,.06);
  --shadow-lg: 0 24px 60px -20px rgba(10,18,48,.25), 0 8px 24px rgba(10,18,48,.08);
  --font-sans: "Lexend", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Lexend", -apple-system, BlinkMacSystemFont, sans-serif;

  display: block;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#home-v3-root *, #home-v3-root *::before, #home-v3-root *::after {
  box-sizing: border-box;
}

#home-v3-root img, #home-v3-root svg { display: block; max-width: 100%; }
#home-v3-root a { color: inherit; text-decoration: none; }
#home-v3-root button { font-family: inherit; cursor: pointer; }

/* Typography — override Tailwind preflight with !important */
#home-v3-root h1,
#home-v3-root h2,
#home-v3-root h3,
#home-v3-root h4 {
  font-family: var(--font-sans) !important;
  color: var(--ink);
  letter-spacing: -0.02em !important;
  margin: 0;
  font-weight: 700 !important;
  text-wrap: balance;
}
#home-v3-root h1 { font-size: clamp(38px, 5vw, 64px) !important; line-height: 1.05 !important; letter-spacing: -0.025em !important; }
#home-v3-root h2 { font-size: clamp(28px, 3.2vw, 44px) !important; line-height: 1.1 !important; }
#home-v3-root h3 { font-size: clamp(20px, 1.6vw, 24px) !important; line-height: 1.25 !important; }
#home-v3-root p  { margin: 0; color: var(--muted); text-wrap: pretty; }

/* Layout */
#home-v3-root .container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
#home-v3-root .container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
#home-v3-root section { position: relative; }

/* Buttons */
#home-v3-root .btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  font-family: var(--font-sans);
  cursor: pointer;
  line-height: 1;
}
#home-v3-root .btn-primary { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }
#home-v3-root .btn-primary:hover { background: var(--green-deep) !important; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(5,59,59,.4); }
#home-v3-root .btn-ghost { background: transparent !important; color: var(--ink) !important; border-color: var(--line-strong); }
#home-v3-root .btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft) !important; }
#home-v3-root .btn .arrow { transition: transform .2s ease; }
#home-v3-root .btn:hover .arrow { transform: translateX(2px); }
#home-v3-root .btn-sm { padding: 10px 16px !important; font-size: 14px; }

/* Pills */
#home-v3-root .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
#home-v3-root .pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--check);
  box-shadow: 0 0 0 4px rgba(33,193,121,.18);
  flex-shrink: 0;
}
#home-v3-root .pill-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; padding: 4px 8px; }

/* Surface */
#home-v3-root .surface { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; }

/* Utility */
#home-v3-root .mono { font-family: var(--font-mono) !important; }
#home-v3-root .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); font-weight: 600; opacity: .65; display: block;
}
#home-v3-root .hl {
  background: linear-gradient(180deg, transparent 60%, var(--highlight) 60%, var(--highlight) 92%, transparent 92%);
  padding: 0 4px;
}

/* Caret */
#home-v3-root .caret {
  display: inline-block; width: 3px; height: 0.95em;
  background: var(--green); margin-left: 4px; vertical-align: middle;
  animation: v3-blink 0.9s steps(1) infinite; border-radius: 1px;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  #home-v3-root .v3-hero-grid    { grid-template-columns: 1fr !important; gap: 40px !important; }
  #home-v3-root .v3-hero-right   { display: none !important; }
  #home-v3-root .v3-hero-badge   { display: none !important; }
  #home-v3-root .v3-steps-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  #home-v3-root .v3-reviews-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #home-v3-root .trusted-grid    { grid-template-columns: 1fr !important; gap: 28px !important; }
  #home-v3-root .trusted-col     { border-right: none !important; padding-right: 0 !important; }
  #home-v3-root .gcmp-grid       { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
  /* Section padding */
  #home-v3-root section { padding-top: 64px !important; padding-bottom: 64px !important; }
  #home-v3-root .container,
  #home-v3-root .container-wide { padding: 0 16px !important; }

  /* Hero */
  #home-v3-root .v3-hero-grid { gap: 28px !important; }

  /* Scan */
  #home-v3-root .v3-scan-grid  { grid-template-columns: 1fr !important; gap: 28px !important; }
  #home-v3-root .v3-scan-right { display: none !important; }

  /* Features */
  #home-v3-root .v3-features-grid { grid-template-columns: 1fr !important; }

  /* IAB */
  #home-v3-root .v3-iab-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* 3-step setup */
  #home-v3-root .v3-steps-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  #home-v3-root .v3-steps-header p { max-width: 100% !important; }
  #home-v3-root .v3-steps-grid { grid-template-columns: 1fr !important; }

  /* Testimonials */
  #home-v3-root .v3-reviews-grid { grid-template-columns: 1fr !important; }

  /* FAQ */
  #home-v3-root .v3-faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Scan form on dark bg */
  #home-v3-root #scan-form { flex-direction: column !important; }
  #home-v3-root #scan-form button { width: 100% !important; justify-content: center; }

  /* Hero h1 */
  #home-v3-root h1 { font-size: clamp(32px, 8vw, 48px) !important; }
}

/* Scroll reveal */
#home-v3-root .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16,.84,.32,1), transform .9s cubic-bezier(.16,.84,.32,1), filter .9s ease;
  filter: blur(6px); will-change: opacity, transform, filter;
}
#home-v3-root .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
#home-v3-root .reveal-scale { transform: scale(.92); filter: none; }
#home-v3-root .reveal-scale.in { transform: scale(1); opacity: 1; }
#home-v3-root .reveal-fade { transform: none; filter: none; }
#home-v3-root .reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.84,.32,1), transform .7s cubic-bezier(.16,.84,.32,1);
}
#home-v3-root .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
#home-v3-root .reveal-stagger.in > *:nth-child(1) { transition-delay: .04s; }
#home-v3-root .reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
#home-v3-root .reveal-stagger.in > *:nth-child(3) { transition-delay: .20s; }
#home-v3-root .reveal-stagger.in > *:nth-child(4) { transition-delay: .28s; }
#home-v3-root .reveal-stagger.in > *:nth-child(5) { transition-delay: .36s; }
#home-v3-root .reveal-stagger.in > *:nth-child(6) { transition-delay: .44s; }

@media (prefers-reduced-motion: reduce) {
  #home-v3-root .reveal, #home-v3-root .reveal-stagger > * {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
}

#home-v3-root ::selection { background: var(--highlight); color: var(--ink); }

/* Keyframes */
@keyframes v3-blink   { 50% { opacity: 0; } }
@keyframes v3-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes v3-sweep   { to { transform: rotate(360deg); } }
@keyframes v3-spin    { to { transform: rotate(360deg); } }
@keyframes v3-blip {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231,253,153,.6); opacity: 1; }
  50% { transform: scale(1.4); box-shadow: 0 0 0 10px rgba(231,253,153,0); opacity: .85; }
}
