/* Beauty by Earth landing pages: mobile-first, themeable, accessible (WCAG 2.1 AA).
   Every color comes from theme tokens set on .lp by renderLanding(). No orange anywhere (brand rule for self tanner). */
.lp{ --ground:#fff; --card:#f6f4ef; --band:#f1efe9; --foot:#ece8df; --ink:#161616; --muted:#57534e; --line:#e4e0d7;
  --accent:#2f5d46; --accent-ink:#fff; --deep:#1d3b2f; --deep-ink:#fff; --spark:#c9d6c1; --cta:#161616; --cta-ink:#fff;
  font-family:"BBE Figtree", system-ui, -apple-system, sans-serif; color:var(--ink); background:var(--ground); line-height:1.55; font-size:16px; -webkit-font-smoothing:antialiased; overflow-x:clip; }
.lp *{ box-sizing:border-box; }
.lp h1,.lp h2,.lp h3{ font-family:"BBE Garamond", Georgia, serif; font-weight:600; line-height:1.08; margin:0 0 .4em; letter-spacing:-.01em; color:var(--ink); }
.lp h1{ font-size:clamp(2.1rem, 8.4vw, 3.5rem); text-wrap:balance; }
.lp h2{ font-size:clamp(1.7rem, 6.2vw, 2.5rem); text-align:center; text-wrap:balance; }
.lp h3{ font-size:1.25rem; }
.lp p{ margin:0 0 .8em; }
.lp img{ max-width:100%; display:block; }
.lp a{ color:inherit; }
.lp button{ font:inherit; cursor:pointer; color:var(--ink); -webkit-text-fill-color:currentColor; opacity:1; }
.lp :focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }
.lp-skip{ position:absolute; left:.5rem; top:-4rem; z-index:60; background:var(--cta); color:var(--cta-ink) !important; padding:.7rem 1rem; border-radius:10px; font-weight:700; text-decoration:none; }
.lp-skip:focus{ top:.5rem; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* offer bar: static (no auto-moving text), one clear line */
.lp-bar{ position:sticky; top:0; z-index:30; background:var(--deep); color:var(--deep-ink); font-size:.875rem; display:flex; align-items:stretch; justify-content:center; text-align:center; }
.lp-bar p{ margin:0; padding:.6rem 1rem; flex:1; }
.lp-bar b{ letter-spacing:.06em; }
.lp-countdown{ flex:none; display:flex; align-items:center; gap:.35rem; background:var(--accent); color:var(--accent-ink); padding:.6rem .8rem; white-space:nowrap; font-weight:600; }
.lp-countdown b{ font-variant-numeric:tabular-nums; }

.lp-head{ display:flex; justify-content:center; align-items:center; gap:.5rem; padding:.55rem 0; border-bottom:1px solid var(--line); background:var(--ground); }
.lp-head img{ height:32px; width:auto; }
.lp[data-dark] .lp-head img, .lp[data-dark] .lp-foot img{ filter:invert(1); }
.lp-word{ font-family:"BBE Garamond", Georgia, serif; font-size:1.35rem; font-weight:600; }

/* hero: mobile = media on top, copy below; CTA visible on the first screen */
.lp-hero{ display:grid; background:var(--card); }
.lp-hero-media{ position:relative; aspect-ratio:4/5; max-height:min(50vh, 440px); width:100%; overflow:hidden; background:var(--band); }
.lp-hero-media video,.lp-hero-media img{ width:100%; height:100%; object-fit:cover; }
.lp-media-ctl{ position:absolute; right:.7rem; bottom:.7rem; display:flex; gap:.45rem; }
.lp-media-ctl button{ width:44px; height:44px; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff !important; display:grid; place-items:center; }
.lp-media-ctl svg{ width:20px; height:20px; fill:currentColor; }
.lp-badge{ position:absolute; left:.8rem; top:.8rem; background:var(--accent); color:var(--accent-ink); font-weight:700; font-size:.8rem; letter-spacing:.1em; padding:.4rem .75rem; border-radius:999px; }
.lp-hero-copy{ padding:1rem 1.2rem 1.6rem; text-align:center; }
.lp-hero-copy h1{ margin-bottom:.2em; }
.lp-kicker{ text-transform:uppercase; letter-spacing:.12em; font-size:.75rem; font-weight:700; color:var(--accent); margin-bottom:.45rem; }
.lp-prod{ font-weight:600; font-size:.95rem; margin-bottom:.4rem !important; }
.lp-sub{ color:var(--muted); font-size:1.05rem; max-width:34rem; margin-inline:auto; }
.lp-rating{ font-size:.9rem; color:var(--muted); }
.lp-stars{ color:var(--ink); letter-spacing:.1em; margin-right:.3rem; }
.lp-cta{ display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.15rem .5rem; min-height:56px; width:100%; max-width:26rem; padding:.85rem 1.4rem; border-radius:14px; background:var(--cta); color:var(--cta-ink) !important; text-decoration:none; font-weight:700; font-size:1.05rem; border:0; transition:transform .15s ease-out, opacity .15s ease-out; }
.lp-cta:hover{ opacity:.9; }
.lp-cta:active{ transform:scale(.98); }
.lp-cta small{ font-weight:500; font-size:.9rem; opacity:.9; }
.lp-mini{ list-style:none; padding:0; margin:.9rem 0 0; display:flex; flex-wrap:wrap; justify-content:center; gap:.3rem 1rem; font-size:.875rem; color:var(--muted); }

/* proof strip: static chips, swipe on mobile */
.lp-proof{ background:var(--deep); color:var(--deep-ink); }
.lp-proof ul{ list-style:none; margin:0 auto; padding:.8rem 1.2rem; display:flex; gap:.5rem 1.4rem; overflow-x:auto; scroll-snap-type:x proximity; max-width:72rem; font-size:.875rem; font-weight:500; }
.lp-proof li{ flex:none; scroll-snap-align:start; display:flex; align-items:center; gap:.45rem; }
.lp-proof li::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--spark); }

