/* Reference-matched composition; scoped to the public home page. */
body.qc-night {
  --font: 'Noto Sans Thai', 'Anuphan', sans-serif;
  --qc-surface-2: #152b47;
  --qc-line-2: #294260;
  --qc-primary-ink: #95c8ff;
  background: #041329;
  font-family: var(--font);
}
.qc-night .pub-header { background: #041329f2; border-bottom: 0; }
.qc-night .pub-header .wrap { min-height: 80px; }
.qc-night .pub-header .brand .mark { display: none; }
.qc-night .pub-header .brand img:not(.mark) { width: 155px; }
.qc-night .pub-nav { gap: 28px; }
.qc-night .pub-nav .btn { border-radius: 28px; min-width: 186px; }
.qc-night .night-stage { max-width: 1240px; padding-top: 18px; isolation: isolate; }
.night-stage::before, .night-stage::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: calc(50% - 50vw); width: 100vw; height: 550px; top: 110px;
  background: linear-gradient(130deg,#0c3975 0%,#062348 35%,#064078 74%,#092952 100%);
  clip-path: polygon(0 15%,30% 75%,64% 88%,100% 9%,100% 46%,69% 100%,25% 93%,0 47%);
  opacity: .7;
}
.night-stage::after { top: 195px; opacity: .5; transform: scaleX(-1); }
.night-intro { margin-bottom: 30px; max-width: 1040px; }
.night-intro h1 { font-size: clamp(34px,4.1vw,56px); font-weight: 800; line-height: 1.28; letter-spacing: -1.6px; margin-bottom: 10px; }
.night-intro p { font-size: 19px; color: #e1eafa; }
.qc-night .pub-nav>a[href='/'] { display: none; }
.qc-night .pub-nav>a[href='/download'] { display: none; }
.qc-night .pub-nav>a[href='/login'] { background: none; border: 0; box-shadow: none; min-width: 0; padding-inline: 10px; }
.night-showcase { margin: 0 42px; padding-top: 0; }
.night-tabs { margin: 0 180px 0 110px; gap: 9px; }
.night-tab { padding: 10px 12px; border-radius: 13px 13px 5px 5px; gap: 10px; box-shadow: 0 0 16px #1c75df66; }
.night-tab strong { font-size: 16px; font-weight: 800; }
.night-tab small { color: #23436c; font-size: 10px; }
.night-mascot { width: 245px; right: -5px; top: -86px; z-index: 5; }
.night-note { right: 0; top: -113px; font-size: 14px; font-style: italic; line-height: 1.5; color: #deebff; }
.night-note-left { right: auto; left: -12px; top: -35px; transform: rotate(-10deg); }
.night-note-left::after { content: ''; display: block; width: 60px; height: 3px; background: #33bbff; border-radius: 50%; margin-top: 7px; }
.night-window { border-width: 7px; border-color: #346794; border-radius: 24px 24px 0 0; box-shadow: 0 0 0 3px #123354,0 0 35px #187edd44; }
.night-window-bar { padding: 13px 18px; gap: 30px; background: linear-gradient(100deg,#fff,#edf5ff); }
.night-window-bar b { font-size: 23px; letter-spacing: -1px; }
.night-window-layout { grid-template-columns: 148px minmax(0,1fr); }
.night-demo-nav { padding: 14px 9px; gap: 7px; font-size: 12px; }
.night-demo-nav b,.night-demo-nav span { display: flex; align-items: center; gap: 8px; padding: 9px 8px; }
.night-demo-nav .i { width: 17px; height: 17px; flex-shrink: 0; }
.night-demo-content { padding: 16px 15px 30px; background: linear-gradient(130deg,#f4f8ff,#e9f2ff); }
.night-demo-heading h2 { font-size: 21px; font-weight: 800; }
.night-period { margin: 5px 0 12px; color: #405b78; }
.night-metrics { gap: 10px; }
.night-metric { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 92px; padding: 14px 12px; overflow: hidden; }
.metric-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #dceaff; color: #075bda; flex-shrink: 0; }
.metric-symbol .i { width: 23px; height: 23px; }
.night-metric:nth-child(2) .metric-symbol { color: #008c72; background: #d8f3eb; }
.night-metric:nth-child(3) .metric-symbol { color: #dd493f; background: #ffe0df; }
.night-metric span { font-size: 11px; font-weight: 600; color: #234061; }
.night-metric strong { font-size: 27px; margin-top: 5px; line-height: 1.3; }
.metric-spark { position: absolute; width: 55px; height: 27px; bottom: 12px; right: 10px; color: #2782ff; opacity: .8; }
.night-metric:nth-child(2) .metric-spark { color: #059f8b; }
.night-metric:nth-child(3) .metric-spark { color: #f55e57; }
.night-report-grid { grid-template-columns: 1fr 1.35fr 1fr; gap: 10px; margin-top: 10px; }
.night-report { padding: 12px; }
.night-report h3 { font-size: 12px; margin-bottom: 10px; }
.night-bars { height: 130px; }
.night-bars small,.night-bars span { font-size: 10px; color: #405777; }
.night-channel { font-size: 11px; }
.night-products { margin-top: -14px; border-radius: 17px; background: linear-gradient(110deg,#09203c,#031329); }
.night-product { padding: 19px 17px; gap: 12px; }
.night-product h2 { font-size: 18px; }
.night-product p { font-size: 12px; color: #e0eafd; }
.night-more { display: inline-block; color: #e8f1ff; font-size: 11px; }
.night-offer { margin-top: 7px; gap: 24px; padding: 17px 22px; border-radius: 15px; }
.night-offer h2 { font-size: 22px; line-height: 1.35; font-weight: 800; }
.night-price { padding: 15px 18px; box-shadow: inset 0 0 0 2px #62aaff; }
.night-price strong { font-size: 38px; white-space: nowrap; }
.night-price strong small { display: inline; font-size: 12px; white-space: normal; }
.night-price>span { display: block; margin-top: 5px; font-size: 14px; }
.night-offer-action { gap: 6px; }
.night-offer-action small { color: #304d74; font-size: 11px; }
/* Explicit light-surface ink prevents the dark theme from washing out text. */
.qc-night .section .qc-trial-spotlight { background: #edf4ff; border-color: #bdd5fa; color: #1b365e; }
.qc-night .section .qc-trial-spotlight h2,.qc-night .section .qc-trial-spotlight h3,
.qc-night .section .qc-trial-spotlight strong { color: #133967; }
.qc-night .section .qc-trial-spotlight .small,.qc-night .section .qc-trial-spotlight p { color: #304e74; }
.qc-night .section .qc-trial-spotlight a:not(.btn) { color: #104cac; }
.qc-night .section .qc-trial-spotlight a.btn-line { color: #fff; background: #12375e; }
.qc-night .qc-trial-spotlight { margin-bottom: 24px; }
.qc-night .section .trial-box { color: #493100; }
.qc-night .section .trial-box .small { color: #624200; }
.qc-night .section .card,.qc-night .step { box-shadow: 0 8px 24px #0002; }
.qc-night .qc-seller-table,.qc-night .qc-seller-table tbody tr:nth-child(even) { background: #102540; }
.qc-night .qc-seller-table td small { color: #bdd1eb; }
.qc-night .section .notice { background: #173352; color: #eaf3ff; }
.qc-night .section .btn.ghost { background: #142f51; color: #eaf3ff; border-color: #54739a; }
.qc-night .skip { background: #12375e; color: #fff; }
.night-progress small,.night-offer>div>small { color: #385779; }
.qc-night .step .n { color: #164eac; }
.qc-night .qc-line-float { background: #087c40; color: #fff; }
.qc-night .night-offer .btn { background: linear-gradient(120deg,#1265d9,#064de4); }
.night-price { background: linear-gradient(125deg,#1166d8,#0455f6); }
@media(max-width:1100px) and (min-width:681px) {
  .night-tabs { margin-left: 70px; margin-right: 145px; }
  .night-mascot { width: 215px; top: -76px; }
  .night-note-left { display: none; }
  .night-window-layout { grid-template-columns: 112px minmax(0,1fr); }
  .night-report-grid { grid-template-columns: 1fr 1.35fr; }
  .night-progress { display: none; }
  .metric-spark { display: none; }
  .night-metric { padding: 12px 9px; gap: 7px; }
  .metric-symbol { width: 28px; height: 28px; }
  .night-price strong { white-space: normal; }
}
@media(max-width:680px) {
  .qc-night .pub-header .wrap { min-height: 65px; }
  .qc-night .pub-header .brand img:not(.mark) { width: 125px; }
  .qc-night .night-stage { padding-top: 16px; }
  .night-intro { margin-bottom: 108px; }
  .night-intro h1 span { display: block; }
  .night-intro h1 { max-width: 340px; font-size: clamp(28px,7.7vw,38px); line-height: 1.22; letter-spacing: -.8px; }
  .night-intro p { font-size: 14px; line-height: 1.6; max-width: 290px; }
  .night-mobile-cta { margin-top: 12px; min-height: 40px; padding: 8px 28px; border-radius: 24px; }
  .night-showcase { margin: 0; }
  .night-mascot { width: 172px; top: -105px; right: calc(50% - 86px); }
  .night-tabs { margin: 0; gap: 0; }
  .night-tab { padding: 9px 4px; box-shadow: none; gap: 4px; }
  .night-tab strong { font-size: 12px; }
  .night-window { border: 1px solid #aac5e6; border-radius: 0 0 12px 12px; }
  .night-window-bar { padding: 8px 10px; gap: 12px; }
  .night-window-bar b { font-size: 16px; }
  .night-demo-content { padding: 10px; }
  .night-demo-heading h2 { font-size: 16px; }
  .night-period { font-size: 11px; margin-bottom: 8px; }
  .night-metrics { gap: 6px; }
  .night-metric { min-height: 0; align-items: center; padding: 9px 10px; gap: 8px; }
  .metric-symbol { width: 28px; height: 28px; }
  .metric-symbol .i { width: 20px; height: 20px; }
  .metric-copy { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .night-metric strong { margin: 0; font-size: 21px; }
  .night-metric span { font-size: 11px; }
  .metric-spark { display: none; }
  .night-report-grid { margin-top: 8px; }
  .night-report-grid>.night-report { margin-top: 0; padding: 10px; }
  .night-bars { height: 127px; }
  .night-products { margin-top: 15px; gap: 7px; background: none; }
  .night-product { padding: 10px; gap: 10px; }
  .night-product p { color: #23436c; font-size: 11px; }
  .night-product h2 { font-size: 14px; }
  .night-product::after { content: '›'; color: #17395e; font-size: 24px; }
  .night-more { display: none; }
  .night-offer { padding: 17px; margin-top: 12px; gap: 10px; }
  .night-price { padding: 0; box-shadow: none; }
  .night-price strong { font-size: 30px; }
  .night-price strong small { font-size: 12px; }
  .qc-night .qc-line-float { bottom: 16px; right: 14px; }
}
