/* MakeClean polish layer (Nov 16): premium buy boxes, trust line, floating sticky bar, /for-cleaners product hero.
   Loaded after styles.css on every page (injected by postprocess.py). The sticky bar's base CSS is inline in the
   page body (growth_pages.STICKY_CSS), so those overrides are prefixed with "html body" to win on specificity. */

/* ---------- Trust line (lock + Payhip) ---------- */
.trust-line {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.875rem !important; line-height: 1.35; color: var(--muted) !important; margin: 0.9rem 0 0 !important; flex: none !important;
}
.trust-line .lock { flex: none; color: var(--brand); }
.trust-sm { justify-content: center; font-size: 0.8125rem !important; margin-top: 0.75rem !important; }

/* ---------- Price block ---------- */
.buybox-price { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 0.9rem; }
.buybox-price .amt {
  font-family: var(--display); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.045em; color: var(--ink);
}
.buybox-price .per {
  font-size: 0.8125rem; line-height: 1.3; color: var(--muted); padding-left: 0.8rem; border-left: 1px solid var(--line-strong);
}
.launch-note {
  display: block; width: fit-content; max-width: 100%;
  background: #fff7e8; color: #6b3d00; border: 1px solid #f3dfb8;
  border-radius: 12px; padding: 0.55rem 0.85rem; font-size: 0.875rem !important; line-height: 1.45; margin: 0 0 1.1rem !important;
}
.launch-note strong { color: #6b3d00; }
html body .launch-note code { background: #fff; border: 1px dashed #d9a441; color: #6b3d00; padding: 0.02rem 0.4rem; border-radius: 6px; letter-spacing: 0.02em; }

/* ---------- Buy box (cta-product with product mockup) ---------- */
.cta-box.buybox {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 2.25rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 18px 48px rgba(0,0,0,0.07);
  padding: 2rem; overflow: hidden;
}
.buybox-media {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  margin: -0.5rem 0 -0.5rem -0.5rem; padding: 1.25rem 0.75rem;
  border-radius: calc(var(--radius-lg) - 10px);
  background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #eef5f1 55%, #e2eee8 100%);
}
.buybox-media img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(16, 40, 30, 0.16)); transition: transform .8s var(--ease); }
.buybox:hover .buybox-media img { transform: translateY(-4px) scale(1.015); }
.buybox-body { min-width: 0; }
.buybox-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem) !important; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.6rem !important; text-wrap: balance; }
.buybox-body > p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.buybox .offer-list { list-style: none; margin: 0.6rem 0 1rem !important; padding: 0 !important; }
.buybox .offer-list li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.buybox .offer-list li + li { margin-top: 0.45rem; }
.buybox .offer-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%230a6b4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.buybox .offer-list li strong { color: var(--ink); }
.buybox .cta-actions { margin-top: 0.25rem; }
.buybox .cta-actions .btn-accent { padding: 0.85rem 1.6rem; box-shadow: 0 6px 16px rgba(10, 107, 74, 0.22); }
.buybox .trust-line + .form-note { margin-top: 0.35rem; font-size: 0.8125rem; }
@media (max-width: 860px) {
  .cta-box.buybox { grid-template-columns: 1fr; padding: 1.25rem 1.25rem 1.6rem; }
  .buybox-media { margin: 0 0 1.4rem; padding: 1.25rem 1.5rem 0.75rem; }
  .buybox-media img { max-width: 20rem; }
}
@media (max-width: 560px) {
  .buybox .cta-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .buybox .cta-actions .btn { width: 100%; }
  .buybox-price .amt { font-size: 2.6rem; }
}

