/* Codex42 /apps, mock-up A. Loads after websites-a.css and reuses its wa- parts as they are: the hero with the
   "Included" card, the label rows, the pinned sideways gallery, the big checklist, the tiles, the steps, the FAQ
   and the green close (and websites-a.js drives the motion). Only the app-specific parts live here, prefixed aa-:
   - the device stages: real screenshots in phone frames and browser windows on a dark panel, sized with the panel (cqw)
   - the after-launch cards
   - small fixes for the contact form inside the green close
   Plain ASCII. No inline CSS in the page. Versioned filename: rename when editing after a deploy. */

/* ---------- the stage: a dark panel, a soft tint per app, the screens on top ---------- */
.aa-stage{--tint:rgba(67,224,138,.16);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(72% 96% at 90% 0%,var(--tint),transparent 64%),radial-gradient(60% 70% at 0% 100%,rgba(255,255,255,.035),transparent 70%),#0a1114}
.aa-t-brainlist{--tint:rgba(120,104,255,.26)}
.aa-t-calman{--tint:rgba(67,224,138,.22)}
.aa-t-blue{--tint:rgba(66,133,255,.2)}
.aa-t-violet{--tint:rgba(124,98,255,.2)}
.aa-t-lime{--tint:rgba(178,236,62,.17)}
.aa-t-orange{--tint:rgba(255,158,64,.18)}

/* the pictures inside a stage keep their own shape (the wa- slides and tiles fill and zoom theirs) */
.wa-card-vis .aa-stage img,.wa-tile-img .aa-stage img{display:block;width:100%;height:auto;max-width:none;transform:none;scale:none;translate:none;transition:none}

/* a browser window */
.aa-win{--w:72cqw;flex:none;width:var(--w);border-radius:1.2cqw;overflow:hidden;background:#0c1317;border:1px solid var(--c42-line-2);
  box-shadow:0 3cqw 6cqw -2.6cqw #000}
.aa-win-bar{display:flex;align-items:center;gap:.6cqw;height:clamp(15px,2.5cqw,30px);padding:0 1.2cqw;background:#0c1317;border-bottom:1px solid var(--c42-line);
  font:400 clamp(7px,1cqw,11.5px)/1 var(--c42-mono);color:var(--c42-faint)}
.aa-win-bar i{flex:none;width:clamp(4px,.6cqw,8px);height:clamp(4px,.6cqw,8px);border-radius:50%;background:rgba(255,255,255,.18)}
.aa-win-bar span{margin-left:.6cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aa-win--light{background:#f3f0e8}
/* tall screenshots are shown from the top */
.wa-card-vis .aa-win--crop img,.wa-tile-img .aa-win--crop img{aspect-ratio:16 / 9;object-fit:cover;object-position:50% 0}
.wa-card-vis .aa-win--crop-tall img,.wa-tile-img .aa-win--crop-tall img{aspect-ratio:16 / 10;object-fit:cover;object-position:50% 0}

/* phones: our real app screens in a phone frame, the middle one a little higher */
/* (translate, not transform: websites-a.css resets transforms inside revealed blocks in its static mode) */
.aa-phones{--w:18cqw;display:flex;align-items:center;justify-content:center;gap:3.2cqw}
.aa-phone{flex:none;width:var(--w);border-width:max(3px,.42cqw);border-radius:2.5cqw;box-shadow:0 2.8cqw 5cqw -2cqw #000}
.aa-phones > :nth-child(2){translate:0 -2.6cqw}
/* store-style shots that already show a phone sit on the panel as they are, with round corners */
.aa-phones--flat{--w:19cqw;gap:3.6cqw}
.aa-phones--flat > :nth-child(2){translate:0 2.2cqw}
.aa-shot{flex:none;width:var(--w);border-radius:1.8cqw;overflow:hidden;box-shadow:0 2.8cqw 5cqw -2cqw #000}

/* a window with a phone in front (the booking app) */
.aa-stage--duo > .aa-win{--w:66cqw;position:absolute;left:6.5cqw;top:5.5cqw}
.aa-stage--duo > .aa-phone{--w:15.5cqw;position:absolute;right:7.5cqw;top:10cqw}

/* two windows, the second in front and lower (the tiles) */
.aa-stage--pair > .aa-win{position:absolute}
.aa-stage--pair > .aa-win:first-child{--w:62cqw;left:6cqw;top:6cqw}
.aa-stage--pair > .aa-win + .aa-win{--w:44cqw;right:6cqw;bottom:6cqw;box-shadow:0 3cqw 7cqw -2cqw #000}

/* ---------- 2. the five kinds of app: the pictures sit a little high, clear of the buttons under them ---------- */
.wa-card-vis .aa-stage{padding-bottom:5.5cqw}
/* "Booking and payments" is longer than the Websites page's style names: a little smaller, so it stays in its column */
.aa .wa-card-t{font-size:clamp(30px,3.2vw,50px)}
.wa-card-vis .aa-stage--duo{padding-bottom:0}
.wa-slides figure > .aa-stage{transform:scale(1.035);transition:transform 5s cubic-bezier(.2,.6,.3,1)}
.wa-slides figure.is-on > .aa-stage{transform:none}

/* ---------- 3. the checklist note ---------- */
.aa .wa-feats-foot .btn-ghost{min-height:56px}

/* ---------- 4. our apps: the tiles carry a stage, the screens drift a little with the scroll ---------- */
.aa-sub{margin-top:clamp(16px,1.6vw,24px);font-size:clamp(17px,1.5vw,21px);line-height:1.5;color:var(--c42-text-2);max-width:40ch}
.aa-tile .wa-tile-img{container-type:inline-size;background:#0a1114}
.aa-phones--tile{--w:19.5cqw}
.aa-phones--flat.aa-phones--tile{--w:20.5cqw}
.wa-tile-img .aa-stage > *{translate:0 calc((var(--y,.5) - .5)*-4cqw)}
.wa-tile-img .aa-stage--pair > * + *{translate:0 calc((var(--y,.5) - .5)*-9cqw)}
.aa-tile-d{margin-top:10px;padding:0 6px;font-size:clamp(15.5px,1.2vw,17px);line-height:1.5;color:var(--c42-text-2);max-width:46ch}

/* ---------- 6. after launch: three plain cards ---------- */
.aa-care{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.8vw,24px)}
.aa-plan{display:flex;flex-direction:column;padding:clamp(24px,2.5vw,38px);border-radius:var(--wa-r);border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(160deg,rgba(67,224,138,.08),rgba(255,255,255,.02) 46%,rgba(255,255,255,.015));box-shadow:0 40px 90px -50px rgba(0,0,0,.8)}
.aa-plan-k{font:500 12.5px/1 var(--c42-mono);letter-spacing:.14em;color:var(--c42-accent);margin-bottom:clamp(18px,2.2vw,32px)}
.aa-plan-n{font-size:clamp(28px,2.8vw,44px);line-height:1;letter-spacing:-.04em}
.aa-plan-t{margin:14px 0 clamp(20px,2vw,28px);font:500 clamp(17px,1.4vw,20px)/1.35 var(--c42-display);letter-spacing:-.01em;color:#c9cfdb;text-wrap:balance}
.aa-plan .ticks{padding-top:clamp(18px,1.8vw,24px);border-top:1px dashed rgba(255,255,255,.16)}
.aa-plan .ticks li{color:var(--c42-text)}
html.wa-on .aa-plan.wa-rv:nth-child(2){transition-delay:.1s}
html.wa-on .aa-plan.wa-rv:nth-child(3){transition-delay:.2s}

/* ---------- the hero: "come back to." is the longest green word, so the headline tops out a little lower than on
   /websites and stays in its column on very wide screens ---------- */
@media (min-width:761px){.aa .wa-hero--card .wa-h1{font-size:clamp(48px,min(6.3vw,10.6vh),92px)}}

/* ---------- the hero card: the prices link closes the footnote ---------- */
.aa-fcard-go{display:flex;width:max-content;margin-top:12px;font-size:15px}

/* ---------- 8. the contact form in the green close ---------- */
.aa-form .field textarea{min-height:128px}
/* the radio inputs under the "What is it about?" buttons stay invisible in websites-a's static mode too */
html.wa-static .wa-end .seg input{opacity:0!important}

/* ---------- smaller screens ---------- */
@media (max-width:999px){
  .wa-card-vis .aa-stage{padding-bottom:8cqw}
  /* one column under the picture: a long name may take two lines */
  .aa .wa-card-t{white-space:normal;text-wrap:balance}
}
@media (max-width:899px){
  .aa-care{grid-template-columns:minmax(0,1fr)}
  html.wa-on .aa-plan.wa-rv:nth-child(n){transition-delay:0s}
}
@media (max-width:760px){
  .aa .wa-feats-foot .btn-ghost{width:100%}
}
@media (max-width:680px){
  .aa-tile-d{padding:0 2px}
}
@media (prefers-reduced-motion:reduce){
  .wa-tile-img .aa-stage > *{translate:none}
  .wa-slides figure > .aa-stage{transform:none;transition:none}
}
html.wa-static .wa-slides figure > .aa-stage{transform:none}

/* v2: two care plans (Keep Shipping was removed on 2026-11-27) */
@media (min-width:900px){.aa-care--2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px}}
