/* ──────────────────────────────────────────────────────────────────────
   /app ON THE LANDING PAGE'S SYSTEM. Loaded last on app.html.

   The hero keeps its own desktop wallpaper (sky, sand and coral rising
   from the foot of the card, app-hero.css) — that was asked for. Below it
   the sections are the landing page's own markup (<div class="x">, every
   class x-*), styled by sections.css and played by sky.js exactly as on /.
   This file only seats the hero, draws the two things / has no copy of
   (the build list and the request line in the steps), and stops the older
   passes' id rules for #privacy and #get reaching the new bands.
   ────────────────────────────────────────────────────────────────────── */

/* the hero: the landing's inset card and bar, this page's colours. Its
   type is ink on the light wallpaper, so the bar's capsule stays white. */
body:has(.sa-hero) .sa-hero { margin: -68px 12px 0; padding-top: calc(68px + 96px); border-radius: 28px; }
@media (max-width: 860px) { body:has(.sa-hero) .sa-hero { margin-inline: 8px; border-radius: 22px; } }
body:has(.sa-hero) .sa-hero .sa-h1-dl { font-size: clamp(56px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.04em; font-weight: 650; color: #15132B; }
body:has(.sa-hero) .sa-hero .sa-tag-dl { color: #6E6E76; }
body:has(.sa-hero) .sa-hero #sa-dl {
  height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  background: #15132B; color: #fff; box-shadow: 0 12px 24px -12px rgba(25, 15, 100, .45); transition: transform .15s, background .15s;
}
body:has(.sa-hero) .sa-hero #sa-dl:hover { background: #221F45; transform: translateY(-1px); }
@media (max-width: 640px) { body:has(.sa-hero) .sa-hero .sa-h1-dl { font-size: 44px; } }

/* the hero's cursor is drawn in ink here: white vanishes on this wallpaper */
.hero-cur.is-ink b { background: #15132B; box-shadow: none; }
.hero-cur.is-ink i { border-color: rgba(21, 19, 43, .55); background: rgba(21, 19, 43, .04); }

/* app-hero.css and mobbin.css still paint #privacy and #get as cards by id
   (margins, radii, a night or grey ground, their own ink); here they are
   the landing's bands */
body:has(.sa-hero) .x > #privacy,
body:has(.sa-hero) .x > #get {
  margin: 0 !important; border-radius: 0 !important; overflow: visible;
  color-scheme: light; color: var(--x-ink);
}
body:has(.sa-hero) .x > #privacy { background: #FAFAFA; }
body:has(.sa-hero) .x > #get { background: #fff; }

/* how it works: the list from the billing band, the stage from / 's How it
   works. The app is drawn on the soft grey tile itself, no browser frame;
   one dialog floats over it, and the Soba window comes in beside it only
   on the steps where Soba is actually open. Screens are landing/steps. */
.bl-stage.ah { min-height: 560px; border-radius: 28px; background: #F3F3F4; }
.ah-p { display: block; }
.ah-ui { position: absolute; inset: 0; padding: 30px 34px; display: flex; flex-direction: column; font-size: 15px; color: var(--x-ink); transition: opacity .4s, filter .4s; }
.ah-ui.is-dim { opacity: .55; filter: blur(2px) saturate(.6); }
.ah-top { position: relative; align-self: stretch; }
.ah-cbtn, .ah-pill { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; }
.ah-cbtn { padding: 6px 12px; border-radius: 8px; background: var(--x-ink); color: #fff; }
.ah-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--x-ink); border: 1px solid #E2E2E6; white-space: nowrap; }
.ah-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34A46B; }
.ah-pill span { display: inline !important; width: auto !important; height: auto !important; background: none !important; font-weight: 400; color: #8A8A90; }
.ah-comp { margin-top: auto; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid #E6E6EA; font-size: 14.5px; color: #A6A6AC; }
.ah .st-ask, .ah .st-status, .ah .st-ans, .ah .st-bill { opacity: 1; transform: none; }
.ah .st-ans { max-width: 88%; }
.ah-modal, .ah-mac { position: absolute; top: 50%; z-index: 2; }
.ah-modal { left: 50%; width: min(310px, 62%); height: auto; translate: -50% -50%; border-radius: 16px; box-shadow: 0 0 0 1px rgba(20, 20, 30, .06), 0 30px 60px -24px rgba(20, 20, 40, .4); }
.has-mac .ah-modal { width: min(280px, 40%); }
/* the request dialog spins its waiting ring over the logo, as on / */
.ah-spin { display: block; overflow: hidden; }
.ah-spin > img { display: block; width: 100%; height: auto; }
.ah-mac {
  right: 4%; width: min(220px, 27%); translate: 0 -50%; border-radius: 14px; overflow: hidden; background: #F2F2F4;
  box-shadow: 0 0 0 1px rgba(20, 20, 30, .08), 0 30px 60px -24px rgba(20, 20, 40, .4);
}
.ah-mac img { display: block; width: 100%; height: auto; }
.ah-mbar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; background: #E9E9EC; border-bottom: 1px solid #DEDEE2; }
.ah-mbar i { width: 7px; height: 7px; border-radius: 50%; background: #FF5F57; } .ah-mbar i:nth-child(2) { background: #FEBC2E; } .ah-mbar i:nth-child(3) { background: #D3D3D8; }
.ah-mbar b { flex: 1; margin-right: 30px; text-align: center; font-size: 10.5px; font-weight: 600; color: #3A3A40; }
/* the dialog and the window arrive a beat apart when their step is picked */
.ah-p .ah-modal, .ah-p .ah-mac { opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.ah-p.is-on .ah-modal, .ah-p.is-on .ah-mac { opacity: 1; transform: none; }
.ah-p.is-on .ah-mac { transition-delay: .1s; }
@media (max-width: 860px) {
  .bl-stage.ah { min-height: 0; aspect-ratio: 1 / 1.05; }
  .ah-ui { padding: 18px 18px; font-size: 13px; }
  .ah .st-ask { font-size: 13px; padding: 10px 13px; }
  .ah .st-status, .ah .st-ans { font-size: 12.5px; } .ah .st-ans { margin-left: 0; max-width: 100%; }
  .ah-modal { width: 74%; }
  .has-mac .ah-modal { left: 31%; width: 54%; }
  .ah-mac { right: 4%; width: 40%; }
}

/* the download: the button and a quiet link under the line, the version
   under them; on the right, every build as a list in one white card */
.x-dl-go { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.x-dl-go .x-link { margin-top: 0; }
.x-dl-meta { margin: 18px 0 0; font-size: 13.5px; color: var(--x-faint); }
.x-dl-meta a { color: var(--x-mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #CFCFD5; }
.x-os-c { width: min(380px, 100%); padding: 18px 18px 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 20px 40px -24px rgba(40, 30, 120, .25); }
.x-os { margin-top: 8px; }
.x-os a {
  display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 10px;
  padding: 11px 6px; border-top: 1px solid #EFEFF2; font-size: 14px; color: var(--x-ink); border-radius: 0;
}
.x-os a:first-child { border-top: 0; }
.x-os a:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #CFCFD5; }
.x-os i { display: grid; place-items: center; width: 22px; height: 22px; color: var(--x-ink); }
.x-os i svg { width: 17px; height: 17px; }
.x-os b { font-weight: 500; }
.x-os em { font-style: normal; color: var(--x-mute); }
.x-os-tag { grid-column: 4; padding: 2px 8px; border-radius: 999px; background: #F2F2F4; font-size: 11.5px; color: var(--x-mute); }
.x-os a.is-you .x-os-tag { background: var(--x-v); color: #fff; }
.x-os a.is-soon { color: var(--x-faint); }
.x-os a.is-soon i, .x-os a.is-soon em { color: var(--x-faint); }