/* sections */
.lp-sec{ padding:3rem 1.2rem; max-width:72rem; margin:0 auto; }
.lp-sec-sub{ text-align:center; color:var(--muted); margin-top:-.2rem; }
.lp-ben-grid{ display:grid; gap:.9rem; margin-top:1.4rem; }
.lp-ben{ background:var(--card); border:1px solid var(--line); border-radius:18px; padding:1.2rem 1.2rem 1rem; }
.lp-ben-ico{ display:inline-grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--ground); border:1px solid var(--line); font-size:1.15rem; margin-bottom:.6rem; color:var(--accent); }
.lp-ben p{ color:var(--muted); margin:0; }

/* video reel */
.lp-reel{ max-width:none; background:var(--band); }
.lp-reel-head{ display:flex; justify-content:center; }
.lp-pause-all{ background:none; border:1px solid var(--line); border-radius:999px; min-height:44px; padding:.4rem 1rem; font-weight:600; font-size:.875rem; color:var(--ink); }
.lp-reel-track{ display:flex; gap:.8rem; overflow-x:auto; scroll-snap-type:x mandatory; padding:1.2rem 1.2rem .4rem; margin:0 -1.2rem; }
.lp-reel-item{ flex:0 0 68%; max-width:300px; scroll-snap-align:center; margin:0; position:relative; border-radius:18px; overflow:hidden; aspect-ratio:9/16; background:var(--line); }
.lp-reel-item video{ width:100%; height:100%; object-fit:cover; }
.lp-reel-cap{ position:absolute; left:.7rem; top:.7rem; color:#fff; font-size:.8rem; font-weight:600; background:rgba(0,0,0,.6); padding:.2rem .55rem; border-radius:999px; }
.lp-reel-item .lp-media-ctl{ right:.6rem; bottom:.6rem; }

/* shade quiz */
.lp-quiz-card{ max-width:34rem; margin:1.2rem auto 0; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:1.3rem; text-align:center; }
.lp-q-t{ font-weight:600; font-size:1.05rem; }
.lp-opts{ display:grid; gap:.6rem; }
.lp-opts button{ min-height:52px; border-radius:14px; border:1.5px solid var(--line); background:var(--ground); font-weight:600; transition:border-color .15s ease-out; }
.lp-opts button:hover{ border-color:var(--accent); }
.lp-q-res b{ color:var(--accent); font-family:"BBE Garamond", serif; font-size:1.5rem; }
.lp-q-why{ color:var(--muted); }
.lp-link{ background:none; border:0; text-decoration:underline; color:var(--muted); margin-top:.6rem; min-height:44px; }

/* buy box */
.lp-buy-grid{ display:grid; gap:1.4rem; }
.lp-gal-main{ position:relative; border-radius:18px; overflow:hidden; background:var(--card); aspect-ratio:1; }
.lp-gal-main img{ width:100%; height:100%; object-fit:cover; }
.lp-thumbs{ display:flex; gap:.5rem; margin-top:.6rem; overflow-x:auto; padding:3px; }
.lp-thumbs button{ flex:0 0 64px; height:64px; padding:0; border-radius:10px; overflow:hidden; border:2px solid transparent; background:var(--card); }
.lp-thumbs button[aria-pressed="true"]{ border-color:var(--ink); }
.lp-thumbs img{ width:100%; height:100%; object-fit:cover; }
.lp-buy-box h2{ text-align:left; }
.lp-units{ display:grid; gap:.55rem; margin:1rem 0; border:0; padding:0; }
.lp-unit{ display:grid; grid-template-columns:28px 1fr; gap:.3rem .6rem; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:.65rem .75rem; }
.lp-unit-n{ width:26px; height:26px; border-radius:50%; background:var(--ink); color:var(--ground); display:grid; place-items:center; font-size:.8rem; font-weight:700; }
.lp-unit-l{ font-weight:600; font-size:.95rem; }
.lp-unit-l em{ font-style:normal; color:var(--accent-ink); background:var(--accent); padding:.1rem .5rem; border-radius:999px; font-size:.8rem; letter-spacing:.08em; }
.lp-shades{ grid-column:1/-1; display:flex; gap:.4rem; flex-wrap:wrap; }
.lp-shades button{ flex:1; min-width:84px; min-height:44px; border-radius:999px; border:1.5px solid var(--line); background:var(--ground); font-weight:600; font-size:.95rem; }
.lp-shades button[aria-checked="true"]{ border-color:var(--ink); background:var(--ink); color:var(--ground); }
.lp-qty{ display:flex; align-items:center; gap:.7rem; margin:.4rem 0 1rem; font-weight:600; }
.lp-qty button{ width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); background:var(--ground); font-size:1.2rem; }
.lp-price{ display:flex; align-items:baseline; gap:.7rem; flex-wrap:wrap; margin-bottom:.3rem; }
.lp-price s{ color:var(--muted); font-size:1.1rem; }
.lp-price b{ font-size:2rem; font-family:"BBE Garamond", serif; }
.lp-save, .lp-sticky-price i{ background:color-mix(in srgb, var(--accent) 13%, var(--ground)); color:var(--accent); font-weight:700; font-size:.85rem; padding:.25rem .6rem; border-radius:999px; font-style:normal; white-space:nowrap; }
.lp[data-dark] .lp-save, .lp[data-dark] .lp-sticky-price i{ background:var(--accent); color:var(--accent-ink); }
.lp-mech{ font-size:.95rem; color:var(--muted); }
.lp-code{ display:block; color:var(--ink); font-weight:600; margin-top:.2rem; }
.lp-cta-buy{ max-width:none; margin-top:.4rem; }
.lp-assure{ list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:.35rem; font-size:.9rem; color:var(--muted); }
.lp-ec p{ color:var(--muted); }
.lp-ec-tiers{ list-style:none; padding:0; margin:.8rem 0 1rem; display:grid; gap:.45rem; }
.lp-ec-tiers li{ display:flex; justify-content:space-between; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:.65rem .9rem; font-weight:600; }

