/* ===== Daily Hero — "Find your inner green" ===== */
:root{
  --bg:#454640;
  --muted:#b2b3a7;
  --card:#d7d8d6;
  --card-ink:#474842;
  --white:#fff;
}
*{margin:0;padding:0;box-sizing:border-box}
html{height:100%;scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar{width:0;height:0;display:none}
body{
  min-height:100%;
  background:var(--bg);
  font-family:"Lexend",sans-serif;
  color:var(--white);
  overflow-x:clip;
}
body::-webkit-scrollbar{width:0;height:0;display:none}

/* ---- First-load preloader ---- */
.loader{position:fixed;inset:0;z-index:200;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
  background:linear-gradient(180deg,#31332c 0%,#454640 100%);
  transition:opacity .6s ease,visibility .6s ease}
.loader.hidden{opacity:0;visibility:hidden}
.loader-badge{position:relative;width:66px;height:66px;display:flex;align-items:center;justify-content:center}
.loader-ring{position:absolute;inset:0;border-radius:50%;
  border:2px solid rgba(255,255,255,.16);border-top-color:#fff;
  animation:spin .9s linear infinite}
.loader-leaf{width:28px;height:28px;animation:pulse 1.6s ease-in-out infinite}
.loader-text{font-family:"Lexend Exa",sans-serif;font-size:18px;letter-spacing:3px;
  color:#fff;animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.45}50%{opacity:1}}

/* ---- Pinned scroll ---- */
.scroll-track{position:relative;width:100%;background:var(--bg)}
/* ---- Scaling stage (keeps 1440x810 design identical at any width) ---- */
.viewport{
  position:sticky;top:0;
  width:100%;height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:var(--bg);
  overflow:hidden;
}
.stage{
  position:relative;z-index:1;
  width:1440px;
  height:810px;
  flex:0 0 auto;
  transform-origin:center center;
  overflow:hidden;
}

/* ---- Page layers ---- */
.pages{position:absolute;inset:0;z-index:1}
.page{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .55s ease}
.page.active{opacity:1;pointer-events:auto}
.nav,.orb,.scroll,.pager{z-index:5}

/* ---- Page progress dots ---- */
.pager{position:absolute;right:40px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;gap:12px}
.dot{width:9px;height:9px;border-radius:50%;border:none;padding:0;cursor:pointer;
  background:rgba(255,255,255,.35);transition:transform .3s,background .3s}
.dot.on{background:#fff;transform:scale(1.3)}

/* ---- Background ---- */
.bg{
  position:absolute;inset:0;
  /* single full-scene photo (has its own background); gradient is a fallback */
  background:url("bg-full.png") no-repeat center bottom,
    linear-gradient(180deg,#54564e 0%,#6a6c63 45%,#c6c9c2 100%);
  /* fit to width (edge to edge); if too tall, anchor bottom & crop the top */
  background-size:100% auto, cover;
  opacity:0;
  animation:bgIn 1.8s cubic-bezier(.2,.7,.2,1) forwards;
}
/* The full-scene photo replaces the separate moss layer */
.bg-moss{display:none}
@keyframes mossIn{to{opacity:1}}
/* Scrim so white text stays legible over the full-bleed moss */
.bg-mist{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(120deg,rgba(30,32,27,.72) 0%,rgba(30,32,27,.35) 34%,rgba(30,32,27,0) 60%),
    linear-gradient(180deg,rgba(30,32,27,.55) 0%,rgba(30,32,27,0) 28%),
    radial-gradient(120% 60% at 50% 120%, rgba(220,226,214,.22) 0%, rgba(220,226,214,0) 60%);
  opacity:0;animation:bgIn 2.4s .6s ease forwards;
}
.bg-grain{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(closest-side at 50% 118%,rgba(255,255,255,.12),transparent 70%);
  mix-blend-mode:screen;opacity:.5;
}
@keyframes bgIn{to{opacity:1}}

/* ---- Navbar ---- */
.nav{
  position:absolute;left:29px;top:27px;width:1387px;height:26px;
  display:flex;align-items:center;justify-content:space-between;
  opacity:0;animation:dropIn .9s .25s cubic-bezier(.2,.7,.2,1) forwards;
}
.nav-left{display:flex;align-items:center;gap:34px}
.logo{display:flex;width:24px;height:24px}
.nav-links{list-style:none;display:flex;gap:34px;align-items:center}
.nav-links li{font-size:14px;color:var(--muted);cursor:pointer;transition:color .25s}
.nav-links li.active{color:var(--white);font-weight:700}
.nav-links li:hover{color:var(--white)}
.nav-right{display:flex;align-items:center;gap:12px}
.nav-dot{width:26px;height:9px;border-radius:6px;
  background:linear-gradient(90deg,rgba(255,255,255,.85),rgba(255,255,255,.25))}
.nav-login{font-size:14px;font-weight:700;color:var(--white);cursor:pointer}

/* ---- Headline ---- */
.headline{
  position:absolute;left:18px;top:181px;width:420px;
  font-family:"Lexend Exa",sans-serif;font-weight:400;
  font-size:52px;line-height:1.24;letter-spacing:-6.24px;color:var(--white);
}
.headline .ln{display:block;white-space:nowrap}
.headline .ch{display:inline-block;opacity:0}
.headline .ch.space{width:.28em}
.headline .ch.play{animation:charUp .5s cubic-bezier(.2,.7,.2,1) both}
/* per-page letter animation variants */
.page.v1 .headline .ch.play{animation-name:charDown}
.page.v2 .headline .ch.play{animation-name:charPop}
.page--download .headline .ch.play{animation-name:charFade}
@keyframes charUp{0%{opacity:0;transform:translateY(28px);filter:blur(6px)}60%{filter:blur(0)}100%{opacity:1;transform:none;filter:none}}
@keyframes charDown{0%{opacity:0;transform:translateY(-34px)}100%{opacity:1;transform:none}}
@keyframes charPop{0%{opacity:0;transform:scale(.3);filter:blur(2px)}70%{transform:scale(1.09)}100%{opacity:1;transform:scale(1);filter:none}}
@keyframes charFade{0%{opacity:0;transform:translateX(-18px)}100%{opacity:1;transform:none}}

/* ---- Subtext ---- */
.subtext{
  position:absolute;left:462px;top:181px;width:240px;
  font-size:16px;line-height:1.4;color:var(--muted);
}
.subtext .sub-line{display:block;opacity:0;
  animation:subUp .7s cubic-bezier(.2,.7,.2,1) both}
.subtext .sub-line:nth-child(1){animation-delay:.35s}
.subtext .sub-line:nth-child(2){animation-delay:.47s}
.subtext .sub-line:nth-child(3){animation-delay:.59s}
.subtext .sub-line:nth-child(4){animation-delay:.71s}
.page.v1 .subtext .sub-line{animation-name:subLeft}
.page.v2 .subtext .sub-line{animation-name:subFade}
@keyframes subUp{0%{opacity:0;transform:translateY(12px)}100%{opacity:1;transform:none}}
@keyframes subLeft{0%{opacity:0;transform:translateX(-26px)}100%{opacity:1;transform:none}}
@keyframes subFade{0%{opacity:0;filter:blur(4px)}100%{opacity:1;filter:none}}
@keyframes lineIn{to{opacity:1;transform:translateY(0)}}

/* ---- CTA ---- */
.cta{
  position:absolute;left:462px;top:306px;width:178px;height:56px;
  display:flex;align-items:center;gap:15px;padding:0 8px;
  border:1px solid rgba(255,255,255,.4);border-radius:999px;
  background:transparent;color:var(--white);cursor:pointer;
  opacity:0;transform:translateY(14px);
  animation:lineIn .7s .55s cubic-bezier(.2,.7,.2,1) forwards;
  transition:background .3s,border-color .3s;
}
.cta:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.7)}
.cta-icon{display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:99px;background:rgba(255,255,255,.07)}
.cta-label{font-size:16px}

/* ---- Circular orb / play ---- */
.orb{position:absolute;left:153px;top:398px;width:126px;height:126px;
  opacity:0;animation:lineIn .8s .4s cubic-bezier(.2,.7,.2,1) forwards}
.orb-ring{position:absolute;inset:0;border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  mask:conic-gradient(from 0deg,#000 0deg,#000 90deg,transparent 90deg);
  animation:spin 6s linear infinite}
.orb-cap{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);
  width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.9);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  animation:bob 2.4s ease-in-out infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,5px)}}

