/* The app page of coachaiofficial.com (/app, /<lang>/app), on top of
   /site.css (tokens, type, buttons, phone frame, reveal) and under
   /footer.css (header, footer, store buttons). Written by
   tooling/site_app_pages.py. Sections: hero (Ink), the intro block under it
   (Bone, the lede and the free week line; markup from tooling/site_hero.py,
   look from the "Page top" section of /site.css), the chapter anchors, five
   chapters (Bone and Ink in turn: two features beside a phone, the rest as
   cards), who it is for (Ink, a row of people), questions (Bone), download
   (Signal). Every asset comes from this origin; without a script every block
   stands in its final state and the people row scrolls by hand. */

/* ---------- Phone frame: the light app screen inside keeps its own colours ---------- */
.app-phone{margin:0;aspect-ratio:1080/2206}
.app-phone .scr{background:#fbfbf9}
.app-phone .dev{box-shadow:0 0 0 1.5px #2a2a28 inset,0 34px 80px rgba(0,0,0,.42),0 8px 20px rgba(0,0,0,.28)}

/* ---------- Hero: the shared page top of every section page (/site.css "Page top", since 2026-10-23) ---------- */

/* ---------- The intro block under the hero (Bone): the lede, the free week line, the action, a phone beside ---------- */
/* .page-intro, the phone and .page-lede come from /site.css; the red line and the action are the app's own:
   the QR on a desktop, the two store buttons on a phone (a QR cannot be scanned by the phone showing it). */
.app-free{color:var(--sig-text);font-size:12.5px;line-height:1.3;font-weight:700}
.app-qr{display:inline-flex;align-items:center;gap:20px}
.app-qr .qr-tile{width:132px;height:132px;flex:none;box-shadow:0 10px 30px rgba(11,11,11,.14)}
.app-qr:hover .qr-tile{transform:translateY(-2px)}
.qr-cap{display:grid;gap:12px;max-width:220px}
.qr-cap .mono{font-size:12px;line-height:1.45;color:var(--ink)}
.qr-os{display:flex;gap:12px}
.qr-os svg{width:20px;height:20px;fill:var(--ink);opacity:.75}
.app-act .app-stores{display:none}
@media(max-width:899px){
  .app-qr{display:none}
  .app-act .app-stores{display:flex}
}

/* ---------- The chapters as anchors ---------- */
.app-toc{background:var(--ink);color:var(--bone);border-top:1px solid var(--line-d)}
.toc{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.toc li + li{border-left:1px solid var(--line-d)}
.toc a{display:grid;gap:10px;align-content:start;height:100%;padding:24px 18px 26px;font-weight:700;font-size:14px;line-height:1.3;transition:background-color .2s,color .2s}
.toc li:first-child a{padding-left:0}
.toc a .mono{color:var(--sig-text)}
.toc a:hover{color:var(--white);background:rgba(242,238,231,.05)}
@media(max-width:900px){
  .toc{display:flex;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--gut));padding:0 var(--gut)}
  .toc::-webkit-scrollbar{display:none}
  .toc li{flex:none;width:44vw;max-width:220px}
  .toc a{padding:18px 16px 20px}
}

/* ---------- A chapter: number, headline, two features with a phone, cards ---------- */
.app-ch .ch-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:40px;align-items:start;padding-bottom:48px;border-bottom:2px solid currentColor}
.ch-n{font-size:clamp(84px,9vw,150px);line-height:.8;color:transparent;-webkit-text-stroke:2px var(--ink);letter-spacing:-.04em}
.ink .ch-n{-webkit-text-stroke-color:var(--bone)}
.ch-copy h2{font-size:var(--ch-fs,clamp(44px,5vw,84px));max-width:12em}
.ch-intro{margin-top:22px;font-size:19px;line-height:1.5;max-width:34em;color:var(--text-l);text-wrap:pretty}
.ink .ch-intro{color:rgba(242,238,231,.82)}
/* the two lead features side by side: the phone on a panel, the words under it */
.leads{list-style:none;margin:48px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.lead{min-width:0}
.lead-vis{position:relative;display:grid;place-items:center;padding:52px 24px 0;overflow:hidden;background:var(--bone-2)}
.lead-vis::before{content:"";position:absolute;left:0;right:0;bottom:0;height:34%;background:var(--ink)}
.ink .lead-vis{background:var(--ink-2)}
.ink .lead-vis::before{background:#2a2926}
.lead-phone{position:relative;height:min(64svh,560px);margin-bottom:-12%}
.lead-copy{max-width:600px;padding-top:28px}
.pain{font-family:var(--hand);font-weight:700;font-size:clamp(25px,2vw,30px);line-height:1.08;color:var(--muted-l);transform:rotate(-1.5deg);transform-origin:0 50%;text-wrap:balance}
.ink .pain{color:var(--muted-d)}
.lead-copy h3{margin-top:14px;font-size:clamp(30px,2.9vw,46px)}
.lead-p{margin-top:18px;font-size:17px;line-height:1.6;color:var(--text-l);text-wrap:pretty}
.ink .lead-p{color:rgba(242,238,231,.84)}
.cards{list-style:none;margin:64px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 40px}
.fc{border-top:2px solid currentColor;padding-top:20px}
.fc h3{margin-top:14px;font-size:clamp(22px,1.75vw,27px);line-height:.98}
.fc p:last-child{margin-top:14px;font-size:15.5px;line-height:1.58;color:var(--text-l);text-wrap:pretty}
.ink .fc p:last-child{color:rgba(242,238,231,.8)}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .app-ch .ch-head{grid-template-columns:1fr;gap:18px;padding-bottom:36px}
  .leads{grid-template-columns:1fr;gap:52px;margin-top:36px}
  .lead-vis{margin:0 calc(-1 * var(--gut));padding-top:44px}
  .lead-phone{height:min(112vw,520px);margin-bottom:-18%}
}
@media(max-width:760px){
  .ch-n{font-size:64px;-webkit-text-stroke-width:1.5px}
  .ch-copy h2{font-size:var(--ch-fs-m,clamp(28px,8.4vw,48px))}
  .ch-intro{margin-top:16px;font-size:16.5px}
  .lead-copy h3{font-size:clamp(27px,7.6vw,38px)}
  .pain{font-size:24px}
  .lead-p{font-size:16px;margin-top:16px}
  /* on a phone the cards are a row you swipe, so a chapter stays a few screens long */
  .cards{display:flex;gap:16px;margin:44px calc(-1 * var(--gut)) 0;padding:0 var(--gut) 4px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--gut);scrollbar-width:none;overscroll-behavior-x:contain}
  .cards::-webkit-scrollbar{display:none}
  .fc{flex:none;width:min(80vw,330px);scroll-snap-align:start}
  .fc h3{font-size:22px}
  .fc p:last-child{font-size:16px}
}

