/* ============================================================================
   COD HERO ARCHETYPES — shared structural engine.
   Loaded after per-product style.css. Per-product palette lives in style.css;
   this file only guarantees every archetype renders cleanly & responsively.
   Archetype body: section.hero.hero-{center|band|strip|cover|stack|ribbon}
   ============================================================================ */

/* --- shared hero groundwork --- */
.hero{position:relative}
.hero .wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.hero-copy h1{letter-spacing:-.02em;text-wrap:balance}
.sec-head h2,.cta-band h2,.quote h2{text-wrap:balance}
.hero-copy .lead{max-width:54ch}
.hero-actions{display:flex;gap:16px;margin-top:26px;flex-wrap:wrap;align-items:center}
.hero-actions .cta-btn{font-size:1.05rem;padding:15px 32px}
.hero-visual{position:relative}
.hero-visual .hero-prod{display:block;max-width:100%;height:auto}

/* ---------- B. CENTER (product medallion + orbiting chips) ---------- */
.hero-center{text-align:center;overflow:hidden}
.hero-center .hero-copy{margin:0 auto;max-width:820px}
.hero-center h1{font-size:clamp(2.1rem,5vw,3.4rem);line-height:1.1}
.hero-center .lead{margin:18px auto 0;font-size:1.1rem}
.hero-center .hero-visual{display:flex;justify-content:center;margin:26px auto 0;position:relative}
.hero-center .hero-visual .hero-prod{width:min(260px,52vw);filter:drop-shadow(0 14px 26px rgba(0,0,0,.16))}
.quick-chips{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:26px auto 0;padding:0;max-width:760px}
.quick-chips li{background:#fff;border:1px solid;padding:8px 16px;border-radius:999px;font-weight:700;font-size:.88rem}

/* ---------- C. BAND (two-tone editorial, left panel) ---------- */
.hero-band{display:grid;grid-template-columns:1.1fr .9fr;align-items:stretch}
.hero-band .band-left{display:flex;align-items:center}
.hero-band .band-in{padding:80px 24px}
.hero-band h1{font-size:clamp(2.2rem,4.6vw,3.3rem);line-height:1.08}
.hero-band .lead{margin:18px 0 0;font-size:1.1rem;max-width:48ch}
.band-wrap{position:relative;display:flex;align-items:center;justify-content:center;padding:60px 24px;overflow:hidden;min-height:320px}
.band-visual .hero-prod{width:min(300px,60%);filter:drop-shadow(0 16px 30px rgba(0,0,0,.18))}
.band-meta{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:90%}
.band-meta span{background:rgba(255,255,255,.9);border-radius:999px;padding:6px 14px;font-weight:700;font-size:.82rem}

/* ---------- D. STRIP (headline + under-bar of trust points) ---------- */
.hero-strip{overflow:hidden}
.hero-strip-in{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding:76px 24px}
.hero-strip h1{font-size:clamp(2.1rem,4.8vw,3.3rem);line-height:1.07}
.hero-strip .lead{margin:18px 0 0;max-width:50ch}
.hero-strip .hero-visual .hero-prod{width:min(300px,38vw);filter:drop-shadow(0 15px 28px rgba(0,0,0,.17))}
.strip-bar{padding:0;border-top:1px solid}
.strip-bar ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:0;padding:18px 24px}
.strip-bar li{display:flex;align-items:center;gap:10px;font-weight:700;font-size:.92rem}

/* ---------- E. COVER (right panel + floating feature cards) ---------- */
.hero-cover-in{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding:80px 24px}
.hero-cover h1{font-size:clamp(2.2rem,5vw,3.5rem);line-height:1.05}
.hero-cover .lead{margin:18px 0 0;max-width:46ch;font-size:1.08rem}
.hero-cover .hero-visual.cover{position:relative;display:flex;align-items:center;justify-content:center;min-height:380px}
.hero-cover .hero-visual.cover>div .hero-prod{width:min(300px,38vw);position:relative;z-index:1;filter:drop-shadow(0 16px 30px rgba(0,0,0,.18))}
.float-card{position:absolute;background:#fff;border-radius:14px;padding:12px 16px;box-shadow:0 8px 20px rgba(0,0,0,.10);font-size:.84rem;font-weight:700;z-index:2;display:flex;align-items:center;gap:8px}
.float-card.a{top:6%;left:0}
.float-card.b{bottom:14%;left:-2%}
.float-card.c{top:36%;right:-2%}

/* ---------- F. STACK (centered copy, product below) ---------- */
.hero-stack{text-align:center;overflow:hidden}
.stack-in{max-width:900px;margin:0 auto;padding:72px 24px}
.hero-stack h1{font-size:clamp(2.1rem,5vw,3.4rem);line-height:1.08}
.hero-stack .lead{margin:18px auto 0;font-size:1.1rem;max-width:52ch}
.hero-stack .hero-actions{justify-content:center}
.hero-stack .hero-visual{display:flex;justify-content:center;margin-top:30px}
.hero-stack .hero-visual .hero-prod{width:min(280px,54vw);filter:drop-shadow(0 14px 26px rgba(0,0,0,.16))}

/* ---------- G. RIBBON (kicker ribbon + integrated product) ---------- */
.hero-ribbon{padding:0;overflow:hidden}
.hero-ribbon .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding:60px 24px}
.ribbon-kicker{grid-column:1/-1;display:flex;align-items:center;gap:14px}
.ribbon-kicker span{display:inline-block;padding:7px 16px;border-radius:999px;font-weight:800;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}
.ribbon-kicker em{font-style:normal;font-weight:600;font-size:.9rem}
.hero-ribbon h1{font-size:clamp(2.1rem,4.8vw,3.2rem);line-height:1.06}
.hero-ribbon .lead{margin:16px 0 0;max-width:48ch}
.hero-ribbon .hero-visual .hero-prod{width:min(300px,38vw);filter:drop-shadow(0 15px 28px rgba(0,0,0,.18))}
.hero-ribbon .trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px}
.hero-ribbon .trust-row span{display:flex;align-items:center;gap:8px;font-weight:700;font-size:.9rem}

