/* Starchart Study: the Celestial skin, night first, with liquid glass, a canvas sky and
 * scroll reveals. theme/celestial.md is binding, with one recorded deviation
 * (site/LOOK.md, "Night first"):
 *
 *   :root                     the NIGHT plate (deep navy + gold): what a first visit sees
 *   :root[data-theme=light]   the DAY plate (warm parchment + brass), once the reader asks
 *
 * Both blocks declare the same token names. No hex or rgba literal outside them.
 * Every pair was measured, both plates (site/LOOK.md, "Tokens").
 * The canvas (site.js) reads its colours and numbers from these tokens too:
 *   --sky-ink     the stars' ink          --star-a / --star-r  their opacity / size multipliers
 *   --line-a/-w   constellation line alpha / width             --rose-a  the rose's ink alpha
 *   --veil-under  how much sky is erased under display text (rose included)
 *   --veil-over   how much sky is erased under body text, after everything else is drawn
 */
:root{
  color-scheme:dark;
  --void:#03060F; --paper:#0A1122; --star:#F0E7D3; --bone:#A8A28E; --gold:#E3BE63; --hair:#18223A; --edge:#64625A;
  --plate:rgba(3,6,15,.92); --halo:rgba(3,6,15,.95); --vig:rgba(0,0,4,.6);
  --glow:rgba(227,190,99,.32); --glow-soft:rgba(227,190,99,.10); --shade:rgba(2,6,18,.5);
  --qr-ink:#0C0A0E; --qr-tile:#FCF8EF;
  --acc:var(--gold); --on-acc:var(--void); --soft:12%;
  /* liquid glass */
  --glass:rgba(240,231,211,.035); --glass-strong:rgba(3,6,15,.78); --glass-inset:rgba(240,231,211,.12);
  --rim-hi:rgba(240,231,211,.48); --rim-lo:rgba(240,231,211,.16);
  --wash:rgba(227,190,99,.04); --wash-2:rgba(90,125,210,.06);
  --fade-foot:rgba(3,6,15,.92);
  /* the canvas sky */
  --sky-ink:var(--star); --star-a:1.15; --star-r:1; --line-a:.85; --line-w:1.2; --rose-a:.42;
  --veil-under:.9; --veil-over:.94;
}
:root[data-theme=light]{
  color-scheme:light;
  --void:#EADFC4; --paper:#F3EAD6; --star:#1F1A12; --bone:#584E40; --gold:#6E5210; --hair:#D2C3A2; --edge:#877C6A;
  --plate:rgba(243,234,214,.92); --halo:rgba(234,223,196,.95); --vig:rgba(110,82,16,.14);
  --glow:rgba(110,82,16,.22); --glow-soft:rgba(110,82,16,.10); --shade:rgba(31,26,18,.12);
  --qr-ink:#0C0A0E; --qr-tile:#FCF8EF;
  --acc:var(--gold); --on-acc:var(--paper); --soft:8%;
  --glass:rgba(243,234,214,.55); --glass-strong:rgba(243,234,214,.86); --glass-inset:rgba(255,252,242,.75);
  --rim-hi:rgba(31,26,18,.55); --rim-lo:rgba(31,26,18,.16);
  --wash:rgba(110,82,16,.06); --wash-2:rgba(31,26,18,.03);
  --fade-foot:rgba(234,223,196,.92);
  --sky-ink:#2A2114; --star-a:1.3; --star-r:1.6; --line-a:1; --line-w:1.6; --rose-a:.7;
  --veil-under:.9; --veil-over:.94;
}

/* one accent per subject: the plate on screen picks the day or night value */
[data-acc]{--acc:var(--acc-night)}
:root[data-theme=light] [data-acc]{--acc:var(--acc-day)}
/* derived, never picked: re-declared wherever --acc changes, or it would inherit the gold one */
:root,[data-acc]{
  --acc-soft:color-mix(in srgb,var(--acc) var(--soft),var(--void));
  --acc-line:color-mix(in srgb,var(--acc) 50%,transparent);
}

/* ---------------------------------------------------------------- base */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--void);color:var(--star);position:relative;overflow-x:clip;
  font:400 16px/1.65 Sarabun,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-wrap:break-word}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;transform:translateZ(0);
  background:radial-gradient(ellipse 120% 90% at 50% 45%,transparent 58%,var(--vig) 100%)}
html:not([data-lang=th]) body [lang=th]:not(.keep),
html[data-lang=th] body [lang=en]:not(.keep){display:none!important}
html:not(.js) .needs-js{display:none!important}
html.js .nojs{display:none!important}
html[data-lang=th] body{line-height:1.75}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