/* ---- Cards (glass widgets) ---- */
.card{
  position:absolute;width:296px;height:280px;border-radius:32px;overflow:hidden;
  color:#f2f3ee;opacity:0;
  animation:cardUp .8s .25s cubic-bezier(.2,.75,.2,1) both;
}
.card--about{left:820px;top:201px}
.card--stove{left:1116px;top:477px;animation-delay:.4s}
/* variant directions */
.page.v1 .card--about{animation-name:cardLeft}
.page.v1 .card--stove{animation-name:cardRight}
.page.v2 .card{animation-name:cardScale}
/* variant positions — vary between pages but keep clear of the stats/chip */
.page.v1 .card--about{left:788px;top:178px}
.page.v1 .card--stove{left:1090px;top:462px}
.page.v2 .card--about{left:838px;top:190px}
.page.v2 .card--stove{left:1096px;top:478px}
@keyframes cardUp{0%{opacity:0;transform:translateY(70px)}100%{opacity:1;transform:none}}
@keyframes cardLeft{0%{opacity:0;transform:translateX(-72px)}100%{opacity:1;transform:none}}
@keyframes cardRight{0%{opacity:0;transform:translateX(72px)}100%{opacity:1;transform:none}}
@keyframes cardScale{0%{opacity:0;transform:scale(.82)}100%{opacity:1;transform:none}}
.w-img{display:block;width:100%;height:100%;object-fit:cover}
.w-sub{position:absolute;left:26px;top:28px;font-size:15px;font-weight:400;color:#d3d5c9}
.w-title{position:absolute;left:26px;top:52px;width:220px;
  font-family:"Lexend Exa",sans-serif;font-weight:400;font-size:24px;line-height:1.04;
  letter-spacing:-1.4px;color:#f4f5ef}
.w-grid{position:absolute;right:20px;bottom:20px;width:56px;height:56px;padding:0;
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .3s}
.card:hover .w-grid{transform:scale(1.06)}
.w-grid svg{display:block}

/* Page-1 rebuilt widgets (light card + moss photo + optional exact image) */
.widget-card{background:#e7e7e5;color:#44453f}
.wc-photo{position:absolute;pointer-events:none}
.card--about .wc-photo{left:0;right:0;top:0;height:58%;
  background:url("moss-branch.png") no-repeat center 32%;background-size:cover}
.card--stove .wc-photo{left:0;right:0;bottom:0;height:54%;
  background:url("moss-hills.png") no-repeat center bottom;background-size:cover}
.wc-sub{position:absolute;left:26px;font-size:15px;color:#70716a}
.wc-title{position:absolute;left:26px;width:220px;
  font-family:"Lexend Exa",sans-serif;font-weight:400;font-size:24px;line-height:1.04;
  letter-spacing:-1.4px;color:#44453f}
.card--stove .wc-sub{top:28px}
.card--stove .wc-title{top:52px}
.card--about .wc-sub{bottom:106px}
.card--about .wc-title{bottom:26px}
.wc-grid{position:absolute;right:20px;bottom:20px;width:56px;height:56px;border:none;padding:0;
  border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.15)}
.widget-card .w-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Pages 2-3 mountain-scene cards — white strip + text like page 1 */
.scene-card{overflow:hidden;background:#e7e7e5;color:#44453f}
.scene-svg{position:absolute;left:0;width:100%;display:block}
.card--about.scene-card .scene-svg,
.card--about.scene-card .w-img{position:absolute;left:0;right:0;top:0;bottom:auto;height:58%;width:100%;object-fit:cover}
.card--stove.scene-card .scene-svg,
.card--stove.scene-card .w-img{position:absolute;left:0;right:0;bottom:0;top:auto;height:54%;width:100%;object-fit:cover}

/* ---- Stats ---- */
.stats{position:absolute;left:1195px;top:220px;width:216px;height:150px}
.stat{position:absolute;display:flex;align-items:center;gap:12px}
.stat{left:30px;top:0}
.stat--2{left:0;top:114px}
.stat-ring{width:31px;height:31px;transform:rotate(-90deg)}
.stat-track{fill:none;stroke:rgba(255,255,255,.18);stroke-width:2}
.stat-fill{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;
  stroke-dasharray:88;stroke-dashoffset:88;
  animation:fill 1.2s .55s cubic-bezier(.3,.7,.2,1) forwards}
@keyframes fill{to{stroke-dashoffset:calc(88 - 88 * var(--pct))}}
.stat-text{display:flex;flex-direction:column;line-height:1.4;
  opacity:0;animation:lineIn .6s .75s ease forwards}
.stat-name{font-size:14px;color:var(--muted)}
.stat-val{font-size:14px;color:#fff}

/* ---- Scroll indicator ---- */
.scroll{position:absolute;left:716px;top:666px;height:143px;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:14px;
  opacity:0;animation:lineIn .8s 2s ease forwards}
.scroll-label{writing-mode:vertical-rl;transform:rotate(180deg);
  font-weight:200;font-size:12px;letter-spacing:24px;text-transform:uppercase;
  color:#fff;padding-left:24px}
.scroll-line{width:1px;height:45px;background:rgba(255,255,255,.4);position:relative;overflow:hidden}
.scroll-line::after{content:"";position:absolute;left:0;top:-45px;width:1px;height:45px;
  background:#fff;animation:drip 2s linear infinite}
@keyframes drip{to{top:45px}}

/* ---- Glassmorphism ---- */
.glass{
  background:rgba(40,44,36,.30);
  backdrop-filter:blur(18px) saturate(1.35);
  -webkit-backdrop-filter:blur(18px) saturate(1.35);
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 14px 44px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.glass-btn{
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(10px) saturate(1.2);
  -webkit-backdrop-filter:blur(10px) saturate(1.2);
  border:1px solid rgba(255,255,255,.26);
}

/* ---- Chip widget ---- */
.chip{position:absolute;left:462px;top:398px;width:172px;padding:14px 18px;border-radius:20px;
  display:flex;flex-direction:column;gap:2px;color:#fff;opacity:0;
  animation:cardScale .7s .6s cubic-bezier(.2,.75,.2,1) both}
.chip-k{font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#cdd0c5}
.chip-v{font-family:"Lexend Exa",sans-serif;font-size:26px;line-height:1;letter-spacing:-1px}
.chip-s{font-size:12px;color:#d7d9cf}
.page.v1 .chip{left:153px;top:548px;animation-name:cardRight}
.page.v2 .chip{left:462px;top:412px;animation-name:cardLeft}

/* ---- Download page ---- */
.page--download{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:34px;padding:0 60px}
.dl-head{text-align:center;max-width:660px}
.dl-eyebrow{display:inline-block;font-size:13px;letter-spacing:3px;text-transform:uppercase;
  color:#cdd0c5;margin-bottom:12px;opacity:0;animation:subFade .6s .15s both}
.page--download .headline{position:static;width:auto;left:auto;top:auto;text-align:center;
  font-size:58px;letter-spacing:-4px}
.dl-sub{margin-top:16px;font-size:17px;color:#dfe1d7;opacity:0;animation:subUp .6s .9s both}
.apps{display:flex;gap:30px}
.app{position:relative;width:420px;padding:34px 34px 30px;border-radius:30px;color:#fff;
  opacity:0;animation:cardScale .7s both}
.apps .app:nth-child(1){animation-delay:.5s}
.apps .app:nth-child(2){animation-delay:.66s}
.app-badge{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.5px;
  padding:6px 12px;border-radius:99px;color:#12140f;background:var(--accent);margin-bottom:18px}
.app-name{font-family:"Lexend Exa",sans-serif;font-weight:400;font-size:30px;
  letter-spacing:-1.5px;margin-bottom:10px}
.app-desc{font-size:15px;line-height:1.5;color:#dcded4}
.app-stores{display:flex;gap:12px;margin-top:26px}
.store{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:14px;
  color:#fff;text-decoration:none;cursor:pointer;transition:transform .25s,background .25s}
.store:hover{transform:translateY(-2px)}
.store-ic{display:flex;align-items:center;justify-content:center;width:22px}
.store span{display:flex;flex-direction:column;line-height:1.15;font-size:15px;font-weight:600}
.store small{font-size:9px;font-weight:500;opacity:.75;text-transform:uppercase;letter-spacing:.5px}

/* hide orb + scroll indicator on the download page */
.stage.on-download .orb,.stage.on-download .scroll{opacity:0;pointer-events:none;transition:opacity .4s}

/* ==================== MOBILE (phones) ==================== */
@media (max-width:900px){
  /* containers: drop the scaled fixed stage, flow normally */
  .viewport{position:static;height:auto;display:block;overflow:visible}
  .stage{position:static;width:100%;height:auto;transform:none!important;overflow:visible}
  .scroll-track{height:auto!important}

  /* background stays fixed & full-bleed behind the scrolling content */
  .bg{position:fixed;inset:0;
    background:url("bg-full.png") no-repeat center center,
      linear-gradient(180deg,#54564e 0%,#6a6c63 45%,#c6c9c2 100%);
    background-size:cover,cover}
  .bg-mist,.bg-grain{position:fixed}

  /* each page becomes a full-height, centered vertical stack */
  .pages{position:static}
  .page{position:static;opacity:1!important;pointer-events:auto;min-height:100dvh;
    display:flex;flex-direction:column;justify-content:center;
    padding:104px 22px 84px}

  /* nav pinned to the top */
  .nav{position:fixed;left:16px;right:16px;top:14px;width:auto}
  .nav-left{gap:16px}
  .nav-links{gap:16px}
  .nav-links li{font-size:13px}

  /* headline + text */
  .headline{position:static;width:auto;font-size:clamp(34px,9vw,46px);
    letter-spacing:-2px;margin:0 0 14px;text-shadow:0 2px 16px rgba(0,0,0,.35)}
  .headline .ln{display:block;white-space:normal}
  .subtext{position:static;width:auto;max-width:none;font-size:15px;
    margin:0 0 22px;color:#e8e9e1;text-shadow:0 1px 10px rgba(0,0,0,.3)}
  .cta{position:static;margin:0 0 26px;transform:none}

  /* cards stack full-width (keep position:relative so inner layers stay contained) */
  .card{position:relative!important;left:auto!important;top:auto!important;
    width:100%;max-width:none;height:190px;margin:0 0 14px}

  /* chip + stats flow inline */
  .chip{position:relative!important;left:auto!important;top:auto!important;
    width:auto;max-width:220px;margin:0 0 16px}
  .stats{position:relative!important;left:auto!important;top:auto!important;
    width:auto;height:auto;display:flex;gap:26px;margin:4px 0 0}
  .stat,.stat--2{position:relative!important;left:auto!important;top:auto!important}

  /* hide desktop-only chrome */
  .orb,.scroll,.pager{display:none}

  /* download page: stack the two apps */
  .page--download{padding:104px 22px 84px;gap:22px}
  .page--download .headline{font-size:clamp(32px,8.5vw,44px)}
  .dl-head{max-width:none}
  .apps{flex-direction:column;gap:14px;width:100%;align-items:center}
  .app{width:100%;max-width:380px;padding:24px}
  .app-stores{flex-wrap:wrap}
}

/* ---- Reduced motion ---- */
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.001s!important;animation-delay:0s!important}
  .headline .ch{opacity:1;transform:none;filter:none}
}
