/* ============================================================================
   studio_money.css — HAND-WRITTEN. Phase 5 §E: the money path, RESTYLED ONLY.

   ⛔ core/hts.js is NOT edited. Behaviour, copy, sequence, ids, handlers, the
   price logic and the checkout POST are production's, untouched. This sheet
   changes pixels and nothing else.
   ⛔ The price still appears ONLY on the what-you-get screen (H.upgradeScreen).
   Nothing here puts a ฿ figure on the paywall sheet.

   Spec: output/design/STUDIO_MISSING_SCREENS_SPEC_2026-09-06.md §E
   Every value is copied from a rule in assets/css/studio/studio.css; the class
   it is copied FROM is named above each block.

   SPECIFICITY: both overlays are appended to <body> and styled by a <style>
   element hts.js injects into <head> AT OPEN TIME — i.e. after this <link> in
   document order. Its dark variants are `:root[data-theme="dark"] .htspw__card`
   = (0,3,0), so every selector here repeats the gate class
   (`body.hts-studio.hts-studio` = (0,3,1)) to win on specificity, not order.
   His design tokens live on body.hts-studio, so both overlays inherit them.
   ============================================================================ */

/* ── the paywall sheet (H.trialPaywall) ─────────────────────────────────── */

/* backdrop → his .search-dialog::backdrop */
body.hts-studio.hts-studio .htspw {
  background: #241e2b66; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  font-family: inherit;
}
/* the card → his #device-sheet on phone, his .search-dialog dialog ≥620px */
body.hts-studio.hts-studio .htspw__card {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 23px 23px 0 0;
  box-shadow: 0 25px 100px #102e5040; font-family: inherit;
}
/* the grip → his .atlas-inspector:before */
body.hts-studio.hts-studio .htspw__grip {
  width: 28px; height: 3px; background: var(--line); border-radius: 3px;
}
/* the icon tile → his .mini-art (lilac), at the §E size */
body.hts-studio.hts-studio .htspw__icon {
  width: 60px; height: 60px; background: var(--lilac); color: #355e88;
  border-radius: 7px; display: grid; place-items: center; box-shadow: none;
}
/* eyebrow → his .eyebrow */
body.hts-studio.hts-studio .htspw__eye {
  font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
/* title → his .sheet-header h2 · body → his .sheet-header p */
body.hts-studio.hts-studio .htspw__card h3 {
  font-family: inherit; font-size:max(14px,calc(29px * var(--type-k))); font-weight: 500;
  letter-spacing: -1px; line-height: 1.35; color: var(--ink);
}
body.hts-studio.hts-studio .htspw__card p { font-size:max(13px,calc(14px * var(--type-k))); color: var(--muted); line-height: 1.7; }
/* the note → his .lesson-tip (soft green on green) */
body.hts-studio.hts-studio .htspw__note {
  background: var(--soft-green); border: 0; border-radius: 7px; padding: 19px;
  color: var(--green); font-size: 12px; line-height: 1.9;
}
body.hts-studio.hts-studio .htspw__note b { display: block; font-size: 12px; margin-bottom: 5px; color: var(--green); }
/* the CTA → his .btn.primary, full width, 48px */
body.hts-studio.hts-studio .htspw__buy {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: 0 20px; border-radius: 6px;
  background: var(--orange); border: 1px solid var(--orange); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: normal;
  text-transform: none; box-shadow: none;
}
body.hts-studio.hts-studio .htspw__buy:hover { transform: translateY(-2px); box-shadow: none; }
body.hts-studio.hts-studio .htspw__buy small { font-weight: 400; font-size: 12px; opacity: 1; margin-top: 2px; }
/* the dismiss → his .text-link · the trust line → 12px muted */
body.hts-studio.hts-studio .htspw__keep {
  font-family: inherit; font-size: 12px; font-weight: 500; color: var(--ink);
}
body.hts-studio.hts-studio .htspw__keep:hover { color: var(--orange); }
body.hts-studio.hts-studio .htspw__secure { font-size: 12px; color: var(--muted); }

@media (min-width: 620px) {
  /* his .search-dialog geometry */
  body.hts-studio.hts-studio .htspw__card {
    width: min(670px, 90vw); max-width: min(670px, 90vw);
    border-radius: 12px; padding: 34px 32px 30px;
  }
}

/* ── the what-you-get screen (H.upgradeScreen) ──────────────────────────── */
/* his dark surface: .home-hero (--purple ground, #fff ink, #c4d6e8 secondary,
   #e6c995 gold accent from .hero-copy h2 .serif). */

body.hts-studio.hts-studio .htsup {
  background: var(--purple); color: #fff; font-family: inherit;
}
body.hts-studio.hts-studio .htsup__close {
  background: #ffffff26; color: #fff; border-radius: 6px; font-family: inherit;
}
body.hts-studio.hts-studio .htsup__close:hover { background: #ffffff3d; }
/* eyebrow / headline / sub → his .hero-copy */
body.hts-studio.hts-studio .htsup__eye {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: #c4d6e8; margin-bottom: 14px;
}
body.hts-studio.hts-studio .htsup__h {
  font-family: inherit; font-size:max(14px,calc(43px * var(--type-k))); line-height: 1.1; font-weight: 400;
  letter-spacing: -1.8px; margin: 21px 0 17px; color: #fff;
}
body.hts-studio.hts-studio .htsup__sub { font-size: 12px; line-height: 1.85; color: #c4d6e8; }
/* the value list → his .offer-list */
body.hts-studio.hts-studio .htsup__list { line-height: 2.5; }
body.hts-studio.hts-studio .htsup__li { font-size: 12px; line-height: 1.9; color: #c4d6e8; }
body.hts-studio.hts-studio .htsup__li b { color: #fff; font-weight: 500; }
body.hts-studio.hts-studio .htsup__ck {
  background: #e6c995; color: var(--purple); box-shadow: none; font-weight: 700;
}
/* the price → his .price (the FIGURE itself is production's H._priceTHB()) */
body.hts-studio.hts-studio .htsup__amt {
  font-family: inherit; font-size: 52px; font-weight: 400;
  letter-spacing: -2px; color: #fff;
}
body.hts-studio.hts-studio .htsup__once { font-size: 12px; font-weight: 500; color: #c4d6e8; }
body.hts-studio.hts-studio .htsup__nosub { font-size: 12px; color: #c4d6e8; }
/* the real checkout button → his .btn.primary */
body.hts-studio.hts-studio .htsup__buy {
  background: var(--orange); border: 1px solid var(--orange); color: #fff;
  border-radius: 6px; min-height: 48px; padding: 0 20px;
  font-family: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: normal; text-transform: none; box-shadow: none;
}
body.hts-studio.hts-studio .htsup__buy:hover { transform: translateY(-2px); box-shadow: none; }
body.hts-studio.hts-studio .htsup__trust,
body.hts-studio.hts-studio .htsup__fine { font-size: 12px; color: #c4d6e8; }
body.hts-studio.hts-studio .htsup__code {
  font-size: 12px; font-weight: 500; color: #c4d6e8; border-bottom-color: transparent;
}
body.hts-studio.hts-studio .htsup__code:hover { color: #e6c995; border-bottom-color: #e6c995; }

@media (max-width: 700px) {
  body.hts-studio.hts-studio .htsup__h { font-size:max(14px,calc(32px * var(--type-k))); letter-spacing: -1.2px; }
  body.hts-studio.hts-studio .htsup__sub { font-size:max(13px,calc(14px * var(--type-k))); }
  body.hts-studio.hts-studio .htsup__li { font-size:max(13px,calc(14px * var(--type-k))); }
  body.hts-studio.hts-studio .htsup__amt { font-size:max(14px,calc(44px * var(--type-k))); }
  body.hts-studio.hts-studio .htspw__card h3 { font-size:max(14px,calc(29px * var(--type-k))); }
}
