/* ManyComments marketing pages: page CSS only (inside visuals, the app-frame recipe, one --p-h per card group).
   Everything else comes from the kit (system.css, cards.css, layout.css, motion.css). */

.nav__logo { gap: var(--s-2); }
.mc-mark { flex: none; }
.hero-try { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.hero-try .field textarea { min-height: 96px; font-size: 16px; }

/* app-frame (sections-library.md) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ManyComments' own UI, drawn live (the result card, the report, the next test, the outcome form) */
.mc-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--u-tint, rgb(0 0 0 / .06)); color: var(--u-ink, #16181a); font-size: 12px; font-weight: 500; white-space: nowrap; }
.mc-chip--warn { background: #fdf0dc; color: #8a5300; }
.mc-card { width: 300px; padding: 16px; border-radius: 12px; background: var(--u-bg, #fff); color: var(--u-ink, #16181a); box-shadow: var(--u-shadow); border: 1px solid var(--u-border); font-size: 13px; display: grid; gap: 8px; }
.mc-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-card__row b { font-weight: 500; font-size: 14px; }
.mc-card__line { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--u-line); }
.mc-card__line b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mc-card__line:first-of-type b { color: var(--accent); }

.mc-report { display: grid; align-content: start; gap: 16px; padding: 20px 24px; font-size: 13px; color: var(--u-ink); }
.mc-report__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.mc-report__head b { display: block; font-size: 16px; font-weight: 500; }
.mc-report__head small { display: block; margin-top: 2px; color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-buy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mc-buy > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--u-tint, rgb(0 0 0 / .04)); }
.mc-buy b { font-size: 32px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mc-buy > div:first-child b { color: var(--accent); }
.mc-buy span { font-weight: 500; font-size: 14px; }
.mc-buy small { color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-note { margin: 0; color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-why { display: grid; gap: 8px; }
.mc-why > b, .mc-next > b { font-weight: 500; font-size: 14px; }
.mc-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; align-items: center; gap: 10px; }
.mc-bar i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--u-ink, #16181a) var(--v), var(--u-tint, rgb(0 0 0 / .06)) var(--v)); opacity: .55; }
.mc-bar i.is-on { background: linear-gradient(90deg, var(--accent) var(--v), var(--u-tint, rgb(0 0 0 / .06)) var(--v)); opacity: 1; }
.mc-bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.mc-quotes { display: grid; gap: 2px; padding: 12px 14px; border-left: 2px solid var(--u-line); }
.mc-quotes q { font-size: 14px; } .mc-quotes small { color: var(--u-muted, #6b7076); font-size: 12px; margin-bottom: 8px; }
.mc-next { display: grid; gap: 6px; }

.mc-test, .mc-conf { display: grid; gap: 12px; padding: 18px 20px; font-size: 13px; color: var(--u-ink); }
.mc-test > b { font-size: 15px; font-weight: 500; }
.mc-test p { margin: 0; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--u-line); }
.mc-test p span { color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-test .mc-chip { justify-self: start; }
.mc-conf__signs, .mc-conf__flip { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--u-line); }
.mc-conf__signs > span, .mc-conf__flip > span { color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-conf__signs ul { margin: 0; padding-left: 18px; }
.mc-conf__flip b { font-weight: 500; }
.mc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mc-seg span { display: grid; place-items: center; height: 36px; border-radius: 8px; border: 1px solid var(--u-border); }
.mc-seg span.is-on { border-color: var(--accent); color: var(--accent); font-weight: 500; }

.mc-facts { list-style: none; padding: 0; margin-inline: 0; margin-bottom: 0; }   /* margin-top left to the stack around it */
.mc-facts b { font-weight: 500; }

#how .panel { --p-h: 320px; }
@media (max-width: 639px) { #how .panel { --p-h: 220px; } .mc-bar { grid-template-columns: 110px minmax(0, 1fr) 36px; } }

/* close-word: the name hand-set to the .wrap (its width is 6.84 em in Anuphan 500) */
.close__word { font-size: min(184px, calc((100vw - 2 * var(--gut)) / 7)); white-space: nowrap; }

/* #trust sits on bg-field, whose own rule centres a section at 88svh: hold it to the one-screen box, top-aligned */
main > .section.bg-field { --g-screen: calc(var(--h, 1) * 100svh); align-content: start; }
@media (max-width: 639px) { main > .section.bg-field { --g-screen: calc(var(--hm, 1) * 100lvh); } }
/* #how: two screens on a tablet and a phone (three stacked cards) */
@media (min-width: 640px) and (max-width: 1023px) { #how { --h: 2; } }
#how { --hm: 2; }
/* the hero on a phone: a shorter box and one button. The proof line stays: it is the only place that says a Google
   sign-up comes next and that the typed text is kept. */
@media (max-width: 639px) { .hero-try .field textarea { min-height: 72px; } .hero-try .btn--secondary { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { #how .panel { --p-h: 236px; } }

.close__word { line-height: 1.12; padding-top: .04em; overflow: visible; }
.mc-topup { display: grid; gap: 14px; padding: 20px; font-size: 13px; color: var(--u-ink); }
.mc-topup__bal { display: grid; gap: 2px; padding: 14px 16px; border-radius: 10px; background: var(--u-tint, rgb(0 0 0 / .04)); }
.mc-topup__bal span, .mc-topup__bal small { color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-topup__bal b { font-size: 28px; line-height: 1.1; font-weight: 500; font-variant-numeric: tabular-nums; }
.mc-topup__packs { display: grid; gap: 6px; }
.mc-topup__packs > div { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--u-border); }
.mc-topup__packs > div.is-on { border-color: var(--accent); }
.mc-topup__packs span { color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-topup__packs b { font-weight: 500; } .mc-topup__packs em { font-style: normal; font-variant-numeric: tabular-nums; }
.mc-topup__btn { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--u-ink, #16181a); color: #fff; font-weight: 500; }
.mc-ask { max-width: 400px; margin-top: var(--s-5); }
.mc-ask.ui-chat { width: min(100%, 400px); min-width: 0; }
#trust .frame--split { aspect-ratio: 1 / 1; }
@media (max-width: 639px) { #trust .frame--split { aspect-ratio: 4 / 5; } #how .panel { --p-h: 300px; } }
#faq { --hm: 2; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); }
.mc-segs { display: grid; gap: 6px; padding: 16px 18px; font-size: 13px; color: var(--u-ink); }
.mc-segs__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mc-segs__head b { font-weight: 500; font-size: 14px; } .mc-segs__head span { color: var(--u-muted, #6b7076); font-size: 12px; }
.mc-segs__row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--u-border); }
.mc-segs__row.is-on { border-color: var(--accent); }
.mc-segs__box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--u-border); }
.mc-segs__box svg { width: 14px; height: 14px; fill: none; stroke: transparent; stroke-width: 2; }
.mc-segs__row.is-on .mc-segs__box { background: var(--accent); border-color: var(--accent); }
.mc-segs__row.is-on .mc-segs__box svg { stroke: #fff; }
#trust .stack-5 > .mc-facts { margin-top: var(--s-6); }

/* pricing */
.hero--centred .hero__window .mc-topup--wide { position: relative; width: min(880px, 100%); margin-inline: auto; margin-top: var(--s-6); }
.mc-topup--wide .mc-topup__packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .mc-topup--wide .mc-topup__packs { grid-template-columns: minmax(0, 1fr); } }
.mc-note-line { margin-top: var(--s-5); }
#packs .card--plan p { margin: 0; }

#packs { --hm: 2; }
.hero--centred .hero__window { display: grid; justify-items: center; align-content: start; }
.mc-topup--wide.ui-panel { background: var(--mc-card); color: var(--mc-ink); opacity: 1; }
.mc-topup--wide .mc-topup__bal { background: var(--mc-surface); }
/* the legal row's links: 24px targets on desktop too (WCAG 2.2 target size) */
.footer__legal a { display: inline-flex; align-items: center; min-height: 24px; }

/* Thai headlines: the kit's 1.02-1.1 line spacing lets tone marks touch the vowels of the line above when a headline wraps. */
h1, .t-h1, .hero h1 { line-height: 1.2; }
h2, .t-h2 { line-height: 1.25; }
