/* Jib OS landing page (hdmall.co.th/jib-os/ and /jib-os/en/).
   Ported from the Work with Us pages (hdmall.co.th/work-with-us) so the two
   read as one family: framed hero card, jump bar, feature rows, dusk band,
   FAQ, contact section and footer all come from there. Loaded by the landing
   page only; blog and article pages keep styles.css, so nothing here can
   change them. Additions for this page are at the end of the file. */

@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); }


.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%; }


/* ── 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: "badge list" "title list" "body list" "note list" "cta list"; grid-template-rows: auto auto auto auto 1fr; align-items: start;
}
.feature__cols > .badge { grid-area: badge; justify-self: start; }
.feature__cols > .feature__title { grid-area: title; }
.feature__cols > .feature__list { grid-area: list; }
.feature__cols > .feature__body { grid-area: body; }
.feature__cols > .feature__bodywrap { grid-area: body; }   /* copy plus extras (e.g. partner badges) */
.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; }


/* ── 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; }


/* ── 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; } }


/* ── 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: "badge" "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; }
  /* rows whose media is a live demo: on phones, the heading and copy come first, the demo after */
  .feature--demo .feature__media { order: 2; }
  .feature--demo.feature--stacked { display: flex; flex-direction: column; }
  .feature--demo.feature--stacked .feature__cols { order: 1; margin-bottom: 28px; }
  .feature--demo:not(.feature--stacked) .feature__text { margin-bottom: 4px; }

  .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; }
}


/* ══ Jib OS landing additions ══════════════════════════════════════════════ */