/* reviews */
.lp-reviews{ max-width:none; background:var(--card); }
.lp-rev-track{ display:flex; gap:.9rem; overflow-x:auto; scroll-snap-type:x mandatory; padding:1rem 1.2rem; margin:0 -1.2rem; list-style:none; }
.lp-rev{ flex:0 0 84%; max-width:360px; scroll-snap-align:center; margin:0; background:var(--ground); border:1px solid var(--line); border-radius:18px; padding:1.2rem; display:flex; flex-direction:column; }
.lp-rev blockquote{ margin:0; flex:1; }
.lp-rev p{ font-family:"BBE Garamond", serif; font-size:1.2rem; line-height:1.35; }
.lp-rev cite{ font-style:normal; font-size:.875rem; color:var(--muted); }

/* steps */
.lp-steps ol{ list-style:none; padding:0; margin:1.2rem auto 0; max-width:40rem; display:grid; gap:.9rem; }
.lp-steps li{ display:grid; grid-template-columns:44px 1fr; gap:.8rem; align-items:start; }
.lp-steps li > span{ width:44px; height:44px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:grid; place-items:center; font-weight:700; font-family:"BBE Garamond", serif; font-size:1.3rem; }
.lp-steps p{ color:var(--muted); margin:.1rem 0 0; }