a{color:inherit;text-decoration-color:var(--acc);text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px;border-radius:2px}
b,strong{font-weight:600}
code{font:500 .94em/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
p{margin:0 0 .8em}
.muted{color:var(--bone)}
.small{font-size:13.5px;line-height:1.55}
.wrap{max-width:1040px;margin:0 auto;padding:0 16px}
.wrap.narrow{max-width:720px}
.skip{position:absolute;left:12px;top:-80px;z-index:10;background:var(--paper);color:var(--star);padding:10px 14px;border:1px solid var(--acc);border-radius:3px}
.skip:focus{top:10px}

/* ---------------------------------------------------------------- liquid glass
   near-transparent fill, a 4px frost, an inset top highlight and a 1.4px rim that is
   bright at top and bottom and gone at the sides (masked ::before) */
.liquid-glass,.btn:not(.primary),.pill,.card,.half,.breakdown,.unit-in,.note,.framed,.free-list a,.order-row code,.card-img,.who{
  background:var(--glass);background-blend-mode:luminosity;
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  box-shadow:inset 0 1px 1px var(--glass-inset);position:relative;overflow:hidden}
.liquid-glass::before,.btn:not(.primary)::before,.pill::before,.card::before,.half::before,.breakdown::before,.unit-in::before,
.note::before,.framed::before,.free-list a::before,.order-row code::before,.card-img::before,.who::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1.4px;pointer-events:none;z-index:3;
  background:linear-gradient(180deg,var(--rim-hi) 0%,var(--rim-lo) 20%,transparent 40%,transparent 60%,var(--rim-lo) 80%,var(--rim-hi) 100%);
  -webkit-mask:linear-gradient(var(--star) 0 0) content-box,linear-gradient(var(--star) 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude}

/* hover 1.05 / tap 0.95, on the individual scale property so reveals (translate) never fight it */
.btn,.pill,.round,.picker .go,.kind,.card{transition:scale .25s cubic-bezier(.22,.61,.36,1),background-color .2s,box-shadow .2s}
.btn:hover,.pill:hover,.soc:hover .round,.picker .go:hover{scale:1.05}
.btn:active,.pill:active,.soc:active .round,.picker .go:active{scale:.95}

/* ---------------------------------------------------------------- type */
.display{font-family:Fraunces,"Noto Serif Thai",Georgia,serif;font-weight:600;font-size:clamp(32px,8.6vw,54px);
  line-height:1.14;letter-spacing:-.012em;margin:.12em 0 .3em;font-optical-sizing:auto}
/* no floating words: a wrapped heading, eyebrow or centred line breaks into even lines, never an orphan */
.display,.big,.h2,.h3,.hero-h,.eyebrow,.label,.lede,.refund,.hero .sub,.sec-head .h2,.k-t,.card-title{text-wrap:balance}
.framed .eyebrow>span,.nw{white-space:nowrap}
html[data-lang=th] .display{line-height:1.34;letter-spacing:0}
.display.acc{color:var(--acc)}
.eyebrow,.label{margin:0;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--bone)}
html[data-lang=th] .eyebrow,html[data-lang=th] .label{letter-spacing:.02em;font-size:14px}
.eyebrow .code{letter-spacing:.08em}
.lede{font-size:17.5px;line-height:1.6;max-width:40em;margin:.2em 0 1em}
.h2{font:600 23px/1.3 Fraunces,"Noto Serif Thai",Georgia,serif;margin:0 0 .45em}
.h3{font:600 17px/1.35 Fraunces,"Noto Serif Thai",Georgia,serif;margin:1.4em 0 .55em}
html[data-lang=th] .h2,html[data-lang=th] .h3{line-height:1.5}
.big{font:500 clamp(30px,6.4vw,58px)/1.12 Fraunces,"Noto Serif Thai",Georgia,serif;letter-spacing:-.02em;margin:.3em 0 .2em;max-width:22em}
html[data-lang=th] .big{font-size:clamp(26px,5.2vw,46px);line-height:1.45;letter-spacing:0;font-weight:600}
.big em{font-style:italic;font-weight:400;color:var(--bone)}
html[data-lang=th] .big em{font-style:normal;font-weight:500}

/* ---------------------------------------------------------------- header: a glass pill */
.site-head{position:relative;z-index:6;max-width:1072px;margin:0 auto;padding:14px 16px 0}
.pg-home .site-head{position:absolute;left:0;right:0;top:0}
.pill-nav{display:flex;align-items:center;gap:8px;min-height:58px;padding:6px 7px 6px 18px;border-radius:999px}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--star);min-width:0;
  font:600 18px/1 Fraunces,Georgia,serif;letter-spacing:.01em;padding:8px 0;white-space:nowrap}
