/* =========================================================================
   Autodots Blog CTA  —  v1.1
   Theme-hook placement (Revision theme)
     · Top banner   → above featured image  (csco_post_before)
     · Sticky card  → top of sidebar         (csco_sidebar_start)
     · Bottom hero  → below post content     (csco_post_after)
     · Green strip  → after bottom hero      (csco_post_after)
   ========================================================================= */

:root {
  --adcta-black: #0a0a0a;
  --adcta-black-2: #1a1a1a;
  --adcta-green: #22c55e;
  --adcta-green-d: #16a34a;
  --adcta-amber: #ffd60a;
  --adcta-muted: rgba(255,255,255,.72);
  --adcta-border: rgba(255,255,255,.12);
  --adcta-radius: 18px;
  --adcta-radius-lg: 24px;
}

.adcta,
.adcta * { box-sizing: border-box; }

.adcta {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.adcta a { text-decoration: none; }
.adcta h2, .adcta h3 { color: inherit; margin: 0; letter-spacing: -0.02em; }
/*.adcta p { margin: 0; }*/

/* ---- Shared kicker pill ---- */
.adcta-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: var(--adcta-amber);
  color: var(--adcta-black);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.adcta-kicker--light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid var(--adcta-border);
}

/* ---- Buttons ---- */
.adcta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    background-color .22s ease,
    color .22s ease,
    border-color .22s ease,
    box-shadow .25s ease;
  will-change: transform;
}
.adcta-btn:hover { transform: translateY(-2px); }
.adcta-btn:active {
  transform: translateY(0);
  transition-duration: .08s;
}
.adcta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34,197,94,.45);
}

/* Primary green: solid → darker green + lift + green halo */
.adcta-btn--green {
  background: var(--adcta-green);
  color: var(--adcta-black);
  border-color: var(--adcta-green);
}
.adcta-btn--green:hover {
  background: var(--adcta-green-d);
  border-color: var(--adcta-green-d);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(22,163,74,.55);
}
.adcta-btn--green:active {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 4px 12px -4px rgba(22,163,74,.45);
}

/* Ghost: outline → full white invert (Shopify-style on dark surfaces) */
.adcta-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.adcta-btn--ghost:hover {
  background: #fff;
  color: var(--adcta-black);
  border-color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255,255,255,.18);
}
.adcta-btn--ghost:hover .adcta-play {
  background: rgba(10,10,10,.1);
  color: var(--adcta-black);
}

/* Dark (used on green Customer strip): solid black → lifts cleanly */
.adcta-btn--dark {
  background: var(--adcta-black);
  color: #fff;
  border-color: var(--adcta-black);
}
.adcta-btn--dark:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.3);
}

/* Light (reserved for cases over green/light surfaces) */
.adcta-btn--light {
  background: #fff;
  color: var(--adcta-black);
  border-color: #fff;
}
.adcta-btn--light:hover {
  background: var(--adcta-black);
  color: #fff;
  border-color: var(--adcta-black);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
}