/* guarantee */
.lp-guar{ display:grid; grid-template-columns:84px 1fr; gap:1rem; align-items:center; max-width:46rem; margin:0 1.2rem 2.6rem; padding:1.3rem; border-radius:20px; background:var(--deep); color:var(--deep-ink); }
@media (min-width: 48.5rem){ .lp-guar{ margin:0 auto 2.6rem; } }
.lp-guar h2{ text-align:left; font-size:1.45rem; color:var(--deep-ink); }
.lp-guar p{ margin:0; color:var(--deep-ink); opacity:.9; font-size:.95rem; }
.lp-guar-seal{ width:84px; height:84px; border-radius:50%; border:2px dashed var(--spark); display:grid; place-items:center; align-content:center; font-family:"BBE Garamond", serif; font-size:2rem; color:var(--spark); line-height:1; }
.lp-guar-seal small{ font-family:"BBE Figtree", sans-serif; font-size:.65rem; letter-spacing:.2em; }

/* faq */
.lp-faq{ background:var(--band); max-width:none; }
.lp-faq details{ max-width:44rem; margin:0 auto .6rem; background:var(--ground); border-radius:14px; border:1px solid var(--line); padding:0 1.1rem; }
.lp-faq summary{ cursor:pointer; list-style:none; padding:1rem 0; min-height:44px; font-weight:600; display:flex; justify-content:space-between; gap:1rem; }
.lp-faq summary::-webkit-details-marker{ display:none; }
.lp-faq summary::after{ content:"+"; font-size:1.3rem; line-height:1; transition:transform .2s ease-out; }
.lp-faq details[open] summary::after{ transform:rotate(45deg); }
.lp-faq details p{ color:var(--muted); padding-bottom:1rem; margin:0; }

.lp-final{ text-align:center; padding:3rem 1.2rem 3.4rem; background:var(--foot); }
.lp-foot{ text-align:center; font-size:.875rem; color:var(--muted); padding:1.2rem 1.2rem 6.5rem; background:var(--ground); }