.brand .mark{width:22px;height:22px;fill:var(--acc);flex:none}
/* phones: the three links stay one tap away, as a second row inside the pill (no JS, no menu) */
.tools{margin-left:auto;display:flex;gap:6px;flex:none}
@media (max-width:759.98px){
  .pill-nav{flex-wrap:wrap;border-radius:28px;padding:6px 7px 4px 18px;row-gap:2px}
  .nav{order:3;flex:0 0 100%;display:flex;justify-content:space-between;margin:0 0 0 -11px;padding-top:2px;border-top:1px solid var(--hair)}
  .nav a{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 6px;border-radius:999px;
    color:var(--bone);text-decoration:none;font-weight:500;font-size:15px;white-space:nowrap}
  .nav a[aria-current=page]{color:var(--star);font-weight:600;box-shadow:inset 0 -2px 0 var(--acc)}
}
.pill{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:48px;
  padding:6px 14px;border-radius:999px;border:0;color:var(--star);
  font:600 14px/1.1 Sarabun,system-ui,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.pill:hover{background-color:var(--acc-soft)}
.pill[disabled],.pill[aria-disabled=true]{opacity:.6;cursor:default}
.pill[disabled]:hover,.pill[aria-disabled=true]:hover{background-color:var(--glass);scale:1}
@media (min-width:760px){
  .brand{font-size:20px}
  .nav{display:flex;gap:2px;margin:0 auto}
  .tools{margin-left:0}
  .nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;color:var(--bone);text-decoration:none;font-weight:500;white-space:nowrap}
  .nav a:hover{color:var(--star);background:var(--acc-soft)}
  .nav a[aria-current=page]{color:var(--star);font-weight:600;box-shadow:inset 0 -2px 0 var(--acc)}
}

/* ---------------------------------------------------------------- the canvas sky */
.sky-cv{position:absolute;left:0;top:0;width:100%;pointer-events:none;z-index:-1;opacity:0;transition:opacity .5s linear}
.sky-cv.on{opacity:1}
html.sky-on .framed .sky,html.sky-on .hero-sky{visibility:hidden}
/* over the canvas the page head keeps its rim and fill but not the frost: the band's
   stars stay sharp, and the browser does not re-blur a large area every frame */
html.sky-on .framed{-webkit-backdrop-filter:none;backdrop-filter:none}

/* ---------------------------------------------------------------- engraved plates, now glass */
.framed{--band:78px;isolation:isolate;border-radius:24px;margin:18px 0 22px;padding:calc(var(--band) - 6px) 20px 24px}
.hero-in{position:relative;z-index:2}
@media (min-width:760px){.framed{--band:104px;padding:calc(var(--band) - 8px) 44px 38px}}
.framed .sky{position:absolute;left:0;top:0;width:100%;height:var(--band);z-index:-1;
  -webkit-mask-image:linear-gradient(to bottom,var(--star) 58%,transparent);mask-image:linear-gradient(to bottom,var(--star) 58%,transparent)}
.framed .hero-in .display,.framed .hero-in .lede,.framed .hero-in .eyebrow,.framed .hero-in .jump,.framed .hero-in .price-line{text-shadow:0 0 3px var(--halo),0 0 10px var(--halo)}
.sky .st{fill:var(--star)}
.sky .s1{opacity:.42}.sky .s2{opacity:.62}.sky .s3{opacity:.9}
.sky .cl{fill:none;stroke:var(--acc);stroke-width:1;opacity:.75;vector-effect:non-scaling-stroke}
.sky .cs{fill:var(--acc)}
.corner{position:absolute;width:24px;height:24px;z-index:2}
.corner .ln{fill:none;stroke:var(--acc);stroke-width:1.3}
.corner .st{fill:var(--acc)}
.corner.tl{left:12px;top:12px}
.corner.tr{right:12px;top:12px;transform:scaleX(-1)}
.corner.bl{left:12px;bottom:12px;transform:scaleY(-1)}
.corner.br{right:12px;bottom:12px;transform:scale(-1,-1)}
.cta{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.jump{margin:6px 0 0;font-size:15px}
.jump a{color:var(--star)}

/* ---------------------------------------------------------------- buttons */
.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 22px;
  border-radius:999px;border:0;color:var(--star);
  font:600 16px/1.2 Sarabun,system-ui,sans-serif;text-decoration:none;cursor:pointer;text-align:center}
.btn:hover{background-color:var(--acc-soft)}
.btn.primary{background:var(--acc);color:var(--on-acc)}
.btn.primary:hover{box-shadow:0 0 0 4px var(--glow-soft),0 2px 16px var(--glow)}
.btn[aria-disabled=true]{opacity:.5;pointer-events:none}
.btn .ic{width:18px;height:18px}

/* ---------------------------------------------------------------- home: hero */
.hero{position:relative;isolation:isolate;min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;
  padding:156px 16px 56px;text-align:center;overflow:hidden}
@media (min-width:760px){.hero{padding-top:104px}}
.hero-sky{position:absolute;left:0;right:0;top:78px;height:180px;z-index:-1;
  -webkit-mask-image:linear-gradient(to bottom,var(--star) 50%,transparent);mask-image:linear-gradient(to bottom,var(--star) 50%,transparent)}
