/* Mekhala Hora website, shared styles (landing + privacy).
   Layout: night-sky bands (indigo) alternating with cream "palm-leaf" cards; gold is the only ornament.
   One deliberate dark visual world, so there is no light/dark switch. */
[hidden] { display: none !important; }
:root {
  --night: #0d1330;
  --night-2: #151d45;
  --night-3: #1f2a5c;
  --gold: #d8b263;
  --gold-soft: #f0dca4;
  --maroon: #7d1d38;
  --maroon-2: #9b2747;
  --cream: #f8efdc;
  --cream-2: #efe1c3;
  --ink: #2a1a14;
  --ink-soft: #5b4636;
  --text: #ece6f4;
  --text-dim: #b8b3d1;
  --line: rgba(216, 178, 99, .28);

  --f-display: "Cormorant Garamond", "Trirong", "Noto Serif SC", Georgia, serif;
  --f-body: "IBM Plex Sans Thai", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --r: 18px;
  color-scheme: dark;
}
:lang(th) { --f-display: "Trirong", "Cormorant Garamond", Georgia, serif; }
:lang(zh) { --f-display: "Noto Serif SC", "Cormorant Garamond", serif; --f-body: "Noto Sans SC", "IBM Plex Sans Thai", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
}
:lang(th) body, body:lang(th) { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
:lang(th) .eyebrow, :lang(zh) .eyebrow { letter-spacing: .06em; font-size: .9rem; }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 48px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(13, 19, 48, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img.emblem { width: 40px; height: 40px; }
.brand img.word { height: 18px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--gold-soft); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-shrink: 0; }
.lang button { appearance: none; border: 0; background: transparent; color: var(--text-dim); font: 500 .85rem/1 var(--f-body); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.head-cta { flex-shrink: 0; }
@media (max-width: 900px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 560px) { .site-head .head-cta { display: none; } .brand img.word { height: 15px; } }
@media (max-width: 380px) { .brand img.word { display: none; } }

/* ---------- buttons ---------- */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: linear-gradient(180deg, var(--maroon-2), var(--maroon)); color: #fff;
  border: 1px solid var(--gold); border-radius: 14px; padding: 10px 20px 10px 16px;
  box-shadow: 0 8px 24px rgba(125, 29, 56, .45), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-play:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(125, 29, 56, .55); }
.btn-play svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn-play .t { display: flex; flex-direction: column; line-height: 1.15; }
.btn-play small { font-size: .72rem; opacity: .85; letter-spacing: .04em; }
.btn-play strong { font-size: 1.15rem; font-weight: 600; }
.btn-play.sm { padding: 7px 14px 7px 11px; border-radius: 11px; gap: 8px; box-shadow: none; }
.btn-play.sm svg { width: 18px; height: 18px; }
.btn-play.sm strong { font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .sky { position: absolute; inset: 0; z-index: -2; background: url("assets/bg.webp") center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,19,48,.92) 0%, rgba(13,19,48,.72) 38%, rgba(13,19,48,.35) 70%, var(--night) 100%),
    radial-gradient(1200px 500px at 15% 30%, rgba(13,19,48,.7), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-block: 64px 40px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); color: var(--gold-soft); font-weight: 600; }