/* ---------- Who it is for (Ink): a row of people the reader swipes ---------- */
.app-who .sec-head .lede{max-width:560px}
.people{--lead:max(var(--gut),calc((100vw - var(--max)) / 2 + var(--gut)));list-style:none;margin:0;display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 var(--gut) 8px var(--lead);scroll-padding:0 var(--gut) 0 var(--lead);overscroll-behavior-x:contain;outline:none}
.people::-webkit-scrollbar{display:none}
.people:focus-visible{outline:2px solid var(--sig);outline-offset:4px}
.pc{flex:none;width:360px;scroll-snap-align:start}
.pc-ph{aspect-ratio:1/1;overflow:hidden;background:var(--ink-2)}
.pc-ph img{width:100%;height:100%;object-fit:cover}
.pc-h{margin-top:20px;font-size:23px;line-height:1}
.pc-q{margin-top:16px;font-family:var(--hand);font-weight:700;font-size:25px;line-height:1.08;color:var(--bone);transform:rotate(-1.2deg);transform-origin:0 50%;text-wrap:balance}
.pc-b{margin-top:14px;font-size:15.5px;line-height:1.58;color:rgba(242,238,231,.8);text-wrap:pretty}
.arrows-d .arrow{border-color:var(--bone);color:var(--bone)}
.arrows-d .arrow:hover{background:var(--bone);color:var(--ink)}
.arrows-d .arrow:disabled{background:transparent;color:var(--bone)}
@media(max-width:760px){
  .people{gap:16px}
  .pc{width:min(82vw,340px)}
  .pc-h{font-size:21px}
  .pc-q{font-size:24px}
}

/* ---------- Questions (Bone): plain <details>, open without a script ---------- */
.faq-in{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px;align-items:start}
.faq h2{font-size:clamp(40px,4.2vw,72px);position:sticky;top:100px}
.faq-list{border-top:2px solid var(--ink)}
.faq details{border-bottom:1px solid var(--line-l)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;cursor:pointer;list-style:none;font-weight:800;font-size:clamp(19px,1.6vw,23px);line-height:1.3}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--sig-text)}
.faq-ic{position:relative;flex:none;width:36px;height:36px;border:2px solid currentColor}
.faq-ic::before,.faq-ic::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;background:currentColor;transform:translate(-50%,-50%);transition:transform .25s ease}
.faq-ic::after{transform:translate(-50%,-50%) rotate(90deg)}
.faq details[open] .faq-ic::after{transform:translate(-50%,-50%) rotate(0deg)}
.faq details[open] summary{color:var(--ink)}
.faq details p{padding:0 56px 26px 0;font-size:17px;line-height:1.6;color:var(--text-l);max-width:44em}
@media(max-width:900px){.faq-in{grid-template-columns:1fr;gap:32px}.faq h2{position:static}}
@media(max-width:760px){.faq h2{font-size:clamp(34px,10.6vw,60px)}.faq summary{padding:20px 0}.faq details p{padding-right:0;font-size:16px}}