/* ---------- responsive ---------- */
@media (max-width:960px){
  .hero-band{grid-template-columns:1fr}
  .band-wrap{min-height:260px;padding:40px 24px}
  .hero-cover-in,.hero-strip-in,.hero-ribbon .wrap{grid-template-columns:1fr;gap:22px}
  .hero-cover .hero-visual.cover{min-height:300px}
  .hero-strip-in{text-align:center}
  .hero-strip .hero-actions{justify-content:center}
}
@media (max-width:720px){
  .hero-center .hero-visual .hero-prod,.hero-stack .hero-visual .hero-prod{width:min(210px,58vw)}
  .hero-strip-in,.hero-cover-in,.hero-ribbon .wrap{padding:44px 18px}
  .hero-strip .hero-visual .hero-prod,.hero-cover .hero-visual.cover>div .hero-prod,.hero-ribbon .hero-visual .hero-prod{width:min(200px,55vw)}
  .band-in{padding:52px 18px}
  .band-meta{position:static;transform:none;margin-top:16px}
  .float-card{font-size:.76rem;padding:9px 11px}
  .float-card.a{left:4%}.float-card.b{left:4%;bottom:8%}.float-card.c{right:4%}
  .hero-ribbon .wrap{text-align:center}
  .ribbon-kicker{justify-content:center;flex-wrap:wrap}
  .hero-ribbon .trust-row{justify-content:center}
  .hero-center .hero-actions,.hero-stack .hero-actions{justify-content:center}
}
/* ============================================================================
   ROUND 2026-08-24 — mobile CTA ergonomics + reading comfort (shared, additive,
   loaded after per-product style.css). Minimize CTA clutter; make the CTAs we
   DO keep comfortable to tap without turning them into huge full-width slabs.
   ============================================================================ */

/* Tap-friendly size + vertical centering, never stretched by default */
.cta-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;text-align:center;
  -webkit-tap-highlight-color:transparent;
}
.cta-wrapper .cta-btn{min-height:48px}

/* Reading measure: keep prose from running too wide on big screens */
.sec-head p, .simple p, .quote p{max-width:62ch}

/* Section vertical rhythm: comfortable, consistent breathing between blocks.
   (Left to each product's bespoke theme for exact spacing; nothing forced here
   so we don't inflate page height on already-tuned designs.) */

/* Mobile: no full-bleed giant buttons; keep them content-sized with margins */
@media (max-width:720px){
  .cta-btn{max-width:100%}
  .hero-actions .cta-btn{padding-left:22px;padding-right:22px}
  /* give tap targets breathing room so a thumb-tap on one can't hit the next */
  .hero .cta-btn + .cta-btn,.cta-wrapper .cta-btn{margin-top:10px}
}

/* ============================================================================
   HEADER brand-link + FOOTER back-to-top (shared). The brand is a home link
   (brief §10) and the footer bottom carries a localized "back to top" (§10/§14).
   ============================================================================ */
.brand .brand-link{display:inline-flex;align-items:center;color:inherit;text-decoration:none}
.brand .brand-link:hover,.brand .brand-link:focus{text-decoration:underline;text-underline-offset:3px}
.footer-bot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.ft-top{display:inline-flex;align-items:center;gap:6px;font-weight:600;text-decoration:none;color:inherit;opacity:.75;min-height:44px}
.ft-top:hover,.ft-top:focus{opacity:1;text-decoration:underline;text-underline-offset:3px}
@media (max-width:520px){.footer-bot{justify-content:center;text-align:center}}

/* ============================================================================
   ROUND 2026-08-24 — MOBILE ABOVE-THE-FOLD CTA (brief §9 / §34). Hard acceptance:
   on a phone (here ≤520px covers 360–412) the hero BUY button must be visible in
   the first viewport WITHOUT scrolling. Two levers: collapse the header to a
   single short row (nav becomes one scrollable strip) and compact the hero copy
   + product so the CTA lands above the fold. Loads last → wins over per-product
   style.css for these structural guarantees.
   ============================================================================ */
