/* Starchart Study: the Buy page and the shared "What's in a pass" block (_partials/pass.html, also on Home).
 * Buy redesign r6, 22 Nov 2026. Tokens only (site.css :root blocks); no color literal in this file.
 * Motion (motion-standard D9): calm, no bounce; folds are liquid.js's; reduced motion = still. */

/* ---------------------------------------------------------------- 1. title, live price, refund */
.buy-head{margin:0 0 18px}
.buy-h{font:600 clamp(30px,8vw,42px)/1.12 Fraunces,"Noto Serif Thai",Georgia,serif;letter-spacing:-.012em;margin:.1em 0 .3em;text-wrap:balance}
html[data-lang=th] .buy-h{line-height:1.35;letter-spacing:0}
.buy-sub{font-size:15.5px;line-height:1.6;max-width:36em}
.buy-head .price-line{display:inline-block;margin:6px 0 4px;padding:8px 16px;border-radius:999px;color:var(--gold);font-size:16.5px;
  box-shadow:inset 0 0 0 1px var(--acc-line),inset 0 1px 1px var(--glass-inset);background:var(--glow-soft);font-variant-numeric:tabular-nums}
.buy-head .price-line s{color:var(--bone);font-weight:400}
.buy-refund{text-align:left;margin:10px 0 0;font-size:14px}

/* ---------------------------------------------------------------- 2-3. the pitch, folded on Buy for owners and ?u= */
.pass-fold{margin:0 0 8px;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.pf-s{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 2px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.pf-s::-webkit-details-marker{display:none}
.pf-l{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.pf-h{font:600 18px/1.35 Fraunces,"Noto Serif Thai",Georgia,serif;color:var(--star)}
html[data-lang=th] .pf-h{line-height:1.5}
.pf-s .chev{width:22px;height:22px;flex:none;color:var(--gold)}
.pass-fold[open]>.pf-s .chev{rotate:180deg}
.pass-fold[open]{padding-bottom:18px}

.pp{display:grid;gap:16px;grid-template-columns:1fr}
.pp-shot{margin:0}
.pp-shot-a{display:block;border-radius:20px;overflow:hidden;line-height:0;box-shadow:inset 0 0 0 1px var(--rim-lo),0 10px 34px var(--shade),0 0 0 1px var(--hair)}
.pp-shot img{display:block;width:100%;height:auto;aspect-ratio:375/350}
.pp-shot-a:focus-visible{outline-offset:4px;border-radius:20px}
.pp-cap{margin:8px 2px 0;font-size:13px;line-height:1.5;color:var(--bone)}
.pp-kinds{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.pp-k{display:flex;align-items:flex-start;gap:12px}
.pp-t{flex:none;width:52px;height:52px;border-radius:12px;object-fit:cover;background:var(--paper);box-shadow:0 0 0 1px var(--hair)}
.pp-kt{display:flex;flex-direction:column;min-width:0}
.pp-n{font:600 16px/1.3 Fraunces,"Noto Serif Thai",Georgia,serif;color:var(--star)}
.pp-tag{font:600 11.5px/1 Sarabun,system-ui,sans-serif;letter-spacing:.04em;color:var(--bone);border:1px solid var(--edge);border-radius:999px;
  padding:3px 8px;margin-left:6px;vertical-align:2px;white-space:nowrap}
.pp-d{font-size:14px;line-height:1.5;color:var(--bone)}
.pp-free{margin:2px 0 0}
.pp-try{width:100%;justify-content:space-between;text-align:left;border-radius:18px;padding:10px 18px;min-height:56px}
.pp-try-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.pp-try-s{font-weight:400;font-size:13px;color:var(--bone)}
.pp-try .ic{color:var(--gold)}
.pp-true{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pp-true li{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;line-height:1.5}
.pp-star{flex:none;width:12px;height:12px;margin-top:.42em;fill:var(--gold);filter:drop-shadow(0 0 4px var(--glow))}

@media (min-width:640px){
  .pp{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:22px;align-items:start}
  .pp-side{display:grid;gap:16px}
}
/* a phone: the whole pitch stays about one screen tall. The shot shows its top (the tabs and the figure's curves) */
@media (max-width:639.98px){
  .pp{gap:14px}
  .pp-side{display:grid;gap:14px}
  .pp-shot img{aspect-ratio:375/250;object-fit:cover;object-position:center top}
  .pp-cap{margin-top:6px;font-size:12.5px}
  .pp-kinds{gap:10px}
  .pp-t{width:46px;height:46px;border-radius:10px}
  .pp-d{font-size:13.5px;line-height:1.45}
  .pp-true li{font-size:13.5px;line-height:1.45}
}
/* Home: the block sits in its own wide section */
.pass .pp{margin-top:4px}
@media (min-width:980px){.pass .pp{grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:40px}.pass .pp-kinds{grid-template-columns:1fr 1fr;gap:16px 22px}}

/* Home: "How it's made" is folded (the pass block says the same) */
.made-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.made-fold>summary::-webkit-details-marker{display:none}
.made-fold .chev{width:20px;height:20px;color:var(--gold);transition:rotate .42s var(--ease-move)}
.made-fold[open] .chev{rotate:180deg}
.made-fold>p{margin:0 0 .6em}

/* ---------------------------------------------------------------- 4. pick subjects */
.group-tools{margin:-2px 0 10px}
.sel-all{min-height:44px;padding:8px 16px;font-size:14.5px}
.sel-all .sa-n{color:var(--gold);font-variant-numeric:tabular-nums}
.unit-out{display:block;font-size:12.5px;line-height:1.45;color:var(--bone);margin-top:2px}
.unit-out b{color:var(--acc);font-weight:600}

/* ---------------------------------------------------------------- 5. your order: the picked subjects, by name */
.order-list{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.ol-row{display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 4px 4px 14px;border-radius:14px;
  box-shadow:inset 3px 0 0 var(--acc),inset 0 0 0 1px var(--hair);animation:ol-in .42s var(--ease-out) both}
@keyframes ol-in{from{opacity:0}}
.ol-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.ol-n{font-weight:600}
.ol-c{font-size:12.5px;color:var(--bone)}
.ol-x{appearance:none;flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:none;color:var(--bone);
  font:400 22px/1 Sarabun,system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .36s var(--ease-out),background-color .36s var(--ease-out)}
.ol-x:hover{color:var(--star);background:var(--acc-soft)}
.ol-x:active{transform:scale(.98)}

/* ---------------------------------------------------------------- 6. pay (was inline in buy.html) */
.pay-amt{font-size:clamp(1.6rem,7vw,2.2rem);font-weight:800;line-height:1.15;margin:4px 0 6px;font-variant-numeric:tabular-nums}
.pay-after{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.my-link{margin:16px 0}
.privacy{margin-top:12px}

/* the one floating total bar (buy-bar.js; its glass is files.css): the page end stays clear of it */
.pg-buy:has(.buy-bar:not([hidden])) #main{padding-bottom:calc(var(--bar-h,64px) + 10px + env(safe-area-inset-bottom,0px) + 24px)}

@media (prefers-reduced-motion:reduce){
  .ol-row{animation:none}
  .ol-x{transition:none}
  .pass-fold[open]>.pf-s .chev,.made-fold .chev{transition:none}
}