/* Polished play icon in pill (inline-flex avoids gap math issues) */
.adcta-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  margin-left: -0.35rem;
  transition: background-color .22s ease, color .22s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  color: inherit;
}
.adcta-play svg {
  display: block;
  margin-left: 1px; /* optical centering for play triangle */
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.adcta-btn--ghost:hover .adcta-play svg { transform: scale(1.08); }

.adcta-btn--lg {
  padding: 1.15rem 2.2rem;
  font-size: 1.05rem;
}

/* ===================================================================
   1. TOP BANNER  (above breadcrumbs / featured image / title)
   =================================================================== */
.adcta-top-wrap {
  margin: 1.5rem 0 2.5rem;
}
.adcta-top {
  position: relative;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(280px, 2fr) minmax(140px, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  isolation: isolate;
  margin: 0 0 2rem;
}
.adcta-top::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(245,158,11,.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.adcta-top-content { text-align: center; padding: 1.75rem 1rem 1.85rem; }
.adcta-top-content .adcta-kicker { margin-bottom: 0.85rem; }
.adcta-top-content .adcta-h {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.65rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.adcta-top-content .adcta-p {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  color: var(--adcta-muted);
  margin: 0 auto 1.15rem;
  max-width: 52ch;
  line-height: 1.5;
}
.adcta-cta-row {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.adcta-pricing {
  margin: 2.25rem 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.01em;
}

.adcta-top-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  min-height: 0;
  overflow: visible;
}
.adcta-top-visual img,
.adcta-top-visual .adcta-svg-art {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}
.adcta-top-visual img {
  border-radius: 18px;
  object-fit: cover;
}
.adcta-top-visual--left  .adcta-svg-art { transform: translateX(-6%); }
.adcta-top-visual--right .adcta-svg-art { transform: translateX(6%); }
.adcta-top-visual--left  img { transform: translateX(-4%) rotate(-2deg); }
.adcta-top-visual--right img { transform: translateX(4%)  rotate(2deg); }

/* ===================================================================
   2. FLOATING STICKY WIDGET  (rendered via wp_footer; position: fixed)
   ─ Designed to match Shopify's "Start for free" sticky card:
     generous padding, big bold headline with 1.25 line-height,
     full-width underlined CTA with chevron on the right.
   =================================================================== */
.adcta-side {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  z-index: 9998;
  margin: 0;
  /* hidden until JS reveals on scroll */
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition:
    opacity .28s cubic-bezier(.2,.8,.2,1),
    transform .32s cubic-bezier(.2,.8,.2,1);
}
.adcta-side.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.adcta-side.is-dismissed {
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
}

.adcta-side-inner {
  background: var(--adcta-black);
  color: #fff;
  border-radius: 22px;
  padding: 2.1rem 1.9rem 1.7rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 28px 56px -18px rgba(0,0,0,.55),
    0 10px 24px -10px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.05) inset;
}
.adcta-side-inner::after {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.22), transparent 70%);
  pointer-events: none;
}

/* Close button — circle with × icon, rotates on hover */
.adcta-side-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition:
    background-color .2s ease,
    color .2s ease,
    transform .25s cubic-bezier(.2,.8,.2,1);
}
.adcta-side-close:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: rotate(90deg);
}
.adcta-side-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34,197,94,.6);
}
.adcta-side-close svg { display: block; }

/* Kicker — small green pill-style label */
.adcta-side-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--adcta-green);
  margin: 0 0 1.1rem;
  padding-right: 36px; /* clear close button */
  line-height: 1;
}

/* Big bold headline with proper line-height (Shopify-style) */
.adcta-side-h {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Pricing/sub text — generous line-height, room to breathe */
.adcta-side-sub {
  color: rgba(255,255,255,.7);
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Full-width underlined CTA with chevron on the right */
.adcta-side-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.85);
  transition: color .2s ease, border-color .2s ease;
}
.adcta-side-cta:hover {
  color: var(--adcta-green);
  border-color: var(--adcta-green);
}
.adcta-side-cta-text {
  display: inline-block;
}
.adcta-side-cta-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.adcta-side-cta:hover .adcta-side-cta-arrow {
  transform: translateX(4px);
}

/* Hide on tablet/mobile — small screens already have plenty of CTAs */
@media (max-width: 1024px) {
  .adcta-side { display: none !important; }
}

/* ===================================================================
   3. BOTTOM HERO  — Plain black, Shopify-style
   ─ Plain solid black background — no watermark, no glows
   ─ Headline: line-height 1.15, text-wrap balance for clean 2-line break
   ─ Body: line-height 1.45 (Shopify-tight, no over-spacing between lines)
   ─ Spacing rhythm: headline → body 1.5rem · body → button 2.25rem · button → foot 1.1rem
   =================================================================== */
.adcta-bottom {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding: 7rem 3rem 6rem;
  text-align: center;
  isolation: isolate;
  margin: 3rem 0 1.25rem;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Plain black — kill all decorative layers */
.adcta-bottom-bg,
.adcta-bottom-mark,
.adcta-bottom-accent { display: none; }

.adcta-bottom-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Optional kicker pill */
.adcta-bottom-inner .adcta-kicker--light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.16);
  margin: 0 0 1.8rem;
}