/* The Jib OS blue (from the logo) replaces the partner pages' generic blue. */
:root { --blue: #266cf0; --blue-soft: #e7efff; --dusk-glow: #3b2a6e; }

/* hero nav: logo, section links, language, log in, trial */
.brand__logo { height: 34px; }
.hero__links { display: flex; gap: 28px; margin-inline: auto; }
.hero__links a, .hero__login {
  font: 600 .9375rem/1.2 var(--font-ui); color: var(--hero-ink-2); text-decoration: none;
  text-underline-offset: 5px;
}
.hero__links a:hover, .hero__login:hover { color: var(--hero-ink); text-decoration: underline; }
.hero__login { padding: 6px 4px; }
html[lang="th"] .hero__title { font-size: clamp(2rem, 4vw, 2.875rem); }


/* ── placeholders for art and simulation widgets (temporary) ────────────── */
.ph {
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
  aspect-ratio: 16 / 10; padding: 24px; border-radius: var(--r-lg);
  border: 1.5px dashed #c8c1b1;
  background: repeating-linear-gradient(135deg, rgb(29 28 26 / .025) 0 12px, transparent 12px 24px), var(--paper-2);
}
.ph__label { font: 700 1rem/1.3 var(--font-ui); color: var(--ink-2); }
.ph__note { font-size: .875rem; color: var(--muted); }
.ph--onDark { border-color: rgb(255 255 255 / .26); background: repeating-linear-gradient(135deg, rgb(255 255 255 / .035) 0 12px, transparent 12px 24px), rgb(255 255 255 / .03); }
.ph--onDark .ph__label { color: rgb(255 255 255 / .88); }
.ph--onDark .ph__note { color: rgb(255 255 255 / .6); }
.ph--wide { aspect-ratio: 16 / 8; }
.feature__media.ph { box-shadow: none; }


/* ── hero with the Jib AI command centre ─────────────────────────────────── */
/* Headline, subhead and CTA on top; the demo runs full width in a row below. */
.hero--demo .hero__body { max-width: none; align-items: center; text-align: center; padding: clamp(44px, 6vw, 80px) 0 0; }
.hero--demo .hero__title { max-width: 19em; margin-inline: auto; font-size: clamp(2rem, 4.4vw, 3.375rem); line-height: 1.12; }
html[lang="th"] .hero--demo .hero__title { font-size: clamp(2rem, 4.2vw, 3.125rem); }
/* hero night sky: aurora curtains (CSS) + twinkling, drifting stars (canvas) behind the headline,
   fading out before the command-centre demo */
.sky { position: absolute; z-index: 0; pointer-events: none; }
.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__sky { top: 0; left: 0; right: 0; height: 480px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
/* the same sky on the Jib OS price card, across the whole card */
.plan__sky { inset: 0; overflow: hidden; border-radius: inherit; }
.plan__sky .hero__aurora { inset: -30% -20% 30%; opacity: .75; }
.plan--main > :not(.sky) { position: relative; z-index: 1; }
.hero__aurora { position: absolute; inset: -20% -10% 10%; filter: blur(42px); opacity: .9; }
.hero__aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero__aurora i:nth-child(1) { left: 4%; top: 6%; width: 52%; height: 30%; background: radial-gradient(closest-side, rgb(52 211 153 / .7), rgb(16 185 129 / .25) 60%, transparent); animation: aurora-a 22s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(2) { left: 34%; top: 0; width: 56%; height: 28%; background: radial-gradient(closest-side, rgb(94 234 212 / .55), rgb(45 212 191 / .2) 60%, transparent); animation: aurora-b 28s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(3) { left: 56%; top: 14%; width: 44%; height: 32%; background: radial-gradient(closest-side, rgb(167 139 250 / .65), rgb(139 92 246 / .22) 60%, transparent); animation: aurora-c 25s ease-in-out infinite alternate; }
@keyframes aurora-a { 0% { transform: translate(0, 0) scale(1, .7) rotate(-8deg); } 50% { transform: translate(14%, 10%) scale(1.25, .9) rotate(4deg); } 100% { transform: translate(-6%, 4%) scale(.95, .75) rotate(-14deg); } }
@keyframes aurora-b { 0% { transform: translate(0, 0) scale(1.1, .6) rotate(6deg); } 50% { transform: translate(-16%, 12%) scale(.9, .85) rotate(-6deg); } 100% { transform: translate(8%, -4%) scale(1.2, .7) rotate(12deg); } }
@keyframes aurora-c { 0% { transform: translate(0, 0) scale(.9, .7) rotate(0deg); } 50% { transform: translate(-20%, -6%) scale(1.15, .8) rotate(10deg); } 100% { transform: translate(-4%, 12%) scale(1, .65) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .hero__aurora i { animation: none; } }
@media (max-width: 720px) { .hero__sky { height: 360px; } .hero__aurora { filter: blur(36px); } }

/* price line under the hero headline; links to the pricing section */
.hero__price { margin-top: clamp(20px, 2.4vw, 30px); font: 600 clamp(1rem, 1.6vw, 1.1875rem)/1.5 var(--font-ui); color: var(--hero-ink-2); }
.hero__price a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; color: inherit; text-decoration: none; }
.hero__price a:hover span:not(.hero__price-sep) { text-decoration: underline; text-underline-offset: 4px; }
.hero__price-sep { width: 5px; height: 5px; border-radius: 50%; background: #3a9b7a; }
@media (max-width: 520px) { .hero__price a { flex-direction: column; gap: 2px; } .hero__price-sep { display: none; } }
.hero__demo { position: relative; z-index: 1; padding: 0 var(--hero-pad) clamp(28px, 4vw, 44px); }
.hero__demo .jd { margin-top: clamp(48px, 6vw, 76px); }
.hero__demo .jd__caption { margin-bottom: 0; }
.hero__demo { padding-bottom: clamp(32px, 5vw, 48px); }

/* ── 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; }
}


/* ── 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; } }



/* ── What is Jib OS? (the details that used to sit under the hero demo) ──── */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px clamp(28px, 5vw, 64px); align-items: start; }
.about .section__intro { margin-top: 0; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); color: var(--ink); }
.about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.about__cta .btn--xl { box-shadow: none; }
.about .hero__points { margin-top: 0; gap: 6px; color: var(--ink-2); }
/* before / after row under What is Jib OS? */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); margin-top: clamp(40px, 6vw, 64px); }
.ba__item { margin: 0; }
.ba__media { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.ba__media img { width: 100%; height: 100%; object-fit: cover; }
/* "before" reads as the old way: mostly desaturated (the file itself is full colour) */
.ba__item--before .ba__media img { filter: saturate(.25) contrast(1.05); }
.ba figcaption { margin-top: 16px; }
.ba figcaption p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.ba__tag { display: flex; width: fit-content; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font: 700 .875rem/1.5 var(--font-ui); }
.ba__item--before .ba__tag { background: #ece8df; color: var(--ink-2); }
.ba__item--after .ba__tag { background: #e3f1ea; color: #17614a; }
.ba__item--after .ba__tag::before {
  content: ""; width: 14px; height: 14px; 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/10px no-repeat;
}
@media (max-width: 720px) { .ba { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__cta { flex-direction: column; align-items: stretch; }
}

/* ── 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; } }


/* ── 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; } }

/* health check sits inside Get more customers here, as a block */
.hc2 { margin-top: clamp(56px, 8vw, 96px); background: none; }
.marquee + .feature { margin-top: clamp(56px, 8vw, 96px); }

/* ── Free mini-website demo (Get more customers) ─────────────────────────────
   A phone showing the clinic's HDmall mini-site. Theme variables mirror the
   real page's (--gp-page, --gp-card, --gp-accent… in its gar-*.css), sizes are
   scaled down to fit the phone. Content and player: src/minisite-demo/. */
.feature__media--minisite { overflow: visible; border-radius: 0; }
.ms { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ms__themes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ms__themelabel { font-size: .875rem; color: var(--muted); margin-right: 2px; }
.ms__swatch {
  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); cursor: pointer;
  font: 600 .8125rem/1.2 var(--font-ui); transition: border-color .15s ease, color .15s ease;
}
.ms__swatch i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.ms__swatch--mint i { background: linear-gradient(135deg, #e6f7f2 50%, #00785e 50%); }
.ms__swatch--midnight i { background: linear-gradient(135deg, #0d1b33 50%, #3b82f6 50%); }
.ms__swatch--blush i { background: linear-gradient(135deg, #fbeef1 50%, #c2416a 50%); }
.ms__swatch:hover { border-color: #cfc9bb; color: var(--ink); }
.ms__swatch.is-on { border-color: var(--ink); color: var(--ink); }
.ms__caption { font-size: .875rem; color: var(--muted); }

.ms__phone {
  width: 300px; max-width: 100%; padding: 10px; border-radius: 40px; background: #0f172a;
  box-shadow: 0 2px 4px rgb(15 23 42 / .12), 0 30px 60px -24px rgb(15 23 42 / .55);
}
.ms__bar { display: flex; align-items: center; justify-content: center; gap: 5px; height: 26px; margin: 2px 18px 6px; border-radius: 999px; background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .8); font: 500 11px/1 "Jib Sans", system-ui, sans-serif; }
.ms__lock svg { width: 10px; height: 10px; display: block; }
.ms__from { margin: 0 0 8px; text-align: center; font: 11px/1.3 "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; color: rgb(255 255 255 / .6); }
.ms__from b { color: #fff; font-weight: 600; }

/* Inside the phone: an Instagram-style profile. Flat, system type, hairlines,
   no tinted cards. Light by default; Midnight is dark mode. The accent (story
   ring, Book, selections) is the clinic's brand colour. */
.ms__screen {
  --p-bg: #fff; --p-ink: #000; --p-2: #737373; --p-line: #dbdbdb; --p-btn: #efefef; --p-field: #fafafa;
  --p-accent: #00785e; --p-accent-ink: #fff; --p-soft: rgb(0 120 94 / .1);
  position: relative; height: 520px; overflow: hidden; border-radius: 30px; background: var(--p-bg); color: var(--p-ink);
  font: 400 12px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  transition: background-color .3s ease, color .3s ease;
}
.ms__screen[data-theme="midnight"] { --p-bg: #000; --p-ink: #f5f5f5; --p-2: #a8a8a8; --p-line: #262626; --p-btn: #262626; --p-field: #121212; --p-accent: #0095f6; --p-soft: rgb(0 149 246 / .16); }
.ms__screen[data-theme="blush"] { --p-accent: #c2416a; --p-soft: rgb(194 65 106 / .1); }
.ms__page { position: relative; padding-bottom: 70px; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.ms__screen svg { display: block; }

.ig-top { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; font-size: 14px; }
.ig-top svg { width: 18px; height: 18px; }
.ig-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ig-head { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; }
.ig-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; background: var(--p-bg); box-shadow: 0 0 0 2px var(--p-accent); padding: 3px; }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; background: #f2f4f7; padding: 8px; }
.ig-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ig-stats span { display: flex; flex-direction: column; font-size: 11px; color: var(--p-ink); }
.ig-stats b { font-size: 13.5px; font-weight: 600; }
.ig-bio { padding: 0 12px; }
.ig-bio > b { display: block; font-size: 12.5px; font-weight: 600; }
.ig-cat { display: block; color: var(--p-2); font-size: 11.5px; }
.ig-bio p { margin-top: 1px; }
.ig-loc { display: flex; align-items: center; gap: 3px; margin-top: 2px; color: var(--p-2); font-size: 11.5px; }
.ig-loc svg { width: 12px; height: 12px; }
.ig-actions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 5px; padding: 10px 12px 4px; }
.ig-btn { display: grid; place-items: center; height: 28px; border-radius: 8px; background: var(--p-btn); font-weight: 600; font-size: 12px; transition: background-color .3s ease; }
.ig-btn--primary { background: var(--p-accent); color: var(--p-accent-ink); }
.ig-highlights { display: flex; gap: 14px; padding: 10px 12px 12px; }
.ig-hl { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; }
.ig-hl img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--p-bg); box-shadow: 0 0 0 1px var(--p-line); }
.ig-hl i { font-style: normal; font-size: 10.5px; white-space: nowrap; }
.ig-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--p-line); }
.ig-tabs span { display: grid; place-items: center; height: 34px; color: var(--p-2); }
.ig-tabs span.is-on { color: var(--p-ink); box-shadow: inset 0 -1px 0 var(--p-ink); }
.ig-tabs svg { width: 18px; height: 18px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--p-btn); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
.ig-tile i { position: absolute; left: 5px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.ig-tile.is-on img { opacity: .75; }

/* booking: a bottom sheet over a dimmed page */
.ms-dim { position: absolute; inset: 0; background: rgb(0 0 0 / .4); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.ms-dim.is-on { opacity: 1; }
.ms-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84%; display: flex; flex-direction: column;
  border-radius: 14px 14px 0 0; background: var(--p-bg); transform: translateY(102%); transition: transform .4s cubic-bezier(.3, 0, .2, 1);
}
.ms-sheet.is-open { transform: none; }
.ms-sheet__grab { flex: none; width: 36px; height: 4px; margin: 7px auto 4px; border-radius: 2px; background: var(--p-line); }
.ms-sheet__view { position: relative; flex: 1; overflow: hidden; }
.ms-sheet__body { position: relative; padding: 4px 14px 16px; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.ms-h { display: block; padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px solid var(--p-line); text-align: center; font-size: 13px; font-weight: 600; }
.ms-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--p-line); }
.ms-row .ms-label { margin: 0; } .ms-val { font-weight: 600; text-align: right; }
.ms-label { display: block; margin: 10px 0 5px; font-size: 11px; font-weight: 600; color: var(--p-ink); }
.ms-label--row { display: flex; justify-content: space-between; }
.ms-label em, .ms-sub { font-style: normal; font-weight: 400; color: var(--p-2); }
.ms-sub { display: block; margin: 4px 0 4px; font-size: 10.5px; }
.ms-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.ms-doc { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--p-line); transition: border-color .2s ease, background-color .2s ease, transform .15s ease; }
.ms-doc img { width: 36px; height: 36px; margin-bottom: 3px; border-radius: 50%; object-fit: cover; }
.ms-doc b { font-size: 10.5px; font-weight: 600; } .ms-doc i { font-style: normal; font-size: 9.5px; color: var(--p-2); }
.ms-doc.is-on { border-color: var(--p-accent); background: var(--p-soft); }
.ms-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.ms-cal__wd { font-size: 9.5px; color: var(--p-2); padding-bottom: 2px; }
.ms-cal__day { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto; border-radius: 50%; font-size: 11.5px; font-weight: 500; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.ms-cal__day.is-past { color: var(--p-2); opacity: .5; }
.ms-cal__day.is-on { background: var(--p-accent); color: var(--p-accent-ink); font-weight: 600; }
.ms-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ms-time { display: grid; place-items: center; height: 26px; border-radius: 8px; border: 1px solid var(--p-line); font-weight: 500; font-size: 11px; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.ms-time.is-on { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-accent-ink); }
.ms-summary { display: block; margin-top: 10px; padding: 7px 9px; border-radius: 8px; background: var(--p-soft); font-size: 11px; font-weight: 600; }
.ms-input { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--p-field); border: 1px solid var(--p-line); font-size: 12px; }
.ms-input.is-focus { border-color: var(--p-2); }
.ms-input.is-focus::after { content: ""; width: 1px; height: 13px; margin-left: 1px; background: var(--p-ink); animation: jd-caret 1s steps(1) infinite; }
.ms-input--code { letter-spacing: .4em; font-weight: 600; }
.ms-submit { display: grid; place-items: center; height: 34px; margin-top: 12px; border-radius: 8px; background: var(--p-accent); color: var(--p-accent-ink); font-weight: 600; font-size: 12.5px; transition: transform .15s ease, opacity .15s ease; }
.ms-note { display: block; margin-top: 6px; text-align: center; font-size: 10px; color: var(--p-2); }
.ms-sent { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 36px 0 10px; text-align: center; }
.ms-sent__tick { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; border: 2px solid var(--p-ink); font-size: 18px; font-weight: 600; }
.ms-sent b { font-size: 14px; font-weight: 600; } .ms-sent span:last-child { color: var(--p-2); font-size: 11.5px; }
.is-tap { transform: scale(.95); opacity: .8; }

.ms-toast {
  position: absolute; left: 8px; right: 8px; top: 8px; display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  border-radius: 14px; background: rgb(28 28 30 / .94); color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45);
  opacity: 0; transform: translateY(-14px); transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.ms-toast.is-in { opacity: 1; transform: none; }
.ms-toast img { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #fff; }
.ms-toast b { display: block; font-size: 12px; font-weight: 600; } .ms-toast i { display: block; font-style: normal; font-size: 10.5px; color: rgb(255 255 255 / .75); }
@media (prefers-reduced-motion: reduce) { .ms__page, .ms-sheet, .ms-sheet__body, .ms-toast, .ms-dim { transition: none; } }

/* ── "Run your clinic on AI" demos (src/run-demos/) ────────────────────────────
   Styled after Jib OS's own screens: white panels, slate text, brand #00785e,
   brand-tint AI bubbles, grey system pills, coloured initial avatars. They sit
   in the dark band, so captions are light. */
.jo {
  --j-brand: #00785e; --j-tint: #e6f7f2; --j-ink: #0f172a; --j-muted: #334155; --j-faint: #94a3b8; --j-line: #e2e8f0; --j-soft: #f1f5f9; --j-indigo: #4f46e5;
  display: flex; flex-direction: column; gap: 12px;
}
.feature__media--jo { overflow: visible; border-radius: 0; box-shadow: none; background: none; }
/* always the full column width, whatever the current message: stops the window narrowing and widening as a demo plays */
.feature__media--jo, .feature__media--jo > .jo, .jo > .jo__win, .jo-ads { width: 100%; min-width: 0; }
.jo-ads > .jo__win { min-width: 0; }
.jo__win {
  position: relative; overflow: hidden; border-radius: 16px; background: #fff; color: var(--j-ink);
  font: 400 12px/1.45 "Jib Sans", "Noto Sans Thai", system-ui, sans-serif,
    "Myanmar Sangam MN", "Myanmar Text", "Noto Sans Myanmar", "Lao Sangam MN", "Lao UI", "Noto Sans Lao", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Apple SD Gothic Neo", "Malgun Gothic";
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .6);
}
.jo__bar { display: flex; align-items: center; gap: 3px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--j-line); font-size: 14px; }
.jo__bar img { width: 22px; height: 22px; margin-right: 4px; } .jo__bar span { font-weight: 400; color: var(--j-muted); }
.jo__barr { margin-left: auto; display: flex; align-items: center; }
.jo__caption { text-align: center; font-size: .875rem; color: rgb(255 255 255 / .55); }
.jo-duty { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--j-tint); color: var(--j-brand) !important; font-size: 11px; font-weight: 600 !important; }
.jo-duty i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgb(16 185 129 / .2); animation: jo-pulse 1.6s ease-in-out infinite; }
@keyframes jo-pulse { 50% { box-shadow: 0 0 0 6px rgb(16 185 129 / 0); } }
.jo-ch { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ch); }
.jo-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 600; }
.jo-av--lg { width: 42px; height: 42px; font-size: 14px; }
.jo-row__t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.jo-row__t b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jo-row__t i { font-style: normal; color: var(--j-faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jo-conv__h { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-bottom: 1px solid var(--j-line); }
.jo-conv__h > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.jo-conv__h b { font-weight: 600; font-size: 12.5px; } .jo-conv__h i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 10.5px; color: var(--j-faint); }
.jo-lang { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #eef2ff; color: var(--j-indigo); font-size: 11px; font-weight: 600; }
.jo-msgs { display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow: hidden; }
.jo-b { max-width: 82%; padding: 8px 11px; border-radius: 14px; animation: jo-in .3s ease both; }
.jo-b--c { align-self: flex-start; background: var(--j-soft); border-bottom-left-radius: 5px; }
.jo-b--a { align-self: flex-end; background: var(--j-tint); border-bottom-right-radius: 5px; }
.jo-b__t { font-size: 12.5px; line-height: 1.45; }
.jo-b__tr { margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgb(15 23 42 / .12); color: var(--j-muted); font-size: 11px; }
.jo-b__tr span { font-weight: 600; }
.jo-b__m { margin-top: 3px; font-size: 10px; color: var(--j-faint); }
.jo-b--typing { display: flex; gap: 4px; padding: 11px 13px; }
.jo-b--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--j-brand); opacity: .35; animation: jo-dot 1s infinite; }
.jo-b--typing span:nth-child(2) { animation-delay: .15s; } .jo-b--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes jo-dot { 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes jo-in { from { opacity: 0; transform: translateY(6px); } }
.jo-sys { display: flex; justify-content: center; animation: jo-in .3s ease both; }
.jo-sys span { padding: 3px 10px; border-radius: 999px; background: var(--j-soft); color: var(--j-muted); font-size: 11px; }
.jo-pill { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.jo-pill.is-in { opacity: 1; transform: translate(-50%, 0); }
.jo-pill--ai { background: #eef2ff; color: var(--j-indigo); }
.jo-pill--ok { position: static; transform: none; display: block; width: fit-content; margin: 8px 0 0; background: #d1fae5; color: #065f46; white-space: normal; }
.jo-pill--ok.is-in { transform: none; }
.jo .is-tap { transform: scale(.95); box-shadow: 0 0 0 4px rgb(0 120 94 / .25); }

/* 1 · omnichannel inbox */
.jo-omni { display: grid; grid-template-columns: 220px 1fr; height: 330px; }
.jo-list { border-right: 1px solid var(--j-line); overflow: hidden; }
.jo-list__h { padding: 10px 12px 6px; font-weight: 700; font-size: 13px; }
.jo-rows { display: flex; flex-direction: column; }
.jo-row { display: flex; align-items: center; gap: 8px; width: calc(100% - 12px); margin: 1px 6px; padding: 7px 8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .3s ease, opacity .35s ease, transform .35s ease; }
.jo-row:hover { background: var(--j-soft); }
.jo-row:focus-visible { outline: 2px solid var(--j-brand); outline-offset: -2px; }
.jo-row.is-on { background: var(--j-tint); }
.jo-row.is-new { opacity: 0; transform: translateY(-10px); }
.jo-row__m { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .jo-row__m em { font-style: normal; font-size: 10px; color: var(--j-faint); }
.jo-conv { display: flex; flex-direction: column; min-width: 0; }
.jo-conv .jo-msgs { flex: 1; justify-content: flex-end; }

/* 2 · chat → booking → record */
.jo-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--j-soft); }
.jo-tabs span { padding: 3px 10px; border-radius: 7px; color: var(--j-muted) !important; font-size: 11.5px; font-weight: 600 !important; transition: background-color .2s ease, transform .15s ease; }
.jo-tabs span.is-on { background: #fff; color: var(--j-brand) !important; box-shadow: 0 1px 2px rgb(15 23 42 / .08); }
.jo-panes { position: relative; height: 340px; }
.jo-pane { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateX(10px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.jo-pane.is-on { opacity: 1; transform: none; }
.jo-pane .jo-msgs { flex: 1; justify-content: flex-end; }
.jo-cal__h { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px 6px; } .jo-cal__h b { font-size: 13px; } .jo-cal__h span { font-size: 11px; color: var(--j-faint); }
.jo-cal { display: grid; grid-template-columns: 38px 1fr 1fr; gap: 0 6px; padding: 0 12px; }
.jo-cal__times { display: flex; flex-direction: column; padding-top: 22px; }
.jo-cal__times span { height: 56px; margin-top: -6px; font-size: 10px; color: var(--j-faint); }
.jo-cal__doc { display: block; height: 22px; font-size: 11.5px; font-weight: 600; }
.jo-cal__slots { position: relative; height: 230px; border-radius: 8px; background: repeating-linear-gradient(to bottom, transparent 0 55px, var(--j-line) 55px 56px), var(--j-soft); }
.jo-blk { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; justify-content: center; padding: 0 7px; border-radius: 7px; border-left: 3px solid #60a5fa; background: #eff6ff; font-size: 10px; line-height: 1.25; overflow: hidden; }
.jo-blk b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jo-blk i { font-style: normal; color: var(--j-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jo-blk--new { border-left-color: var(--j-brand); background: var(--j-tint); opacity: 0; transform: scale(.9); transition: opacity .35s ease, transform .35s ease, box-shadow .3s ease; }
.jo-blk--new.is-in { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--j-brand), 0 6px 16px -6px rgb(0 120 94 / .5); }
.jo-pane--rec { padding: 12px; gap: 8px; overflow: hidden; }
.jo-rec__h { display: flex; align-items: center; gap: 10px; } .jo-rec__h span:last-child { display: flex; flex-direction: column; } .jo-rec__h b { font-size: 14px; font-weight: 600; } .jo-rec__h i { font-style: normal; font-size: 11px; color: var(--j-faint); }
.jo-rec__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--j-muted); } .jo-rec__meta span { display: inline-flex; align-items: center; gap: 5px; }
.jo-tags { display: flex; gap: 5px; } .jo-tags span { padding: 2px 8px; border-radius: 999px; background: #f5f3ff; color: #6d28d9; font-size: 10.5px; font-weight: 600; }
.jo-ai { padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); } .jo-ai b { font-size: 11px; color: var(--j-indigo); } .jo-ai p { margin-top: 2px; font-size: 11.5px; }
.jo-rec__tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--j-line); } .jo-rec__tabs span { padding: 4px 0 6px; font-size: 11px; color: var(--j-faint); font-weight: 600; } .jo-rec__tabs span.is-on { color: var(--j-ink); box-shadow: inset 0 -2px 0 var(--j-brand); }
.jo-rec__rows { display: grid; gap: 5px; } .jo-rec__rows div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 11.5px; } .jo-rec__rows dt { color: var(--j-faint); }
.jo-next { margin-top: auto; padding: 7px 10px; border-radius: 9px; background: var(--j-tint); color: var(--j-brand); font-size: 11.5px; font-weight: 600; }

/* 3 · ad attribution: a phone with the ad beside Jib OS */
.jo-ads { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; }
.ad-phone { position: relative; height: 360px; padding: 8px; border-radius: 30px; background: #0f172a; overflow: hidden; }
.ad-feed, .ad-chat { position: absolute; inset: 8px; border-radius: 22px; overflow: hidden; transition: opacity .35s ease, transform .35s ease; font: 400 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif; }
.ad-feed { background: #fff; color: #000; display: flex; flex-direction: column; }
.ad-phone[data-src="tiktok"] .ad-feed { background: #000; color: #fff; }
.ad-feed__h { display: flex; align-items: center; gap: 6px; padding: 8px; } .ad-feed__h img { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #efefef; }
.ad-feed__h span { display: flex; flex-direction: column; line-height: 1.2; } .ad-feed__h i { font-style: normal; font-size: 9.5px; opacity: .6; }
.ad-feed__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ad-phone[data-src="tiktok"] .ad-feed__img { aspect-ratio: 3 / 4; }
.ad-cta { display: block; margin: 0; padding: 7px 8px; background: #0095f6; color: #fff; font-weight: 600; text-align: left; transition: transform .15s ease; }
.ad-phone[data-src="tiktok"] .ad-cta { margin: 6px 8px 0; border-radius: 4px; background: #fe2c55; text-align: center; }
.ad-feed__cap { padding: 6px 8px; font-size: 10.5px; }
.ad-chat { background: #fff; color: #000; opacity: 0; transform: translateX(14px); display: flex; flex-direction: column; }
.ad-phone.is-chat .ad-chat { opacity: 1; transform: none; } .ad-phone.is-chat .ad-feed { opacity: 0; transform: translateX(-14px); }
.ad-chat__h { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border-bottom: 1px solid #efefef; } .ad-chat__h img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.ad-chat__msgs { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.ad-chat__msgs .jo-b { max-width: 88%; padding: 6px 9px; border-radius: 16px; } .ad-chat__msgs .jo-b__t { font-size: 11px; }
.ad-chat__msgs .jo-b--c { align-self: flex-end; background: #3797f0; color: #fff; border-bottom-right-radius: 4px; border-bottom-left-radius: 16px; }
.ad-chat__msgs .jo-b--a { align-self: flex-start; background: #efefef; border-bottom-left-radius: 4px; border-bottom-right-radius: 16px; }
.ad-phone[data-src="tiktok"] .ad-chat__msgs .jo-b--c { background: #fe2c55; }
.jo-adp { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; min-height: 300px; }
.jo-newrow { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; background: var(--j-tint); opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.jo-newrow.is-in { opacity: 1; transform: none; }
.jo-badge { padding: 2px 7px; border-radius: 999px; background: var(--j-brand); color: #fff; font-size: 10px; font-weight: 600; }
.jo-attr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--j-line); opacity: .35; transition: opacity .3s ease; }
.jo-attr.is-in { opacity: 1; }
.jo-attr div { min-width: 0; } .jo-attr dt { font-size: 10px; color: var(--j-faint); } .jo-attr dd { min-height: 17px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jo-attr__src { grid-column: 1 / -1; } .jo-attr__src dd { color: var(--j-indigo); }
.jo-report b { display: block; margin: 4px 0 4px; font-size: 11.5px; }
.jo-report table { width: 100%; border-collapse: collapse; font-size: 11px; }
.jo-report th { text-align: left; font-weight: 600; color: var(--j-faint); font-size: 10px; padding: 3px 4px; border-bottom: 1px solid var(--j-line); }
.jo-report td { padding: 5px 4px; border-bottom: 1px solid var(--j-line); transition: background-color .4s ease; } .jo-report td:not(:first-child), .jo-report th:not(:first-child) { text-align: right; width: 54px; }
.jo-report tr.is-hit td { background: var(--j-tint); } .jo-report tr.is-hit td[data-chats] { color: var(--j-brand); font-weight: 700; }

/* 4 · proactive follow-up */
/* fixed height so the section below never shifts while the demo plays */
.jo-crm { display: grid; grid-template-columns: 1fr 1.1fr; height: 450px; }
.jo-crmchat { min-height: 0; overflow: hidden; }
.jo-crmchat .jo-msgs { min-height: 0; overflow: hidden; }
.jo-fu { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--j-line); }
.jo-fu__h { padding: 0 4px 4px; font-size: 12.5px; }
.jo-fu__row { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 10px; transition: background-color .3s ease; }
.jo-fu__row.is-on { background: var(--j-tint); }
.jo-st { padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 600; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.jo-st[data-k="sent"] { background: #e0f2fe; color: #0369a1; } .jo-st[data-k="replied"] { background: #eef2ff; color: var(--j-indigo); } .jo-st[data-k="booked"] { background: #d1fae5; color: #065f46; }
.jo-stats { display: flex; align-items: baseline; gap: 14px; margin-top: auto; padding: 8px 6px 0; border-top: 1px solid var(--j-line); font-size: 10.5px; color: var(--j-faint); }
.jo-stats span:not(:first-child) { display: flex; flex-direction: column; } .jo-stats b { font-size: 15px; color: var(--j-ink); }
.jo-crmchat { display: flex; flex-direction: column; min-width: 0; }
.jo-crmchat .jo-msgs { flex: 1; justify-content: flex-end; }
.jo-pts { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; margin: 0 12px 12px; padding: 9px 11px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #b45309, #d97706 60%, #f59e0b); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.jo-pts.is-in { opacity: 1; transform: none; }
.jo-pts__h { display: flex; flex-direction: column; } .jo-pts__h b { font-size: 11.5px; } .jo-pts__h i { font-style: normal; font-size: 10px; opacity: .85; }
.jo-pts__n { font-size: 11px; text-align: right; } .jo-pts__n b { font-size: 16px; }
.jo-pts__used { grid-column: 1 / -1; font-size: 10.5px; opacity: 0; transition: opacity .3s ease; }   /* keeps its line, so the card never changes height */
.jo-pts.is-used .jo-pts__used { opacity: .9; }

/* 5 · mobile web app demo (a phone; the scenes cross-fade) */
.jo[data-ro="mobile"] { align-items: center; }
.mw-phone { width: 290px; max-width: 100%; padding: 9px; border-radius: 44px; background: #0b0f1a; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(255 255 255 / .08); }
.mw-screen { position: relative; height: 590px; overflow: hidden; border-radius: 36px; background: #f8fafc; color: #0f172a; font: 400 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", "PingFang SC", "Myanmar Sangam MN", "Noto Sans Myanmar", sans-serif; }
.mw-status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 6px 22px 0 26px; font-size: 13px; pointer-events: none; }
.mw-sig { display: flex; align-items: flex-end; gap: 2px; } .mw-sig i { width: 3px; border-radius: 1px; background: currentColor; } .mw-sig i:nth-child(1) { height: 4px; } .mw-sig i:nth-child(2) { height: 6px; } .mw-sig i:nth-child(3) { height: 8px; } .mw-sig i:nth-child(4) { height: 10px; }
.mw-scene { position: absolute; inset: 0; padding-top: 34px; opacity: 0; transform: scale(.97); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.mw-scene.is-on { opacity: 1; transform: none; }
.mw-bar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e2e8f0; font-size: 15px; }
.mw-phone .mw-bar img { width: 27px; height: 24px; margin: 0 3px 0 8px; } .mw-bar > span:not(.mw-burger):not(.mw-bell) { color: #334155; }
.mw-burger { display: flex; flex-direction: column; gap: 3px; padding: 4px 2px; border-radius: 6px; } .mw-burger i { width: 15px; height: 1.6px; background: #0f172a; border-radius: 1px; }
.mw-bell { margin-left: auto; font-size: 13px; filter: grayscale(1); }
.mw-list { margin: 8px; border-radius: 14px; background: #fff; overflow: hidden; }
.mw-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.mw-row .jo-av { width: 32px; height: 32px; }
.mw-row .jo-row__t b { font-size: 12px; } .mw-row .jo-row__t i { font-size: 11px; }
.mw-row.is-hot { background: #e6f7f2; transition: background-color .4s ease; }
.mw-page { height: 100%; overflow: hidden; }
.mw-dim { position: absolute; inset: 0; background: rgb(0 0 0 / .35); opacity: 0; transition: opacity .3s ease; }
.mw-dim.is-in { opacity: 1; }
.mw-sheet { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .4s cubic-bezier(.3, 0, .2, 1); }
.mw-sheet.is-in { transform: none; }
.mw-caret::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #64b5f6; animation: jd-caret 1s steps(1) infinite; }
.mw-switch { width: 36px; height: 22px; border-radius: 999px; background: #34c759; position: relative; } .mw-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

.mw-home { padding: 50px 14px 0; background: #111 center / cover no-repeat; color: #fff; }   /* wallpaper image set inline in src/run-demos/render.js */
.mw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.mw-app { display: flex; flex-direction: column; align-items: center; gap: 4px; } .mw-app i { font-style: normal; font-size: 9.5px; font-weight: 500; text-shadow: 0 0 2px rgb(0 0 0 / .45), 0 1px 3px rgb(0 0 0 / .5); white-space: nowrap; }
.mw-screen.is-home .mw-status { color: #fff; }
.mw-status { transition: color .3s ease; }
/* iOS (dark mode) Safari bar, share sheet and Add to Home Screen, after Apple's iOS kit */
.mw-safari { position: absolute; left: 0; right: 0; bottom: 0; }
.mw-phone .mw-safari__bar { display: block; width: 100%; height: auto; }
.mw-safari__addr { position: absolute; top: 5px; left: 8.4%; width: 83.2%; height: 28.5px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 11.5px; letter-spacing: -.01em; }
.mw-phone .mw-safari__addr img { width: 7px; height: 9px; opacity: .6; }
.mw-safari__share { position: absolute; top: 38px; left: 46.2%; width: 6.5%; height: 20px; border-radius: 6px; }
.ios-share, .ios-add { color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans Thai", sans-serif; }
.ios-share { padding: 14px 12px 18px; background: #1c1c1e; border-radius: 14px 14px 0 0; }
.ios-share__h { display: flex; align-items: center; gap: 10px; padding: 0 2px 12px; border-bottom: .5px solid #38383a; }
.ios-share__h > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ios-share__h b { font-size: 13px; font-weight: 600; } .ios-share__h i { font-style: normal; font-size: 11px; color: #8e8e93; }
.ios-share__h em { width: fit-content; margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: #3a3a3c; font-style: normal; font-size: 10px; color: #ebebf5; }
.ios-close { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #3a3a3c; color: #c7c7cc; }
.ios-close svg { width: 14px; height: 14px; stroke-width: 2.2; }
.ios-share__apps { display: flex; justify-content: space-between; padding: 12px 6px; }
.ios-share__apps > span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; }
.ios-share__apps i { font-style: normal; font-size: 9.5px; color: #ebebf5; }
.mw-phone .ios-share__apps .mw-ios, .mw-tile--share { width: 46px; height: 46px; }
.mw-tile--share { border-radius: 11px; }
.ios-group { overflow: hidden; border-radius: 11px; background: #2c2c2e; }
.ios-row { display: flex; align-items: center; justify-content: space-between; height: 38px; margin-left: 12px; padding-right: 12px; border-bottom: .5px solid #38383a; font-size: 13px; transition: background-color .15s ease; }
.ios-row:last-child { border-bottom: 0; }
.ios-row svg { flex: none; color: #fff; }
.jo[data-ro="mobile"] .ios-row.is-tap { margin-left: 0; padding-left: 12px; background: #3a3a3c; transform: none; box-shadow: none; }
.jo[data-ro="mobile"] .ios-add__btn.is-tap { transform: scale(.94); box-shadow: none; opacity: .75; }
.jo[data-ro="mobile"] .mw-safari__share.is-tap { transform: none; box-shadow: none; background: rgb(255 255 255 / .14); }
.ios-add { top: 30px; display: flex; flex-direction: column; background: #1c1c1e; border-radius: 14px 14px 0 0; }
.ios-add__h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 14px; }
.ios-add__h b { font-size: 13.5px; font-weight: 600; }
.ios-add__btn { padding: 6px 13px; border-radius: 999px; background: #6cb6f5; color: #0a2a4a; font-size: 13px; font-weight: 600; }
.ios-add__card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #2c2c2e; }
.ios-add__fields { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ios-add__name { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: .5px solid #48484a; font-size: 14px; }
.ios-add__name b { font-weight: 400; }
.ios-clear { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #8e8e93; color: #2c2c2e; font-style: normal; font-size: 8px; font-weight: 700; }
.ios-add__url { padding-top: 8px; font-size: 11px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-add__toggle { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 9px 12px; background: #2c2c2e; font-size: 13px; }
.ios-add__note { padding: 7px 12px; font-size: 10.5px; line-height: 1.4; color: #8e8e93; }
.ios-kb { margin-top: auto; padding: 7px 3px 22px; background: #2b2b2d; }
.ios-kb__row { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.ios-kb__row span { display: grid; place-items: center; flex: 0 0 22.5px; height: 32px; border-radius: 5px; background: #6b6b6f; color: #fff; font-size: 14px; box-shadow: 0 1px 0 rgb(0 0 0 / .35); }
.ios-kb__row .ios-kb__fn { flex-basis: 30px; background: #47474b; font-size: 13px; }
.ios-kb__row .ios-kb__w { flex-basis: 36px; font-size: 11px; }
.ios-kb__row .ios-kb__space { flex: 1 1 auto; }
.ios-kb__row .ios-kb__go { flex-basis: 70px; background: #0a84ff; font-size: 15px; }
.mw-phone img.mw-icon--md { width: 40px; height: 40px; border-radius: 10px; }
.mw-phone img.mw-icon--lg { width: 52px; height: 52px; border-radius: 12px; }
/* images inside the phone keep their own sizes (feature-row images otherwise fill their box) */
.mw-phone img { width: auto; height: auto; object-fit: contain; }
.mw-phone img.mw-icon { display: block; flex: none; width: 44px; height: 44px; border-radius: 11px; }
.mw-phone img.mw-ios { display: block; width: 44px; height: 44px; }
.mw-dock .mw-ios { width: 44px; height: 44px; }
.mw-phone img.mw-icon--sm { width: 30px; height: 30px; border-radius: 8px; }
.mw-tile { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 11px; color: #fff; font-size: 19px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.mw-tile img { display: block; width: auto; }
/* LINE: the wordmark in a white speech bubble, as on its app icon */
.mw-line { position: relative; display: grid; place-items: center; width: 34px; height: 26px; border-radius: 50%; background: #fff; }
.mw-line::after { content: ""; position: absolute; left: 8px; bottom: -3px; border: 4px solid transparent; border-top-color: #fff; border-left-color: #fff; transform: rotate(10deg); }
.mw-phone .mw-line img { height: 9px; }
/* Instagram: the camera glyph */
.mw-ig { position: relative; width: 26px; height: 26px; border: 2.6px solid #fff; border-radius: 8px; }
.mw-ig::before { content: ""; position: absolute; inset: 4px; border: 2.6px solid #fff; border-radius: 50%; }
.mw-ig i { position: absolute; top: 2px; right: 2.5px; width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.mw-app--new { opacity: 0; transform: scale(.4); transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.mw-app--new.is-in { opacity: 1; transform: none; }
.mw-dock { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; justify-content: space-around; padding: 10px 8px; border-radius: 24px; background: rgb(255 255 255 / .14); backdrop-filter: blur(8px); }
.mw-notif { position: absolute; z-index: 6; left: 8px; right: 8px; top: 40px; display: flex; gap: 9px; padding: 10px 11px; border-radius: 18px; background: rgb(245 245 247 / .96); color: #0f172a; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45); opacity: 0; transform: translateY(-24px); transition: opacity .35s ease, transform .4s cubic-bezier(.3, 0, .2, 1); }
.mw-notif.is-in { opacity: 1; transform: none; }
.mw-notif span { display: flex; flex-direction: column; min-width: 0; } .mw-notif b { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; color: #475569; } .mw-notif em { font-style: normal; font-weight: 400; }
.mw-notif strong { font-size: 12px; font-weight: 600; } .mw-notif i { font-style: normal; font-size: 11.5px; color: #334155; }

.mw-standalone { background: #f8fafc; }
.mw-view { position: absolute; top: 78px; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .3s ease; overflow: hidden; }
.mw-view.is-on { opacity: 1; }
.mw-cc { padding: 6px 12px 12px; }
.mw-cc__home { display: flex; flex-direction: column; align-items: center; text-align: center; transition: opacity .3s ease, transform .3s ease; }
.mw-cc__home.is-out { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.mw-chat { position: absolute; top: 8px; left: 10px; right: 10px; bottom: 58px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; opacity: 0; transition: opacity .3s ease; }
.mw-chat.is-in { opacity: 1; }
.mw-q { align-self: flex-end; max-width: 80%; padding: 7px 11px; border-radius: 14px 14px 4px 14px; background: #2f7d5b; color: #fff; font-size: 11.5px; animation: jo-in .3s ease both; }
.mw-ai { align-self: stretch; animation: jo-in .3s ease both; }
.mw-ai__head { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 11px; } .mw-phone .mw-ai__head img { width: 20px; height: 18px; }
.mw-ai__body { padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .08); font-size: 11.5px; }
.mw-ai--typing { display: flex; gap: 4px; width: fit-content; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .08); }
.mw-ai--typing span { width: 6px; height: 6px; border-radius: 50%; background: #00785e; opacity: .35; animation: jo-dot 1s infinite; }
.mw-ai--typing span:nth-child(2) { animation-delay: .15s; } .mw-ai--typing span:nth-child(3) { animation-delay: .3s; }
.mw-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; } .mw-acts span { padding: 4px 9px; border-radius: 999px; border: 1px solid #a7d8c6; background: #ecfdf5; color: #00785e; font-size: 10.5px; font-weight: 600; }
.mw-ai__body > p + .mw-stats, .mw-ai__body > p + .mw-wait { margin-top: 8px; }
.mw-wait { display: flex; flex-direction: column; margin-top: 6px; padding: 6px 8px; border-left: 3px solid #ef4444; border-radius: 6px; background: #f8fafc; } .mw-wait i { font-style: normal; font-size: 10.5px; color: #64748b; }
.mw-phone .mw-cc__art { width: 150px; height: auto; }
.mw-cc__hello { margin-top: 2px; font-size: 17px; }
.mw-cc__sum { margin-top: 4px; font-size: 11.5px; color: #475569; }
.mw-prompts { display: grid; gap: 6px; width: 100%; margin-top: 10px; } .mw-prompts span { padding: 8px 10px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .06); text-align: left; font-size: 11.5px; transition: transform .15s ease; }
.mw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; } .mw-stats span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 9px; border: 1px solid #e2e8f0; }
.mw-stats i { font-style: normal; font-size: 10px; color: #64748b; } .mw-stats b { font-size: 14px; } .mw-stats em { font-style: normal; font-size: 10px; color: #059669; font-weight: 600; }
.mw-ask { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #94a3b8; text-align: left; font-size: 11.5px; }
.mw-ask.is-typing { color: #0f172a; border-color: #94a3b8; }
.mw-ask.is-typing [data-asktext]::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 1px; vertical-align: -2px; background: #0f172a; animation: jd-caret 1s steps(1) infinite; }
.mw-send { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #9fcfbd; color: #fff; font-style: normal; font-size: 12px; transition: background-color .2s ease, transform .15s ease; }
.mw-ask.is-typing .mw-send { background: #00785e; }
.mw-drawer { position: absolute; z-index: 4; top: 78px; left: 0; bottom: 0; width: 64%; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; background: #fff; box-shadow: 10px 0 30px -12px rgb(15 23 42 / .35); transform: translateX(-105%); transition: transform .35s cubic-bezier(.3, 0, .2, 1); }
.mw-drawer.is-in { transform: none; }
.mw-drawer span { padding: 8px 10px; border-radius: 9px; font-size: 13px; color: #334155; transition: transform .15s ease; } .mw-drawer span.is-on { background: #e6f7f2; color: #00785e; font-weight: 600; }
.jo[data-ro="mobile"] .is-tap { transform: scale(.94); box-shadow: 0 0 0 4px rgb(37 99 235 / .25); }

@media (max-width: 720px) {
  .jo-omni { grid-template-columns: 1fr; } .jo-list { display: none; }
  .jo-ads { grid-template-columns: 1fr; } .ad-phone { width: 220px; margin: 0 auto; }
  .jo-crm { grid-template-columns: 1fr; height: auto; } .jo-fu { border-right: 0; border-bottom: 1px solid var(--j-line); }
  .jo-crmchat { height: 400px; }
}
@media (prefers-reduced-motion: reduce) { .jo *, .jo *::before { animation: none !important; transition: none !important; } }

/* the channel marquee in the dark band: logos as white silhouettes */
.band .marquee { margin-top: clamp(36px, 5vw, 56px); }
.band .marquee img { filter: brightness(0) invert(1); opacity: .78; }
.band .marquee__item span { color: rgb(255 255 255 / .78); }

/* partner badges under the EHR section copy */
.partners-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.partners-row img { height: 44px; width: auto; border-radius: 8px; }

/* ── Cohort analysis dashboard (dark), under "Patients come back" ─────────────
   After the Work with Us product dashboards: near-black panels, hairline
   borders, small monospace labels; colour only where it means something
   (each channel's dot, the green retention scale). */
.coh { --k-bg: #141318; --k-panel: #1b1a21; --k-raise: #222129; --k-line: #2b2a33; --k-line-2: #36353f;
  --k-text: #ecebf1; --k-muted: #9c9ba8; --k-faint: #6c6b78; --k-pos: 134 239 172;
  --k-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Noto Sans Thai", monospace;
  display: flex; flex-direction: column; gap: 12px; width: 100%; }
.coh__win { overflow: hidden; border-radius: 14px; background: var(--k-bg); color: var(--k-text); border: 1px solid #24232b;
  box-shadow: 0 40px 80px -30px rgb(10 9 14 / .65); font: 400 12px/1.45 "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; }
.coh__chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1a1920; border-bottom: 1px solid var(--k-line); }
.coh__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #34333c; }
.coh__chrome span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: #232229; color: var(--k-muted); font: 11px var(--k-mono); }
.coh__body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.coh__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.coh__title { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.coh__org, .coh-kpi span, .coh-card__s, .coh-table th { font: 500 10.5px/1.4 var(--k-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--k-faint); }
html[lang="th"] .coh__org, html[lang="th"] .coh-kpi span, html[lang="th"] .coh-card__s, html[lang="th"] .coh-table th { letter-spacing: 0; font-size: 11px; }
.coh__ctrls { display: flex; flex-wrap: wrap; gap: 8px; }
.coh-seg { display: flex; padding: 2px; border-radius: 8px; border: 1px solid var(--k-line-2); }
.coh-seg button { padding: 4px 10px; border: 0; border-radius: 6px; background: none; color: var(--k-muted); font: 500 11px var(--k-mono); cursor: pointer; }
.coh-seg button:hover:not(:disabled) { color: var(--k-text); }
.coh-seg button.is-on { background: var(--k-raise); color: var(--k-text); box-shadow: inset 0 0 0 1px #4b4a55; }
.coh-seg button:disabled { opacity: .35; cursor: default; }
.coh__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--k-line-2); background: transparent; color: var(--k-faint); font: 500 11.5px "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.coh-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .35; }
.coh-chip.is-on { color: var(--k-text); border-color: #4b4a55; background: var(--k-raise); } .coh-chip.is-on i { opacity: 1; }
.coh-chip:hover { border-color: #55545f; }
.coh-chip--all.is-on { background: var(--k-text); color: var(--k-bg); border-color: var(--k-text); }
.coh-chip:focus-visible, .coh-seg button:focus-visible, .coh-bar:focus-visible, .coh-cell:focus-visible { outline: 2px solid rgb(var(--k-pos)); outline-offset: 1px; }
.coh__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.coh-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--k-panel); border: 1px solid var(--k-line); }
.coh-kpi b { font: 600 20px/1.2 "Jib Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.coh-kpi i { font-style: normal; font-size: 10.5px; color: var(--k-muted); }
.coh__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 8px; }
.coh-card { position: relative; padding: 12px; border-radius: 8px; background: var(--k-panel); border: 1px solid var(--k-line); min-width: 0; }
.coh-card__t { display: block; font-size: 12.5px; font-weight: 600; } .coh-card__s { display: block; margin-top: 2px; }
/* fixed height: switching period or channels never changes the size of the dashboard */
.coh-card--table .coh-table { height: 352px; margin-top: 10px; overflow: auto; }
.coh-table table { width: 100%; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.coh-table th { text-align: left; padding: 2px 4px; white-space: nowrap; }
.coh-table tbody th { color: var(--k-muted); font-size: 11px; }
.coh-n { padding: 0 6px; color: var(--k-muted); font-size: 11px; text-align: right; white-space: nowrap; }
.coh-cell { min-width: 44px; height: 23px; padding: 0 4px; border-radius: 4px; text-align: center; font-size: 11px; color: var(--k-text);
  background: rgb(var(--k-pos) / calc(var(--a) * .85)); transition: background-color .25s ease; cursor: default; }
.coh-cell[data-dark] { color: #0b1f12; font-weight: 600; }
.coh-cell.is-empty { background: repeating-linear-gradient(135deg, var(--k-raise) 0 4px, transparent 4px 8px); }
.coh-cell:hover { box-shadow: 0 0 0 1px var(--k-text); }
.coh-empty { padding: 40px 0; text-align: center; color: var(--k-muted); }
.coh-tip { position: absolute; z-index: 3; max-width: 260px; padding: 6px 9px; border-radius: 6px; background: #f4f4f6; color: #111; font-size: 11px; line-height: 1.35; pointer-events: none; box-shadow: 0 8px 20px -6px rgb(0 0 0 / .6); }
.coh-bars { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.coh-bar { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; padding: 5px 7px 9px; border: 0; border-radius: 6px; background: none; color: var(--k-faint); font: 500 11.5px "Jib Sans", "Noto Sans Thai", system-ui, sans-serif; text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.coh-bar:hover { background: var(--k-raise); }
.coh-bar b { font-variant-numeric: tabular-nums; }
.coh-bar i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--c) var(--w), var(--k-line) var(--w)); opacity: .35; transition: opacity .2s ease; }
.coh-bar.is-on { color: var(--k-text); } .coh-bar.is-on i { opacity: 1; }
.coh__caption { text-align: center; font-size: .875rem; color: rgb(255 255 255 / .55); }
@media (max-width: 860px) {
  .coh__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coh__grid { grid-template-columns: 1fr; }
}

/* ── "Jib Clinic" animated pixel-art clinic (src/clinic-game/) ─────────────────
   The scene is a 960x540 pixel-art image plus sprites on the same grid, shown
   scaled up crisply; a game-style top bar carries the counters and clock. */
.cg { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cg__frame { position: relative; overflow: hidden; border-radius: 20px; background: #2b1d14; box-shadow: 0 0 0 4px #2b1d14, 0 30px 60px -24px rgb(0 0 0 / .6); }
.cg__stage { aspect-ratio: 16 / 9; background: #2a2440; }
.feature__media .cg__canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.cg__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: stretch; gap: 8px; padding: 0 10px;
  background: linear-gradient(#3a2a20, #2b1d14); border-bottom: 3px solid #1b120c; box-shadow: 0 3px 0 rgb(0 0 0 / .18);
  font: 800 11px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans Thai", monospace; color: #fff8e6; pointer-events: none; }
.cg__stats { display: flex; gap: 4px; }
.cg__stats span { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-right: 2px solid #1b120c; box-shadow: 2px 0 0 #4a372a; }
.cg__stats span:last-child { border-right: 0; box-shadow: none; }
.cg__stats i { font-style: normal; color: #f6c453; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
html[lang="th"] .cg__stats i { text-transform: none; letter-spacing: 0; font-size: 11px; }
.cg__stats b { min-width: 2ch; padding: 3px 7px; border-radius: 4px; background: #1b120c; color: #fff8e6; font-size: 13px; text-align: right; box-shadow: inset 0 1px 0 #000; }
.cg__clock { display: flex; align-items: center; gap: 7px; padding: 8px 2px; }
.cg__clock i { width: 9px; height: 9px; background: #64748b; box-shadow: 0 0 0 2px #1b120c; } .cg__clock i.is-open { background: #4ade80; box-shadow: 0 0 0 2px #1b120c, 0 0 8px #4ade80; }
.cg__clock b { font-size: 13px; } .cg__clock em { font-style: normal; color: #f6c453; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
html[lang="th"] .cg__clock em { text-transform: none; letter-spacing: 0; font-size: 11px; }
.cg.is-night .cg__clock em { color: #93c5fd; }
@media (max-width: 860px) {
  /* phones and tablets: each counter as an icon and its number */
  .cg__bar { padding: 0 6px; } .cg__stats span { gap: 4px; padding: 6px 6px; }
  .cg__stats span::before { content: attr(data-icon); font-size: 11px; }
  .cg__stats i, .cg__clock em { display: none; } .cg__stats b, .cg__clock b { font-size: 11px; padding: 2px 5px; }
  .cg__frame { border-radius: 14px; }
  .cg__bar { position: static; }   /* above the scene on phones, so it covers none of it */
}

/* before/after slider on the EHR illustration (the "before" side matches .ba__item--before) */
.bas { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.bas .bas__img { display: block; width: 100%; height: auto; pointer-events: none; }
.bas__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.bas__before .bas__img { height: 100%; object-fit: cover; filter: saturate(.25) contrast(1.05); }
.bas__before--photo .bas__img { filter: none; }   /* a real before image needs no treatment */
/* a soft fade along the bottom so the white labels read on bright images */
.bas::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to top, rgb(12 9 30 / .55), rgb(12 9 30 / 0)); pointer-events: none; }
.bas__label { z-index: 1; }
.bas__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgb(0 0 0 / .35); pointer-events: none; }
.bas__handle { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center;
  border: 2px solid #fff; border-radius: 50%; background: rgb(20 16 40 / .35); color: #fff; backdrop-filter: blur(4px); cursor: ew-resize; box-shadow: 0 4px 14px rgb(0 0 0 / .3); transition: transform .15s ease; }
.bas.is-dragging .bas__handle, .bas__handle:hover { transform: scale(1.08); }
.bas__handle:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }
.bas__label { position: absolute; bottom: clamp(12px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 2px; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .6); pointer-events: none; transition: opacity .2s ease; }
.bas__label b { font: 700 clamp(1rem, 2vw, 1.375rem)/1.1 var(--font-ui); }
.bas__label i { font-style: normal; font-size: clamp(.75rem, 1.2vw, .9375rem); opacity: .9; }
.bas__label--before { left: clamp(14px, 2.6vw, 28px); }
.bas__label--after { right: clamp(14px, 2.6vw, 28px); text-align: right; align-items: flex-end; }
.bas[style*="--pos: 0%"] .bas__label--before, .bas[style*="--pos: 100%"] .bas__label--after { opacity: 0; }

/* ── "Ads" demo (src/ads-studio/): brief → AI ads → policy check → live → closed-loop optimisation ── */
.as .as__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; min-height: 0; }
.as__steps { display: flex; gap: 6px; flex-wrap: wrap; }
.as__steps span { padding: 3px 10px; border-radius: 999px; background: var(--j-soft); color: var(--j-muted); font-size: 11px; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.as__steps span.is-done { color: var(--j-brand); }
.as__steps span.is-on { background: var(--j-brand); color: #fff; }
.as__prompt { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--j-line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--j-ink); }
.as__spark { color: var(--j-brand); }
.as__caret { width: 1.5px; height: 15px; background: var(--j-ink); opacity: 0; }
.as.is-typing .as__caret { opacity: 1; animation: jd-caret 1s steps(1) infinite; }
.as__gen { height: 18px; margin: -4px 0 -4px; color: var(--j-brand); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .25s ease; }   /* keeps its space: the demo never changes height */
.as__gen.is-on { opacity: 1; animation: as-pulse 1s ease-in-out infinite; }
@keyframes as-pulse { 50% { opacity: .45; } }
.as__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.as__h { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--j-muted); }
html[lang="th"] .as__h { letter-spacing: 0; text-transform: none; font-size: 12px; }
.as-ad { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; padding: 6px; border: 1px solid var(--j-line); border-radius: 10px; background: #fff; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, border-color .3s ease, background-color .3s ease; }
.as-ad.is-in { opacity: 1; transform: none; }
.as-ad { position: relative; }
.as-ad__img { position: relative; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 8px; }
.jo .as-ad__img img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.as-ad__play, .as-ad__dur { position: absolute; opacity: 0; transition: opacity .3s ease; font-style: normal; }
.as-ad__play { inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; background: rgb(15 23 42 / .28); }
.as-ad__dur { right: 2px; bottom: 2px; padding: 0 3px; border-radius: 3px; background: rgb(15 23 42 / .7); color: #fff; font-size: 8.5px; font-weight: 700; }
.as-ad.is-video .as-ad__play, .as-ad.is-video .as-ad__dur { opacity: 1; }
.as-ad.is-video .as-ad__img img { animation: as-kenburns 3s ease-in-out infinite alternate; }   /* a moving thumbnail reads as video */
@keyframes as-kenburns { to { transform: scale(1.18) translate(-6%, -4%); } }
.as-ad__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.as-ad__vid { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--j-brand); background: #fff; color: var(--j-brand); font-size: 10px; font-weight: 700; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.as-ad__vid.is-tap { transform: scale(.92); background: var(--j-tint); }
.as-ad__vid.is-busy { animation: as-pulse 1s ease-in-out infinite; }
.as-ad__vid.is-done { border-color: #86efac; background: #dcfce7; color: #15803d; }
.as-ad__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-ad__t b { font-size: 12px; line-height: 1.3; color: var(--j-ink); }
.as-ad__t i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--j-muted); }
.as-ad.is-ok .as-ad__t i { color: #15803d; }
.as-ad.is-flag { border-color: #fca5a5; background: #fef2f2; }
.as-ad.is-flag .as-ad__t i { color: #b91c1c; }
.as-ad.is-flag .as-ad__t b { text-decoration: line-through; text-decoration-color: #ef4444; }
.as-pf { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; margin-bottom: 6px; padding: 7px 9px; border: 1px solid var(--j-line); border-radius: 10px; background: #fff; transition: border-color .3s ease, box-shadow .3s ease; }
.as-pf__n { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--j-ink); }
.jo .as-pf__n img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.as-pf__s { justify-self: end; padding: 1px 8px; border-radius: 999px; background: var(--j-soft); color: var(--j-muted); font-style: normal; font-size: 10.5px; font-weight: 700; }
.as-pf.is-live .as-pf__s { background: #dcfce7; color: #15803d; }
.as-pf__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--j-soft); overflow: hidden; }
.as-pf__bar span { display: block; height: 100%; border-radius: 3px; background: var(--c); opacity: .35; transition: width 1.2s cubic-bezier(.3, 0, .2, 1), opacity .3s ease; }
.as-pf.is-live .as-pf__bar span { opacity: 1; }
.as-pf__m { grid-column: 1 / -1; font-size: 10.5px; color: var(--j-muted); font-variant-numeric: tabular-nums; }
.as-pf__m b { color: var(--j-ink); }
.as-pf.is-best { border-color: #86efac; box-shadow: 0 0 0 2px #dcfce7; }
.as-pf.is-worst [data-cost] { color: #b91c1c; }   /* only the cost per booking: TikTok is cheapest per chat */
.as__note { padding: 8px 12px; border-radius: 10px; background: var(--j-tint); color: var(--j-brand); font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.as__note.is-in { opacity: 1; transform: none; }
@media (max-width: 560px) { .as__cols { grid-template-columns: 1fr; } }

/* results: two panes in one grid cell, so switching views never changes the demo's height */
.as__panes { display: grid; }
.as__pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.as__pane.is-on { opacity: 1; visibility: visible; }
.as__tabs { display: flex; gap: 4px; align-self: flex-end; margin: -2px 0 -6px; padding: 3px; border-radius: 999px; background: var(--j-soft); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.as__tabs.is-in, .as.is-user .as__tabs { opacity: 1; pointer-events: auto; }
.as-tab { padding: 4px 12px; border: 0; border-radius: 999px; background: none; color: var(--j-muted); font: 600 11.5px var(--font-ui); cursor: pointer; }
.as-tab.is-on { background: #fff; color: var(--j-ink); box-shadow: 0 1px 2px rgb(15 23 42 / .12); }
.as__funnel { display: flex; flex-direction: column; gap: 10px; }
.as__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.as-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--j-line); border-radius: 999px; background: #fff; color: var(--j-muted); font: 600 11px var(--font-ui); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.jo .as-chip img { width: 14px; height: 14px; object-fit: contain; }
.as-chip.is-on { border-color: var(--j-ink); background: var(--j-ink); color: #fff; }
.as-chip:focus-visible, .as-tab:focus-visible { outline: 2px solid var(--j-brand); outline-offset: 2px; }
.as__stages { --c: var(--j-brand); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.as-stage { display: flex; flex-direction: column; align-items: center; width: 100%; }
.as-stage__bar { display: flex; justify-content: space-between; align-items: center; width: var(--w); min-width: 150px; padding: 7px 12px; border-radius: 8px; background: color-mix(in srgb, var(--c) 16%, #fff); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); transition: background-color .4s ease, border-color .4s ease; }
.as-stage__bar b { font-size: 14px; color: var(--j-ink); font-variant-numeric: tabular-nums; }
.as-stage__bar i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--j-muted); }
.as-stage:last-child .as-stage__bar { background: var(--c); border-color: var(--c); }
.as-stage:last-child .as-stage__bar b, .as-stage:last-child .as-stage__bar i { color: #fff; }
.as-stage em { order: -1; margin-bottom: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--j-muted); font-variant-numeric: tabular-nums; }
.as__fsum { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--j-muted); }
.as__fsum b { color: var(--j-ink); font-variant-numeric: tabular-nums; }
.as-pf__m + .as-pf__m { margin-top: -2px; }

/* ── proof: logo wall (from the Work with Us pages) ─────────────────────── */
.proof { padding-top: clamp(40px, 6vw, 64px); }
.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; } }

.feature__cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.band .feature__title { color: var(--white); }
.demo-slot { margin-top: clamp(40px, 6vw, 64px); }

/* ── pricing: one main plan, two smaller ones ────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan__name { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); line-height: 1.2; }
.plan__amount { font: 700 1em/1 "Jib Sans", var(--font-head); letter-spacing: -.02em; }
.plan__per { margin-left: 6px; font-size: .9375rem; font-weight: 400; }

.plan--main {
  position: relative; overflow: hidden; border-radius: var(--r-hero); color: var(--white);
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(120% 70% at 100% 0%, rgb(38 108 240 / .32), transparent 60%),
    radial-gradient(1px 1px at 22% 18%, rgb(255 255 255 / .55), transparent 60%),
    radial-gradient(1px 1px at 78% 62%, rgb(255 255 255 / .4), transparent 60%),
    linear-gradient(165deg, #150f30 0%, #1d1440 55%, #2a1c46 100%);
  box-shadow: 0 2px 4px rgb(23 16 41 / .12), 0 24px 48px -18px rgb(23 16 41 / .5);
}
.plan--main .plan__name { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
/* the Jib OS logo and wordmark in place of the plan name */
.plan__name--logo { line-height: 0; }
.plan__name--logo img { display: block; width: auto; height: clamp(40px, 4.4vw, 52px); }
.plan__trial { padding: 5px 12px; border-radius: 999px; background: rgb(58 155 122 / .2); border: 1px solid rgb(58 155 122 / .45); color: #9ee3c7; font: 700 .875rem/1.3 var(--font-ui); }
.plan--main .plan__sub { margin-top: 8px; color: rgb(255 255 255 / .8); }
.plan--main .plan__price { margin-top: 26px; font-size: clamp(2.75rem, 5.4vw, 3.75rem); line-height: 1; }
.plan--main .plan__per { color: rgb(255 255 255 / .72); }
.plan__alt { margin-top: 10px; font-size: .96875rem; color: rgb(255 255 255 / .75); }
.plan__list { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); }
.plan--main .points li { color: rgb(255 255 255 / .92); }
.plan--main .points li::before { background-color: #3a9b7a; }
.plan--main .plan__fine { margin-top: 22px; font-size: .875rem; color: rgb(255 255 255 / .62); }
.plan--main .btn { margin-top: 24px; padding-block: 16px; }

.plans__more { display: grid; gap: 16px; }
.plans__label { font: 700 1rem/1.4 var(--font-ui); color: var(--muted); padding-top: 4px; }
.plan--add { padding: clamp(22px, 3vw, 28px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.plan--add .plan__name { font-size: 1.375rem; }
.plan--add .plan__price { font-size: 1.375rem; }
.plan--add .plan__per { color: var(--muted); }
.plan--add .plan__sub { margin-top: 6px; color: var(--ink-2); }
.plan__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.plan__tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); font: 600 .875rem/1.4 var(--font-ui); color: var(--ink); }
.plan--add .plan__fine { margin-top: 14px; font-size: .875rem; color: var(--muted); }

/* ── FAQ and closing contact ─────────────────────────────────────────────── */
.faq__ask { margin-top: 10px; color: var(--ink-2); }
.faq__ask a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ── embedded lead form (from the Work with Us pages) ───────────────────── */
.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: blurb, the link columns, entity and partner badges ──────────── */
.footer__top { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__logo { height: 30px; }
.footer__blurb { max-width: 62ch; color: var(--ink-2); font-size: .9375rem; }

/* the link columns differ a lot in length, so they flow as newspaper columns */
.footer__cols { columns: 5 180px; column-gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__col { break-inside: avoid; padding-bottom: 26px; }
.footer__col h4 { font: 700 .875rem/1.4 var(--font-ui); color: var(--ink); margin-bottom: 10px; }
.footer__col .footer__links { display: grid; gap: 6px; }
.footer__col .footer__links a { text-decoration: none; }
.footer__col .footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--ink-2); }

/* ── demo request dialog ─────────────────────────────────────────────────── */
/* Markup is shared with blog and article pages (they style it from styles.css);
   these rules restyle it for the landing page only. */
.demo {
  width: min(880px, calc(100vw - 32px)); margin: auto; padding: 0; border: 0;
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink); background: var(--white);
  box-shadow: 0 30px 80px -20px rgb(16 10 28 / .55);
}
.demo::backdrop { background: rgb(16 10 28 / .6); }
.demo__inner { position: relative; display: grid; grid-template-columns: 5fr 6fr; }
.demo__art { width: 100%; height: 100%; object-fit: cover; }
.demo__body { padding: 36px 32px 32px; align-self: center; }
.demo__head { padding-inline-end: 36px; }
.demo__head h3 { font-size: 1.75rem; }
.demo__close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink-2); font-size: 15px; cursor: pointer;
}
.demo__close:hover { color: var(--ink); background: var(--paper-2); }
.demo__sub { margin-top: 8px; font-size: .96875rem; color: var(--ink-2); }
.demo__field { margin-top: 18px; }
.demo__field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .96875rem; }
.demo__opt { margin-left: 6px; font-weight: 400; font-size: .875rem; color: var(--muted); }
.demo__field input {
  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;
}
.demo__field input::placeholder { color: #9c988d; }
.demo__field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(38 108 240 / .18); }
.demo__submit { width: 100%; margin-top: 24px; padding-block: 16px; }
.demo__reassure { margin-top: 12px; font-size: .8125rem; line-height: 1.55; color: var(--muted); text-align: center; }
.demo__error { margin-top: 12px; font-size: .9375rem; color: var(--error); }
.demo__success { display: grid; justify-items: center; gap: 10px; padding: 16px 4px 4px; text-align: center; }
.demo__tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--check); color: var(--white); font-size: 1.5rem; font-weight: 700; }
.demo__success h3 { font-size: 1.625rem; }
.demo__success p { color: var(--ink-2); }
.demo__success .btn { margin-top: 10px; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1040px) { .hero__links { display: none; } }
@media (max-width: 960px) {
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .demo__inner { grid-template-columns: 1fr; }
  .demo__art { display: none; }
  .demo__body { padding: 28px 22px 24px; }
}
@media (max-width: 720px) {
  /* Partners log in from their phones too (to turn on notifications, for one),
     so the login link stays on small screens, as a compact tappable button. */
  .hero__actions { gap: 8px; }
  .hero__login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; font-size: .875rem; white-space: nowrap; }
  .hero__login:hover { text-decoration: none; background: rgb(255 255 255 / .12); }
  .brand__logo { height: 28px; }
  .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); }
  .footer__cols { columns: 2; column-gap: 16px; }
}