.hero-sky .sky{width:100%;height:100%}
.hero .hero-in{width:100%;max-width:980px;display:flex;flex-direction:column;align-items:center}
.hero-h{font-weight:400;font-size:clamp(50px,14vw,132px);line-height:1.06;letter-spacing:-.035em;margin:.18em 0 .34em;max-width:9.5em}
.hero-h em{font-style:italic;font-weight:400}
html[data-lang=th] .hero-h{font-weight:600;font-size:clamp(42px,11vw,100px);line-height:1.3;letter-spacing:0}
html[data-lang=th] .hero-h em{font-style:normal;white-space:nowrap;text-decoration:underline 2px var(--acc);text-underline-offset:.28em;text-decoration-skip-ink:none}
.picker{display:flex;align-items:center;gap:6px;width:100%;max-width:470px;min-height:60px;padding:6px 6px 6px 22px;border-radius:999px;margin:0 0 18px}
.picker select{appearance:none;-webkit-appearance:none;flex:1;min-width:0;min-height:46px;border:0;background:transparent;color:var(--star);
  font:500 16px/1.3 Sarabun,system-ui,sans-serif;cursor:pointer;text-overflow:ellipsis;padding:0 4px}
.picker select:focus-visible{outline:2px solid var(--acc);outline-offset:4px;border-radius:999px}
.picker select option{background:var(--paper);color:var(--star)}
.picker .go{appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:0;
  background:var(--acc);color:var(--on-acc);cursor:pointer}
.picker .go .ic{width:22px;height:22px;stroke-width:1.9}
.hero .sub{font-size:16px;line-height:1.55;color:var(--star);max-width:30em;margin:0 0 22px}
.hero .nojs{margin:0 0 18px}
.how-wrap{margin:0}
.how-btn .ic{width:17px;height:17px}

/* ---------------------------------------------------------------- home: sections */
.sec{position:relative;padding:72px 0;overflow-x:clip;
  background:radial-gradient(ellipse 60% 40% at 18% 50%,var(--wash),transparent 70%),radial-gradient(ellipse 50% 34% at 85% 55%,var(--wash-2),transparent 70%)}
@media (min-width:760px){.sec{padding:110px 0}}
.about .big{max-width:17em}
.frame{position:relative;border-radius:24px;overflow:hidden;margin-top:6px;box-shadow:inset 0 0 0 1px var(--edge)}
.frame-art{position:relative;aspect-ratio:16/10;overflow:hidden;
  background:radial-gradient(ellipse at 50% 40%,var(--wash),transparent 70%),var(--void)}
.frame-art::after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;pointer-events:none;background:linear-gradient(to top,var(--fade-foot),transparent)}
.chart{display:block;width:100%;height:100%;transition:scale .7s cubic-bezier(.22,.61,.36,1)}
.frame:hover .chart{scale:1.05}
.chart .grid{fill:none;stroke:var(--hair);stroke-width:1.2;vector-effect:non-scaling-stroke}
.chart .edges path{fill:none;stroke:var(--acc);stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linecap:round}
.chart .links path{fill:none;stroke:var(--bone);stroke-width:1.2;stroke-dasharray:5 7;vector-effect:non-scaling-stroke}
.chart .ring{fill:var(--void);stroke:var(--acc);stroke-width:1.4;vector-effect:non-scaling-stroke}
.chart .core{fill:var(--acc)}
.chart text{fill:var(--bone);font:600 30px/1 Fraunces,Georgia,serif;text-anchor:middle}
.frame-card{border-radius:20px;padding:18px 18px 16px;margin:0;background:var(--glass-strong)}
.frame-card .h3{margin:0 0 .35em;font-size:20px}
.frame-card p{margin:0 0 .7em}
.frame-cta{margin:18px 0 0!important}
@media (min-width:760px){
  .frame-card{position:absolute;left:24px;bottom:24px;max-width:430px;padding:22px 24px 20px}
}
@media (max-width:759.98px){.frame-card{border-radius:0 0 24px 24px}}
.caption{margin:12px 2px 0}