/* sticky buy bar */
.lp-sticky{ position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; align-items:center; gap:.8rem; padding:.7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); background:var(--ground); border-top:1px solid var(--line); box-shadow:0 -8px 24px rgba(0,0,0,.08); }
.lp-sticky[hidden]{ display:none; }
.lp-sticky-thumbs{ position:relative; width:44px; height:44px; flex:none; }
.lp-sticky-thumbs img{ position:absolute; width:34px; height:34px; object-fit:cover; border-radius:8px; border:2px solid var(--ground); box-shadow:0 2px 6px rgba(0,0,0,.18); }
.lp-sticky-thumbs img:first-child{ left:0; top:0; transform:rotate(-6deg); }
.lp-sticky-thumbs img:last-child{ right:0; bottom:0; transform:rotate(5deg); }
.lp-sticky-price{ display:flex; align-items:center; gap:.45rem; flex:1; min-width:0; line-height:1.1; flex-wrap:wrap; }
.lp-sticky-price s{ color:var(--muted); font-size:.85rem; }
.lp-sticky-price b{ font-size:1.15rem; }
.lp-sticky-price i{ font-size:.75rem; padding:.15rem .5rem; }
.lp-sticky .lp-cta{ width:auto; min-height:50px; padding:.7rem 1.3rem; }
@media (min-width: 760px){ .lp-sticky{ justify-content:center; } .lp-sticky-price{ flex:0 1 auto; } }

/* quiz page */
.lp-quiz-prog{ font-size:.875rem; color:var(--muted); font-weight:600; margin-bottom:.4rem; }
.lp-q{ border:0; padding:0; margin:0; }
.lp-q-t{ display:block; width:100%; margin-bottom:.7rem; }
.lp-hero-quiz .lp-quiz-card{ margin:1rem auto; text-align:left; background:var(--ground); }
.lp-hero-quiz .lp-q-t{ text-align:center; }
.lp-hero-quiz .lp-hero-media{ display:none; }
.lp-hero-quiz .lp-hero-copy{ padding-top:1.6rem; }
.lp-result{ scroll-margin-top:3rem; }
.lp-res-head{ text-align:center; margin-bottom:1.4rem; }
.lp-res-head:focus{ outline:none; }
.lp-q-res{ max-width:34rem; margin:1.2rem auto 0; text-align:center; }
.lp-q-res:focus{ outline:none; }

/* collection cards */
.lp-cards{ list-style:none; padding:0; margin:1.4rem 0 0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.8rem; }
.lp-card{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:.6rem .6rem .8rem; display:flex; flex-direction:column; gap:.35rem; }
.lp-card-img{ padding:0; border:0; border-radius:12px; overflow:hidden; background:var(--ground); aspect-ratio:1; }
.lp-card-img img{ width:100%; height:100%; object-fit:cover; }
.lp-card h3{ font-family:"BBE Figtree", sans-serif; font-size:.95rem; font-weight:700; line-height:1.25; margin:.2rem 0 0; }
.lp-card-rate{ font-size:.8rem; color:var(--muted); margin:0; }
.lp-card-price{ font-weight:700; margin:0 !important; }
.lp-card .lp-shades button{ min-width:0; font-size:.85rem; padding:0 .4rem; }
.lp-card-act{ display:grid; gap:.4rem; margin-top:auto; padding-top:.3rem; }
.lp-add{ min-height:44px; border-radius:12px; border:0; background:var(--cta); color:var(--cta-ink) !important; font-weight:700; }
.lp-more{ min-height:44px; border-radius:12px; border:1.5px solid var(--line); background:var(--ground); font-weight:600; font-size:.9rem; }