@media (max-width:520px){
  /* ---- 1) compact header: single row, brand + scrollable anchor strip ---- */
  .site-header{position:static !important; padding:0 !important; min-height:0 !important; box-shadow:none !important}
  .header-in{height:56px !important; flex-direction:row !important; flex-wrap:nowrap !important;
             gap:10px !important; padding:0 14px !important; align-items:center !important;
             width:100% !important; max-width:100% !important}
  .header-in .brand{font-size:1.02rem !important; white-space:nowrap; line-height:1.1; flex:0 0 auto}
  .header-in .nav{flex-wrap:nowrap !important; overflow-x:auto !important; -webkit-overflow-scrolling:touch;
                  gap:14px !important; margin-left:auto !important; scrollbar-width:none;
                  flex:1 1 auto !important; min-width:0 !important; max-width:100% !important}
  .header-in .nav::-webkit-scrollbar{display:none}
  .header-in .nav a{font-size:.84rem !important; white-space:nowrap; padding:10px 0 !important}
  /* ---- 2) compact hero so the primary CTA clears the fold ---- */
  .hero{padding-top:0}
  .hero-copy h1,.hero h1{font-size:clamp(1.62rem,7vw,2.15rem) !important;
                         line-height:1.1 !important; margin:0 !important; letter-spacing:-.015em !important}
  .hero-copy .lead,.hero .lead{margin-top:8px !important; font-size:.98rem !important; line-height:1.42; max-width:100%}
  .hero .hot{margin-top:7px !important; font-size:.88rem !important}
  .hero .eyebrow{font-size:.76rem !important; margin-bottom:3px !important}
  .hero-actions{margin-top:12px !important; gap:10px !important}
  .hero-actions .cta-btn{min-height:46px; padding:12px 20px !important; font-size:.98rem !important}
  .hero-visual{margin-top:14px !important}
  .hero-visual .hero-prod{width:min(158px,42vw) !important}
  .hero-center .hero-visual .hero-prod,.hero-stack .hero-visual .hero-prod{width:min(168px,48vw) !important}
  .hero-center .hero-visual{margin-top:14px !important}
  /* archetype paddings down */
  .hero .wrap,.hero-strip-in,.hero-cover-in,.hero-ribbon .wrap{padding:20px 16px !important}
  .band-in{padding:22px 16px !important}
  .band-wrap{min-height:0 !important; padding:20px 16px !important}
  .band-meta{margin-top:10px !important; gap:6px !important}
  .band-meta span{padding:5px 11px;font-size:.76rem}
  .hero-cover .hero-visual.cover{min-height:0 !important}
  .hero-cover .hero-visual.cover>div .hero-prod{width:min(158px,42vw) !important}
  .float-card{display:none !important}
  .ribbon-kicker{margin-bottom:4px;gap:8px;font-size:.74rem}
  .ribbon-kicker span{padding:5px 12px;font-size:.72rem}
  .ribbon-kicker em{font-size:.78rem}
  .quick-chips{margin-top:12px !important; gap:8px}
  .quick-chips li{font-size:.78rem;padding:6px 12px}
  .hero-ribbon .trust-row{margin-top:12px !important;gap:12px}
  .hero-ribbon .trust-row span{font-size:.8rem}
  /* ---- 3) hard guarantee: copy-first stacked hero; pull any absolute product
     visual back into flow below the text and cap the lead, so the buy button
     always clears the first viewport on phones ---- */
  .hero-in,.hero-strip-in,.hero-cover-in,.hero-ribbon .wrap,.hero-band{
    display:flex !important;flex-direction:column !important;align-items:center !important;
    gap:14px !important;text-align:center !important}
  .hero-band{overflow:hidden !important}
  .hero-copy,.hero .hero-copy,.band-left{order:1 !important;width:100% !important;margin:0 !important}
  .hero-visual,.hero .hero-visual,.band-wrap{order:2 !important;position:static !important;
    top:auto !important;right:auto !important;left:auto !important;bottom:auto !important;
    margin-top:12px !important;min-height:0 !important}
  /* keep decorative overflow clipped on phones so a wide orb/glow can't widen the
     document (band hero) */
  .band-wrap{overflow:hidden !important}
  .hero .lead{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  /* secondary marketing line hidden on phones so the core value + CTA own the fold */
  .hero .hot{display:none !important}
  /* ---- 4) about split + checklist: stack and wrap so nothing escapes the
     viewport at 320px ---- */
  .split,.wrap.split{flex-direction:column !important;align-items:stretch !important}
  .checklist{width:100% !important;max-width:100% !important;padding:0 !important;margin:18px 0 0 !important}
  .checklist li{display:flex !important;flex-wrap:wrap !important;gap:8px;min-width:0}
  .checklist li span{min-width:0;overflow-wrap:anywhere}
}