.duo .big{margin-bottom:.6em}
.big .x{font-style:italic;color:var(--bone);opacity:.8}
.duo-grid{display:grid;gap:22px;align-items:center}
@media (min-width:760px){.duo-grid{grid-template-columns:1.1fr 1fr;gap:48px}}
.duo-art{border-radius:24px;padding:10px}
.duo-art svg{display:block;width:100%;height:auto;transition:scale .7s cubic-bezier(.22,.61,.36,1)}
.duo-art:hover svg{scale:1.05}
.duo-art .page{fill:var(--glass-strong);stroke:var(--bone);stroke-width:1.3}
.duo-art .w{fill:none;stroke:var(--star);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.duo-art .head{stroke:var(--acc);stroke-width:5;opacity:1}
.duo-art .box{stroke:var(--acc);stroke-width:1.4;opacity:1}
.duo-art .axis{stroke:var(--bone);opacity:1;stroke-width:1.6}
.duo-art .curve{stroke:var(--acc);stroke-width:2.6;opacity:1}
.duo-art text{fill:var(--bone);font:italic 500 17px/1 Fraunces,Georgia,serif}
.duo-text .blk p:last-child{margin:0;font-size:17px;line-height:1.6}
.duo-text .label{margin-bottom:8px;color:var(--acc)}
.duo-text hr{border:0;border-top:1px solid var(--hair);margin:22px 0}

.sec-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px 24px;margin-bottom:26px}
.sec-row .big{margin-bottom:0}
.sec-cta{margin:0}
.kinds{list-style:none;margin:0;padding:0;display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:620px){.kinds{grid-template-columns:repeat(2,1fr)}}
@media (min-width:980px){.kinds{grid-template-columns:repeat(4,1fr)}}
.kind{border-radius:22px;padding:20px 20px 18px;display:flex;flex-direction:column;align-items:flex-start}
.kind:hover{scale:1.03}
.k-ic{display:inline-flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:50%;margin-bottom:14px;color:var(--acc)}
.k-ic svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:scale .7s}
.kind:hover .k-ic svg{scale:1.05}
.tag{font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--bone);border:1px solid var(--edge);border-radius:999px;padding:2px 10px}
.k-t{font:600 22px/1.25 Fraunces,"Noto Serif Thai",Georgia,serif;margin:10px 0 6px}
.kind p{margin:0;font-size:15px;line-height:1.55}
.pass-note{margin:18px 2px 0;font-size:14.5px}

.how .steps{margin-top:22px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:14px}
@media (min-width:760px){.how .steps{grid-template-columns:repeat(3,1fr);gap:18px}}
.steps li{display:flex;gap:12px;align-items:flex-start}
.how .steps li{border-radius:20px;padding:18px}
.steps p{margin:2px 0 0}
@supports (padding-top:1lh){.steps p{margin:0;padding-top:max(0px,calc((32px - 1lh) / 2))}}
.steps+p,.steps+.btn,.steps+.refund{margin-top:22px}
.step-n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;
  border:1px solid var(--gold);color:var(--gold);font:600 15px/1 Fraunces,Georgia,serif;font-variant-numeric:lining-nums tabular-nums}
.refund{text-align:center;font-size:14px;color:var(--bone);margin:26px 0 8px}
.subjects{padding-top:10px}

/* ---------------------------------------------------------------- home: free sample + subject cards */
.free{margin:6px 0 10px}
.free-list{list-style:none;margin:8px 0 6px;padding:0;display:grid;gap:8px}
.free-list a{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:14px 18px;border-radius:18px;
  text-decoration:none;color:var(--star);box-shadow:inset 4px 0 0 var(--acc),inset 0 1px 1px var(--glass-inset)}
.free-list a:hover{background-color:var(--acc-soft)}
.fs-t{font:600 18px/1.3 Fraunces,"Noto Serif Thai",Georgia,serif}
.fs-h{grid-column:1;font-size:14px}
.fs-k{grid-column:1;font-size:13px;color:var(--star)}
.fs-go{grid-row:1 / span 2;grid-column:2;align-self:center;color:var(--acc);display:inline-flex}
.fs-go .ic{width:22px;height:22px}
.term{margin-top:8px}
.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 16px;margin:30px 0 14px}
.sec-head .h2{margin:0}
.pg-home .sec-head .h2{font-size:clamp(26px,4.4vw,38px);font-weight:500}
.sec-sub{margin:0;color:var(--bone);font-size:14px}
.cards{list-style:none;margin:0;padding:0;display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:620px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (min-width:960px){.cards{grid-template-columns:repeat(3,1fr)}}
.card{display:flex;border-radius:20px;box-shadow:inset 4px 0 0 var(--acc),inset 0 1px 1px var(--glass-inset)}
.card:hover{scale:1.03}
.card-in{position:relative;display:flex;flex-direction:column;width:100%;padding:16px 40px 16px 22px;color:inherit;text-decoration:none;border-radius:inherit}
a.card-in:hover{background:var(--acc-soft)}
a.card-in:focus-visible{outline-offset:-4px;border-radius:18px}
html.js .pg-home .card-in{padding-top:66px}
.cst{position:absolute;left:0;top:0;width:100%;height:58px;overflow:visible;transition:scale .7s cubic-bezier(.22,.61,.36,1);transform-origin:50% 0}
.card:hover .cst{scale:1.05}
.cst path{fill:none;stroke:var(--acc);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.cst .cs{fill:var(--acc)}
.cst .cd{fill:var(--bone)}
.card-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;margin:0;font-size:13px;color:var(--bone);letter-spacing:.03em}
html[data-lang=th] .card-meta{letter-spacing:0}
.card-title{font:600 19px/1.3 Fraunces,"Noto Serif Thai",Georgia,serif;margin:6px 0 12px}
html[data-lang=th] .card-title{line-height:1.5}
.card-go{position:absolute;right:14px;top:50%;translate:0 -50%;color:var(--acc);display:inline-flex}
html.js .pg-home .card-go{top:calc(50% + 25px)}
.card-go .ic{width:22px;height:22px}
.is-soon .card-title{color:var(--bone)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:auto 0 0}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:13px;line-height:1.25;padding:5px 10px;border-radius:999px;
  border:1px solid var(--acc-line);background:var(--acc-soft);color:var(--star)}