/* ---------- Top offer strip (cleaner guides + tools) ---------- */
html body .offer-strip {
  border: 1px solid var(--line); border-left: 0; border-radius: 18px;
  background: linear-gradient(135deg, #f7faf8 0%, #eef5f1 100%);
  padding: 1rem 1.15rem; margin: 1.5rem 0;
}
html body .offer-strip p { font-size: 0.975rem; line-height: 1.6; color: var(--ink-soft); }
html body .offer-strip p strong { color: var(--ink); }
html body .offer-strip .btn-sm { padding: 0.42rem 0.95rem; font-size: 0.9rem; margin: 0.2rem 0.5rem 0.2rem 0.35rem; }
html body .offer-strip .launch-note { margin: 0.7rem 0 0 !important; }

/* ---------- Printables cards ---------- */
.product-card.is-best { box-shadow: inset 0 0 0 2px rgba(10, 107, 74, 0.55); }
.product-card .trust-line { color: var(--muted) !important; }

/* ---------- Floating sticky offer bar ---------- */
html body .sticky-offer {
  left: 0; right: 0; margin-inline: auto;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(780px, calc(100% - 28px));
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.55rem 0.4rem 0.55rem 0.6rem; text-align: left; font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 18px 44px rgba(0,0,0,0.16);
  animation: mc-sticky-in .55s var(--ease) both;
}
html body .sticky-offer[hidden] { display: none; }
@keyframes mc-sticky-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
html body .sticky-offer p { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.sticky-thumb { flex: none; width: 58px; height: 44px; object-fit: contain; border-radius: 10px; background: #eef5f1; padding: 3px; }
.sticky-text { flex: 1; min-width: 0; line-height: 1.35; color: var(--ink-soft); }
.sticky-text strong { color: var(--ink); }
html body .sticky-offer .sticky-code { color: var(--muted); }
html body .sticky-offer code { background: #fff7e8; border: 1px dashed #d9a441; color: #6b3d00; }
html body .sticky-offer .btn-sm { flex: none; margin: 0; padding: 0.6rem 1.1rem; font-size: 0.9375rem; white-space: nowrap; }
html body .sticky-offer button {
  position: static; transform: none; flex: none;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--muted); background: transparent; transition: background-color .2s, color .2s;
}
html body .sticky-offer button:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
html body.has-sticky { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) {
  html body .sticky-offer {
    width: calc(100% - 16px); bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 0.45rem 0.15rem 0.45rem 0.45rem; border-radius: 18px; font-size: 0.875rem;
  }
  html body .sticky-offer p { gap: 0.6rem; }
  .sticky-thumb { width: 46px; height: 36px; border-radius: 8px; }
  .sticky-text strong { display: block; font-size: 0.875rem; line-height: 1.25; }
  html body .sticky-offer .sticky-code { display: block; font-size: 0.75rem; margin-top: 0.1rem; }
  html body .sticky-offer .sticky-code code { padding: 0 0.3rem; }
  html body .sticky-offer .btn-sm { padding: 0.55rem 0.85rem; font-size: 0.875rem; }
  html body.has-sticky { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- /for-cleaners product hero ---------- */
.hero-product { text-align: left; padding-top: 4.5rem; background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%); }
.hero-product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: center; }
.hero-product .hero-copy h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); max-width: 14ch; margin: 0 0 1.3rem; }
.hero-product .hero-copy .lede { margin: 0 0 1.6rem; max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero-product .actions { justify-content: flex-start; }
.hero-buy {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 30px 70px rgba(0,0,0,0.12); overflow: hidden;
}
.hero-buy-media { background: radial-gradient(120% 100% at 30% 15%, #ffffff 0%, #eef5f1 55%, #dfece5 100%); padding: 1.5rem 2.5rem 0.75rem; }
.hero-buy-media img { display: block; width: 100%; max-width: 26rem; margin: 0 auto; height: auto; filter: drop-shadow(0 18px 26px rgba(16, 40, 30, 0.18)); }
.hero-buy-body { padding: 1.5rem 1.9rem 1.7rem; }
.hero-buy-kicker { font-size: 0.8125rem; font-weight: 600; color: var(--brand); margin: 0 0 0.3rem; }
.hero-buy-title { font-family: var(--display); font-weight: 600; font-size: 1.6rem !important; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.4rem !important; color: var(--ink); }
.hero-buy-sub { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.hero-buy .buybox-price { margin: 1.1rem 0 0.9rem; }
.btn-block { display: flex; width: 100%; padding: 0.95rem 1.5rem; font-size: 1.0625rem; box-shadow: 0 8px 20px rgba(10, 107, 74, 0.25); }
.hero-buy .trust-line { justify-content: center; }
.js-motion .hero .hero-buy { animation: mc-art 1.1s var(--ease) .3s backwards; }
@media (max-width: 860px) {
  .hero-product { padding-top: 2.75rem; text-align: center; }
  .hero-product-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-product .hero-copy h1 { margin-inline: auto; }
  .hero-product .hero-copy .lede { margin-inline: auto; }
  .hero-product .actions { justify-content: center; }
  .hero-buy { max-width: 30rem; margin: 0 auto; width: 100%; text-align: left; }
  .hero-buy-media { padding: 1.25rem 1.5rem 0.5rem; }
  .hero-buy-body { padding: 1.25rem 1.25rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html body .sticky-offer { animation: none; }
  .buybox-media img { transition: none; }
  .buybox:hover .buybox-media img { transform: none; }
}

/* ---------- pass 2 refinements ---------- */
/* buy box: mockup as a banner on top (article column is narrow) */
.cta-box.buybox { grid-template-columns: 1fr; padding: 1rem 1rem 2rem; }
.buybox-media { margin: 0 0 1.75rem; padding: 1.5rem 2rem 1rem; align-self: auto; }
.buybox-media img { max-width: 22rem; }
.buybox-body { padding: 0 1.5rem; }
@media (max-width: 860px) {
  .cta-box.buybox { padding: 0.75rem 0.75rem 1.5rem; }
  .buybox-media { margin-bottom: 1.4rem; padding: 1.1rem 1.25rem 0.6rem; }
  .buybox-media img { max-width: 17rem; }
  .buybox-body { padding: 0 0.6rem; }
}
/* printables cards: keep the trust line on one centered row */
.product-card .trust-line { max-width: none !important; width: auto; text-align: left; }
/* sticky: a little wider on desktop so the description fits on one line */
html body .sticky-offer { width: min(900px, calc(100% - 28px)); }
@media (max-width: 420px) { .sticky-thumb { display: none; } html body .sticky-offer { padding-left: 0.9rem; } }
/* /for-cleaners hero: compact card so price + Buy sit above the fold */
.hero-buy-media { padding: 1.25rem 2rem 0.4rem; }
.hero-buy-media img { max-width: 18rem; }
.hero-buy-body { padding: 1.1rem 1.75rem 1.4rem; }
.hero-buy .buybox-price { margin: 0.9rem 0 0.75rem; }
.hero-buy .launch-note { margin-bottom: 0.9rem !important; }
.hero-product { padding-top: 3.5rem; }
@media (max-width: 860px) {
  /* mobile order: eyebrow, headline, product card (price + Buy), then the longer intro + referral link */
  .hero-product-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-product .hero-copy { display: contents; }
  .hero-product .eyebrow { order: 1; }
  .hero-product .hero-copy h1 { order: 2; margin-bottom: 1.6rem; }
  .hero-buy { order: 3; margin-bottom: 2rem; }
  .hero-product .hero-copy .lede { order: 4; }
  .hero-product .actions { order: 5; }
  .hero-buy-media img { max-width: 14rem; }
}

/* ---------- pass 3 ---------- */
html body .sticky-offer .sticky-code { display: block; font-size: 0.8125rem; margin-top: 0.15rem; }
.sticky-text { font-size: 0.9rem; }
@media (max-width: 560px) {
  .sticky-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.84rem; }
  html body .sticky-offer .sticky-code { white-space: nowrap; font-size: 0.72rem; }
  html body .sticky-offer .btn-sm { padding: 0.55rem 0.8rem; font-size: 0.84rem; }
  html body .sticky-offer { gap: 0; }
  html body .sticky-offer p { gap: 0.5rem; }
}
@media (max-width: 860px) {
  .hero-product { padding-top: 2rem; }
  .hero-product .eyebrow { font-size: 0.95rem; margin-bottom: 0.6rem; }
  .hero-product .hero-copy h1 { margin-bottom: 1.25rem; }
  .hero-buy-media { padding: 0.9rem 1.25rem 0.3rem; }
  .hero-buy-media img { max-width: 11.5rem; }
  .hero-buy-body { display: flex; flex-direction: column; padding: 1rem 1.15rem 1.2rem; }
  .hero-buy-title { font-size: 1.4rem !important; }
  .hero-buy .buybox-price { margin: 0.7rem 0 0.8rem; }
  .hero-buy .launch-note { order: 10; margin: 0.9rem 0 0 !important; }
}

/* ---------- Starter Pack featured card (Update 5) ---------- */
.spack-section { padding: 1rem 0 3.5rem; background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%); }
.spack {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.75rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: left;
  box-shadow: inset 0 0 0 2px rgba(10, 107, 74, 0.45), 0 2px 8px rgba(0,0,0,0.04), 0 26px 64px rgba(0,0,0,0.10);
  padding: 1rem; overflow: hidden; max-width: 64rem; margin: 0 auto;
}
.product-featured-row { margin-top: 0; }
.section-head + .spack { margin-bottom: 2.5rem; }
.spack-media {
  position: relative; align-self: stretch; min-height: 22rem;
  border-radius: calc(var(--radius-lg) - 10px);
  background: radial-gradient(120% 100% at 30% 15%, #ffffff 0%, #eef5f1 55%, #dfece5 100%);
}
.spack-img {
  position: absolute; top: 50%; left: 50%; width: 92%; height: auto;
  filter: drop-shadow(0 16px 24px rgba(16, 40, 30, 0.18)); transition: transform .8s var(--ease);
}
.spack-l { transform: translate(-76%, -56%) rotate(-10deg) scale(0.74); }
.spack-r { transform: translate(-24%, -56%) rotate(10deg) scale(0.74); }
.spack-c { transform: translate(-50%, -44%) scale(0.92); z-index: 2; }
.spack:hover .spack-l { transform: translate(-80%, -58%) rotate(-12deg) scale(0.74); }
.spack:hover .spack-r { transform: translate(-20%, -58%) rotate(12deg) scale(0.74); }
.spack-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: var(--brand); color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.35rem 0.75rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(10, 107, 74, 0.25);
}
.spack-body { min-width: 0; padding: 1.5rem 1.5rem 1.5rem 0; }
.spack-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem) !important; line-height: 1.08;
  letter-spacing: -0.035em; margin: 0 0 0.5rem !important; color: var(--ink); text-wrap: balance;
}
.spack-sub { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 1.1rem; }
.spack-list { list-style: none; margin: 0 0 0.25rem !important; padding: 0 !important; border-top: 1px solid var(--line); }
.spack-list li {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--line); margin: 0 !important;
}
.spack-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; margin-top: -0.55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%230a6b4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.spack-li { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.spack-li strong { color: var(--ink); font-size: 0.98rem; }
.spack-li small { color: var(--muted); font-size: 0.8125rem; margin-top: 0.1rem; }
.spack-each { flex: none; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.spack-price { margin: 1.1rem 0 0.9rem; }
.spack-price .per s { color: var(--muted); font-size: 1rem; text-decoration-thickness: 1.5px; }
.spack-price .per b { color: var(--brand); font-weight: 600; font-size: 0.9375rem; }
.spack .launch-note { margin-bottom: 1rem !important; }
.spack .trust-line { justify-content: center; }
.js-motion .spack .spack-media { animation: mc-art 1.1s var(--ease) .1s backwards; }
@media (max-width: 860px) {
  .spack-section { padding: 0.5rem 0 2.5rem; }
  .spack { grid-template-columns: 1fr; padding: 0.75rem; max-width: 30rem; }
  .spack-media { min-height: 0; aspect-ratio: 5 / 4; }
  .spack-img { width: 86%; }
  .spack-body { padding: 1.25rem 0.6rem 0.9rem; }
  .spack-list li { padding-left: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .spack-img { transition: none; } .spack:hover .spack-l, .spack:hover .spack-r { transition: none; } }
