/* ==========================================================================
   SweepstakesLeads — Our Leads (list index + data cards), sample pages,
   and the "check your spam folder" popup after a form is sent.
   ========================================================================== */

/* ---------- Our Leads index ---------- */
.leads-search { margin-top: 1.5rem; }
.samples-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.sample-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; text-decoration: none; transition: border-color .2s, transform .2s; }
.sample-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.sample-link strong { display: block; color: var(--head); font-size: 1.05rem; }
.sample-link small { display: block; color: var(--muted); font-size: .86rem; margin-top: .15rem; }
.sample-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; background: linear-gradient(135deg, #7C3AED, #FFC542); }
.sample-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sample-go { margin-left: auto; font-size: 1.3rem; color: var(--link); }

.leads-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.leads-list a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: .85rem 1.1rem; position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; transition: border-color .2s, background .2s; }
.leads-list a:hover { border-color: var(--blue); background: rgba(var(--tint), .03); }
.leads-name { color: var(--head); font-weight: 700; line-height: 1.35; }
.leads-list a:hover .leads-name { color: var(--link); }
.leads-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--muted); font-size: .84rem; }
.leads-cat { color: var(--green); font-weight: 700; }
.leads-list li[hidden], .leads-group[hidden] { display: none; }
.leads-price { color: var(--link); font-weight: 700; }
.leads-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.leads-tools .blog-results { margin: 0; }
.leads-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.leads-filter { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--head); font: 600 .88rem var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.leads-filter span { padding: .05rem .5rem; border-radius: 999px; background: rgba(var(--tint), .08); color: var(--muted); font-size: .76rem; font-weight: 700; }
.leads-filter:hover { border-color: var(--blue); }
.leads-filter.is-active { background: var(--blue-2); border-color: transparent; color: #fff; }
.leads-filter.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.leads-group + .leads-group { margin-top: 2.5rem; }
.leads-group-h { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin: 0 0 1rem; color: var(--head); scroll-margin-top: 100px; }
.leads-group-h span { padding: .1rem .6rem; border-radius: 999px; background: var(--blue-soft); color: var(--link); font-size: .82rem; font-weight: 800; }

/* ---------- Data card page ---------- */
.lead-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.lead-stat { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.3rem; }
.lead-stat span { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead-stat strong { color: var(--head); font-size: 1.35rem; line-height: 1.25; }
.lead-h2 { font-size: 1.4rem; margin: 2.2rem 0 .9rem; color: var(--head); }
.lead-table { width: 100%; }
.lead-table th { width: 38%; text-align: left; color: var(--muted); font-weight: 600; }
.lead-table td { color: var(--head); font-weight: 600; }
.lead-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Sample page (looks like a printed lead sheet) ---------- */
.sample-note { max-width: 760px; margin: 0 0 1.25rem; color: var(--muted); }
.sample-paper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.25rem; padding: clamp(1.25rem, 3vw, 2.5rem); background: #FFFFFF; color: #1F2430; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font: 500 .86rem/1.45 Arial, Helvetica, sans-serif; text-transform: uppercase; }
.sample-rec { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.sample-rec strong { font-weight: 700; color: #111; }
.sample-phone { position: relative; width: max-content; max-width: 100%; color: #555; }
.sample-phone::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #D12F2F; transform: rotate(-4deg); }
.sample-foot { margin-top: 1rem; font-size: .9rem; }

/* ---------- Hard-copy coupon samples ---------- */
.coupon-style + .coupon-style { margin-top: 2.5rem; }
.coupon-style h2 { margin: 0 0 .9rem; color: var(--head); font-size: 1.2rem; }
.coupon-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.coupon-example { min-width: 0; margin: 0; }
.coupon-tile.post-tile { aspect-ratio: auto; min-height: 150px; border: 1px solid var(--line); }
.coupon-tile.post-tile img { width: 100%; height: auto; max-height: 320px; object-fit: contain; background: #fff; }
.coupon-example figcaption { padding: .5rem .1rem 0; color: var(--muted); font-size: .85rem; }
.sample-privacy { margin: 2rem auto 0; text-align: center; }

/* ---------- "Check your spam" popup after sending a form ---------- */
.sent-modal { position: fixed; inset: 0; z-index: 2147483100; display: grid; place-items: center; padding: 16px; background: rgba(6, 3, 12, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: sentFade .2s ease-out; }
.sent-modal[hidden] { display: none; }
.sent-box { position: relative; width: min(440px, 100%); padding: 2rem 1.75rem 1.6rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: center; animation: sentPop .25s ease-out; }
.sent-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #FFC542); box-shadow: 0 10px 30px rgba(124, 58, 237, .45); }
.sent-ic svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sent-box h2 { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--head); }
.sent-box p { margin: 0 0 .75rem; color: var(--text); }
.sent-box .sent-spam { padding: .75rem .9rem; border-radius: 12px; background: rgba(247, 147, 30, .12); border: 1px solid rgba(247, 147, 30, .4); color: var(--head); font-weight: 600; }
.sent-box .btn { margin-top: .5rem; min-width: 140px; }
.sent-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sent-x:hover, .sent-x:focus-visible { background: rgba(var(--tint), .08); color: var(--head); }
@keyframes sentFade { from { opacity: 0; } }
@keyframes sentPop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

@media (max-width: 980px) { .sample-paper { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .leads-list { grid-template-columns: 1fr; }
  .sample-paper { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .8rem; }
  .coupon-examples { grid-template-columns: 1fr; }
}
@media (max-width: 340px) { .sample-paper { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sent-modal, .sent-box { animation: none; } }

/* Breadcrumbs: wrap between links, never inside one (long group names on phones). */
.crumbs { flex-wrap: wrap; row-gap: .25rem; }
.crumbs a { white-space: nowrap; }