.chip-soon{border-style:dashed;background:transparent;color:var(--bone);border-color:var(--bone)}
.chip-lang{font-size:11.5px;font-weight:700;letter-spacing:.06em;padding:3px 7px;background:transparent;border-color:var(--bone);flex:none}

/* ---------------------------------------------------------------- subject + week */
.crumbs{font-size:14px;color:var(--bone);margin:18px 0 0}
.crumbs a{color:var(--bone)}
.half{border-radius:22px;padding:20px 18px 20px;margin:0 0 18px;box-shadow:inset 0 3px 0 var(--acc),inset 0 1px 1px var(--glass-inset)}
@media (min-width:760px){.half{padding:24px 28px 26px}}
.half-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:12px}
.half-head .h2{margin:0}
.half-sub{margin:0;color:var(--bone);font-size:14px;flex:1 1 auto}
.ic{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;vertical-align:-.2em}
.ic-kind{width:26px;height:26px;color:var(--acc);stroke-width:1.4}
.lock{display:inline-flex;align-items:center;gap:4px;font-size:13.5px;font-weight:600;padding:5px 11px;border-radius:999px;
  border:1px solid var(--acc-line);background:var(--acc-soft);color:var(--star)}
.lock .ic,.chip .ic,.owned-line .ic,.unit-p .ic{color:var(--acc);margin-right:3px}
.lock>span,.owned-line,.unit-p>span{display:inline-flex;align-items:center}
.items{list-style:none;margin:0 0 8px;padding:0;border-top:1px solid var(--hair)}
.items li{border-bottom:1px solid var(--hair)}
.item{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 6px;color:inherit;text-decoration:none;border-radius:10px}
.item:hover{background:var(--acc-soft)}
.item-t{display:flex;flex-direction:column;min-width:0;flex:1}
.item-l{font-weight:600;font-size:16.5px;line-height:1.3}
.item-n{font-size:13.5px;color:var(--bone);line-height:1.45}
.item-go{flex:none;display:inline-flex;align-items:center;gap:6px;color:var(--acc)}
.item-go .ic{width:20px;height:20px;vertical-align:0}
.lead-note{background:var(--acc-soft);border-left:3px solid var(--acc);padding:12px 14px;margin:0 0 8px}
.weeks{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair)}
.wk{border-bottom:1px solid var(--hair)}
.wk,.wk.has-page a{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;padding:9px 2px;align-items:start}
.wk.has-page{padding:0}
.wk.has-page a{text-decoration:none;color:inherit;grid-template-columns:auto 1fr auto}
.wk.has-page a:hover{background:var(--acc-soft)}
.wk .wk-h{display:flex;flex-direction:column;min-width:76px;line-height:1.35}
.wk-n{font-weight:600;font-size:14.5px;white-space:nowrap}
.wk-d{font-size:12.5px;color:var(--bone);white-space:nowrap}
.wk-t{font-size:14.5px;line-height:1.5;min-width:0}
.wk-note{font-size:13px;color:var(--bone)}
.wk-note::before{content:"· "}
.wk-u{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--bone);border:1px dashed var(--bone);border-radius:999px;padding:0 8px;margin-left:4px;white-space:nowrap}
.wk-u .ic{width:14px;height:14px;vertical-align:0}
.wk-go{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:var(--star);white-space:nowrap}
.wk-go .ic{color:var(--acc)}
.buy-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 14px}
.owned-line{font-weight:600}
[data-unit]:not(.owned) .is-owned,[data-unit].owned .is-locked{display:none!important}
.note{border-radius:16px;padding:14px 16px;margin:14px 0;box-shadow:inset 0 0 0 1px var(--acc-line),inset 0 1px 1px var(--glass-inset)}
.note p{margin:.25em 0}
.note .btn{margin:6px 8px 0 0}
.note.warn{box-shadow:inset 4px 0 0 var(--acc),inset 0 0 0 1px var(--acc),inset 0 1px 1px var(--glass-inset)}
.note.soon{box-shadow:inset 0 1px 1px var(--glass-inset);border:1px dashed var(--acc-line)}
.locked-note:focus{outline:2px solid var(--acc);outline-offset:2px}
.week-card{margin:0 0 18px}
.card-img{margin:0 0 10px;padding:8px;border-radius:16px}
.card-img img{display:block;width:100%;height:auto;border-radius:10px}
.saves,.badges{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.prevnext{display:flex;justify-content:space-between;gap:8px}

/* ---------------------------------------------------------------- buy */
.price-line{font-weight:600;margin:0}
.step{margin:26px 0}
.step>.h2{display:flex;align-items:center;gap:10px}
.group{border:0;margin:0 0 16px;padding:0;min-width:0}
.group legend{font-weight:600;font-size:15px;padding:0;margin:0 0 8px}
.units{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.unit-in{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 16px;border-radius:16px;cursor:pointer;
  box-shadow:inset 4px 0 0 var(--acc),inset 0 1px 1px var(--glass-inset)}
.unit-in:hover{background-color:var(--acc-soft)}
.unit-in:has(input:checked){background-color:var(--acc-soft);box-shadow:inset 4px 0 0 var(--acc),inset 0 0 0 1px var(--acc)}
.unit input{width:24px;height:24px;flex:none;margin:0;accent-color:var(--acc);cursor:pointer}
.unit-t{display:flex;flex-direction:column;flex:1;min-width:0}
.unit-name{font-weight:600;line-height:1.35}
.unit-code{font-size:13px;color:var(--bone)}
.unit-p{flex:none;font-weight:600;white-space:nowrap;text-align:right}
.unit-p s{color:var(--bone);font-weight:400;margin-right:4px}
.unit.is-owned-row .unit-in{cursor:default}
.unit.is-owned-row input{visibility:hidden}
.breakdown{border-radius:18px;padding:14px 16px;margin:0 0 16px}
.breakdown p{margin:0}
.bd-row{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.bd-total{border-top:1px solid var(--hair);margin-top:6px;padding-top:8px;font-weight:700;font-size:19px}
.bd-note{font-size:13.5px;color:var(--bone);padding-top:4px}
.field{display:block;margin:0 0 16px}
.field-l{display:block;font-weight:600;margin-bottom:6px}
.field input{width:100%;min-height:48px;padding:10px 16px;border:1px solid var(--bone);border-radius:14px;background:var(--glass);
  color:var(--star);font:400 16px/1.3 Sarabun,system-ui,sans-serif}
.field input::placeholder{color:var(--bone);opacity:1}
.order-l{margin:0 0 6px;font-weight:600}
.order-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.order-row code{flex:1 1 220px;min-width:0;padding:10px 14px;border-radius:14px;word-break:break-word}
.pay{margin:0}
.qr{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.qr-tile{line-height:0;padding:6px;border:1px solid var(--acc);border-radius:10px;background:var(--qr-tile);max-width:100%}
.qr-svg{display:block}
.qr-svg .qr-bg{fill:var(--qr-tile)}
.qr-svg .qr-ink{fill:var(--qr-ink)}
.qr figcaption{display:flex;flex-direction:column;gap:6px;max-width:32em}
.qr-amt{font:600 28px/1.2 Fraunces,Georgia,serif}
.qr-actions{margin:0}
.qr-hint{margin:0;max-width:30em;color:var(--star)}

/* ---------------------------------------------------------------- my pass */
.who{display:grid;gap:0;margin:0 0 14px;border-radius:16px;padding:4px 16px}
.who div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--hair);padding:8px 0}
.who div:last-child{border-bottom:0}
.who dt{color:var(--bone)}
.who dd{margin:0;font-weight:600;text-align:right;min-width:0}
.forget{margin-top:20px}
.forget p{margin-top:8px}

/* ---------------------------------------------------------------- footer */
.site-foot{max-width:1040px;margin:44px auto 0;padding:8px 16px 40px;text-align:center;color:var(--bone);font-size:13.5px}
.foot-orn{display:block;width:220px;max-width:70%;height:16px;margin:0 auto 16px}
.foot-orn .ln{fill:none;stroke:var(--acc);stroke-width:1;opacity:.7}
.foot-orn .st{fill:var(--acc)}
.foot-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;margin:0 0 10px}
.foot-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:var(--star);text-decoration:none;font-weight:500;font-size:15px}
.foot-nav a:hover{text-decoration:underline}
.brandline{margin:0 auto 16px;max-width:42em;line-height:1.6}
.socials{display:flex;justify-content:center;gap:22px;margin:0 0 8px}
.soc{appearance:none;background:none;border:0;padding:0;margin:0;cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;gap:6px;
  color:var(--bone);text-decoration:none;font:500 13px/1.3 Sarabun,system-ui,sans-serif;min-width:64px}