/* details drawer: bottom sheet on mobile, side panel on desktop */
.lp-drawer{ border:0; padding:0; margin:auto auto 0; width:100%; max-width:100%; max-height:88vh; border-radius:20px 20px 0 0; background:var(--ground); color:var(--ink); }
.lp-drawer::backdrop{ background:rgba(0,0,0,.45); }
.lp-drawer-in{ position:relative; padding:1rem 1.2rem 1.6rem; overflow:auto; max-height:88vh; }
.lp-drawer-x{ position:sticky; top:0; float:right; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--ground); font-size:1.5rem; line-height:1; z-index:2; }
.lp-drawer-imgs{ display:flex; gap:.5rem; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 0 1rem; clear:both; }
.lp-drawer-imgs img{ flex:0 0 78%; aspect-ratio:1; object-fit:cover; border-radius:14px; scroll-snap-align:start; background:var(--card); }
.lp-drawer h2{ text-align:left; font-size:1.6rem; }
.lp-drawer-blurb{ color:var(--muted); }
.lp-drawer .lp-cta{ max-width:none; margin:.8rem 0 .3rem; }
@media (min-width: 760px){ .lp-drawer{ margin:0 0 0 auto; height:100vh; max-height:100vh; width:min(30rem, 100%); border-radius:0; } .lp-drawer-in{ max-height:100vh; } .lp-drawer-imgs img{ flex-basis:88%; } }

/* bundle box */
.lp-bundle{ max-width:40rem; margin:0 auto; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:1.3rem; }
.lp-bundle h2{ text-align:left; }
.lp-bundle-prog{ font-weight:600; margin-bottom:.5rem !important; }
.lp-prog-bar{ height:10px; border-radius:999px; background:var(--line); overflow:hidden; margin-bottom:1rem; }
.lp-prog-bar i{ display:block; height:100%; background:var(--accent); border-radius:999px; transition:width .25s ease-out; }
.lp-slots{ list-style:none; padding:0; margin:0 0 .8rem; display:grid; gap:.5rem; }
.lp-slot{ display:grid; grid-template-columns:48px 1fr auto 44px; align-items:center; gap:.6rem; background:var(--ground); border:1px solid var(--line); border-radius:14px; padding:.45rem .5rem; }
.lp-slot img{ width:48px; height:48px; object-fit:cover; border-radius:10px; }
.lp-slot b{ display:block; font-size:.92rem; line-height:1.2; }
.lp-slot small{ color:var(--muted); font-size:.85rem; }
.lp-slot-p{ font-weight:700; font-size:.92rem; }
.lp-slot-p em{ font-style:normal; color:var(--accent); }
.lp-slot button{ width:44px; height:44px; border-radius:50%; border:0; background:none; font-size:1.3rem; color:var(--muted); }
.lp-slot.empty{ display:block; border-style:dashed; color:var(--muted); font-size:.92rem; padding:.9rem; text-align:center; }
.lp-cta[aria-disabled="true"]{ opacity:.55; cursor:not-allowed; }
@media (min-width: 760px){ .lp-cards{ grid-template-columns:repeat(auto-fill, minmax(13rem, 1fr)); gap:1rem; } }

/* reveal on scroll (subtle) */
.lp .reveal{ opacity:0; transform:translateY(12px); transition:opacity .4s ease-out, transform .4s ease-out; }
.lp .reveal.in{ opacity:1; transform:none; }

/* larger screens */
@media (min-width: 760px){
  .lp-hero{ grid-template-columns:1.05fr 1fr; align-items:center; }
  .lp-hero-quiz .lp-hero-media{ display:block; }
  .lp-hero-media{ max-height:none; height:100%; min-height:620px; aspect-ratio:auto; }
  .lp-hero-copy{ text-align:left; padding:3rem 3.2rem; }
  .lp-hero-copy .lp-sub{ margin-inline:0; }
  .lp-mini{ justify-content:flex-start; }
  .lp-ben-grid{ grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); }
  .lp-buy-grid{ grid-template-columns:1.1fr 1fr; gap:3rem; align-items:start; }
  .lp-reel-track,.lp-rev-track{ justify-content:center; }
  .lp-reel-item{ flex-basis:240px; }
  .lp-rev{ flex-basis:340px; }
  .lp-proof ul{ justify-content:center; flex-wrap:wrap; }
}
@media (prefers-reduced-motion: reduce){ .lp *{ animation:none !important; transition:none !important; } .lp .reveal{ opacity:1; transform:none; } }
