/* /app/: product page for the Green Hero app. */
/* Same box model as the rest of the site, so the shared menu bar keeps its size. */
*,*::before,*::after{box-sizing:border-box}
body.app-story{margin:0;background:#040a06;color:#eef5ea;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:clip}
.ax h1,.ax h2,.ax h3{font-family:var(--heading-font);font-weight:400;font-synthesis:none;letter-spacing:-.025em;margin:0}
.ax-kicker{font-size:12px;letter-spacing:3px;text-transform:uppercase;color:#9fd88a;margin:0 0 18px}
.ax-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ax-store{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.ax-store a{color:#f1f7ec;text-decoration:none;border:1px solid #4e6a4f;border-radius:999px;padding:12px 20px;font-size:13px;transition:background .2s,border-color .2s}
.ax-store a:hover{background:#17301c;border-color:#7fae76}

/* Hero: copy beside a still phone whose screens change. */
.ax-hero{min-height:calc(100vh - var(--site-nav-height,80px));display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;padding:60px max(32px,calc((100vw - 1260px)/2));background:radial-gradient(50% 60% at 74% 52%,rgba(60,150,70,.24),transparent);box-sizing:border-box}
.ax-hero h1{font-size:clamp(48px,6.4vw,104px);line-height:1;margin-bottom:26px}
.ax-sub{font-size:clamp(16px,1.4vw,20px);line-height:1.7;color:#bcd0b9;max-width:520px;margin:0}
.ax-hero-stage .ghp{--ghp-w:min(340px,28vw,36vh)}
.ax-try-link{background:#b9ef8f;color:#10281a!important;border-color:#b9ef8f!important;font-weight:600}
.ax-try-link:hover{background:#cff7ac!important}

/* Try the app: the live demo build inside the phone. */
.ax-try{scroll-margin-top:var(--site-nav-height,80px);display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding:120px max(32px,calc((100vw - 1260px)/2));background:radial-gradient(60% 70% at 72% 50%,rgba(60,150,70,.22),transparent)}
.ax-try h2{font-size:clamp(40px,4.6vw,72px);line-height:1.04;margin-bottom:22px}
.ax-try-copy>p{font-size:18px;line-height:1.75;color:#b9ccb6;max-width:520px;margin:0}
.ax-tips{margin:30px 0 0;padding:0;list-style:none;counter-reset:tip;display:grid;gap:14px;max-width:520px}
.ax-tips li{counter-increment:tip;display:grid;grid-template-columns:28px 1fr;gap:12px;font-size:15px;line-height:1.6;color:#dfeadb}
.ax-tips li:before{content:counter(tip);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid #4e6a4f;font-size:12px;color:#9fd88a}
.ax-try-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.ax-btn{font:inherit;font-size:14px;font-weight:600;border-radius:999px;padding:13px 24px;border:1px solid #b9ef8f;background:#b9ef8f;color:#10281a;cursor:pointer;transition:background .2s}
.ax-btn:hover{background:#cff7ac}
.ax-btn-ghost{background:transparent;color:#e8f3e2;border-color:#4e6a4f}
.ax-btn-ghost:hover{background:#17301c}
.ax-try-stage{position:relative}
.ax-try-stage .ghp{--ghp-w:min(360px,30vw,40vh)}
.ax-try-stage .ghp-screen iframe{opacity:0;transition:opacity .6s}
.ax-live-ready .ghp-screen iframe{opacity:1}
.ax-full{position:fixed;inset:0;z-index:1000;background:#000;display:flex;flex-direction:column}
.ax-full[hidden]{display:none}
.ax-full-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;background:#0b1a0e;color:#c4d6c1;font-size:13px}
.ax-full-bar button{font:inherit;font-weight:600;border:0;border-radius:999px;padding:8px 16px;background:#b9ef8f;color:#10281a}
.ax-full iframe{flex:1;width:100%;border:0}
.ax-full-open,.ax-full-open body{overflow:hidden}

/* Story: the phone stays put while each chapter changes its screen. */
.ax-story{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:0 max(32px,calc((100vw - 1260px)/2));position:relative}
.ax-story:before{content:'';position:absolute;inset:10% 0;background:radial-gradient(40% 50% at 30% 50%,rgba(60,150,70,.16),transparent);pointer-events:none}
.ax-story-phone{position:sticky;top:var(--site-nav-height,80px);height:calc(100vh - var(--site-nav-height,80px));display:grid;place-items:center}
.ax-story-phone .ghp{--ghp-w:min(340px,28vw,38vh)}
.ax-chapters article{min-height:92vh;display:flex;flex-direction:column;justify-content:center;max-width:470px;opacity:.22;transform:translateY(24px);transition:opacity .6s,transform .8s cubic-bezier(.2,.8,.2,1)}
.ax-chapters article.on{opacity:1;transform:none}
.ax-num{font-size:12px;letter-spacing:3px;color:#9fd88a;margin-bottom:18px}
.ax-chapters h3{font-size:clamp(34px,3.6vw,56px);line-height:1.05;margin-bottom:22px}
.ax-chapters p{font-size:18px;line-height:1.75;color:#b9ccb6;margin:0}

/* Film: three phones playing real recordings. */
.ax-film{padding:140px max(24px,calc((100vw - 1260px)/2)) 120px;text-align:center;background:linear-gradient(#040a06,#0b1a0e 50%,#040a06)}
.ax-film h2,.ax-products h2,.ax-download h2{font-size:clamp(38px,4.6vw,72px);line-height:1.04}
.ax-film-row{display:flex;justify-content:center;align-items:center;gap:clamp(16px,4vw,64px);margin-top:70px}
.ax-film .ghp{--ghp-w:min(280px,26vw)}

/* Products */
.ax-products{padding:130px max(32px,calc((100vw - 1260px)/2)) 90px}
.ax-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:50px}
.ax-cards a{position:relative;display:flex;flex-direction:column;gap:14px;min-height:220px;padding:28px 24px;border-radius:16px;background:linear-gradient(160deg,#122617,#0a160d);border:1px solid #213a26;color:#eef5ea;text-decoration:none;transition:transform .25s,border-color .25s}
.ax-cards a:hover{transform:translateY(-6px);border-color:#5f9a58}
.ax-card-k{font-family:var(--heading-font);font-size:28px}
.ax-cards p{font-size:14px;line-height:1.7;color:#a9bea6;margin:0}
.ax-arrow{position:absolute;right:20px;top:22px;font-size:20px;color:#9fd88a}

/* Download */
.ax-download{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:center;margin:40px max(32px,calc((100vw - 1260px)/2)) 120px;padding:60px;border-radius:24px;background:radial-gradient(90% 120% at 20% 20%,#2a6a33,#12311a 45%,#0a1a0e)}
.ax-download .ghp{--ghp-w:min(280px,60vw)}
.ax-download p{font-size:17px;line-height:1.7;color:#c4d6c1}
.ax-fine{font-size:12px!important;color:#93a990!important;margin-top:26px}

@media(max-width:860px){
  .ax-hero{grid-template-columns:1fr;padding:36px 22px 60px;text-align:center;gap:40px}
  .ax-sub{margin:auto}
  .ax-store{justify-content:center}
  .ax-hero-stage .ghp{--ghp-w:min(250px,62vw)}
  .ax-try{grid-template-columns:1fr;padding:80px 20px;gap:40px}
  .ax-try-stage{order:-1}
  .ax-try-stage .ghp{--ghp-w:min(230px,56vw)}
  .ax-story{grid-template-columns:1fr;padding:0 20px}
  .ax-story-phone{height:56vh;z-index:1}
  .ax-story-phone .ghp{--ghp-w:min(190px,44vw,24vh)}
  .ax-chapters{position:relative;z-index:2}
  .ax-chapters article{min-height:70vh;justify-content:flex-end;padding-bottom:12vh;max-width:none;background:linear-gradient(transparent,rgba(4,10,6,.92) 30%)}
  .ax-chapters h3{font-size:32px}
  .ax-chapters p{font-size:16px}
  .ax-film{padding:90px 16px}
  .ax-film-row{gap:10px}
  .ax-film .ghp{--ghp-w:30vw}
  .ax-cards{grid-template-columns:1fr 1fr}
  .ax-download{grid-template-columns:1fr;padding:36px 22px;margin:20px 16px 80px;text-align:center}
}
@media(prefers-reduced-motion:reduce){.ax-chapters article{opacity:1;transform:none}}

/* Shared footer, as on /infinity/ */
.app-story .site-footer{margin:0;padding:44px max(32px,calc((100vw - 1260px)/2));background:#020503;color:#a9bba6;border-top:1px solid rgba(251,252,247,.08);display:flex;gap:24px 50px;align-items:start;justify-content:space-between;flex-wrap:wrap;font-size:13px}
.app-story .site-footer p{margin:12px 0 0;font-size:12px;line-height:1.7}
.app-story .site-footer>div:last-of-type{display:flex;flex-direction:column;gap:10px}
.app-story .site-footer a{color:inherit;text-decoration:none}
.app-story .footer-brand{display:inline-flex;align-items:center;gap:10px}
.app-story .footer-brand .hero-splash{display:block;position:relative;overflow:hidden;width:46px;height:34px}
.app-story .footer-brand .hero-splash img{position:absolute;width:60px;height:60px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}
.app-story .footer-brand .hero-wordmark{width:150px;height:auto}