:lang(th) .hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.3; }
:lang(zh) .hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.3; }
.hero h1 em { font-style: italic; color: #fff; display: block; }
.hero .lede { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-note { color: var(--text-dim); font-size: .92rem; }
.hero-stage { position: relative; min-height: 560px; min-width: 0; }
.hero-stage .mekhala { position: absolute; right: -4%; bottom: -30px; height: 112%; width: auto; max-width: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
.hero-stage .phone { position: absolute; left: 4%; bottom: 0; width: min(270px, 52%); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 24px; }
  .hero-stage { min-height: 0; height: 460px; }
  .hero-stage .mekhala { right: -6%; height: 105%; }
  .hero-stage .phone { left: 6%; width: min(220px, 50%); }
}

/* phone frame */
.phone { border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #e9cf8a, #9b7531 45%, #e9cf8a); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.phone img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; background: var(--cream); }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.band { padding-block: 88px; }
.band .wrap { display: grid; gap: 48px; }
.sec-head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 720px; margin: 0 auto; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-soft); }
:lang(th) .sec-head h2, :lang(zh) .sec-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.35; }
.sec-head p { color: var(--text-dim); font-size: 1.08rem; }
.stars { background:
  radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
  radial-gradient(1px 1px at 32% 72%, rgba(255,255,255,.6), transparent 60%),
  radial-gradient(1.5px 1.5px at 58% 28%, rgba(240,220,164,.8), transparent 60%),
  radial-gradient(1px 1px at 78% 62%, rgba(255,255,255,.6), transparent 60%),
  radial-gradient(1.5px 1.5px at 90% 12%, rgba(255,255,255,.7), transparent 60%),
  radial-gradient(1px 1px at 46% 90%, rgba(240,220,164,.7), transparent 60%),
  var(--night); background-size: 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, auto; }