/* Headline — Shopify-style: 2 clean lines, just enough breathing room.
   line-height 1.15 looks balanced at the large size without feeling airy. */
.adcta-bottom-h {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  color: #fff;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 16ch;
}

/* Body — Shopify-tight: line-height 1.45, no over-spacing between wrapped lines */
.adcta-bottom-p {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  color: rgba(255,255,255,.78);
  margin: 0 auto 2.25rem;
  max-width: 50ch;
  line-height: 1.45;
  font-weight: 400;
  text-wrap: pretty;
}

/* Green solid pill — high contrast on black */
.adcta-bottom-inner > .adcta-btn {
  background: var(--adcta-green);
  color: #0a0a0a;
  border-color: var(--adcta-green);
  padding: 1.25rem 2.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  box-shadow: 0 14px 32px -14px rgba(34,197,94,.4);
}
.adcta-bottom-inner > .adcta-btn:hover {
  background: var(--adcta-green-d);
  border-color: var(--adcta-green-d);
  color: #fff;
  box-shadow: 0 18px 36px -10px rgba(22,163,74,.5);
}
.adcta-bottom-inner > .adcta-btn:active {
  background: #15803d;
  border-color: #15803d;
}

/* Pricing footnote — sits close to button (Shopify rhythm) */
.adcta-bottom-foot {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* App badges — light variant on dark surface */
.adcta-bottom .adcta-apps {
  margin-top: 2rem;
}
.adcta-bottom .adcta-app {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.adcta-bottom .adcta-app:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* Mobile — tighter padding, smaller fonts */
@media (max-width: 720px) {
  .adcta-bottom {
    padding: 4rem 1.5rem 3.5rem;
    border-radius: 16px;
    min-height: 0;
  }
  .adcta-bottom-h {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
    max-width: 100%;
    line-height: 1.15;
  }
}

/* ===================================================================
   4. CUSTOMER STRIP  (after bottom hero)
   =================================================================== */
.adcta-strip {
  background: var(--adcta-green);
  color: var(--adcta-black);
  border-radius: var(--adcta-radius);
  padding: 2rem 2.25rem;
  margin: 1.25rem 0 3.5rem;
}
.adcta-strip-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 2rem;
}
.adcta-strip-text { min-width: 0; }
.adcta-strip-h {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.adcta-strip-p {
  font-size: 0.97rem;
  color: rgba(10,10,10,.78);
  max-width: 56ch;
  line-height: 1.5;
  margin: 0;
}
.adcta-strip-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===================================================================
   APP STORE BADGES — proper Apple / Google Play style
   =================================================================== */
.adcta-apps {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.adcta-strip-actions .adcta-apps { margin-top: 0; }

.adcta-app {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem 0.65rem;
  border-radius: 12px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  line-height: 1.1;
  min-width: 150px;
  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .25s cubic-bezier(.2,.8,.2,1);
}
.adcta-app:hover { transform: translateY(-2px); }

.adcta-app-icon {
  display: block;
  flex-shrink: 0;
}
.adcta-app-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1px;
  min-width: 0;
}
.adcta-app small {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.adcta-app strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Light variant — used on dark backgrounds (bottom hero) */
.adcta-apps--light .adcta-app { color: #fff; }
.adcta-apps--light .adcta-app:hover {
  background: #fff;
  color: var(--adcta-black);
  border-color: #fff;
}

/* Dark variant — used on green Customer strip */
.adcta-apps--dark .adcta-app  { color: var(--adcta-black); }
.adcta-apps--dark .adcta-app:hover {
  background: var(--adcta-black);
  color: #fff;
  border-color: var(--adcta-black);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .adcta-top {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
  }
  .adcta-top-content { padding: 2.5rem 1.25rem 1rem; }
  .adcta-top-visual {
    min-height: 0;
    padding: 0.5rem 1.5rem;
  }
  .adcta-top-visual--left { order: -1; padding-top: 1.5rem; }
  .adcta-top-visual img,
  .adcta-top-visual .adcta-svg-art { max-width: 180px; }

  .adcta-strip {
    padding: 1.6rem 1.4rem;
  }
  .adcta-strip-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .adcta-strip-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .adcta-cta-row { width: 100%; }
  .adcta-cta-row .adcta-btn { flex: 1 1 auto; }
}

/* Full-bleed wrapper for home/archive (escapes any parent container) */
.adcta-fullbleed {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
/* Edge-to-edge: kill rounded corners and side margins on the bottom hero and strip */
.adcta-fullbleed .adcta-bottom,
.adcta-fullbleed .adcta-strip {
  border-radius: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.adcta-fullbleed .adcta-bottom { margin: 0 !important; }
.adcta-fullbleed .adcta-strip  {
  margin: 0 !important;
  padding: 2.5rem 2rem;
}
.adcta-fullbleed .adcta-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
}
/* Strip should be a hairline taller and the green should pop more on home */
.adcta-fullbleed + .adcta-newsletter {
  margin-top: 0 !important;
}

/* ===================================================================
   5. NEWSLETTER  — Shopify-style split: image left · dark form right
   =================================================================== */
.adcta-newsletter {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0a0a0a;
  margin: 4rem 0 0;
}
.adcta-newsletter * { box-sizing: border-box; }
.adcta-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 480px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.adcta-newsletter-visual {
  position: relative;
  overflow: hidden;
  background: #0f1f15;
  min-height: 100%;
}
.adcta-newsletter-visual img,
.adcta-newsletter-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adcta-newsletter-card {
  background: #0a0a0a;
  color: #fff;
  padding: 4.5rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.adcta-newsletter-h {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: #fff;
  text-wrap: balance;
  max-width: 14ch;
}
.adcta-newsletter-p {
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 0 1.85rem;
  max-width: 44ch;
}
.adcta-newsletter-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 5px 5px 5px 22px;
  margin: 0 0 1.1rem;
  max-width: 480px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.adcta-newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #0a0a0a;
  padding: 0.7rem 0.5rem;
  outline: none;
  min-width: 0;
}
.adcta-newsletter-form input::placeholder { color: #6b7280; }
.adcta-newsletter-form button {
  flex-shrink: 0;
  border: 0;
  background: var(--adcta-green);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition:
    background-color .22s ease,
    color .22s ease,
    transform .25s cubic-bezier(.2,.8,.2,1),
    box-shadow .25s ease;
}
.adcta-newsletter-form button:hover:not(:disabled) {
  background: var(--adcta-green-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(22,163,74,.55);
}
.adcta-newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.adcta-newsletter-msg {
  font-size: 0.88rem;
  color: rgba(255,255,255,.85);
  min-height: 1.2em;
  margin: 0 0 0.6rem;
}
.adcta-msg-ok  { color: #4ade80; }
.adcta-msg-err { color: #f87171; }
.adcta-newsletter-legal {
  font-size: 0.83rem;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  margin: 0;
  max-width: 50ch;
}
.adcta-newsletter-legal a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.adcta-newsletter-legal a:hover { color: var(--adcta-green); }

/* Mobile: stack vertically, image on top */
@media (max-width: 900px) {
  .adcta-newsletter-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .adcta-newsletter-visual {
    aspect-ratio: 4/3;
    max-height: 320px;
  }
  .adcta-newsletter-card {
    padding: 2.75rem 1.5rem 2.5rem;
  }
}

/* ===================================================================
   6. FOOTER  — mirrors autodots.io main-site footer
       · Logo column (left) + 4 link columns
       · Social row · Mobile app badges
       · Copyright row + legal links
   =================================================================== */
.adcta-footer-menu {
  background: #0a0a0a;
  color: rgba(255,255,255,.7);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 4.5rem 1.5rem 0;
}
.adcta-footer-menu * { box-sizing: border-box; }
.adcta-footer-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 2.5rem 3rem;
  padding-bottom: 3rem;
}

/* Brand / logo column */
.adcta-fbrand { padding-top: 0.25rem; }
.adcta-flogo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.adcta-flogo-img {
  display: block;
  max-width: 160px;
  height: auto;
}
.adcta-flogo-text {
  color: var(--adcta-green);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 4-up link grid */
.adcta-fcols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.adcta-fcol h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.4rem;
  line-height: 1;
}
.adcta-fcol ul { list-style: none; margin: 0; padding: 0; }
.adcta-fcol li { margin: 0 0 0.85rem; list-style: none; line-height: 1.4; }
.adcta-fcol li:last-child { margin-bottom: 0; }
.adcta-fcol a {
  color: rgba(255,255,255,.62);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color .18s ease;
  display: inline-block;
}
.adcta-fcol a:hover { color: var(--adcta-green); }

/* Mid bar: socials (left) · app badges (right) */
.adcta-footer-mid {
  border-top: 1px solid rgba(255,255,255,.08);
}
.adcta-footer-mid-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
}
.adcta-fsocial {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.adcta-fsocial-label {
  color: rgba(255,255,255,.6);
  font-size: 0.95rem;
  margin-right: 0.35rem;
}
.adcta-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.adcta-soc:hover {
  background: var(--adcta-green);
  color: #0a0a0a;
  transform: translateY(-2px);
}
.adcta-fapps-wrap {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.adcta-fapps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.adcta-fapps-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.adcta-fapps-label {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.adcta-fapps-label small {
  font-weight: 400;
  color: rgba(255,255,255,.5);
  margin-left: 0.25rem;
}
.adcta-fapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.adcta-fapp:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* Bottom bar: copyright (left) · legal links (right) */
.adcta-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.adcta-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 1.75rem;
}
.adcta-fcopy {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 0.88rem;
}
.adcta-flegal {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.adcta-flegal li { list-style: none; }
.adcta-flegal a {
  color: rgba(255,255,255,.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color .18s ease;
}
.adcta-flegal a:hover { color: var(--adcta-green); }

@media (max-width: 1024px) {
  .adcta-footer-menu-inner { grid-template-columns: 1fr; gap: 2rem; }
  .adcta-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}
@media (max-width: 720px) {
  .adcta-footer-menu { padding: 3rem 1.25rem 0; }
  .adcta-footer-mid-inner,
  .adcta-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .adcta-fcols { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===================================================================
   7. KILL the existing theme footer + header (replaced with our own)
   Note: We keep .cs-header in the DOM (height:0, no visual footprint)
   so the theme's built-in search overlay (.cs-search / .cs-search-overlay,
   rendered inside .cs-header) can still display when the search toggle
   is clicked. The visible header bar inside is hidden separately.
   =================================================================== */
.cs-footer { display: none !important; }

.cs-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 9999 !important;
}
.cs-header > .cs-container {
  position: relative !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  pointer-events: none !important;
}
.cs-header .cs-header__inner,
.cs-header .cs-site-nav-mobile,
.cs-header-before { display: none !important; }
.cs-header .cs-search,
.cs-header .cs-search-overlay { pointer-events: auto !important; }

/* Popup positioned directly below the search icon by JS (sets --adcta-search-top / --adcta-search-right inline). */
.cs-header .cs-search {
  position: fixed !important;
  top: var(--adcta-search-top, 5rem) !important;
  right: var(--adcta-search-right, 1.5rem) !important;
  left: auto !important;
  width: 380px !important;
  max-width: calc(100vw - 2rem) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.16), 0 4px 14px rgba(0,0,0,.08) !important;
}
@media (max-width: 540px) {
  .cs-header .cs-search {
    right: 1rem !important;
    width: calc(100vw - 2rem) !important;
  }
}

/* ===================================================================
   8. HEADER  — promo bar + sticky nav (mirrors autodots.io)
   =================================================================== */
.adcta-promo {
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 0.85rem;
  line-height: 1.3;
}
.adcta-promo * { box-sizing: border-box; }
.adcta-promo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 2.75rem 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  position: relative;
}
.adcta-promo-text { color: rgba(255,255,255,.85); }
.adcta-promo-icon { color: #ffd60a; margin-right: 0.2rem; }
.adcta-promo-cta {
  background: #fff;
  color: #0a0a0a;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.adcta-promo-cta:hover {
  background: var(--adcta-green);
  color: #0a0a0a;
  transform: translateY(-1px);
}
.adcta-promo-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.55);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color .2s ease;
}
.adcta-promo-close:hover { color: #fff; }

.adcta-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: padding .25s ease, box-shadow .25s ease;
}
.adcta-header * { box-sizing: border-box; }
.adcta-header.is-stuck {
  box-shadow: 0 4px 16px -8px rgba(0,0,0,.12);
}
.adcta-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: padding .25s ease;
}
.adcta-header.is-stuck .adcta-header-inner { padding: 0.6rem 1.5rem; }

.adcta-hlogo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.adcta-hlogo-img {
  display: block;
  max-height: 36px;
  width: auto;
  transition: max-height .25s ease;
}
.adcta-header.is-stuck .adcta-hlogo-img { max-height: 30px; }
.adcta-hlogo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--adcta-green);
  letter-spacing: -0.02em;
}

/* Desktop nav */
.adcta-hnav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}
.adcta-hnav > a,
.adcta-hdrop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.95rem;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .18s ease, color .18s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.adcta-hnav > a:hover,
.adcta-hdrop-toggle:hover {
  background: rgba(0,0,0,.04);
  color: var(--adcta-green-d);
}

/* Dropdown */
.adcta-hdrop { position: relative; }
.adcta-hdrop-caret {
  display: inline-block;
  opacity: 0.6;
  margin-left: 0.15rem;
  transition: transform .2s ease, opacity .15s ease;
  flex-shrink: 0;
}
.adcta-hdrop-toggle:hover .adcta-hdrop-caret { opacity: 1; }
.adcta-hdrop.is-open .adcta-hdrop-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.adcta-hdrop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 16px 36px -12px rgba(0,0,0,.18),
    0 0 0 1px rgba(0,0,0,.06);
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility .2s ease;
  z-index: 100;
}
.adcta-hdrop.is-open .adcta-hdrop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.adcta-hdrop-menu li { list-style: none; margin: 0; }
.adcta-hdrop-menu li a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #1a1a1a;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.adcta-hdrop-menu li a:hover {
  background: #f3f4f6;
  color: var(--adcta-green-d);
}
.adcta-hdrop-divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 0.4rem 0;
}

/* Right-side CTAs */
.adcta-hcta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.adcta-hlogin {
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.adcta-hlogin:hover { background: rgba(0,0,0,.04); }
.adcta-hsignup {
  background: var(--adcta-green);
  color: #0a0a0a;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background-color .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.adcta-hsignup:hover {
  background: var(--adcta-green-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(22,163,74,.45);
}

/* Burger (mobile) */
.adcta-hburger {
  display: none;
  background: transparent;
  border: 0;
  width: 34px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.adcta-hburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.adcta-hburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.adcta-hburger.is-open span:nth-child(2) { opacity: 0; }
.adcta-hburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.adcta-hmobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
  gap: 0.15rem;
}
.adcta-hmobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.adcta-hmobile a:hover { background: #f3f4f6; }
.adcta-hmobile a.adcta-hsignup--mobile {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--adcta-green);
  padding: 0.85rem 1rem;
  font-weight: 700;
}
.adcta-hmobile-section {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,.5);
  padding: 1rem 0.5rem 0.4rem;
}

@media (max-width: 980px) {
  .adcta-hnav,
  .adcta-hcta { display: none; }
  .adcta-hburger { display: flex; }
  .adcta-hmobile:not([hidden]) { display: flex; }
}
@media (max-width: 540px) {
  .adcta-promo-inner {
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    font-size: 0.82rem;
    gap: 0.6rem;
  }
  .adcta-promo-text { font-size: 0.82rem; }
  .adcta-promo-cta { padding: 0.32rem 0.7rem; font-size: 0.78rem; }
}

/* ===================================================================
   AUTODOTS HEADER SEARCH — icon button inside the custom adcta-header.
   Uses theme class .cs-header__search-toggle so the theme's built-in
   JS auto-binds the click and toggles the search overlay.
   =================================================================== */
.adcta-hsearch.cs-header__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0 0.4rem 0 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #111;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  flex: 0 0 auto;
}
.adcta-hsearch.cs-header__search-toggle:hover,
.adcta-hsearch.cs-header__search-toggle:focus-visible {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #000;
  outline: none;
}
.adcta-hsearch .cs-icon-search {
  font-size: 18px;
  line-height: 1;
}
.adcta-hsearch--mobile { display: none !important; }

@media (max-width: 991.98px) {
  .adcta-hsearch:not(.adcta-hsearch--mobile) { display: none !important; }
  .adcta-hsearch--mobile {
    display: inline-flex !important;
    margin: 0 0.4rem 0 auto;
  }
}

/* When search is open, body gets .cs-search-active — show it. */
body.cs-search-active .cs-header .cs-search { opacity: 1 !important; visibility: visible !important; }
body.cs-search-active .cs-header .cs-search-overlay { display: block !important; }

/* ===================================================================
   AUTODOTS TOP CTA — full-bleed (edge-to-edge) on single posts
   Moves dark background and decorative gradients to the wrapper so the
   colour spans 100vw, while inner grid content stays centered (max 1280).
   =================================================================== */
.adcta-top-wrap {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 2.5rem;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  isolation: isolate;
}
.adcta-top-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(245,158,11,.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.adcta-top-wrap > .adcta-top {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 auto !important;
  max-width: 1280px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 1;
}
.adcta-top-wrap > .adcta-top::before { display: none !important; }

@media (max-width: 767px) {
  .adcta-top-wrap > .adcta-top {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ===================================================================
   TOP CTA — LIGHT THEME (#f6f6f1 bg, black text)
   Mirrors the Shopify-style hero look. Overrides the dark gradient.
   =================================================================== */
.adcta-top-wrap,
.adcta-top-wrap > .adcta-top,
.adcta-top {
  background: #f6f6f1 !important;
  color: #0a0a0a !important;
}
.adcta-top-wrap::before,
.adcta-top::before { display: none !important; }

.adcta-top-content .adcta-h,
.adcta-top-content .adcta-h * { color: #0a0a0a !important; }
.adcta-top-content .adcta-p { color: #374151 !important; }
.adcta-pricing { color: #6b7280 !important; }

/* "See How It Works" outline button — invert for light bg */
.adcta-top .adcta-btn--ghost,
.adcta-top-wrap .adcta-btn--ghost {
  color: #0a0a0a !important;
  border-color: rgba(10,10,10,.35) !important;
  background: transparent !important;
}
.adcta-top .adcta-btn--ghost:hover,
.adcta-top-wrap .adcta-btn--ghost:hover {
  background: #0a0a0a !important;
  color: #fff !important;
  border-color: #0a0a0a !important;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.18) !important;
}
.adcta-top .adcta-btn--ghost .adcta-play,
.adcta-top-wrap .adcta-btn--ghost .adcta-play {
  background: rgba(10,10,10,.08) !important;
  color: #0a0a0a !important;
}
.adcta-top .adcta-btn--ghost:hover .adcta-play,
.adcta-top-wrap .adcta-btn--ghost:hover .adcta-play {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}

/* ===================================================================
   BOTTOM HERO + GREEN STRIP — spacing + button hover refinements
   =================================================================== */

/* Extra breathing room between the bottom-hero headline and sub. */
.adcta-bottom-h { margin: 0 0 2.25rem !important; }

/* More gap between strip headline and its description. */
.adcta-strip-h { margin: 0 0 0.75rem !important; }
.adcta-strip-inner { padding: 1.5rem 1.75rem !important; }
@media (max-width: 767px) {
  .adcta-strip-inner { padding: 1.25rem 1.25rem !important; }
}

/* "Find Garages" button (dark, on green strip): invert on hover —
   white bg + black text so the hover is clearly visible. */
.adcta-strip .adcta-btn--dark:hover,
.adcta-strip-actions .adcta-btn--dark:hover {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.18) !important;
}
