/* HDmall partner pages (hdmall.co.th/work-with-us).
   Tokens, fonts, the framed hero card and the form come from the Jib OS
   webinar pages so the two read as one family. What is new here: each
   audience has its own sky (day for clinics, dusk for pharma, dawn for
   insurers and employers), the audience tabs, and a dusk band for Jib OS,
   echoing the Grow (day) / Run (night) split in the Jib OS deck. */

@font-face { font-family: "Jib Sans"; font-weight: 400; font-display: swap; src: url("fonts/jib-sans-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jib Sans"; font-weight: 600; font-display: swap; src: url("fonts/jib-sans-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jib Sans"; font-weight: 700; font-display: swap; src: url("fonts/jib-sans-700-normal.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed Sans TH"; font-weight: 400; font-display: swap; src: url("fonts/line-seed-th-Rg.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed Sans TH"; font-weight: 700; font-display: swap; src: url("fonts/line-seed-th-Bd.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Thai"; font-weight: 400 700; font-display: swap; src: url("fonts/noto-sans-thai-var.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  --paper: #f3f1ea;
  --paper-2: #faf9f5;
  --white: #fff;
  --ink: #1d1c1a;
  --ink-2: #4a4944;
  --muted: #6e6c64;
  --line: #e4e0d6;
  --dusk: #171029;
  --dusk-2: #2a1d4a;
  --blue: #2563eb;
  --blue-soft: #e8efff;
  --check: #1f7a5a;
  --error: #b42318;

  --font-head: "LINE Seed Sans TH", "Jib Sans", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Noto Sans Thai", "Jib Sans", system-ui, -apple-system, sans-serif;
  --font-ui: var(--font-head);
  --head-weight: 700;
  --head-tracking: 0;

  --measure: 1080px;
  --hero-pad: clamp(20px, 5vw, 56px);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-hero: 2rem;
  --shadow-card: 0 1px 2px rgb(28 25 23 / .04), 0 8px 24px -8px rgb(28 25 23 / .10);
  --shadow-ui: 0 2px 6px rgb(28 25 23 / .06), 0 24px 48px -16px rgb(28 25 23 / .22);
  --shadow-cta: 0 2px 4px rgb(10 6 20 / .18), 0 14px 40px -8px rgb(10 6 20 / .45);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
strong { font-weight: 700; }
ul, ol { padding: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.3; letter-spacing: var(--head-tracking); text-wrap: balance; }
p { text-wrap: pretty; }

/* English: the main site's pairing, new-kansas headings over Jib Sans. */
html[lang="en"] {
  --font-head: "new-kansas", Georgia, serif;
  --font-body: "Jib Sans", system-ui, -apple-system, sans-serif;
  --font-ui: "Jib Sans", system-ui, sans-serif;
  --head-weight: 500;
  --head-tracking: -0.02em;
}
html[lang="en"] body { line-height: 1.6; }
html[lang="en"] .hero__title { line-height: 1.08; }
html[lang="en"] .section__title { line-height: 1.15; }
html[lang="en"] .feature__title, html[lang="en"] .duo__item h3, html[lang="en"] .success__title { line-height: 1.25; }
html[lang="en"] .tabs__item, html[lang="en"] .jump__item strong, html[lang="en"] .register__next-title { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--measure)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 760px); }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 700 1.0625rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: #33312d; }
.btn--primary:disabled { background: #6b6963; cursor: progress; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #f1efe9; }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--paper-2); border-color: #d6d1c4; }
.btn--xl { padding: 18px 40px; font-size: 1.1875rem; border-radius: var(--r-lg); box-shadow: var(--shadow-cta); }
.btn--small { padding: 9px 16px; font-size: .9375rem; border-radius: 999px; }
.btn--block { display: flex; width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.frame {
  padding: 14px; padding-top: max(14px, env(safe-area-inset-top, 0px));
  max-width: calc(var(--measure) + 28px); margin-inline: auto;
}
@media (min-width: 1100px) { .frame { padding-top: 24px; } }
.hero {
  --hero-ink: var(--ink); --hero-ink-2: var(--ink-2); --hero-muted: var(--muted);
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-hero);
  color: var(--hero-ink);
  display: flex; flex-direction: column;
}
.hero--day  { background: linear-gradient(172deg, #c6dbea 0%, #dfe6ea 45%, #ebe1d4 100%); }
.hero--dawn { background: linear-gradient(180deg, #b6c7e1 0%, #cfdff0 46%, #dfe3ee 72%, #ead6d2 100%); }
.hero--dusk {
  --hero-ink: #fff; --hero-ink-2: rgb(255 255 255 / .86); --hero-muted: rgb(255 255 255 / .7);
  background:
    radial-gradient(1px 1px at 12% 22%, rgb(255 255 255 / .7), transparent 60%),
    radial-gradient(1px 1px at 28% 64%, rgb(255 255 255 / .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 12%, rgb(255 255 255 / .6), transparent 60%),
    radial-gradient(1px 1px at 8% 82%, rgb(255 255 255 / .45), transparent 60%),
    radial-gradient(1px 1px at 35% 38%, rgb(255 255 255 / .4), transparent 60%),
    linear-gradient(160deg, #150f30 0%, #1e1440 50%, #2b1c45 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 22px var(--hero-pad) 0; flex: 1; display: flex; flex-direction: column; }
.hero__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hero-ink); }
.brand__logo { width: auto; height: 36px; }
.brand__by { font: 600 .875rem/1 var(--font-ui); color: var(--hero-muted); padding: 5px 0 0 12px; border-left: 1px solid currentColor; border-color: rgb(127 127 127 / .35); }
.hero__actions { display: flex; align-items: center; gap: 10px; }

.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .55); border: 1px solid rgb(29 28 26 / .08); }
.langs__item { min-width: 44px; padding: 6px 12px; border-radius: 999px; text-align: center; font: 600 .875rem/1.2 "Jib Sans", system-ui, sans-serif; letter-spacing: .02em; color: var(--ink-2); text-decoration: none; }
.langs__item[aria-current] { background: var(--ink); color: var(--white); }
a.langs__item:hover { color: var(--ink); background: rgb(29 28 26 / .06); }
.btn--nav { background: rgb(255 255 255 / .7); color: var(--ink); border-color: rgb(29 28 26 / .1); }
.btn--nav:hover { background: var(--white); }
.hero--dusk .langs { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .18); }
.hero--dusk .langs__item { color: rgb(255 255 255 / .8); }
.hero--dusk .langs__item[aria-current] { background: var(--white); color: var(--ink); }
.hero--dusk a.langs__item:hover { color: var(--white); background: rgb(255 255 255 / .12); }
.hero--dusk .btn--nav { background: rgb(255 255 255 / .12); color: var(--white); border-color: rgb(255 255 255 / .22); }
.hero--dusk .btn--nav:hover { background: rgb(255 255 255 / .2); }
.hero--dusk .brand__by { border-color: rgb(255 255 255 / .3); }

/* Audience tabs: separate pages, styled as one segmented control. */
.tabs { margin-top: 28px; }
.tabs__track {
  display: inline-flex; gap: 4px; padding: 5px; max-width: 100%;
  border-radius: 999px; background: rgb(255 255 255 / .5); border: 1px solid rgb(29 28 26 / .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tabs__item {
  flex: none; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font: 700 .96875rem/1.3 var(--font-ui); color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.tabs__item:hover { background: rgb(255 255 255 / .7); color: var(--ink); }
.tabs__item[aria-current="page"] { background: var(--ink); color: var(--white); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.hero--dusk .tabs__track { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); }
.hero--dusk .tabs__item { color: rgb(255 255 255 / .78); }
.hero--dusk .tabs__item:hover { background: rgb(255 255 255 / .1); color: var(--white); }
.hero--dusk .tabs__item[aria-current="page"] { background: var(--white); color: var(--ink); }

.hero__body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 84px); max-width: 54%; }
.hero__title { font-size: clamp(2rem, 4.2vw, 3.125rem); line-height: 1.22; }
.hero__sub { margin-top: 18px; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.65; color: var(--hero-ink-2); max-width: 34em; }
.hero .btn--xl { margin-top: 32px; }
.hero__points { list-style: none; margin-top: 22px; display: grid; gap: 8px; font-size: .96875rem; color: var(--hero-ink-2); }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero--dusk .hero__points li::before { background-color: #3a9b7a; }
.hero--dusk .btn--primary { background: var(--white); color: var(--ink); }
.hero--dusk .btn--primary:hover { background: #ece9f5; }

/* side: the illustration fills the right half, feathered into the sky */
.hero--side { min-height: min(680px, 86svh); }
.hero--side .hero__art {
  position: absolute; z-index: 0; right: 0; top: 72px; bottom: 0; width: 50%; height: calc(100% - 72px);
  object-fit: cover; object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 18%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 18%);
          mask-composite: intersect;
}
.hero--dusk.hero--side .hero__art { object-position: 50% 45%; }

/* mint: pharma. A light clinic-white sky with teal accents, matching its scene */
.hero--mint { background: linear-gradient(170deg, #e6f4f2 0%, #f3f7f7 52%, #f3ece8 100%); --hero-accent: #0e7c72; }
.hero--mint .btn--primary { background: var(--hero-accent); }
.hero--mint .btn--primary:hover { background: #0b685f; }
.hero--mint .hero__points li::before { background-color: var(--hero-accent); }
.hero--mint .tabs__item[aria-current="page"] { background: var(--hero-accent); }
.hero--mint .langs__item[aria-current] { background: var(--hero-accent); }

/* lilac: insurers, brokers and employers. A clear-sky blue fading to lilac,
   with purple accents taken from the purple character in its scene */
.hero--lilac { background: linear-gradient(165deg, #d6eafc 0%, #eaf1fb 48%, #f4edf8 100%); --hero-accent: #8a4fc4; }
.hero--lilac .btn--primary { background: var(--hero-accent); }
.hero--lilac .btn--primary:hover { background: #7841b0; }
.hero--lilac .hero__points li::before { background-color: var(--hero-accent); }
.hero--lilac .tabs__item[aria-current="page"] { background: var(--hero-accent); }
.hero--lilac .langs__item[aria-current] { background: var(--hero-accent); }

/* inset: the whole scene sits on the right, vertically centred and
   feathered on every side into the sky, keeping the copy column clear */
.hero--inset { min-height: min(600px, 86svh); }
.hero--inset .hero__art {
  position: absolute; z-index: 0; right: 0; top: 54%; transform: translateY(-50%); width: 58%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.hero--inset .hero__body { max-width: 50%; }
.hero--inset .hero__sub { max-width: 90%; }

/* full: a wide scene with open space on its left, anchored bottom-right
   and feathered into the card so the copy keeps a clear column */
.hero--full { min-height: min(640px, 86svh); background: linear-gradient(180deg, #f6f7fb 0%, #fbf8f4 60%); }
.hero--full .hero__art {
  position: absolute; z-index: 0; right: 0; bottom: 0; width: 74%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 16%);
          mask-composite: intersect;
}
.hero--full .hero__body { max-width: 45%; }

/* base: a wide illustration runs along the bottom, copy above it */
.hero--base .hero__body { max-width: 62%; padding-bottom: 8px; }
.hero--base .hero__art {
  position: relative; z-index: 0; width: 100%; margin-top: -4%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}

/* ── under the hero ──────────────────────────────────────────────────────── */
/* Jump bar (clinics): the four solutions. On desktop it sticks to the top
   while their sections are on screen; the top rule of the section in view
   stays dark and the others fade, so it reads as "you are here" and keeps
   all four in sight. */
.jump__sentinel { height: 1px; margin-top: clamp(28px, 4vw, 44px); }
.jump { position: relative; z-index: 30; }
.jump__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jump__item {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 20px 18px 0; text-decoration: none; border-top: 2px solid var(--ink);
}
.jump li + li .jump__item { padding-left: 20px; border-left: 1px solid var(--line); }
.jump__item strong { font: 700 1.0625rem/1.4 var(--font-head); }
.jump__item span { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.jump__item:hover strong { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 861px) {
  .jump { position: sticky; top: 0; }
  .jump.is-stuck {
    background: rgb(243 241 234 / .96);
    -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
    box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgb(28 25 23 / .35);
  }
  .jump__item { transition: border-color .25s ease, padding .2s ease; }
  .jump__item strong, .jump__item span { transition: color .25s ease; }
  .jump.is-stuck .jump__item { padding-top: 12px; padding-bottom: 13px; }
  .jump.is-stuck .jump__item span { display: none; }
  .jump.has-current .jump__item { border-top-color: var(--line); }
  .jump.has-current .jump__item strong { color: var(--muted); }
  .jump.has-current .jump__item[aria-current] { border-top-color: var(--ink); }
  .jump.has-current .jump__item[aria-current] strong { color: var(--ink); }
  .jump.has-current .jump__item:hover strong { color: var(--ink); }
  .jump.is-stuck .jump__item[aria-current] { background: linear-gradient(rgb(255 255 255 / .7), rgb(255 255 255 / 0)); }
}
@media (prefers-reduced-motion: reduce) {
  .jump__item, .jump__item strong, .jump__item span { transition: none !important; }
}

.figures-wrap { margin-top: clamp(28px, 4vw, 44px); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.figures__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 18px 20px 4px 0; }
.figures__item + .figures__item { padding-left: 20px; border-left: 1px solid var(--line); }
.figures dd { font: 700 clamp(1.75rem, 3.4vw, 2.5rem)/1.1 "Jib Sans", var(--font-head); letter-spacing: -.01em; }
.figures dt { font-size: .9375rem; line-height: 1.5; color: var(--muted); }

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.group__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.section__title--small { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 28px; }
.section__intro { margin-top: 12px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.7; color: var(--ink-2); }

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature--flip .feature__media { order: 2; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; }
.feature--stacked { display: block; }
.feature--stacked .feature__media { margin-bottom: clamp(28px, 4vw, 44px); }
.feature__cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(28px, 5vw, 64px);
  grid-template-areas: "title list" "body list" "note list" "cta list"; grid-template-rows: auto auto auto 1fr; align-items: start;
}
.feature__cols > .feature__title { grid-area: title; }
.feature__cols > .feature__list { grid-area: list; }
.feature__cols > .feature__body { grid-area: body; }
.feature__cols > .note { grid-area: note; }
.feature__cols > .feature__cta { grid-area: cta; margin-top: 24px; }
.feature__cols .points { margin-top: 0; }
.feature__media img { width: 100%; }
.feature__media--art { box-shadow: var(--shadow-card); }
.feature__media--dark { box-shadow: 0 2px 4px rgb(23 16 41 / .12), 0 18px 40px -14px rgb(23 16 41 / .45); }
.feature__media--ui { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-ui); }
.feature__logo { height: 34px; width: auto; margin-bottom: 18px; }
.feature__title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.feature__body { margin-top: 12px; color: var(--ink-2); }
.feature__body--after { margin-top: 20px; }
.feature__text > .btn { margin-top: 24px; }

.badge { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border-radius: 999px; background: var(--blue-soft); color: #1d4ed8; font: 700 .8125rem/1.6 var(--font-ui); }
.badge--link { text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.badge--link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.badge--link:hover { background: #d6e3ff; color: #1e40af; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 .875rem/1.4 "Jib Sans", var(--font-ui); color: var(--ink); }

.points { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.points li { position: relative; padding-left: 30px; line-height: 1.6; }
.points li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.note { margin-top: 22px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--blue-soft); color: #1e2a4a; font-size: .96875rem; line-height: 1.65; }
.note--wide { max-width: 720px; }

/* ── dusk band (Jib OS) ──────────────────────────────────────────────────── */
.band { padding: clamp(64px, 9vw, 112px) 14px 0; }
.band__card {
  max-width: var(--measure); margin-inline: auto; border-radius: var(--r-hero);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 56px) clamp(36px, 5vw, 56px);
  color: var(--white);
  background:
    radial-gradient(1px 1px at 18% 14%, rgb(255 255 255 / .6), transparent 60%),
    radial-gradient(1px 1px at 72% 9%, rgb(255 255 255 / .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 30%, rgb(255 255 255 / .5), transparent 60%),
    radial-gradient(1px 1px at 52% 22%, rgb(255 255 255 / .4), transparent 60%),
    linear-gradient(170deg, #150f30 0%, #1d1440 55%, #2a1c46 100%);
}
.band .section__intro, .band .feature__body { color: rgb(255 255 255 / .82); }
.band .points li { color: rgb(255 255 255 / .92); }
.band .points li::before { background-color: #3a9b7a; }
.band .note { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .9); border: 1px solid rgb(255 255 255 / .12); }
.band .feature__media--art { box-shadow: none; border: 1px solid rgb(255 255 255 / .1); }
.shot { margin-top: clamp(40px, 6vw, 64px); }
.shot img { border-radius: var(--r-md); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.shot figcaption { margin-top: 14px; font-size: .9375rem; color: rgb(255 255 255 / .7); text-align: center; }

/* ── proof ───────────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote blockquote p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { display: flex; flex-direction: column; font-size: .9375rem; line-height: 1.5; }
.quote__who { font-weight: 700; }
.quote__role { color: var(--muted); }
.quotes__note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.logos { margin-top: clamp(40px, 5vw, 56px); }
.logos__label { font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
/* Logo wall: white marks on near-black cards. Deliberately still and dark,
   to read as a different thing from the moving channel strip above. */
.logowall { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logowall__card {
  display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 16px 20px;
  border-radius: var(--r-md); background: #151413;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
  transition: background-color .2s ease;
}
.logowall__card:hover { background: #1f1d1b; }
.logowall__card img { width: auto; max-width: 62%; object-fit: contain; opacity: .88; transition: opacity .2s ease; }
.logowall__card--more { font: 600 1.0625rem/1.35 var(--font-ui); color: rgb(255 255 255 / .82); text-align: center; letter-spacing: 0; }
.logowall__card--more:hover { background: #151413; }
.logowall__card:hover img { opacity: 1; }
@media (max-width: 860px) { .logowall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logowall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .logowall__card { padding: 12px 14px; } .logowall__card--more { font-size: .9375rem; } }
.logos--strip img { width: min(100%, 820px); filter: grayscale(1); opacity: .75; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo__item { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.duo__item h3 { font-size: 1.3125rem; }

.cases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); min-height: 210px; }
.case__company { font: 700 1.625rem/1.2 "Jib Sans", var(--font-head); letter-spacing: -.01em; }
.case__area { margin-top: 4px; color: var(--muted); }
.case__summary { margin-top: 14px; color: var(--ink-2); font-size: .96875rem; }
.case__cta { margin-top: auto; padding-top: 22px; font-weight: 700; color: var(--blue); text-underline-offset: 3px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 700 1.125rem/1.5 var(--font-head);
}
html[lang="en"] .faq__item summary { font-family: var(--font-ui); font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center/10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 10px no-repeat;
}
.faq__item[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center/10px 1.5px no-repeat; }
.faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ── lead form ───────────────────────────────────────────────────────────── */
.section--form { margin-top: clamp(64px, 9vw, 112px); padding: clamp(56px, 8vw, 96px) 0; background: var(--paper-2); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.register {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 5vw, 64px);
  grid-template-areas: "intro card" "direct card"; grid-template-rows: auto 1fr; align-items: start;
}
.register__intro { grid-area: intro; }
.register__card { grid-area: card; }
.register .direct { grid-area: direct; }
.register__next-title { margin-top: 32px; font-size: 1.0625rem; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font: 700 .875rem/1 "Jib Sans", sans-serif; color: var(--ink); }
.direct { margin-top: 32px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.direct__label { font-size: .875rem; color: var(--muted); }
.direct__who { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.direct__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--paper); border: 1px solid var(--line); }
.direct__name { font-weight: 700; line-height: 1.4; }
.direct__title { font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.direct__book { margin-top: 16px; }
.direct__list { list-style: none; display: grid; gap: 6px; margin-top: 16px; }
.direct__list li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: .96875rem; }
.direct__list span { color: var(--muted); }
.direct__list a { color: var(--ink); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px; }

.register__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-card); scroll-margin-top: 16px; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field legend { margin-bottom: 8px; padding: 0; }
.field__opt { font-weight: 400; font-size: .875rem; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid #d6d1c4; background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234a4944' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/16px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(37 99 235 / .18); }
.field [aria-invalid=true] { border-color: var(--error); }
.field__err, .form__err { font-size: .9375rem; color: var(--error); line-height: 1.5; }
.form__err { padding: 10px 12px; border-radius: var(--r-sm); background: #fdecea; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .96875rem; line-height: 1.45; }
.check:hover { border-color: #d6d1c4; background: var(--paper-2); }
.check:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.field--check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.field--check label a { color: var(--blue); }
.field--check .field__err { grid-column: 2; }
.form .btn { margin-top: 4px; padding-block: 16px; font-size: 1.125rem; }

.success { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 24px 0; outline: none; }
.success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--check); color: var(--white); font-size: 1.75rem; line-height: 1; }
.success__title { font-size: 1.625rem; }
.success__lede { color: var(--ink-2); }

/* ── footer, sticky CTA, 404 ─────────────────────────────────────────────── */
.footer { padding: 40px 0 48px; color: var(--muted); font-size: .875rem; line-height: 1.6; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__logo { height: 28px; width: auto; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { color: var(--ink-2); }
.footer__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__text { display: grid; gap: 8px; max-width: 72ch; }
.footer__proof { color: var(--ink-2); }
.footer__stars { color: #e8a317; letter-spacing: .08em; margin-right: 4px; }
.footer__entity { font-style: normal; }
.footer__legal { font-size: .8125rem; }
.footer__badges { display: flex; gap: 12px; align-items: center; }
.footer__badges img { height: 40px; width: auto; }

.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgb(250 249 245 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
/* Desktop: a floating pill in the bottom-right corner instead of a bar.
   Shown once the hero is out of view, hidden while a form is on screen. */
@media (min-width: 861px) {
  .stickycta {
    left: auto; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; padding: 0;
    background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    animation: sticky-in .3s ease both;
  }
  .stickycta .btn--block { width: auto; }
  .stickycta .btn {
    gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px; font-size: 1rem;
    box-shadow: 0 14px 30px -10px rgb(28 25 23 / .45), 0 2px 6px rgb(28 25 23 / .12);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  }
  .stickycta .btn::before {
    content: ""; width: 18px; height: 18px; flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .stickycta .btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgb(28 25 23 / .5), 0 3px 8px rgb(28 25 23 / .14); }
}
@keyframes sticky-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stickycta { animation: none; } }

.notfound { padding: 64px 0; display: grid; gap: 16px; justify-items: start; }
.notfound img { height: 40px; width: auto; margin-bottom: 24px; }
.notfound h1 { font-size: 2rem; }
.notfound p { color: var(--ink-2); }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ── tablet and mobile ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__body { max-width: 58%; }
  .jump__list, .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump li:nth-child(3) .jump__item { padding-left: 0; border-left: 0; }
  .figures__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .jump li:nth-child(n+3) .jump__item, .figures__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures__item:nth-child(n+3) { margin-top: 8px; }
}
@media (max-width: 860px) {
  .hero--side, .hero--base, .hero--full, .hero--inset { min-height: 0; }
  .hero__body, .hero--base .hero__body, .hero--full .hero__body, .hero--inset .hero__body { max-width: none; padding-bottom: 24px; }
  .hero--side .hero__art {
    position: relative; top: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: -12px;
    object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
            mask-composite: add;
  }
  .hero--base .hero__art { margin-top: 0; }
  .hero--inset .hero__art {
    position: relative; top: auto; transform: none; width: 100%; margin-top: -8px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
            mask-composite: add;
  }
  .hero--full .hero__art {
    position: relative; right: auto; bottom: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: -12px;
    object-fit: cover; object-position: 80% 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
            mask-composite: add;
  }
  .feature { grid-template-columns: 1fr; }
  .feature__cols { grid-template-columns: 1fr; grid-template-areas: "title" "list" "body" "note" "cta"; grid-template-rows: auto; }
  .feature__cols .points { margin-top: 18px; }
  .feature--flip .feature__media { order: 0; }
  /* the booking demo reads better after its section text on phones
     (two classes so it beats the alternating-rows rule above) */
  .feature .feature__media--access { order: 2; }
  .feature__media--art, .feature__media--dark { max-width: 520px; }
  .quotes, .cases, .duo { grid-template-columns: 1fr; }
  .register { grid-template-columns: 1fr; grid-template-areas: "intro" "card" "direct"; grid-template-rows: auto; row-gap: 28px; }
  .register .direct { margin-top: 0; }
  .footer__body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .frame { padding: 8px; }
  .hero { border-radius: 1.5rem; }
  .hero__inner { padding-top: 16px; }
  .brand__logo { height: 30px; }
  .brand__by { display: none; }
  .btn--nav { display: none; }
  .langs__item { min-width: 40px; padding: 6px 10px; }
  /* The pill row scrolls sideways; the track grows to fit every tab so its
     background runs under all three, and a spacer keeps the end padding. */
  .tabs { display: flex; margin-top: 20px; margin-inline: calc(var(--hero-pad) * -1); overflow-x: auto; scrollbar-width: none; padding-left: var(--hero-pad); }
  .tabs::after { content: ""; flex: 0 0 var(--hero-pad); }
  .tabs__track { flex: none; width: max-content; max-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__item { padding: 8px 14px; font-size: .9375rem; }
  .hero__body { padding-top: 28px; }
  .hero .btn--xl { align-self: stretch; }
  .jump__list { grid-template-columns: 1fr; }
  .jump li + li .jump__item, .jump li:nth-child(3) .jump__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .jump__item { padding: 14px 0; }
  .band { padding-inline: 8px; }
  .band__card { border-radius: 1.5rem; }
  .field-row, .checks { grid-template-columns: 1fr; }
  body:has(.stickycta:not([hidden])) .footer { padding-bottom: 110px; }
}

/* ── care types (clinics) ────────────────────────────────────────────────── */
.care { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.care__item { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.care__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: #1d4ed8; }
.care__name { margin-top: 16px; font-size: 1.1875rem; }
html[lang="en"] .care__name { line-height: 1.25; }
.care__who { margin-top: 6px; font-size: .96875rem; line-height: 1.6; color: var(--ink-2); }
.care__links { list-style: none; display: grid; align-content: start; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.care__links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 5px 0; font-size: .9375rem; line-height: 1.5; color: var(--ink); text-decoration: none;
}
.care__links a::after { content: "→"; flex: none; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.care__links a:hover { color: var(--blue); }
.care__links a:hover::after { color: var(--blue); transform: translateX(3px); }
@media (max-width: 960px) { .care { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .care { grid-template-columns: 1fr; } .care__item { padding: 20px; } }
/* Line the link lists up across a row, whatever the description length. */
@supports (grid-template-rows: subgrid) {
  .care { grid-auto-rows: auto; row-gap: 16px; }
  .care__item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .care__icon { align-self: start; }
}

/* ── logo marquee (Care Access Network channels) ─────────────────────────── */
.marquee {
  margin-top: clamp(32px, 4vw, 48px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { list-style: none; display: flex; align-items: center; gap: 64px; padding: 14px 32px; }
.marquee__item { flex: none; display: flex; align-items: center; gap: 10px; }
.marquee__item img { width: auto; filter: grayscale(1); opacity: .6; }
.marquee__item span { font: 600 1.3125rem/1 "Jib Sans", system-ui, sans-serif; color: #85837c; letter-spacing: -.015em; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; gap: 20px 40px; padding-inline: 0; }
  .marquee__list[aria-hidden] { display: none; }
}
@media (max-width: 720px) { .marquee__list { gap: 44px; padding: 10px 22px; } .marquee__track { animation-duration: 30s; } }

/* Brands row (supply section): one row of logo cards plus a supplier link */
.brands { margin-top: clamp(36px, 5vw, 56px); }
.logowall--row .logowall__card { aspect-ratio: 5 / 2; }
.brands__cta {
  display: flex; width: fit-content; max-width: 100%; margin-inline: auto; align-items: center; gap: 10px; margin-top: 20px; text-align: center;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font: 600 .9375rem/1.4 var(--font-ui); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.brands__cta::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); }
.brands__cta:hover { border-color: #d6d1c4; background: var(--paper-2); }
@media (max-width: 860px) { .logowall--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brands__cta { border-radius: var(--r-md); } }

/* ── Jib AI home demo (Jib OS section) ───────────────────────────────────────
   A recreation of jib-os.hdmall.co.th/app/home in Jib OS's own colours. */
.jd {
  --jd-brand: #00785e; --jd-brand-tint: #e6f7f2; --jd-ink: #0f172a; --jd-ink-subtle: #64748b;
  --jd-ink-faint: #94a3b8; --jd-line: #e2e8f0; --jd-line-soft: #f1f5f9; --jd-sunken: #f8fafc; --jd-danger: #ef4444;
  margin-top: clamp(40px, 6vw, 64px); container-type: inline-size;
  font-family: "Noto Sans Thai", "Jib Sans", system-ui, sans-serif;
}
html[lang="en"] .jd { font-family: "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; }
.jd__window {
  display: grid; grid-template-columns: 188px minmax(0, 1fr) 236px; height: 560px;
  overflow: hidden; border-radius: 14px; background: #fff; color: var(--jd-ink);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); font-size: 13px; line-height: 1.5;
}
.jd-ico { width: 15px; height: 15px; flex: none; }

/* sidebar */
.jd__side { display: flex; flex-direction: column; border-right: 1px solid var(--jd-line); background: #fff; min-width: 0; }
.jd__brand { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px; font-size: 16px; }
.jd__brand img { width: 26px; height: 26px; }
.jd__brand span { flex: 1; } .jd__brand b { font-weight: 600; }
.jd__bell { color: var(--jd-ink-subtle); }
.jd-nav { display: flex; flex-direction: column; gap: 1px; padding: 4px 10px; flex: 1; }
.jd-nav__item { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 10px; color: var(--jd-ink-subtle); font-weight: 500; white-space: nowrap; }
.jd-nav__item.is-on { background: var(--jd-brand-tint); color: var(--jd-brand); }
.jd-nav__sub { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 26px; color: var(--jd-ink); font-size: 12.5px; white-space: nowrap; }
.jd-nav__sub .jd-ico { width: 13px; height: 13px; color: var(--jd-ink-subtle); }
.jd__me { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--jd-line-soft); }
.jd__avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #10b981; color: #fff; font-size: 11px; font-weight: 600; }

/* main */
.jd__main { display: flex; flex-direction: column; min-width: 0; background: var(--jd-sunken); }
.jd__scroll { flex: 1; min-height: 0; overflow: hidden; padding: 0 22px; }
.jd__intro { max-width: 500px; margin: 0 auto; padding-top: 18px; display: flex; flex-direction: column; }
.jd__team { width: 200px; max-width: 60%; align-self: center; margin-bottom: 10px; filter: drop-shadow(0 1.5px 1.5px rgb(28 20 40 / .16)); }
.jd__hello { font-size: 21px; font-weight: 700; line-height: 1.3; }
.jd__summary { margin-top: 4px; color: var(--jd-ink-subtle); }
.jd__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.jd__chip { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / .08); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd__chipico { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--jd-line-soft); color: #475569; }
.jd__chipico .jd-ico { width: 12px; height: 12px; }
.jd__thread { max-width: 560px; margin: 0 auto; padding: 18px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.jd__composer { max-width: 600px; width: 100%; margin: 0 auto; padding: 6px 18px 10px; }
.jd__input { position: relative; display: flex; align-items: center; min-height: 42px; padding: 6px 6px 6px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .05); font-size: 13.5px; }
.jd__typed { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.jd__typed:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -.15em; background: var(--jd-ink); animation: jd-caret 1s steps(1) infinite; }
.jd__ph { position: absolute; left: 17px; color: var(--jd-ink-faint); pointer-events: none; }
.jd__send { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: var(--jd-brand); color: #fff; opacity: .4; transition: opacity .2s ease; }
.jd__send.is-ready { opacity: 1; }
.jd__send .jd-ico { width: 14px; height: 14px; }
.jd__disclaimer { margin-top: 5px; text-align: center; font-size: 10.5px; color: var(--jd-ink-faint); }

/* messages */
.jd-msg--user { display: flex; justify-content: flex-end; }
.jd-bubble { max-width: 80%; padding: 8px 13px; border-radius: 16px 16px 4px 16px; background: var(--jd-brand); color: #fff; font-weight: 500; animation: jd-in .25s ease; }
.jd-ai__head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12px; color: var(--jd-ink-subtle); }
.jd-ai__head img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.jd-ai__body { padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / .08); }
.jd-block + .jd-block { margin-top: 10px; }
.jd-ai__body p strong { font-weight: 700; }
.jd-fade { animation: jd-in .35s ease; }
.jd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.jd-stat { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--jd-line); }
.jd-stat span { font-size: 11px; color: var(--jd-ink-subtle); }
.jd-stat b { font-size: 16px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.jd-stat i { font-style: normal; font-size: 11px; font-weight: 600; color: #059669; }
.jd-table { overflow: hidden; border: 1px solid var(--jd-line); border-radius: 10px; }
.jd-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.jd-table th { padding: 6px 9px; background: var(--jd-sunken); color: var(--jd-ink-subtle); font-size: 10.5px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .02em; }
.jd-table td { padding: 6px 9px; border-top: 1px solid var(--jd-line-soft); vertical-align: top; transition: opacity .25s ease; }
.jd-table td:first-child { font-weight: 600; white-space: nowrap; }
.jd-table td:nth-child(2) { white-space: nowrap; }
.jd-list { list-style: none; display: grid; gap: 4px; }
.jd-list li { position: relative; padding-left: 14px; transition: opacity .25s ease; }
.jd-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--jd-brand); }
.jd-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.jd-actions span { padding: 4px 11px; border-radius: 999px; border: 1px solid #a7d8c9; color: var(--jd-brand); font-size: 12px; font-weight: 600; background: var(--jd-brand-tint); }
.jd-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.jd-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--jd-ink-faint); animation: jd-dot 1s infinite ease-in-out; }
.jd-dots i:nth-child(2) { animation-delay: .15s; } .jd-dots i:nth-child(3) { animation-delay: .3s; }

/* right panel */
.jd__right { border-left: 1px solid var(--jd-line); background: #fff; overflow: hidden; min-width: 0; }
.jd__rh { padding: 7px 14px; border-bottom: 1px solid var(--jd-line); background: var(--jd-sunken); color: var(--jd-ink-subtle); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.jd__row { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--jd-line-soft); }
.jd__row span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jd__row b { font-weight: 500; color: var(--jd-ink-subtle); }
.jd__row i { font-style: normal; color: var(--jd-ink-faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd__row em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.jd__row--flag { box-shadow: inset 3px 0 0 var(--jd-danger); }
.jd__row--flag b { color: var(--jd-ink); font-weight: 600; }
.jd__row--flag .jd-ico { width: 13px; height: 13px; color: #cbd5e1; }

/* question pills under the window */
.jd__try { margin-top: 22px; text-align: center; }
.jd__trylabel { font-size: .875rem; color: rgb(255 255 255 / .7); }
.jd__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.jd__pill {
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .06);
  color: rgb(255 255 255 / .88); font: 500 .9375rem/1.3 var(--font-body); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.jd__pill:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .35); }
.jd__pill.is-on { background: #fff; border-color: #fff; color: var(--ink); }
.jd__caption { margin-top: 14px; font-size: .8125rem; color: rgb(255 255 255 / .55); }

@keyframes jd-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes jd-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes jd-caret { 50% { opacity: 0; } }

@container (max-width: 920px) {
  .jd__window { grid-template-columns: 172px minmax(0, 1fr); }
  .jd__right { display: none; }
}
@container (max-width: 640px) {
  .jd__window { grid-template-columns: minmax(0, 1fr); height: 540px; }
  .jd__side { display: none; }
  .jd__scroll { padding: 0 14px; }
  .jd__composer { padding: 6px 12px 10px; }
  .jd__chips { grid-template-columns: 1fr; }
  .jd__chip:nth-child(3) { display: none; }
  .jd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-table td:nth-child(3), .jd-table th:nth-child(3) { display: none; }
  .jd__pills { position: relative; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .jd__pills::-webkit-scrollbar { display: none; }
  .jd__pill { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jd-bubble, .jd-fade { animation: none; }
  .jd-dots i, .jd__typed::after { animation: none; }
}

/* ── Thailand distribution map (pharma) ──────────────────────────────────── */
.feature__media--map { overflow: visible; }
.thmap {
  --th-base: #dde9e7; --th-on: #57b5a8; --th-bkk: #0e7c72; --th-flash: #5eead4; --th-pop: #a7f3e6;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, #eaf5f3, #f3f1ec);
  box-shadow: inset 0 0 0 1px rgb(14 124 114 / .08);
}
.thmap__svg { width: 100%; max-height: 480px; overflow: visible; }
.thmap__p {
  fill: var(--th-base); stroke: #fff; stroke-width: .8; stroke-linejoin: round;
  transition: fill .45s ease, opacity .3s ease, filter .3s ease; cursor: default;
}
.thmap__p.is-on { fill: var(--th-on); }
.thmap__p[data-r="bkk"].is-on { fill: var(--th-bkk); }
.thmap__p.is-flash { fill: var(--th-flash); filter: drop-shadow(0 0 6px rgb(45 212 191 / .9)); transition-duration: .08s; }
.thmap__p.is-pop { fill: var(--th-pop); filter: drop-shadow(0 0 5px rgb(94 234 212 / .85)); transition-duration: .1s; }
.thmap[data-focus] .thmap__p { opacity: .28; }
.thmap[data-focus="bkk"] .thmap__p[data-r="bkk"], .thmap[data-focus="north"] .thmap__p[data-r="north"],
.thmap[data-focus="northeast"] .thmap__p[data-r="northeast"], .thmap[data-focus="east"] .thmap__p[data-r="east"],
.thmap[data-focus="central"] .thmap__p[data-r="central"], .thmap[data-focus="south"] .thmap__p[data-r="south"] { opacity: 1; fill: var(--th-bkk); }
.thmap__regions { list-style: none; display: grid; gap: 6px; }
.thmap__chip {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid rgb(14 124 114 / .14); background: rgb(255 255 255 / .75); color: var(--ink);
  font: 600 .9375rem/1.3 var(--font-ui); text-align: left; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.thmap__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--th-base); box-shadow: inset 0 0 0 1px rgb(14 124 114 / .25); transition: background-color .2s ease; }
.thmap__chip[data-region="bkk"] .thmap__dot { background: var(--th-bkk); }
.thmap__chip.is-current, .thmap__chip:hover, .thmap__chip:focus-visible { background: #fff; border-color: rgb(14 124 114 / .45); }
.thmap__chip.is-current .thmap__dot, .thmap__chip:hover .thmap__dot { background: var(--th-flash); box-shadow: 0 0 0 3px rgb(94 234 212 / .3); }
@media (max-width: 720px) {
  .thmap { grid-template-columns: 1fr; padding: 16px; }
  .thmap__svg { max-height: 420px; }
  .thmap__regions { grid-template-columns: 1fr 1fr; }
  .thmap__chip { font-size: .875rem; padding: 7px 10px 7px 8px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .thmap__p { transition: none; } }

/* Case study logos: the white marks, shown dark on the white cards */
.case__logo { height: 34px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; filter: brightness(0); opacity: .86; margin-bottom: 4px; }
.case__logo + .case__area { margin-top: 12px; }

/* Duo with a wide picture above the two cards */
.duo__media { margin-bottom: 20px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.duo__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 720px) { .duo__media img { aspect-ratio: 16 / 10; } }

/* ── HDcare chat demo (insurers) ─────────────────────────────────────────────
   A member chat inside a fictional insurer's app, powered by HDcare. */
.feature__media--chat { overflow: visible; display: flex; flex-direction: column; align-items: center; }
.hc { --hc-brand: #c3304a; --hc-teal: #1aa39a; --hc-navy: #12355b; width: 100%; max-width: 400px; margin: 0 auto; }
.hc__phone {
  display: flex; flex-direction: column; height: 600px; overflow: hidden;
  border-radius: 34px; background: #f4f6f8; border: 8px solid #1d1c1a;
  box-shadow: 0 30px 60px -24px rgb(28 25 23 / .45), 0 0 0 1px rgb(0 0 0 / .04);
  font-family: "Noto Sans Thai", "Jib Sans", system-ui, sans-serif; font-size: 13.5px; line-height: 1.5; color: #0f172a;
}
html[lang="en"] .hc__phone { font-family: "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; }
.hc__head { padding: 16px 16px 12px; background: #fff; border-bottom: 1px solid #e8ecf0; }
.hc__brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hc__abc { font: 800 30px/1 "Jib Sans", system-ui, sans-serif; letter-spacing: .01em; color: var(--hc-brand); }
.hc__by { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; white-space: nowrap; }
.hc__by img { height: 13px; width: auto; }
.hc__agent { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hc__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6f7f5; }
.hc__avatar img { width: 26px; height: 26px; }
.hc__agent b { display: block; font-weight: 700; font-size: 13.5px; }
.hc__agent i { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; color: #059669; }
.hc__agent i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.hc__thread { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.hc__thread::-webkit-scrollbar { display: none; }
.hc__input { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px; padding: 10px 8px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; color: #94a3b8; }
.hc__send { width: 28px; height: 28px; border-radius: 50%; background: var(--hc-brand); opacity: .35; }

.hc-row { display: flex; animation: hc-in .3s ease both; }
.hc-row--member { justify-content: flex-end; }
.hc-msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .06); }
.hc-row--member .hc-msg { background: var(--hc-brand); color: #fff; border-bottom-right-radius: 5px; }
.hc-row--agent .hc-msg { border-bottom-left-radius: 5px; }
.hc-msg p + * { margin-top: 8px; }
.hc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.hc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: jd-dot 1s infinite ease-in-out; }
.hc-typing i:nth-child(2) { animation-delay: .15s; } .hc-typing i:nth-child(3) { animation-delay: .3s; }

.hc-opts { display: grid; gap: 6px; }
.hc-opt { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fbfcfd; font-size: 12px; color: #64748b; }
.hc-opt__top { display: flex; justify-content: space-between; gap: 8px; color: #0f172a; font-size: 13px; }
.hc-opt__top em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-opt i { justify-self: start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #e6f7f5; color: #0b7a72; font-style: normal; font-weight: 700; font-size: 11px; }
.hc-book { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f0faf9; border: 1px solid #c9ece8; font-size: 12px; color: #475569; }
.hc-book b { color: #0f172a; font-size: 13px; }
.hc-book i { font-style: normal; color: #0b7a72; font-weight: 600; }

.hc-row--summary { justify-content: center; }
.hc-summary { width: 92%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--hc-navy); color: #fff; box-shadow: 0 10px 24px -12px rgb(18 53 91 / .6); }
.hc-summary__t { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: rgb(255 255 255 / .7); margin-bottom: 6px; }
.hc-summary__row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid rgb(255 255 255 / .1); font-size: 12.5px; }
.hc-summary__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-summary__row s { margin-left: 4px; font-weight: 400; color: rgb(255 255 255 / .55); }
.hc-summary__row:last-child b { color: #6ee7d8; }
.hc__caption { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--muted); }

@keyframes hc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .hc__phone { height: 560px; border-width: 6px; border-radius: 28px; } }
@media (prefers-reduced-motion: reduce) { .hc-row { animation: none; } .hc__thread { scrollbar-width: thin; } }

/* ── Care Access Network demo (clinics): one booking, four channels ──────── */
.feature__media--access { overflow: visible; }
.ca { width: 100%; }
.ca__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ca__tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  font: 600 .8125rem/1.2 "Jib Sans", var(--font-ui); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ca__tab img { height: 16px; width: auto; }
.ca__tab img.is-wide { height: 13px; }
.ca__tab:hover { border-color: #d6d1c4; }
.ca__tab.is-on { border-color: var(--ink); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.ca__window {
  position: relative; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-ui); font-family: "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; font-size: 13px; line-height: 1.45; color: #202124;
}
html[lang="th"] .ca__window { font-family: "Noto Sans Thai", "Jib Sans", system-ui, sans-serif; }
.ca__chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1f3f4; border-bottom: 1px solid #e3e5e8; }
.ca__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d5d8dc; }
.ca__chrome span { flex: 1; margin-left: 8px; padding: 3px 12px; border-radius: 999px; background: #fff; color: #5f6368; font-size: 11.5px; }
.ca__stage { position: relative; height: 450px; }
.ca-scene { position: absolute; inset: 0; padding: 16px 18px; overflow: hidden; }
.ca__caption { margin-top: 10px; font-size: .8125rem; color: var(--muted); text-align: center; }

[data-s] { transition: opacity .3s ease, transform .3s ease; }
[data-s].is-hidden { opacity: 0; transform: translateY(6px); pointer-events: none; }
.ca-slot[data-s].is-hidden { opacity: 1; transform: none; }   /* the chosen slot shows with its row, before it is tapped */

.ca-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #dfe1e5; box-shadow: 0 1px 6px rgb(32 33 36 / .12); }
.ca-search img { width: 18px; height: 18px; }
.ca-typed { min-height: 1.2em; }
.ca-typed::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: #202124; animation: jd-caret 1s steps(1) infinite; }
.ca-scene .ca-typed.is-done::after { display: none; }
.ca-panel { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid #e8eaed; }
.ca-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; height: 58px; margin-bottom: 10px; }
.ca-photos span { border-radius: 8px; background: linear-gradient(135deg, #efe7dc, #d9cbb8); }
.ca-photos span:nth-child(2) { background: linear-gradient(135deg, #e6efe9, #c8d9cf); }
.ca-photos span:nth-child(3) { background: linear-gradient(135deg, #e7e9f3, #cdd1e6); }
.ca-name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.ca-name--sm { font-size: 14px; }
.ca-stars { color: #f29900; font-size: 12px; } .ca-stars b { color: #202124; font-weight: 600; } .ca-stars i { color: #70757a; font-style: normal; }
.ca-muted { color: #70757a; font-size: 12px; }
.ca-open { color: #188038; font-size: 12px; }
.ca-actions { display: flex; gap: 6px; margin-top: 10px; }
.ca-actions span { padding: 5px 10px; border-radius: 999px; border: 1px solid #dadce0; color: #1a73e8; font-size: 12px; font-weight: 600; }
.ca-book, .ca-confirm, .ca-pay, .ca-chatbtn { display: flex; justify-content: center; margin-top: 10px; padding: 8px; border-radius: 999px; background: #c2e7ff; color: #001d35; font-weight: 600; position: relative; }
.ca-confirm { background: #0b57d0; color: #fff; }
.ca-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px 18px; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -10px 30px rgb(0 0 0 / .15); }
.ca-sheet.is-hidden { transform: translateY(100%); opacity: 1; }
.ca-sheet__t { font-size: 15px; font-weight: 600; }
.ca-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ca-slot { position: relative; padding: 5px 12px; border-radius: 999px; border: 1px solid #dadce0; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ca-slot.is-picked { background: #0b57d0; border-color: #0b57d0; color: #fff; }
[data-tap].is-tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(32 33 36 / .25); animation: ca-tap .42s ease-out; }
.ca-done { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #e6f4ea; color: #137333; font-weight: 600; font-size: 12.5px; }
.ca-toast {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: #0f172a; color: #fff; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5); z-index: 3;
}
.ca-toast img { width: 28px; height: 28px; border-radius: 8px; background: #fff; padding: 2px; }
.ca-toast b { display: block; font-size: 13px; } .ca-toast i { font-style: normal; font-size: 11.5px; color: rgb(255 255 255 / .75); }
.ca-toast.is-hidden { transform: translateY(20px); }

/* AI Mode */
.ca-mode { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #e8eaed; font-size: 13px; }
.ca-mode img { width: 16px; height: 16px; }
.ca-q { display: flex; justify-content: flex-end; margin-top: 12px; }
.ca-q span { max-width: 85%; padding: 8px 14px; border-radius: 18px; background: #f1f3f4; }
.ca-answer { margin-top: 12px; }
.ca-result { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ca-result--flat { margin-top: 8px; }
.ca-thumb { width: 54px; height: 54px; flex: none; border-radius: 10px; background: linear-gradient(135deg, #efe7dc, #d9cbb8); }
.ca-thumb--pkg { width: 54px; height: 54px; background: linear-gradient(135deg, #fde2e4, #f6c4cf); }
.ca-pad { margin-top: 10px; }

/* Gemini */
.ca-gem { padding-bottom: 10px; }
.ca-gem img { height: 18px; width: auto; }
.ca-bubble { margin-top: 10px; }
.ca-bubble--me { margin-left: auto; width: fit-content; max-width: 85%; padding: 8px 14px; border-radius: 18px; background: #e9eef6; }
.ca-bot { display: flex; gap: 8px; margin-top: 12px; }
.ca-spark { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570); color: #fff; font-size: 11px; }
.ca-bot--jib img { width: 22px; height: 22px; border-radius: 50%; flex: none; }

/* HDmall */
.ca-hd { display: flex; align-items: center; gap: 12px; }
.ca-hd img { height: 22px; width: auto; }
.ca-search--hd { flex: 1; height: 34px; box-shadow: none; border-color: #e5e7eb; background: #f8fafc; }
.ca-pkg { display: flex; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 12px; border: 1px solid #eef0f2; }
.ca-price b { color: #e5372b; font-size: 15px; } .ca-price s { color: #9aa0a6; font-size: 12px; }
.ca-chatbtn { background: #6b4f3a; color: #fff; margin-top: 8px; padding: 7px; }
.ca-scene .ca-pay { margin-top: 8px; padding: 7px; }
.ca-hd ~ .ca-done { margin-top: 8px; padding: 6px 10px; }
.ca-pay { background: #12a37f; color: #fff; }

@keyframes ca-tap { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) { .ca__stage { height: 470px; } .ca-scene { padding: 14px; } .ca__tab { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { [data-s] { transition: none; } [data-tap].is-tap::after { animation: none; } }

/* HDcare chat: specialist card and the video e-consult */
.hc__phone { position: relative; }
.hc-doc { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fbfcfd; }
.hc-doc img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.hc-doc b { display: block; font-size: 13px; }
.hc-doc span { display: block; font-size: 11.5px; color: #64748b; }
.hc-doc em { font-style: normal; color: #0b7a72; font-weight: 700; }
.hc-doc i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; font-weight: 600; color: #059669; }
.hc-doc i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgb(16 185 129 / .2); }
.hc-doc__cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; padding: 8px; border-radius: 999px; background: var(--hc-teal); color: #fff; font-weight: 700; font-size: 12.5px; }
.hc-doc__cta svg { width: 15px; height: 15px; }
.hc-doc__cta.is-tapped { background: #0b7a72; }
.hc-doc__cta.is-tapped::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(255 255 255 / .45); animation: ca-tap .45s ease-out; }
.hc-note { display: inline-flex; align-items: center; gap: 6px; margin: 2px auto; padding: 4px 12px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 11.5px; font-weight: 600; }
.hc-note svg { width: 13px; height: 13px; }
.hc-row--note { justify-content: center; }

.hc-call { position: absolute; inset: 0; z-index: 5; overflow: hidden; background: #0b1220; color: #fff; animation: hc-in .3s ease both; }
.hc-call__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.hc-call.is-live .hc-call__video { opacity: 1; }
.hc-call::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgb(0 0 0 / .5), transparent 22%, transparent 70%, rgb(0 0 0 / .6)); }
.hc-call__connect { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: rgb(255 255 255 / .8); }
.hc-call__connect img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0 rgb(26 163 154 / .6); animation: hc-ring 1.2s ease-out infinite; }
.hc-call__top { position: absolute; z-index: 2; top: 18px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.hc-call__top b { font-size: 15px; }
.hc-call__sub { font-size: 11.5px; color: rgb(255 255 255 / .8); font-variant-numeric: tabular-nums; }
.hc-call__badge { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 700; }
.hc-call__badge svg { width: 12px; height: 12px; }
.hc-call__me { position: absolute; z-index: 2; right: 12px; bottom: 92px; width: 74px; height: 104px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(160deg, #f1b8c6, #c3304a); border: 2px solid rgb(255 255 255 / .7); box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
.hc-call__me span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--hc-brand); font-weight: 800; }
.hc-call__me i { font-style: normal; font-size: 10px; font-weight: 600; }
.hc-call__controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 12px; }
.hc-call__btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hc-call__btn svg { width: 19px; height: 19px; }
.hc-call__btn--end { background: #ef4444; }
.hc-call__btn--end.is-tap::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .7); animation: ca-tap .4s ease-out; }
.hc-call__ended { position: absolute; z-index: 3; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgb(11 18 32 / .78); font-size: 13px; }
.hc-call__ended b { font-size: 16px; }
.hc-call__ended span { color: rgb(255 255 255 / .7); font-variant-numeric: tabular-nums; }
.hc-call.is-ended .hc-call__ended { display: flex; }
@keyframes hc-ring { 0% { box-shadow: 0 0 0 0 rgb(26 163 154 / .55); } 100% { box-shadow: 0 0 0 18px rgb(26 163 154 / 0); } }

/* Care-type cards: a full-width banner across the top of each card */
.care__item { overflow: hidden; }
.care__banner { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 0; aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 720px) { .care__banner { width: calc(100% + 40px); margin: -20px -20px 0; } }

/* Notes under a section: centred and only as wide as their text */
.note--wide { width: fit-content; max-width: min(100%, 720px); margin-inline: auto; text-align: center; }

/* Case-study links take the pharma page's teal */
.page--pharma .case__cta { color: #0e7c72; }
.page--pharma .case__cta:hover { color: #0b685f; }
.page--pharma .note { background: #e4f3f1; color: #0b4d47; }
.page--payers .note { background: #f1eafa; color: #3d2563; }

/* ── HDcare claims dashboard (insurers) ───────────────────────────────────── */
.hd { margin-top: clamp(40px, 5vw, 56px); }
.hd__window { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-ui); font-family: "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; color: #0f172a; }
html[lang="th"] .hd__window { font-family: "Noto Sans Thai", "Jib Sans", system-ui, sans-serif; }
.hd__body { padding: clamp(16px, 3vw, 24px); background: #f8fafc; }
.hd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hd__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.hd__org { font-size: 13px; color: #64748b; }
.hd__period { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; font-weight: 600; color: #475569; }
.hd__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hd-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e8edf2; }
.hd-kpi span { font-size: 12px; color: #64748b; }
.hd-kpi b { font-size: 22px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hd-kpi i { font-style: normal; font-size: 11.5px; font-weight: 600; color: #0e7c72; }
.hd__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.hd-card { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e8edf2; }
.hd-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hd-card__head b { font-size: 14px; } .hd-card__head span { font-size: 11.5px; color: #94a3b8; }
.hd-chart { width: 100%; height: auto; display: block; overflow: visible; }
.hd-grid { stroke: #eef2f6; stroke-width: 1; }
.hd-ylab, .hd-xlab { font-size: 10px; fill: #94a3b8; font-family: inherit; }
.hd-ylab { text-anchor: end; } .hd-xlab { text-anchor: middle; }
.hd-gap { fill: rgb(14 124 114 / .14); }
.hd-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hd-line--proj { stroke: #94a3b8; stroke-dasharray: 5 5; }
.hd-line--act { stroke: #0e7c72; }
.hd-dot--proj { fill: #94a3b8; } .hd-dot--act { fill: #0e7c72; }
.hd-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 11.5px; color: #64748b; }
.hd-legend li { display: flex; align-items: center; gap: 6px; }
.hd-legend li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: #0e7c72; }
.hd-legend .is-proj::before { background: repeating-linear-gradient(90deg, #94a3b8 0 3px, transparent 3px 6px); }
.hd-legend .is-gap::before { height: 10px; background: rgb(14 124 114 / .2); }
.hd-bars { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.hd-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13px; }
.hd-bars b { color: #0e7c72; font-variant-numeric: tabular-nums; }
.hd-bars i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #14b8a6, #0e7c72); width: var(--w); transform-origin: left; }
.hd__caption { margin-top: 10px; text-align: center; font-size: .8125rem; color: var(--muted); }

/* interactive parts */
.hd-kpi { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.hd-kpi:hover { border-color: #cbd5e1; }
.hd-kpi.is-on { border-color: #12355b; box-shadow: inset 0 -3px 0 #0e7c72; }
.hd-kpi--hero { background: #fff; color: inherit; }
.hd-kpi.is-on span { color: #475569; }
.hd-card__head { align-items: center; flex-wrap: wrap; }
.hd-ctitle { font-size: 14px; } .hd-ctitle span { font-weight: 400; font-size: 11.5px; color: #94a3b8; margin-left: 4px; }
.hd-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f1f5f9; }
.hd-seg__b { padding: 4px 10px; border: 0; border-radius: 7px; background: none; font: 600 11.5px/1.3 inherit; font-family: inherit; color: #64748b; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.hd-seg__b:hover { color: #0f172a; }
.hd-seg__b.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgb(15 23 42 / .1); }
.hd-seg--full { display: flex; width: 100%; } .hd-seg--full .hd-seg__b { flex: 1; }
.hd-plot { position: relative; }
.hd-area { fill: rgb(14 124 114 / .1); }
.hd-hit { fill: transparent; cursor: crosshair; }
.hd-guide { stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.hd-focus { fill: #fff; stroke: #0e7c72; stroke-width: 2.5; opacity: 0; }
.hd-chart.is-hover .hd-guide, .hd-chart.is-hover .hd-focus { opacity: 1; }
.hd-tip { position: absolute; z-index: 2; display: grid; gap: 1px; padding: 7px 10px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 11.5px; line-height: 1.4; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -6px rgb(0 0 0 / .4); }
.hd-tip b { font-size: 11px; color: rgb(255 255 255 / .65); font-weight: 600; }
.hd-note { margin: 10px 0 4px; font-size: 11.5px; color: #94a3b8; }
.hd-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; width: 100%; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.hd-bar:hover, .hd-bar.is-open { background: #f1f5f9; }
.hd-bar em { grid-column: 1 / -1; display: none; font-style: normal; font-size: 11.5px; color: #475569; }
.hd-bar.is-open em { display: block; }
.hd-bars { gap: 4px; }
.hd-fc { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 14px; border-radius: 12px; background: #12355b; color: #fff; }
.hd-fc span { font-size: 12px; color: rgb(255 255 255 / .7); }
.hd-fc b { font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hd-fc b.is-pop { animation: hd-pop .35s ease; }
.hd-fc i { font-style: normal; font-size: 12px; color: rgb(255 255 255 / .85); }
.hd-fc__meter { height: 6px; margin-top: 10px; border-radius: 3px; background: rgb(255 255 255 / .15); overflow: hidden; }
.hd-fc__meter span { display: block; height: 100%; width: var(--w); border-radius: 3px; background: #6ee7d8; transition: width .45s cubic-bezier(.3,.6,.2,1); }
@keyframes hd-pop { 0% { transform: scale(.94); opacity: .4; } 100% { transform: none; opacity: 1; } }

/* entrance and metric switches: the line draws, the fills fade in */
.hd-chart.is-drawn .hd-line--act { animation: hd-draw 1.1s cubic-bezier(.3,.6,.2,1) both; }
.hd-chart.is-drawn .hd-gap, .hd-chart.is-drawn .hd-area { animation: hd-fade .7s ease .5s both; }
.hd.is-ready:not(.is-in) .hd-line--act { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hd.is-ready:not(.is-in) .hd-gap, .hd.is-ready:not(.is-in) .hd-area { opacity: 0; }
.hd.is-ready .hd-bars i { transform: scaleX(0); }
.hd.is-in .hd-bars i { transform: scaleX(1); transition: transform 1s cubic-bezier(.3,.6,.2,1) .4s; }
@keyframes hd-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes hd-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hd-chart.is-drawn .hd-line--act, .hd-chart.is-drawn .hd-gap, .hd-chart.is-drawn .hd-area { animation: none; } }

@media (max-width: 860px) { .hd__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hd__grid { grid-template-columns: 1fr; } .hd-card--chart .hd-seg { display: none; } }
@media (max-width: 560px) { .hd-ylab, .hd-xlab { font-size: 17px; } }
@media (max-width: 480px) { .hd-kpi b { font-size: 18px; } .hd__head { flex-direction: column; } }

/* ── Pharma demand intelligence ───────────────────────────────────────────── */
.pd { margin-top: 0; }
.pd__window { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-ui); font-family: "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; color: #0f172a; }
html[lang="th"] .pd__window { font-family: "Noto Sans Thai", "Jib Sans", system-ui, sans-serif; }
.pd__body { padding: clamp(16px, 3vw, 24px); background: #f8fafc; }
.pd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.pd__scope { font-size: 13px; color: #64748b; }
.pd__meta { display: flex; align-items: center; gap: 8px; flex: none; }
.pd__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #059669; }
.pd__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgb(16 185 129 / .2); animation: pd-pulse 1.8s ease-in-out infinite; }
.pd__compare { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.pd__compare > span { font-size: 12px; color: #64748b; margin-right: 4px; }
.pd-kw { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font: 600 13px/1.2 inherit; font-family: inherit; color: #94a3b8; cursor: pointer; transition: all .15s ease; }
.pd-kw i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; transition: background-color .15s ease; }
.pd-kw.is-on { color: #0f172a; border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.pd-kw.is-on i { background: var(--c); }
.pd__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pd-kpi { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid #e8edf2; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.pd-kpi:hover { border-color: #cbd5e1; }
.pd-kpi.is-on { border-color: #0f172a; box-shadow: inset 0 -3px 0 #0e7c72; }
.pd-kpi span { font-size: 12px; color: #64748b; font-weight: 600; }
.pd-kpi b { font-size: 22px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pd-kpi small { font-size: 11px; color: #94a3b8; }
.pd-share { display: flex; height: 6px; margin: 4px 0 2px; border-radius: 3px; overflow: hidden; background: #f1f5f9; }
.pd-share i { display: block; height: 100%; transition: width .4s ease; }
.pd__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.pd-unit { font-weight: 400; font-size: 11.5px; color: #94a3b8; margin-left: 4px; }
.pd-legend { list-style: none; display: flex; gap: 12px; font-size: 11.5px; color: #475569; }
.pd-legend li { display: flex; align-items: center; gap: 5px; }
.pd-legend li::before { content: ""; width: 12px; height: 3px; border-radius: 2px; background: var(--c); }
.pd-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pd-line.is-draw { animation: hd-draw 1s cubic-bezier(.3,.6,.2,1) both; }
.pd-dot { fill: #fff; stroke-width: 2.5; opacity: 0; }
.pd-chart.is-hover .pd-dot, .pd-chart.is-hover .hd-guide { opacity: 1; }
.hd-tip span { display: flex; align-items: center; gap: 6px; }
.hd-tip span i { width: 8px; height: 8px; border-radius: 50%; }
.pd-geo__body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; margin-top: 8px; }
.pd-map { position: relative; }
.pd-map__svg { width: 100%; max-height: 300px; display: block; }
.pd-map__svg path { stroke: #fff; stroke-width: .7; stroke-linejoin: round; cursor: pointer; transition: fill-opacity .35s ease; }
.pd-map__svg path:hover { stroke: #0f172a; stroke-width: 1.2; }
.pd-map__svg path.is-sel { stroke: #0f172a; stroke-width: 1.8; }
.pd-map__hint { margin-top: 6px; text-align: center; font-size: 11px; color: #94a3b8; }
.pd-mtip { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); padding: 4px 9px; border-radius: 6px; background: #0f172a; color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; }
.pd-focus { display: flex; flex-direction: column; margin: 10px 0 6px; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; }
.pd-focus b { font-size: 13px; } .pd-focus span { font-size: 12px; color: #475569; font-variant-numeric: tabular-nums; }
.pd-rows { list-style: none; display: grid; gap: 2px; }
.pd-rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 5px 6px; margin: 0 -6px; border-radius: 7px; font-size: 12.5px; cursor: pointer; transition: background-color .15s ease; }
.pd-rows li:hover, .pd-rows li.is-sel { background: #f1f5f9; }
.pd-rows b { font-variant-numeric: tabular-nums; font-weight: 600; }
.pd-rows i { grid-column: 1 / -1; height: 4px; border-radius: 2px; opacity: .85; transition: width .4s ease; }
@keyframes pd-pulse { 50% { box-shadow: 0 0 0 6px rgb(16 185 129 / 0); } }
@media (max-width: 960px) { .pd__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pd__kpis { grid-template-columns: 1fr; }
  .pd-kpi b { font-size: 18px; }
  .pd-geo__body { grid-template-columns: 1fr; }
  .pd-map__svg { max-height: 320px; }
  .pd__head { flex-direction: column; }
  .pd-chart .hd-ylab, .pd-chart .hd-xlab { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .pd-line.is-draw { animation: none; } .pd__live::before { animation: none; } }
.pd-latest { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef2f6; }
.pd-latest p { font-size: 12px; font-weight: 600; color: #475569; } .pd-latest p span { font-weight: 400; color: #94a3b8; }
.pd-latest ul { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.pd-latest li { display: grid; grid-template-columns: 1fr auto 3.2em 4.4em; align-items: center; gap: 10px; font-size: 13px; }
.pd-latest li span { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.pd-latest li span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.pd-latest b { font-variant-numeric: tabular-nums; }
.pd-latest em { font-style: normal; color: #64748b; font-size: 12px; text-align: right; }
.pd-latest i { font-style: normal; font-size: 12px; font-weight: 700; text-align: right; }
.pd-latest i.is-up { color: #059669; } .pd-latest i.is-down { color: #dc2626; }
.pd__idx { padding: 3px 9px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 11.5px; font-weight: 700; }
.pd-avg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-style: normal; font-size: 12.5px; color: #475569; }
.pd-avg span { display: inline-flex; align-items: center; gap: 5px; }
.pd-avg span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pd-avg b { font-size: 18px; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
.pd__note { margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: #64748b; }
.pd-latest li { grid-template-columns: 1fr auto 0 5em; }

/* ── Page accents beyond the hero: form, contact card, sticky button ────────
   Clinics keep the black buttons; pharma uses teal, insurers purple. The
   main action is solid, "Book a time to talk" a light tint of the same. */
.page--pharma { --accent: #0e7c72; --accent-hover: #0b685f; --accent-soft: #e4f3f1; --accent-soft-hover: #d3ece8; --accent-ink: #0b4d47; }
.page--payers { --accent: #8a4fc4; --accent-hover: #7841b0; --accent-soft: #f1eafa; --accent-soft-hover: #e6dbf6; --accent-ink: #4a2a7a; }
.page--pharma .form .btn--primary, .page--payers .form .btn--primary,
.page--pharma .stickycta .btn--primary, .page--payers .stickycta .btn--primary { background: var(--accent); }
.page--pharma .form .btn--primary:hover, .page--payers .form .btn--primary:hover,
.page--pharma .stickycta .btn--primary:hover, .page--payers .stickycta .btn--primary:hover { background: var(--accent-hover); }
.page--pharma .direct__book, .page--payers .direct__book { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.page--pharma .direct__book:hover, .page--payers .direct__book:hover { background: var(--accent-soft-hover); }
.page--pharma .check input, .page--payers .check input,
.page--pharma .field--check input, .page--payers .field--check input { accent-color: var(--accent); }
.page--pharma .check:has(input:checked), .page--payers .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.page--pharma .field input:focus, .page--pharma .field select:focus, .page--pharma .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(14 124 114 / .18); }
.page--payers .field input:focus, .page--payers .field select:focus, .page--payers .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(138 79 196 / .18); }
.page--pharma .success__icon, .page--payers .success__icon { background: var(--accent); }
.page--pharma .field--check label a, .page--payers .field--check label a { color: var(--accent); }
.page--pharma .steps li::before, .page--payers .steps li::before { border-color: var(--accent-soft-hover); background: var(--accent-soft); color: var(--accent-ink); }
.pd-kpi__avg { font-weight: 400; color: #94a3b8; }

/* ── Benefits builder (insurers) ──────────────────────────────────────────── */
.bb { margin-top: clamp(40px, 5vw, 56px); }
.bb__window { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-ui); font-family: "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; color: #0f172a; }
html[lang="th"] .bb__window { font-family: "Noto Sans Thai", "Jib Sans", system-ui, sans-serif; }
.bb__body { padding: clamp(16px, 3vw, 24px); background: #f8fafc; }
.bb__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bb__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.bb__org { font-size: 13px; color: #64748b; }
.bb__reset { padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font: 600 12px/1.2 inherit; font-family: inherit; color: #475569; cursor: pointer; }
.bb__reset:hover { border-color: #cbd5e1; color: #0f172a; }
.bb__layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: 12px; margin-top: 14px; }
.bb-palette { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e8edf2; }
.bb-palette__t { font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.bb-palette__list { list-style: none; display: grid; gap: 6px; }
.bb-chip { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: 12.5px; color: #0f172a; text-align: left; cursor: grab; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.bb-chip:hover { border-color: var(--c); }
.bb-chip:active { cursor: grabbing; }
.bb-chip.is-picked { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); transform: translateY(-1px); }
.bb-chip__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); flex: none; }
.bb-chip__ico svg { width: 15px; height: 15px; }
.bb-chip__name { font-weight: 600; }
.bb-chip__price { font-size: 11.5px; color: #64748b; font-variant-numeric: tabular-nums; }
.bb-palette__hint { margin-top: 10px; font-size: 11px; color: #94a3b8; line-height: 1.5; }
.bb-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bb-group { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: #fff; border: 1.5px dashed #dbe2ea; transition: border-color .15s ease, background-color .15s ease; outline: none; }
.bb.is-dragging .bb-group, .bb.is-picking .bb-group { border-color: #c4b5fd; cursor: copy; }
.bb-group.is-over-drop, .bb.is-picking .bb-group:hover, .bb-group:focus-visible { border-color: #8a4fc4; background: #faf7ff; }
.bb-group.is-flash { animation: bb-flash .5s ease; }
.bb-group__head b { display: block; font-size: 14px; }
.bb-group__head span { font-size: 11.5px; color: #64748b; }
.bb-group__items { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; min-height: 96px; margin: 10px 0; }
.bb-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 4px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); font-size: 11.5px; font-weight: 600; cursor: grab; animation: bb-in .25s ease; }
.bb-pill .bb-chip__ico { width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.bb-pill .bb-chip__ico svg { width: 12px; height: 12px; }
.bb-pill__x { display: grid; place-items: center; width: 18px; height: 18px; margin-left: 1px; border: 0; border-radius: 50%; background: transparent; color: #64748b; font-size: 14px; line-height: 1; cursor: pointer; }
.bb-pill__x:hover { background: rgb(15 23 42 / .08); color: #0f172a; }
.bb-empty { font-size: 12px; color: #94a3b8; padding: 6px 2px; }
.bb-group__stats { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f6; }
.bb-stat { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.bb-stat span { font-size: 11px; color: #64748b; }
.bb-stat b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-stat em { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; color: #94a3b8; }
.bb-meter { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #f1f5f9; overflow: hidden; }
.bb-meter i { display: block; height: 100%; background: #8a4fc4; border-radius: 3px; transition: width .35s ease, background-color .2s ease; }
.bb-group.is-over .bb-meter i { background: #f97316; }
.bb-group.is-over [data-bb-budget] { color: #ea580c; font-weight: 600; }
.bb-stat b.is-good { color: #059669; } .bb-stat b.is-ok { color: #b45309; } .bb-stat b.is-low { color: #dc2626; }
.bb__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: #2a1f45; color: #fff; }
.bb__summary div { display: flex; flex-direction: column; }
.bb__summary span { font-size: 11.5px; color: rgb(255 255 255 / .7); }
.bb__summary b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes bb-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bb-flash { 0% { background: #f3ebff; } 100% { background: #fff; } }
@media (max-width: 960px) { .bb__layout { grid-template-columns: 1fr; } .bb-palette__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bb-groups { grid-template-columns: 1fr; } .bb-group__items { min-height: 0; } .bb__summary { grid-template-columns: 1fr; gap: 6px; } .bb-chip { grid-template-columns: 24px 1fr; } .bb-chip__price { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .bb-pill, .bb-group.is-flash { animation: none; } }

/* ── Product dashboards, dark (claims insights, demand intelligence, benefits builder)
   Restrained and app-like: near-black panels, hairline borders, small
   monospace labels, white data lines; colour only where it carries meaning
   (products, good/bad). Overrides the light styles above. */
.dk {
  --dk-bg: #141318; --dk-panel: #1b1a21; --dk-raise: #222129; --dk-line: #2b2a33; --dk-line-2: #36353f;
  --dk-text: #ecebf1; --dk-muted: #9c9ba8; --dk-faint: #6c6b78; --dk-pos: #86efac; --dk-neg: #fca5a5; --dk-warn: #fdba74;
  --dk-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Noto Sans Thai", monospace;
  background: var(--dk-bg); color: var(--dk-text); border-color: #24232b;
  box-shadow: 0 40px 80px -30px rgb(10 9 14 / .65), 0 0 0 1px rgb(255 255 255 / .02);
}
.dk .ca__chrome { background: #1a1920; border-bottom-color: var(--dk-line); }
.dk .ca__chrome i { background: #34333c; }
.dk .ca__chrome span { background: #232229; color: var(--dk-muted); font-family: var(--dk-mono); font-size: 11px; }
.dk .hd__body, .dk .pd__body, .dk .bb__body { background: var(--dk-bg); }
/* type */
.dk .hd__title, .dk .pd__title, .dk .bb__title { font-size: 16px; font-weight: 600; color: var(--dk-text); letter-spacing: -.005em; }
.dk .hd__org, .dk .pd__scope, .dk .bb__org,
.dk .hd-kpi span, .dk .pd-kpi > span, .dk .hd-card__head span, .dk .pd-unit, .dk .hd-note, .dk .pd-latest p,
.dk .bb-palette__t, .dk .bb-stat span, .dk .bb__summary span, .dk .pd__compare > span, .dk .hd-fc span {
  font-family: var(--dk-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dk-faint);
}
html[lang="th"] .dk .hd__org, html[lang="th"] .dk .pd__scope, html[lang="th"] .dk .bb__org,
html[lang="th"] .dk .hd-kpi span, html[lang="th"] .dk .pd-kpi > span, html[lang="th"] .dk .bb-stat span, html[lang="th"] .dk .bb__summary span { letter-spacing: 0; font-size: 11.5px; }
.dk .hd-ctitle, .dk .hd-card__head b, .dk .bb-group__head b { color: var(--dk-text); font-weight: 600; }
.dk .hd-ctitle span, .dk .bb-group__head span { color: var(--dk-faint); }
/* chips, period, buttons */
.dk .hd__period, .dk .bb__reset { background: transparent; border-color: var(--dk-line-2); color: var(--dk-muted); font-family: var(--dk-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.dk .bb__reset:hover { color: var(--dk-text); border-color: #4a4954; }
.dk .pd__idx { background: transparent; border: 1px solid var(--dk-line-2); color: var(--dk-muted); font-family: var(--dk-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.dk .pd__live { color: var(--dk-pos); font-family: var(--dk-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.dk .pd__live::before { background: var(--dk-pos); }
/* panels */
.dk .hd-card, .dk .hd-kpi, .dk .pd-kpi, .dk .bb-palette, .dk .bb-group { background: var(--dk-panel); border-color: var(--dk-line); border-radius: 8px; }
.dk .hd-kpi, .dk .pd-kpi { box-shadow: none; }
.dk .hd-kpi:hover, .dk .pd-kpi:hover { border-color: var(--dk-line-2); }
.dk .hd-kpi.is-on, .dk .pd-kpi.is-on { border-color: #4b4a55; background: var(--dk-raise); box-shadow: inset 0 -2px 0 var(--dk-text); }
.dk .hd-kpi b, .dk .pd-avg b, .dk .bb-stat b, .dk .bb__summary b, .dk .hd-fc b { color: var(--dk-text); font-weight: 500; letter-spacing: -.01em; }
.dk .hd-kpi i { color: var(--dk-pos); font-weight: 500; font-family: var(--dk-mono); font-size: 10.5px; }
.dk .pd-kpi small { color: var(--dk-faint); }
.dk .pd-avg { color: var(--dk-muted); }
.dk .pd-share { background: var(--dk-line); height: 3px; }
/* segmented controls */
.dk .hd-seg { background: transparent; border: 1px solid var(--dk-line); border-radius: 6px; padding: 2px; }
.dk .hd-seg__b { color: var(--dk-faint); font-family: var(--dk-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; }
html[lang="th"] .dk .hd-seg__b { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.dk .hd-seg__b:hover { color: var(--dk-text); }
.dk .hd-seg__b.is-on { background: var(--dk-raise); color: var(--dk-text); box-shadow: inset 0 0 0 1px var(--dk-line-2); }
/* charts */
.dk .hd-grid { stroke: var(--dk-line); }
.dk .hd-ylab, .dk .hd-xlab { fill: var(--dk-faint); font-family: var(--dk-mono); font-size: 9.5px; letter-spacing: .04em; }
.dk .hd-line--act { stroke: var(--dk-text); stroke-width: 2; }
.dk .hd-line--proj { stroke: #6c6b78; stroke-width: 1.6; stroke-dasharray: 4 4; }
.dk .hd-gap { fill: rgb(134 239 172 / .09); }
.dk .hd-area { fill: rgb(236 235 241 / .05); }
.dk .hd-guide { stroke: var(--dk-line-2); }
.dk .hd-focus { fill: var(--dk-bg); stroke: var(--dk-text); }
.dk .pd-line { stroke-width: 2; }
.dk .pd-dot { fill: var(--dk-bg); }
.dk .hd-tip { background: #26252d; border: 1px solid var(--dk-line-2); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6); font-family: var(--dk-mono); font-size: 11px; }
.dk .hd-tip b { color: var(--dk-faint); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.dk .hd-legend, .dk .pd-legend { color: var(--dk-muted); font-family: var(--dk-mono); font-size: 10.5px; letter-spacing: .03em; }
.dk .hd-legend li::before { background: var(--dk-text); }
.dk .hd-legend .is-proj::before { background: repeating-linear-gradient(90deg, #6c6b78 0 3px, transparent 3px 6px); }
.dk .hd-legend .is-gap::before { background: rgb(134 239 172 / .25); }
/* procedure bars, forecast */
.dk .hd-bar { color: var(--dk-text); }
.dk .hd-bar:hover, .dk .hd-bar.is-open { background: var(--dk-raise); }
.dk .hd-bars b { color: var(--dk-pos); font-family: var(--dk-mono); font-weight: 500; font-size: 12px; }
.dk .hd-bars i { height: 3px; background: #d6d5de; }
.dk .hd-bar em { color: var(--dk-muted); font-family: var(--dk-mono); font-size: 11px; }
.dk .hd-fc { background: var(--dk-raise); border: 1px solid var(--dk-line-2); }
.dk .hd-fc i { color: var(--dk-muted); }
.dk .hd-fc__meter { background: var(--dk-line); height: 3px; }
.dk .hd-fc__meter span { background: var(--dk-pos); }
/* demand: products, map, lists */
.dk .pd-kw { background: transparent; border-color: var(--dk-line-2); color: var(--dk-faint); }
.dk .pd-kw i { background: #3a3944; }
.dk .pd-kw.is-on { color: var(--dk-text); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: none; background: color-mix(in srgb, var(--c) 8%, transparent); }
.dk .pd-kw.is-on i { background: var(--c); }
.dk .pd-map__svg path { stroke: var(--dk-panel); stroke-width: .6; }
.dk .pd-map__svg path:hover, .dk .pd-map__svg path.is-sel { stroke: var(--dk-text); }
.dk .pd-map__hint, .dk .bb-palette__hint { color: var(--dk-faint); }
.dk .pd-mtip { background: #26252d; border: 1px solid var(--dk-line-2); font-family: var(--dk-mono); }
.dk .pd-focus { background: var(--dk-raise); border: 1px solid var(--dk-line); }
.dk .pd-focus span { color: var(--dk-muted); font-family: var(--dk-mono); font-size: 11px; }
.dk .pd-rows li { color: var(--dk-text); }
.dk .pd-rows li:hover, .dk .pd-rows li.is-sel { background: var(--dk-raise); }
.dk .pd-rows b, .dk .pd-latest b { font-family: var(--dk-mono); font-weight: 500; }
.dk .pd-rows i { height: 3px; opacity: .9; }
.dk .pd-latest { border-top-color: var(--dk-line); }
.dk .pd-latest i.is-up { color: var(--dk-pos); } .dk .pd-latest i.is-down { color: var(--dk-neg); }
.dk .pd-latest i { font-family: var(--dk-mono); font-weight: 500; }
.dk .pd__note { color: var(--dk-faint); border-top: 1px solid var(--dk-line); padding-top: 10px; }
/* benefits builder */
.dk .bb-chip { background: var(--dk-raise); border-color: var(--dk-line); color: var(--dk-text); }
.dk .bb-chip:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.dk .bb-chip.is-picked { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.dk .bb-chip__ico { background: color-mix(in srgb, var(--c) 16%, var(--dk-panel)); }
.dk .bb-chip__price { color: var(--dk-muted); font-family: var(--dk-mono); font-size: 11px; }
.dk .bb-group { border-style: dashed; border-color: var(--dk-line-2); }
.dk.bb__window .bb-group, .bb.is-dragging .dk .bb-group, .bb.is-picking .dk .bb-group { border-color: var(--dk-line-2); }
.bb.is-dragging .dk .bb-group, .bb.is-picking .dk .bb-group { border-color: #5b5a66; }
.dk .bb-group.is-over-drop, .bb.is-picking .dk .bb-group:hover, .dk .bb-group:focus-visible { border-color: #b69cff; background: #1f1c29; }
.dk .bb-group.is-flash { animation: bb-flash-dk .5s ease; }
.dk .bb-pill { background: color-mix(in srgb, var(--c) 14%, var(--dk-panel)); border-color: color-mix(in srgb, var(--c) 40%, transparent); color: var(--dk-text); }
.dk .bb-pill .bb-chip__ico { background: var(--dk-bg); }
.dk .bb-pill__x { color: var(--dk-muted); } .dk .bb-pill__x:hover { background: rgb(255 255 255 / .08); color: var(--dk-text); }
.dk .bb-empty { color: var(--dk-faint); }
.dk .bb-group__stats { border-top-color: var(--dk-line); }
.dk .bb-stat em { color: var(--dk-faint); font-family: var(--dk-mono); font-size: 10.5px; }
.dk .bb-meter { background: var(--dk-line); height: 3px; }
.dk .bb-meter i { background: var(--dk-text); }
.dk .bb-group.is-over .bb-meter i { background: var(--dk-warn); }
.dk .bb-group.is-over [data-bb-budget] { color: var(--dk-warn); }
.dk .bb-stat b.is-good { color: var(--dk-pos); } .dk .bb-stat b.is-ok { color: var(--dk-warn); } .dk .bb-stat b.is-low { color: var(--dk-neg); }
.dk .bb-stat b { font-family: var(--dk-mono); font-size: 14px; }
.dk .bb__summary { background: var(--dk-panel); border: 1px solid var(--dk-line); }
.dk .bb__summary b { font-family: var(--dk-mono); font-size: 17px; }
@keyframes bb-flash-dk { 0% { background: #262131; } 100% { background: var(--dk-panel); } }
.dk .pd-kpi__avg { color: #55545f; font-weight: 400; }

/* ── Free health check (clinics) ──────────────────────────────────────────── */
.hc2 { background: linear-gradient(180deg, transparent, #eef4fb 18%, #eef4fb 82%, transparent); }
.hc2__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hc2__eyebrow { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font: 700 .8125rem/1.6 var(--font-ui); }
.hc2__checks-t { margin-top: 22px; font: 700 .9375rem/1.4 var(--font-ui); }
.hc2__checks { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.hc2__checks li { position: relative; padding-left: 28px; line-height: 1.5; }
.hc2__checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: #1d4ed8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.hc2__nosite { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
/* mock report card, in the report's own navy */
.hc2-card { margin-top: 26px; padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid #dbe4f0; box-shadow: 0 18px 40px -24px rgb(18 53 91 / .45); max-width: 440px; }
.hc2-card__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e6edf6; }
.hc2-card__head img { width: 28px; height: 28px; }
.hc2-card__head div { flex: 1; } .hc2-card__head b { display: block; color: #12355b; font-size: 15px; } .hc2-card__head span { font-size: 12.5px; color: #64748b; }
.hc2-card__head em { font-style: normal; font-size: 11px; font-weight: 700; color: #64748b; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; }
.hc2-card__score { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 6px; }
.hc2-card__score span { font-size: 13px; color: #475569; } .hc2-card__score b { font-size: 26px; color: #12355b; font-variant-numeric: tabular-nums; } .hc2-card__score small { font-size: 13px; color: #94a3b8; font-weight: 600; }
.hc2-card ul { list-style: none; display: grid; gap: 7px; }
.hc2-card li { display: grid; grid-template-columns: 1fr 34% 2.2em; align-items: center; gap: 10px; font-size: 12.5px; color: #334155; }
.hc2-card li i { height: 6px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.hc2-card li u { display: block; height: 100%; border-radius: 3px; background: #f59e0b; text-decoration: none; }
.hc2-card li u.is-good { background: #10b981; } .hc2-card li u.is-low { background: #ef4444; }
.hc2-card li b { text-align: right; font-variant-numeric: tabular-nums; color: #12355b; }
/* form */
.hc2-form { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.hc2-step + .hc2-step { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
/* space the fields the way the main contact form does */
.hc2-step { display: grid; gap: 16px; }
.hc2-step__t { margin-bottom: 0; }
.hc2-step .field-row { margin: 0; }
.hc2-step .field--check { margin-top: 4px; }
.hc2-step [data-hc2-submit] { margin-top: 4px; }
.hc2-step > .hc2-msg, .hc2-step > .hc2-switch, .hc2-step > .hc2-results { margin-top: -6px; }
.hc2-step > .hc2-switch { justify-self: start; }
.hc2-step__t { font: 700 1rem/1.4 var(--font-ui); margin-bottom: 10px; }
.hc2-search { display: flex; gap: 8px; }
.hc2-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #d6d1c4; background: #fff; font: inherit; }
.hc2-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(28 25 23 / .1); }
.hc2-search .btn { flex: none; height: 46px; padding: 0 18px; }
.hc2-msg { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.hc2-results { list-style: none; display: grid; gap: 6px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.hc2-results button { display: grid; gap: 1px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.hc2-results button:hover, .hc2-results button:focus-visible { border-color: var(--ink); background: var(--paper); outline: none; }
.hc2-results b { font-size: .9375rem; } .hc2-results span { font-size: .8125rem; color: var(--muted); line-height: 1.45; } .hc2-results em { font-style: normal; font-size: .8125rem; color: #b45309; }
.hc2-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #eef4fb; border: 1px solid #c9daf0; }
.hc2-picked div { flex: 1; min-width: 0; display: grid; } .hc2-picked b { font-size: .9375rem; } .hc2-picked span { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc2-change { flex: none; border: 0; background: none; color: #1d4ed8; font: 600 .875rem/1 var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hc2-form .cf-turnstile { margin: 0; }
@media (min-width: 861px) { .hc2-form { position: sticky; top: 84px; } }
@media (max-width: 860px) { .hc2__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hc2-search { flex-direction: column; } .hc2-search input { flex: none; width: 100%; } .hc2-search .btn { width: 100%; } }
/* health check: fanned sample report (as on the webinar page), typed-name mode */
.hc2-fan { margin-top: 26px; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid #dbe4f0; box-shadow: 0 18px 40px -24px rgb(18 53 91 / .45); max-width: 480px; }
.hc2-fan__img { display: block; background: linear-gradient(180deg, #cfe0f6, #b9d1f2); }
.hc2-fan__img img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.hc2-fan__img:hover img { transform: scale(1.02); }
.hc2-fan__body { display: grid; justify-items: start; gap: 4px; padding: 14px 18px 16px; }
.hc2-fan__tag { padding: 2px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; font: 700 .75rem/1.6 var(--font-ui); }
.hc2-fan__body b { font-size: 1rem; }
.hc2-fan__body a { color: #1d4ed8; font-weight: 600; font-size: .9375rem; text-underline-offset: 3px; }
.hc2-switch { margin-top: 8px; padding: 0; border: 0; background: none; color: #1d4ed8; font: 600 .875rem/1.4 var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hc2-manual { margin: 0; }
.hc2-manual .field__hint { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 860px) { .hc2-fan { display: block; max-width: none; } }