.deep { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 24px; }
.feature .copy { display: grid; gap: 16px; min-width: 0; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold-soft); }
:lang(th) .feature h3 { line-height: 1.35; }
.feature p { color: var(--text); }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; color: var(--text-dim); }
.feature li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: .7em; transform: rotate(45deg); background: var(--gold); }
.feature .tag { justify-self: start; font-size: .8rem; color: var(--gold); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.feature .media { display: flex; justify-content: center; }
.feature .media .phone { width: min(290px, 78%); }
.feature.flip .media { order: -1; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .media { order: 0; }
  .feature .media .phone { width: min(250px, 70%); }
}

/* morning + widget mini card */
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.mini h4 { margin: 0; font-family: var(--f-display); font-size: 1.3rem; color: var(--gold-soft); font-weight: 600; }
.mini p { color: var(--text-dim); font-size: .98rem; }
.mini .ico { width: 36px; height: 36px; color: var(--gold); }
@media (max-width: 820px) { .mini-cards { grid-template-columns: 1fr; } }

/* taksa explorer */
.taksa { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.taksa .copy { display: grid; gap: 18px; min-width: 0; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.days button { appearance: none; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 8px 14px; border-radius: 999px; font: 500 .92rem/1.2 var(--f-body); }
.days button[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.role-detail { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-height: 96px; }
.role-detail strong { font-family: var(--f-display); font-size: 1.35rem; color: var(--gold-soft); font-weight: 600; display: block; }
.role-detail span { color: var(--text-dim); }
.src { font-size: .85rem; color: var(--text-dim); }
.src code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--gold-soft); font-size: .85rem; }
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--cream); padding: 12px; border-radius: 22px; border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(216,178,99,.15), 0 30px 60px rgba(0,0,0,.4); max-width: 440px; width: 100%; margin: 0 auto; }
.cell { appearance: none; cursor: pointer; aspect-ratio: 1; border: 1px solid var(--cream-2); background: #fffaf0; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--ink); font: inherit; padding: 4px; text-align: center; transition: background .2s, transform .2s; }
.cell:hover { transform: translateY(-1px); }
.cell .num { font-family: "Trirong", var(--f-display); font-size: 1.7rem; line-height: 1; color: var(--maroon); }
.cell .pl { font-size: .74rem; color: var(--ink-soft); line-height: 1.2; }
.cell .rl { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.cell.birth { background: var(--maroon); border-color: var(--maroon); }
.cell.birth .num, .cell.birth .pl, .cell.birth .rl { color: #fff; }
.cell[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 1px; }
.cell.center { cursor: default; background: var(--cream-2); }
.cell.center .num { color: var(--ink-soft); }
.compass { display: flex; justify-content: space-between; max-width: 440px; margin: 8px auto 0; color: var(--text-dim); font-size: .8rem; }
@media (max-width: 820px) { .taksa { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cell .pl { display: none; } .cell .num { font-size: 1.4rem; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 24px; border-top: 1px solid var(--gold); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--gold); }
.step h3 { font-size: 1.45rem; color: var(--gold-soft); }
.step p { color: var(--text-dim); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; width: 100%; }
.plan { border-radius: 22px; padding: 30px 28px; display: grid; gap: 16px; align-content: start; }
.plan.free { border: 1px solid var(--line); background: var(--night-2); }
.plan.premium { background: var(--cream); color: var(--ink); border: 2px solid var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.plan h3 { font-size: 1.7rem; }
.plan.free h3 { color: var(--gold-soft); }
.plan.premium h3 { color: var(--maroon); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--f-display); font-size: 3rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan.free .price b { color: var(--text); }
.price span { font-size: .95rem; }
.plan.free .price span { color: var(--text-dim); }
.plan.premium .price span { color: var(--ink-soft); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✔︎"; flex: 0 0 auto; color: var(--gold); }
.plan.premium li::before { color: var(--maroon); }
.plan.free li { color: var(--text-dim); }
.plan-note { text-align: center; color: var(--text-dim); font-size: .92rem; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* privacy promise */
.promise { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(120deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.promise img { width: 88px; height: 88px; }
.promise h3 { font-size: 1.6rem; color: var(--gold-soft); margin-bottom: 6px; }
.promise p { color: var(--text-dim); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; text-align: left; } }

/* faq */
.faq { max-width: 800px; margin: 0 auto; width: 100%; display: grid; gap: 10px; }
.faq details { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.5rem; line-height: 1; color: var(--maroon); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* final cta */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.final .sky { position: absolute; inset: 0; z-index: -2; background: url("assets/bg.webp") center 60% / cover no-repeat; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(13,19,48,.55) 50%, rgba(13,19,48,.9) 100%); }
.final .wrap { display: grid; justify-items: center; gap: 22px; padding-block: 96px; }
.final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; max-width: 18em; }
:lang(th) .final h2 { line-height: 1.35; }
.final img.mk { height: 220px; width: auto; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--night); }
.site-foot .wrap { display: grid; gap: 18px; padding-block: 36px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--text-dim); text-decoration: none; }
.foot-links a:hover { color: var(--gold-soft); }
.disclaimer { color: var(--text-dim); font-size: .88rem; max-width: 70em; }
.placeholder { background: rgba(216,178,99,.18); color: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 6px; padding: 0 6px; font-style: normal; }

/* ---------- privacy page ---------- */
.legal { background: var(--cream); color: var(--ink); }
.legal .wrap { max-width: 860px; padding-block: 56px 80px; display: grid; gap: 28px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--maroon); }
:lang(th) .legal h1 { line-height: 1.3; }
.legal h2 { font-size: 1.6rem; color: var(--maroon); margin-top: 12px; }
.legal h3 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 600; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); }
.legal article { display: grid; gap: 14px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .meta { color: var(--ink-soft); font-size: .95rem; }
.legal .summary { background: #fffaf0; border: 1px solid var(--gold); border-radius: 16px; padding: 22px 24px; display: grid; gap: 10px; }
.legal .summary h2 { margin: 0; font-size: 1.3rem; }
.legal .table-wrap { overflow-x: auto; border: 1px solid var(--cream-2); border-radius: 12px; background: #fffaf0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--cream-2); color: var(--ink-soft); }
.legal th { color: var(--ink); font-weight: 600; background: var(--cream-2); }
.legal .placeholder { background: #fff1c9; color: var(--maroon); border-color: var(--maroon); }
.legal a { color: var(--maroon); }
.review { background: #fdeaea; border: 1px dashed var(--maroon); border-radius: 12px; padding: 14px 18px; color: var(--maroon); font-size: .95rem; }
.review b { display: block; margin-bottom: 4px; }

/* quick form */
.btn-ghost { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--gold); color: var(--gold-soft); text-decoration: none; font-weight: 600; }
.btn-ghost:hover { background: rgba(216,178,99,.12); }
.quick { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; justify-content: center; }
.qform { background: var(--cream); color: var(--ink); border: 2px solid var(--gold); border-radius: 22px; padding: 26px; display: grid; gap: 10px; }
.qform label, .qform legend { font-weight: 600; font-size: .95rem; padding: 0; }
.qform fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.qform input, .qform select { width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: #fffaf0; border: 1px solid var(--cream-2); border-radius: 12px; padding: 11px 12px; color-scheme: light; }
.qform input:focus, .qform select:focus { outline: 2px solid var(--maroon); outline-offset: 1px; }
.dmy { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.qhint { font-size: .85rem; color: var(--ink-soft); }
.qcta .qhint { color: var(--text-dim); }
.qerr { color: var(--maroon); font-weight: 600; font-size: .92rem; }
.btn-gold { appearance: none; cursor: pointer; border: 0; border-radius: 14px; padding: 14px 18px; font: 600 1.05rem/1.2 var(--f-body); color: var(--ink); background: linear-gradient(180deg, #f0d48a, #c9a04e); box-shadow: 0 6px 18px rgba(201,160,78,.35); margin-top: 6px; }
.btn-gold:hover { filter: brightness(1.05); }
.qresult { display: grid; gap: 16px; }
.quick:has(.qresult:not([hidden])) { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.qcard { background: var(--cream); color: var(--ink); border-radius: 22px; padding: 24px; border: 2px solid var(--gold); display: grid; gap: 10px; position: relative; }
.qtop { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; position: relative; }
.qhello { font-family: var(--f-display); font-size: 1.5rem; color: var(--maroon); font-weight: 600; }
.qdate { color: var(--ink-soft); font-size: .9rem; }
.ring { width: 104px; height: 104px; grid-column: 2; grid-row: 1; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--cream-2); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 400; transition: stroke-dasharray .8s ease; }
.qscore { grid-column: 2; grid-row: 1; display: grid; justify-items: center; line-height: 1; }
.qscore b { font-family: var(--f-display); font-size: 2.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.qscore span { font-size: .78rem; color: var(--maroon); font-weight: 600; margin-top: 2px; }
.qlabel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); font-weight: 600; }
.qcard h3 { font-size: 1.45rem; color: var(--ink); }
.qcard p { color: var(--ink-soft); }
.qchips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qchips div { background: #fffaf0; border: 1px solid var(--cream-2); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.qchips small { color: var(--maroon); font-weight: 600; font-size: .8rem; }
.qchips span { font-size: .9rem; color: var(--ink); line-height: 1.35; }
.qborn { font-size: .88rem; }
.qcta { background: var(--night-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; justify-items: start; }
.qcta h3 { font-size: 1.4rem; color: var(--gold-soft); }
.qcta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.qcta li { display: flex; gap: 8px; color: var(--text); }
.qcta li::before { content: "✔︎"; color: var(--gold); }
.linkbtn { appearance: none; background: none; border: 0; padding: 0; color: var(--gold-soft); text-decoration: underline; font: inherit; cursor: pointer; }
@media (max-width: 860px) { .quick, .quick:has(.qresult:not([hidden])) { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .qchips { grid-template-columns: 1fr; } }

/* ---------- quick form inside hero (form on top) ---------- */
.hero-copy { gap: 18px; }
.hero .wrap { padding-block: 36px 40px; }
.hero .qform { gap: 8px; padding: 22px 24px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
:lang(th) .hero h1, :lang(zh) .hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.hero .quick { grid-template-columns: minmax(0, 460px); justify-content: start; }
.hero .lede { font-size: 1rem; color: var(--text-dim); }
.qhead { display: grid; gap: 6px; margin-bottom: 4px; }
.qhead h2 { font-size: 1.45rem; line-height: 1.3; color: var(--maroon); margin: 0; text-align: left; }
.qbadge { justify-self: start; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--cream); background: var(--maroon); border-radius: 999px; padding: 3px 12px; }
.qprivacy { font-size: .8rem; text-align: center; margin: 2px 0 0; }
.hero:has(.qresult:not([hidden])) .wrap { grid-template-columns: 1fr; }
.hero:has(.qresult:not([hidden])) .hero-stage { display: none; }
.hero:has(.qresult:not([hidden])) .quick { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
@media (max-width: 860px) {
  .hero-stage { display: none; }
  .hero .wrap { padding-block: 28px 24px; }
  .hero .quick, .hero:has(.qresult:not([hidden])) .quick { grid-template-columns: 1fr; }
}