.round{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;color:var(--star)}
.round .ic{width:22px;height:22px}
.soc[aria-disabled=true]{cursor:default}
.soc[aria-disabled=true] .round{opacity:.72}
.soc:focus-visible{outline:none}
.soc:focus-visible .round{outline:2px solid var(--acc);outline-offset:3px}
.soon-note{font-size:13px;margin:4px 0 0}

/* ---------------------------------------------------------------- scroll reveals
   Only while html.mo is set (the pre-paint script sets it when motion is allowed and
   IntersectionObserver exists; it falls off after 2.5 s if site.js never ran). Nothing
   moves in layout: opacity and the translate property only, so no layout shift. */
html.mo [data-rv]{opacity:0;
  transition-property:opacity,translate,scale;
  transition-duration:var(--dur,.8s),var(--dur,.8s),.25s;
  transition-timing-function:cubic-bezier(.22,.61,.36,1);
  transition-delay:calc(var(--d0,0s) + var(--d,0s)),calc(var(--d0,0s) + var(--d,0s)),0s}
html.mo [data-rv=label]{translate:0 20px;--dur:.6s}
html.mo [data-rv=heading]{translate:0 40px;--dur:.8s;--d0:.1s}
html.mo [data-rv=media]{translate:0 60px;--dur:.9s}
html.mo [data-rv=left]{translate:-40px 0;--dur:.9s}
html.mo [data-rv=right]{translate:40px 0;--dur:.9s}
html.mo [data-rv=card]{translate:0 40px;--dur:.8s}
html.mo [data-rv].in{opacity:1;translate:0 0}

