/* The free-store funnel (src/views/free.js). Loaded only on its pages, on top of site.css. */

.page-free .site-header .header-cta { display: inline-flex; padding: 9px 18px; border-radius: 999px; font-size: .95rem; box-shadow: 0 3px 0 var(--brand-shade); }

/* The top of the claim card: the capacity bar (claims in 24 h against the real daily cap) and the live count. */
.free-card-top { display: grid; gap: 8px; margin: -26px -26px 20px; padding: 14px 26px 13px; border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; background: var(--bg-soft); font-size: .82rem; font-weight: 700; color: var(--charcoal); }
.free-cap-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.free-cap-row b { font-variant-numeric: tabular-nums; }
.free-bar { height: 12px; border-radius: 999px; background: #e3e8e0; overflow: hidden; }
/* It fills as the page loads, with moving stripes, so the bar feels alive rather than static. */
.free-bar span { display: block; height: 100%; border-radius: inherit; background:
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px) 0 0 / 22.6px 22.6px,
  linear-gradient(90deg, #f5a524, #e5484d); animation: free-fill 1.4s cubic-bezier(.2, .8, .2, 1) both, free-stripes .9s linear infinite; }
@keyframes free-fill { from { width: 0; } }
@keyframes free-stripes { to { background-position: 22.6px 0, 0 0; } }
.free-left { animation: free-beat 1.6s ease-in-out 1.4s infinite; transform-origin: right center; }
@keyframes free-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .free-bar span, .free-left { animation: none; } }
.free-cap-sub { font-weight: 600; color: var(--muted); }
.free-left { color: #c2410c; font-weight: 800; }
.free-live { display: inline-flex; align-items: center; gap: 7px; color: var(--charcoal); }
.free-live::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); animation: free-pulse 1.8s infinite; }
@keyframes free-pulse { 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .free-live::before { animation: none; } }