/* drawn things draw themselves once they are revealed (stroke-dashoffset) */
html.mo .kind .k-ic svg *{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.3s cubic-bezier(.45,.05,.3,1) .35s}
html.mo .kind.in .k-ic svg *{stroke-dashoffset:0}
html.mo .chart .edges path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .7s ease-out calc(.5s + var(--i) * .28s)}
html.mo .chart .nodes g{opacity:0;transition:opacity .5s calc(.4s + var(--i) * .28s)}
html.mo .chart .links path{opacity:0;transition:opacity .8s calc(2.6s + (var(--i) - 7) * .3s)}
html.mo .frame.in .chart .edges path{stroke-dashoffset:0}
html.mo .frame.in .chart .nodes g,html.mo .frame.in .chart .links path{opacity:1}
html.mo .frame.in .chart .links path{animation:flow 2.4s linear 3.4s infinite}
html.mo .frame.in .chart .core{animation:twinkle 3.2s ease-in-out calc(var(--i) * -.4s) infinite}
@keyframes flow{to{stroke-dashoffset:-24}}
@keyframes twinkle{0%,100%{opacity:1}50%{opacity:.45}}
html.mo .duo-art .w{stroke-dasharray:1;stroke-dashoffset:1;animation:write 10s cubic-bezier(.45,.05,.3,1) calc(var(--i) * .32s) infinite;animation-play-state:paused}
html.mo .duo-art.in .w{animation-play-state:running}
@keyframes write{0%{stroke-dashoffset:1;opacity:0}3%{opacity:1}22%{stroke-dashoffset:0}84%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
html.mo .cst path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.6s cubic-bezier(.45,.05,.3,1) calc(var(--d,0s) + .3s)}
html.mo .cst circle{opacity:0;transition:opacity .6s calc(var(--d,0s) + .4s)}
html.mo .card.in .cst path{stroke-dashoffset:0}
html.mo .card.in .cst circle{opacity:1}

/* ---------------------------------------------------------------- reduced motion: nothing moves, everything shows */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  [data-rv]{opacity:1!important;translate:none!important}
  .btn:hover,.pill:hover,.soc:hover .round,.picker .go:hover,.card:hover,.kind:hover,.btn:active,.pill:active,.picker .go:active,
  .frame:hover .chart,.duo-art:hover svg,.card:hover .cst,.kind:hover .k-ic svg{scale:none}
  .sky-cv{opacity:1}
}

/* ---------------------------------------------------------------- home: the countdown line (countdown.js fills it) */
.pg-home .cd{max-width:520px;margin:4px 0 22px;padding:14px 18px 16px;border-radius:18px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--edge),inset 0 1px 1px var(--glass-inset)}
.pg-home .cd-t{margin:0;font:600 17px/1.4 Fraunces,"Noto Serif Thai",Georgia,serif;text-wrap:balance}
.pg-home .cd-w{margin:0 0 8px;font-size:13px;color:var(--bone)}
.pg-home .cd-bar{display:block;height:2px;border-radius:2px;background:var(--hair);overflow:hidden}
.pg-home .cd-bar>span{display:block;height:100%;background:var(--acc)}