.free-disclosure { max-width: 520px; margin: 12px auto 0; font-size: .8rem; color: var(--muted); }
.closer .free-disclosure { color: #9aa39c; }
.free-total { text-align: center; margin: 26px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.free-total s { margin: 0 6px; }
.free-total strong { font-family: var(--font-head); font-weight: 900; color: var(--brand-dark); font-size: 1.4rem; }
.free-cap { background: #fff6e5; border: 1px solid #f3d38a; border-radius: 12px; padding: 10px 14px; font-weight: 600; }

/* The claim form. */
.free-fields { margin-top: 0; }
.free-fields input, .free-phone select { width: 100%; padding: 12px 14px; border: 1px solid #cfd4dc; border-radius: 10px; font: inherit; background: #fff; }
.free-phone { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 8px; }
.free-phone select { padding-right: 6px; }
.free-fields input:focus, .free-phone select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.field-error { display: block; color: var(--danger); font-size: .85rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.niche-pick .field-error { margin-top: 8px; }
.free-claim #free-btn { margin-top: 18px; }

/* The hero: the claim card is the first thing below the headline (beside it on wide screens). */
.free-top { padding-bottom: 64px; }
.free-hero { max-width: 1120px; margin: 0 auto; padding-top: 32px; display: grid; gap: 26px; }
.free-hero-copy { text-align: center; }
.free-hero h1 { font-size: clamp(2rem, 7.4vw, 3.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.045em; margin-bottom: .4em; }
.free-hero .hero-q { margin-bottom: 10px; }
.free-hero .lede { margin: 0 auto; max-width: 560px; font-size: clamp(1.02rem, 2.3vw, 1.18rem); color: var(--muted); }
.free-hero .badges { margin-top: 16px; }
.free-claim { width: 100%; max-width: 560px; margin: 0 auto; padding: 26px; border: 2px solid var(--charcoal); border-radius: 24px; box-shadow: 0 24px 60px rgba(35, 38, 36, .14); scroll-margin-top: 84px; }
.free-claim .order-step { margin: 0 0 12px; }
.free-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.free-niches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.free-niches .niche { padding: 5px 5px 8px; gap: 5px; border-radius: 14px; }
.free-niches .niche img, .free-niches .niche-any { border-radius: 10px; }
.free-niches .niche-any { font-size: 2rem; }
.free-niches .niche-name { font-size: .7rem; }
.free-niches .niche:has(input:checked)::after { top: 8px; right: 8px; width: 20px; height: 20px; font-size: .7rem; }
@media (min-width: 420px) { .free-niches { gap: 8px; } .free-niches .niche-name { font-size: .76rem; } }
@media (min-width: 960px) {
  .free-hero { grid-template-columns: minmax(0, 1fr) 470px; align-items: start; gap: 48px; padding-top: 48px; }
  .free-hero-copy { text-align: left; padding-top: 34px; }
  .free-hero .lede { margin: 0; }
  .free-hero .badges { justify-content: flex-start; }
}
/* Step 1 then step 2 (free.js adds .js-steps; .picked once a niche is chosen). */
.free-picked { display: none; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); font-weight: 600; font-size: .95rem; }
.free-change { border: 0; background: none; font: inherit; font-weight: 700; color: var(--brand-dark); text-decoration: underline; cursor: pointer; padding: 0; }
.js-steps:not(.picked) [data-step="2"] { display: none; }
.js-steps.picked [data-step="1"] { display: none; }
.js-steps.picked .free-picked { display: flex; }
.js-steps.picked [data-step="2"] { animation: fq-in .25s ease-out; }
.free-next { margin-top: 16px; }
.free-next.pop { animation: free-pop .32s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes free-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .free-next.pop { animation: none; } }
/* The intro video, between the headline and the claim card. */
.free-video { margin: 22px auto; max-width: 640px; padding: 8px; border-radius: 20px; }
.free-video .video-wrap { border-radius: 14px; }
@media (min-width: 960px) { .free-hero.has-video h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); } .free-video { margin: 22px 0; } }
@media (max-width: 599px) { .free-hero.has-video .lede { display: none; } .free-video { margin: 16px -4px 0; padding: 6px; border-radius: 16px; } .free-video .video-wrap { border-radius: 11px; } }

/* What they get, under the hero: a dark band with lime icons, so it reads as a highlight, not a flat block. */
.free-band { position: relative; overflow: hidden; background: var(--charcoal); }
.free-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(126, 217, 86, .16), transparent 70%); pointer-events: none; }
.free-strip { position: relative; list-style: none; margin: 0 auto; padding: 30px 0; max-width: 1100px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.free-strip li { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; padding: 16px 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.free-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: var(--brand); color: var(--charcoal); box-shadow: 0 6px 18px rgba(126, 217, 86, .3); transform: rotate(-4deg); }
.free-strip li:nth-child(even) .free-ico { transform: rotate(4deg); }
.free-ico svg { width: 26px; height: 26px; }
.free-strip b { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.free-strip span:last-child { font-size: .86rem; font-weight: 600; color: #c9d1cb; line-height: 1.35; }
@media (min-width: 720px) { .free-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 38px 0; } .free-strip li { padding: 22px 14px; } }
.stack .cta-block { margin-top: 30px; }

/* Recent claims, bottom left. */
.free-toast { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px 12px 40px; font-size: .88rem; line-height: 1.4; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.free-toast::before { content: "🛍️"; position: absolute; left: 13px; top: 11px; }
.free-toast.in { opacity: 1; transform: none; }
.free-toast b { font-weight: 700; }

/* Questions. */
.free-q h1 { margin-bottom: 22px; }
.fq { border: 0; padding: 0; margin: 0 0 22px; text-align: left; }
.fq legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.fq-n { flex: none; font-size: .8rem; font-weight: 800; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; }
.fq-opts { display: grid; gap: 10px; }
@media (min-width: 560px) { .fq-opts { grid-template-columns: 1fr 1fr; } }
.fq-opt { position: relative; display: block; cursor: pointer; }
.fq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fq-opt span { display: block; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; font-weight: 650; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fq-opt:hover span { border-color: #c4d8bb; }
.fq-opt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.fq-opt input:focus-visible + span { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.stepper .fq { animation: fq-in .25s ease-out; }
@keyframes fq-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Launch Pack. */
.free-hook { font-weight: 650; color: var(--brand-dark); background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; margin: 16px 0 0; }
.free-pack-order { margin-top: 30px; text-align: left; }
.free-pack-order .summary { display: grid; gap: 10px; }
.free-pack-order #co-email { width: 100%; padding: 12px 14px; border: 1px solid #cfd4dc; border-radius: 10px; font: inherit; background: var(--bg-soft); color: var(--muted); }

/* Thank-you. */
.free-reserve { margin: 6px 0 18px; padding: 12px 14px; border-radius: 12px; background: #fff6e5; border: 1px solid #f3d38a; font-weight: 600; }
.free-reserve b { font-variant-numeric: tabular-nums; }
.free-reserve.done { background: var(--brand-soft); border-color: #cdeebb; color: var(--brand-dark); }
.free-reserve.bonus { margin-top: -8px; background: var(--brand-soft); border-color: #cdeebb; color: var(--brand-dark); font-weight: 500; }
.free-reserve.expired { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.page-free [hidden] { display: none !important; }
/* Phones: the niche tiles start above the fold. The badges repeat further down the page. */
@media (max-width: 599px) {
  .free-hero { padding-top: 20px; gap: 18px; }
  .free-hero .hero-q { font-size: .92rem; }
  .free-hero .badges { display: none; }
  .free-claim { padding: 20px 16px; }
  .free-card-top { margin: -20px -16px 16px; padding: 12px 16px 11px; font-size: .76rem; }
}

/* The 5-minute hold (src/free.js) as a countdown box (a label over MIN : SEC): under the picked niche on /free's
   step 2, and on a quick-page claim's questions page. After 0:00 it turns grey. */
.free-hold { display: grid; justify-items: center; gap: 3px; margin: 0 0 16px; padding: 8px 12px 6px; border-radius: 14px; background: #fff1ec; border: 1px solid #f6c3b0; color: #9a3412; text-align: center; }
.fh-label { font-weight: 700; font-size: .84rem; }
.fh-clock { display: flex; align-items: flex-start; gap: 6px; }
.fh-unit { display: grid; justify-items: center; }
.fh-unit b { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; line-height: 1; color: #c2410c; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fh-unit small { margin-top: 1px; font-size: .56rem; font-weight: 800; letter-spacing: .1em; color: #b45309; }
.fh-colon { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; line-height: 1.05; color: #c2410c; }
.free-hold.out { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }
.free-hold.out .fh-clock { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Questions: the niche tiles, for quick-page claims. */
.fq-niche .free-niches { margin-top: 2px; }

/* The quick page (config.free.quick): one screen, headline → form → big button, like a webinar opt-in. */
.page-quick .top-bar { background: #111; font-size: clamp(.9rem, 2.4vw, 1.05rem); font-weight: 700; padding: 14px 16px; line-height: 1.35; }
.page-quick .site-header { justify-content: center; }
.quick { max-width: 680px; margin: 0 auto; padding: 26px 0 48px; text-align: center; }
.quick-eyebrow { margin: 0 0 10px; color: #d9480f; font-weight: 800; font-size: clamp(.95rem, 2.6vw, 1.15rem); text-transform: uppercase; letter-spacing: .02em; }
.quick h1 { font-size: clamp(1.9rem, 6.6vw, 3rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.04em; margin: 0 0 14px; }
.quick-sub { margin: 0 auto 18px; max-width: 600px; font-style: italic; font-weight: 600; font-size: clamp(1rem, 2.5vw, 1.15rem); color: var(--charcoal); }
.quick-pill { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto 16px; max-width: 520px; padding: 10px 18px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #e5484d, #f08a5d); box-shadow: 0 10px 24px rgba(229, 72, 77, .28); }
.quick-pill > span:nth-child(2) { display: grid; line-height: 1.2; }
.quick-pill b { font-size: 1.05rem; }
.quick-pill small { font-size: .78rem; font-weight: 600; opacity: .92; }
.quick-form { display: grid; gap: 10px; text-align: left; }
.quick-form input, .quick-form select { width: 100%; padding: 15px 16px; border: 1px solid #cfd4dc; border-radius: 10px; font: inherit; font-size: 1.02rem; background: #fff; }
.quick-form input:focus, .quick-form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.quick-btn { display: grid; gap: 3px; width: 100%; margin-top: 6px; padding: 16px 18px; border: 0; border-radius: 12px; cursor: pointer; text-align: center; color: var(--charcoal); background: var(--brand); box-shadow: 0 5px 0 var(--brand-shade), 0 14px 30px rgba(126, 217, 86, .35); font: inherit; transition: transform .1s; }
.quick-btn:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--brand-shade); }
.quick-btn:disabled { opacity: .7; cursor: wait; }
.quick-btn-main { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.25rem, 4.6vw, 1.6rem); letter-spacing: -0.02em; }
.quick-btn-sub { font-size: .88rem; font-weight: 700; color: #3b4a33; }
.quick-live { display: flex; justify-content: center; margin: 4px 0 0; font-size: .9rem; font-weight: 600; }
.quick-form .fine { text-align: center; margin: 4px 0 0; }
.quick-form .field-error { margin-top: -4px; }
.quick-form .pay-error:empty { display: none; }
@media (max-width: 599px) { .quick { padding-top: 14px; } .quick h1 { margin-bottom: 10px; } .quick-sub { margin-bottom: 12px; font-size: .95rem; } .quick-pill { gap: 10px; padding: 7px 14px; margin-bottom: 12px; } .quick-form { gap: 8px; } .quick-form input, .quick-form select { padding: 13px 14px; } }

/* /free: the box belongs to step 2 only. */
.js-steps:not(.picked) .free-hold { display: none; }
.free-q .free-hold { max-width: 340px; margin: 0 auto 20px; }

/* The $20 page's buy box (views/sales.js) reuses the claim card above: the hero layout, the two steps, the
   capacity bar and the countdown box. Its own bits: */
.page-buy [hidden] { display: none !important; }
.page-buy .site-header .header-cta { display: inline-flex; padding: 9px 18px; border-radius: 999px; font-size: .95rem; box-shadow: 0 3px 0 var(--brand-shade); }
.buy-box [data-step="2"] .order-step { margin-top: 0; }
.buy-summary { gap: 8px; margin-bottom: 14px; }
.buy-kit { align-items: baseline; font-size: 1.02rem; }
.buy-kit strong { font-family: var(--font-head); font-weight: 800; }
.buy-summary .kit-list { margin: 0 0 4px; }
@media (min-width: 420px) { .buy-summary .kit-list { grid-template-columns: 1fr 1fr; column-gap: 12px; } }
.buy-box #checkout-form { margin-top: 0; }
.buy-box .fine { margin-top: 10px; }

/* The texts opt-in under the phone field (config.free.smsOptIn): optional and unticked. */
.sms-optin { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: .82rem; line-height: 1.4; color: var(--muted, #6b7280); text-align: left; cursor: pointer; }
.sms-optin input { width: 18px; height: 18px; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.sms-optin a { color: inherit; }
