/* ==========================================================================
   Vital Peptides — peptide clinic landing page
   1.  Tokens
   2.  Base + typography
   3.  Layout helpers
   4.  Buttons, chips, misc atoms
   5.  Header / navigation
   6.  Sections (hero → products)
   7.  Footer
   8.  Section manager (dev tool)
   9.  Motion + reveal
   10. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --ink: #0d3a4d;
  --ink-deep: #082a39;
  --body: #5f7c8a;
  --cyan: #92d8ea;
  --cyan-strong: #63c3dc;
  --cyan-soft: #e9f7fb;
  --cream: #f5ece5;
  --surface: #ffffff;
  --border: #e3ebee;
  --border-hover: #c3d2d8;
  --cta-pad: 10px 16px;
  --cta-font: .68rem;
  --cta-gap: 8px;
  --cta-icon: 16px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(13, 58, 77, .06);
  --shadow-md: 0 18px 45px rgba(13, 58, 77, .12);
  --container: 1240px;
  --gutter: 24px;
  --sec-space: 104px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.2 1.4 6 6.2 10.8 1.4' stroke='%230d3a4d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --h1: clamp(2.15rem, 3.8vw, 3rem);
  --h2: clamp(1.7rem, 2.6vw, 2.25rem);
  --h-display: calc(var(--h2) * 2);
  --h-ticker: clamp(2.6rem, 6vw, 4.4rem);
  --h3: 1.15rem;
  --quote: clamp(1.08rem, 1.5vw, 1.24rem);
  --header-h: 74px;
  --feat-bar-h: 168px;
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--cyan-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: var(--sec-space); position: relative; }
.sec--flush { padding-block: 0; }
.sec--tight { padding-block: 56px; }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--split {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--body);
}
.eyebrow::before,
.eyebrow::after {
  content: ""; width: 9px; height: 9px; flex: none;
  background: var(--cyan-strong);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.display {
  font-size: var(--h-display);
  line-height: 1.1;
}
.sec-head .display {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.sub { margin-top: 18px; max-width: 520px; }
.sub a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sec-head--center .sub { margin-inline: auto; }

/* 4. Atoms --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn__mark {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); font-size: .8rem; line-height: 1;
}

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-deep); }
.btn--dark .btn__wa { filter: brightness(0) invert(1); }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan .btn__mark { background: rgba(13, 58, 77, .12); }
.btn--cyan:hover { background: var(--cyan-strong); }
.btn__wa {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  /* Tint the WhatsApp PNG to --ink (#0d3a4d) */
  filter: brightness(0) saturate(100%) invert(16%) sepia(38%) saturate(1480%) hue-rotate(163deg) brightness(92%) contrast(93%);
}
.btn--ghost { border-color: transparent; color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--ink-deep); }

.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--cyan-soft); color: var(--ink);
  font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

.tag {
  margin: 0 0 6px;
  font-size: .64rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan-strong);
}

.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .88rem; margin-bottom: 14px;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list svg { flex: none; margin-top: 3px; color: var(--cyan-strong); }

.badge-spin {
  position: absolute; width: 118px; height: 118px;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .3s ease;
}
.badge-spin:hover { transform: scale(1.06); }
.badge-spin svg {
  width: 100%; height: 100%;
  animation: spin 26s linear infinite;
  transform-box: view-box;
  transform-origin: center;
}
.badge-spin::after {
  content: ""; position: absolute; width: 30px; height: 30px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center/22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center/22px no-repeat;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 5. Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 74px;
  position: relative;
}

.brand { display: inline-flex; align-items: center; }
.brand strong {
  display: flex; flex-direction: column; align-items: flex-start;
  font-size: 1.15rem; line-height: 1.05; color: var(--ink);
  letter-spacing: -.03em; font-weight: 700; white-space: nowrap;
}
.brand .brand__name { white-space: nowrap; }
.brand .brand__peptide { font-weight: 400; letter-spacing: -.02em; }
.brand strong > span:not(.brand__name):not(.brand__peptide) {
  margin-top: 2px; font-size: .58rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--body);
}

.nav {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; justify-content: center;
  overflow: hidden;
}
.nav ul {
  display: flex; flex-wrap: nowrap; gap: 22px; justify-content: safe center;
  max-width: 100%; margin: 0 0 -28px;
  padding-bottom: 28px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-padding-inline: 8px 56px;
}
.nav ul,
.pc-pills,
.pc-table-wrap {
  scrollbar-width: none;
  -ms-overflow-style: none;
  clip-path: inset(0 0 18px 0);
}
.nav ul::-webkit-scrollbar,
.pc-pills::-webkit-scrollbar,
.pc-table-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.nav li { flex: none; }
.nav a {
  position: relative;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  padding-block: 6px; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--cyan-strong); transition: width .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.nav ul.is-more,
.pc-pills.is-more {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent);
}
.nav ul.is-overflow,
.pc-pills.is-overflow,
.nav ul.is-overflow a,
.pc-pills.is-overflow button {
  cursor: grab;
}
html.is-drag-scroll,
html.is-drag-scroll * {
  cursor: grabbing !important;
  user-select: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch {
  display: inline-flex; align-items: center; height: 36px;
  padding: 0 14px 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
}
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  border: 0; margin: 0; background-color: transparent;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right center; background-size: 10px 6px;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink); cursor: pointer; padding: 0 20px 0 0; line-height: 1;
}
html[lang="th"] {
  --font: "Leelawadee UI", "Noto Sans Thai", Tahoma, "Segoe UI", sans-serif;
}
html[lang="th"] body { line-height: 1.75; }
html[lang="th"] .nav a,
html[lang="th"] .lang-switch select {
  letter-spacing: 0; text-transform: none; font-weight: 600;
}
html[lang="th"] .nav a { font-size: .82rem; }
.header-actions .btn,
.footer-whatsapp,
.pc-card__foot .btn,
.pc-table .btn {
  padding: var(--cta-pad);
  font-size: var(--cta-font);
  letter-spacing: .1em;
  gap: var(--cta-gap);
}
.header-actions .btn__wa,
.footer-whatsapp .btn__wa { width: var(--cta-icon); height: var(--cta-icon); }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  padding: 0; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
}

.hero__panel { position: relative; z-index: 1; flex: 1; display: flex; background: transparent; }

.hero__inner {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 68px var(--gutter) 48px;
  display: flex; flex-direction: column;
}
.hero__copy {
  position: static;
  max-width: 70%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  container-type: inline-size;
  container-name: hero-copy;
}
.hero h1 {
  margin-bottom: 22px;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.45rem, 6.2vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: .22em 0 .2em;
  margin: -.18em 0 -.16em;
}
.hero__line > span {
  display: block;
  white-space: nowrap;
}
html[lang="th"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
html[lang="th"] .hero__line { padding-top: .28em; margin-top: -.18em; }
@supports (width: 1cqi) {
  .hero h1 { font-size: min(5.1rem, 9cqi); }
  html[lang="nl"] .hero h1 { font-size: min(4.35rem, 7.5cqi); }
  html[lang="th"] .hero h1 { font-size: min(3.6rem, 8cqi); }
  html[lang="ru"] .hero h1 { font-size: min(4.15rem, 7.2cqi); letter-spacing: 0; }
}
.hero .doctor-card {
  margin-top: 0;
  margin-left: 0;
  align-self: flex-start;
}

.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 0; }
.hero__mask { overflow: hidden; max-width: 540px; padding-block: 3px; margin-block: -3px; }
.hero__cta p { max-width: 540px; margin: 0; font-size: var(--quote); font-weight: 500; color: #0f4457; line-height: 1.5; letter-spacing: -.01em; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.doctor-card {
  margin: 0; display: flex; align-items: center; gap: 14px;
  padding: 12px 26px 12px 14px; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-sm); max-width: 430px;
}
.doctor-card__clip,
.doctor-card__body { display: contents; }
html[lang="nl"] .doctor-card { max-width: 450px; }
html[lang="th"] .doctor-card { max-width: 400px; }
html[lang="ru"] .doctor-card { max-width: 470px; }
html[lang="ru"] .nav ul { gap: 10px; }
html[lang="ru"] .nav a { letter-spacing: 0; font-size: .64rem; }
html[lang="ru"] .header-actions .btn { letter-spacing: 0; font-size: 10px; padding: 8px 10px; }
.doctor-card img { width: 56px; height: 56px; border-radius: 0; object-fit: contain; flex: none; }
.doctor-card figcaption { display: grid; gap: 6px; min-width: 0; padding-block: 2px; }
.doctor-card strong { color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.2; }
.doctor-card .role { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-strong); font-weight: 600; }
.doctor-card .exp { font-size: .7rem; line-height: 1.4; color: var(--body); }

.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%;
  opacity: 0;
  transform: scale(1.12) translate3d(0, 2.5%, 0);
  transform-origin: 72% 42%;
}
.hero__line > span,
.hero__mask p {
  transform: translate3d(0, 110%, 0);
}
.hero__actions {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
.hero .doctor-card.is-pill {
  position: relative;
  width: var(--pill-w);
  height: var(--pill-h);
  max-width: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.hero .doctor-card.is-pill .doctor-card__clip {
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--pill-h);
  height: var(--pill-h);
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%) scale(0);
  transform-origin: center center;
}
.hero .doctor-card.is-pill .doctor-card__body {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--pill-w);
  height: var(--pill-h);
  padding: 12px 26px 12px 14px;
  transform: translateY(-50%);
  opacity: 0;
}
.hero.is-intro .hero__media img {
  animation: hero-media-in 1.35s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero.is-intro .hero__line > span,
.hero.is-intro .hero__mask p {
  animation: hero-mask .95s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero.is-intro .hero__actions {
  animation: hero-copy-in .85s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero.is-intro .doctor-card.is-pill .doctor-card__clip {
  animation: hero-pill 1.25s linear 2.2s forwards;
}
.hero.is-intro .doctor-card.is-pill .doctor-card__body {
  animation: hero-pill-in .45s ease 2.72s forwards;
}
.hero.is-intro .hero__line:nth-child(1) > span { animation-delay: .78s; }
.hero.is-intro .hero__line:nth-child(2) > span { animation-delay: .94s; }
.hero.is-intro .hero__mask p { animation-delay: 1.1s; }
.hero.is-intro .hero__actions { animation-delay: 1.28s; }
@keyframes hero-media-in {
  from { opacity: 0; transform: scale(1.12) translate3d(0, 2.5%, 0); }
  to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); }
}
@keyframes hero-mask {
  from { transform: translate3d(0, 110%, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hero-pill {
  0% {
    width: var(--pill-h);
    height: var(--pill-h);
    transform: translateY(-50%) scale(0);
    transform-origin: center center;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  40% {
    width: var(--pill-h);
    height: var(--pill-h);
    transform: translateY(-50%) scale(1);
    transform-origin: center center;
  }
  42% {
    width: var(--pill-h);
    height: var(--pill-h);
    transform: translateY(-50%) scale(1);
    transform-origin: left center;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  100% {
    width: var(--pill-w);
    height: var(--pill-h);
    transform: translateY(-50%) scale(1);
    transform-origin: left center;
  }
}
@keyframes hero-pill-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Feature bar ------------------------------------------------------------ */
.sec-features { background: var(--cream); padding-block: 40px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feature + .feature { border-left: 1px solid rgba(13, 58, 77, .12); padding-left: 28px; }
.feature__title {
  display: block;
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
}
.feature p { display: block; margin: 0; font-size: .82rem; color: var(--body); line-height: 1.5; }

/* About ------------------------------------------------------------------ */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.about__copy .lead { max-width: 520px; margin-bottom: 18px; font-size: .92rem; }
.about__copy h2 { margin-bottom: 22px; }

.about__approach {
  margin-top: 28px;
}

.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; object-position: center 22%; aspect-ratio: 4 / 4.4; }
.about__media .badge-spin { left: -58px; top: 46%; }

/* Services --------------------------------------------------------------- */
.sec-services { background: var(--cream); }
.services { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.service-list { display: grid; gap: 24px; }

.service-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.service-card__thumb { overflow: hidden; }
.service-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; min-height: 180px;
  transform: scale(1); transform-origin: center;
  transition: transform .22s ease;
}
.service-card:hover .service-card__thumb img { transform: scale(1.05); }
.service-card__body { position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.service-card__body h3 { margin-bottom: 8px; }
.service-card__body p:last-of-type { font-size: .82rem; }

/* Lifestyle areas -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 36px; align-items: start; }
.step { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0; text-align: center; }
.step__icon { width: 160px; height: 160px; overflow: hidden; flex: none; border-radius: var(--radius-lg); }
.step__icon img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: 0; max-width: 260px; }
.step h3 { margin-bottom: 10px; font-size: clamp(1.28rem, 1.8vw, 1.55rem); }
.step p { font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.55; margin: 0; }

/* Marquee ---------------------------------------------------------------- */
.sec-marquee { padding-block: 34px; }
.ticker { overflow: hidden; width: 100%; }
.ticker__track { display: flex; width: max-content; animation: ticker 30s linear infinite; will-change: transform; }
.ticker__group { display: flex; align-items: center; flex: none; flex-wrap: nowrap; }
.ticker__group span { white-space: nowrap; flex: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker--display { padding-block: 8px; }
.ticker--display .ticker__group { gap: 34px; padding-right: 34px; }
.ticker--display .ticker__group span:not(.ticker__star) {
  font-size: var(--h-ticker);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.45;
  color: var(--ink);
}
html[lang="th"] .ticker--display .ticker__group span:not(.ticker__star) {
  line-height: 1.75;
}
.ticker--display .ticker__star {
  color: var(--cyan-strong); font-size: 2rem;
}

.ticker--logos .ticker__track { animation-duration: 42s; }
.ticker--logos .ticker__group { gap: 34px; padding-right: 34px; }
.ticker--logos .ticker__group span {
  font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b7c8ce;
  white-space: nowrap;
}
.ticker--logos .ticker__dot { color: var(--cyan); letter-spacing: 0; }

/* Appointment CTA -------------------------------------------------------- */
.cta-banner { position: relative; min-height: 460px; display: grid; align-items: end; overflow: hidden; }
.cta-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 52%; }

/* Research + FAQ --------------------------------------------------------- */
.research { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.research__copy h2 { max-width: 440px; margin-bottom: 20px; }
.research__copy .eyebrow { margin-bottom: 14px; }
.research__copy .strong { color: var(--ink); font-weight: 600; font-size: .95rem; }
.research__copy p { font-size: .85rem; }

.faq { display: grid; gap: 12px; }
.faq__item { background: #f8fbfc; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 0; background: transparent; text-align: left;
  font-size: .85rem; font-weight: 500; color: var(--ink);
}
.faq__icon {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cyan); color: var(--ink);
  transition: transform .3s ease;
}
.faq__icon svg { width: 12px; height: 12px; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__panel p { padding: 0 18px 18px; font-size: .82rem; margin: 0; }
.faq__panel a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Partner logos ---------------------------------------------------------- */
.sec-logos { padding-block: 44px; border-block: 1px solid var(--border); }

/* Testimonials ----------------------------------------------------------- */
.sec-testimonials { background: var(--cyan-soft); padding-block: 64px; }
.testimonial { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.testimonial__media { overflow: hidden; border-radius: var(--radius); min-height: 220px; }
.testimonial__media img { width: 100%; height: 100%; border-radius: var(--radius); object-fit: cover; object-position: center top; min-height: 220px; max-height: 340px; }
.testimonial__card {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 26px 30px; display: flex; flex-direction: column;
}
.testimonial__head { display: grid; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.testimonial__head strong { color: var(--ink); }
.testimonial__head span { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-strong); font-weight: 600; }
.testimonial__mark { width: 34px; color: var(--cyan); margin-bottom: 12px; }
.testimonial__quote { margin: 0; font-size: var(--quote); color: var(--ink); line-height: 1.5; letter-spacing: -.01em; }
.testimonial__nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.testimonial__nav button {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.testimonial__nav button:hover { background: var(--ink); color: #fff; }
.testimonial__dots { display: flex; gap: 7px; margin-left: 6px; }
.testimonial__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cfe4eb; }
.testimonial__dots button[aria-current="true"] { background: var(--cyan-strong); width: 22px; border-radius: 999px; }

.review-invite {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
}
.review-invite h3 { margin: 0 0 14px; }
.review-invite p { margin: 0 0 12px; font-size: .85rem; }
.review-invite p:last-child { margin-bottom: 0; }
.review-invite a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Approved peptides ------------------------------------------------------ */
.sec-products { padding-top: 40px; }
.products-foot {
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
}

/* 7. Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: #a9c3cd; padding-top: 80px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr; gap: 48px; padding-bottom: 56px; align-items: start; }
.footer-title { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 20px; font-weight: 600; }
.footer-news h3 { color: #fff; margin-bottom: 10px; max-width: 300px; }
.footer-note { max-width: 290px; font-size: .84rem; margin-bottom: 20px; }

.footer-col a { display: block; font-size: .85rem; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.footer-social a:hover { background: var(--cyan); color: var(--ink-deep); border-color: var(--cyan); }
.footer-social svg { width: 15px; height: 15px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
}
.footer-bottom nav { display: flex; gap: 22px; }

.footer-disclaimer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-disclaimer p {
  margin: 0;
  max-width: 920px;
  font-size: .75rem;
  line-height: 1.65;
  color: #8eacb6;
}
.footer-disclaimer strong {
  color: #d7e6eb;
  font-weight: 600;
}

/* 8. Section manager ----------------------------------------------------- */
.sm-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600;
  box-shadow: var(--shadow-md);
}
.sm-panel {
  position: fixed; right: 20px; bottom: 74px; z-index: 121;
  width: 300px; max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 16px;
  display: none;
}
.sm-panel.is-open { display: block; }
.sm-panel h4 { font-size: .9rem; margin-bottom: 4px; }
.sm-panel .sm-hint { font-size: .74rem; margin-bottom: 14px; }
.sm-list { display: grid; gap: 6px; }
.sm-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fbfcfd; font-size: .8rem; color: var(--ink);
}
.sm-item.is-hidden { opacity: .45; }
.sm-item__name { flex: 1; }
.sm-item button {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: .72rem;
}
.sm-item button:hover { background: var(--cyan-soft); }
.sm-item button:disabled { opacity: .35; cursor: not-allowed; }
.sm-item button:disabled:hover { background: #fff; }
.sm-actions { display: flex; gap: 8px; margin-top: 14px; }
.sm-actions button { flex: 1; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: .76rem; }
.sm-actions button:hover { background: var(--cyan-soft); }
.sm-status { margin-top: 10px; font-size: .72rem; min-height: 1.1em; color: var(--cyan-strong); }
[data-section].is-hidden { display: none !important; }

/* 9. Motion -------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero.is-intro .hero__media img {
    animation: hero-media-in 1.35s cubic-bezier(.16, 1, .3, 1) forwards !important;
  }
  .hero.is-intro .hero__line > span,
  .hero.is-intro .hero__mask p {
    animation: hero-mask .95s cubic-bezier(.16, 1, .3, 1) forwards !important;
  }
  .hero.is-intro .hero__actions {
    animation: hero-copy-in .85s cubic-bezier(.16, 1, .3, 1) forwards !important;
  }
  .hero.is-intro .doctor-card.is-pill .doctor-card__clip {
    animation: hero-pill 1.25s linear 2.2s forwards !important;
  }
  .hero.is-intro .doctor-card.is-pill .doctor-card__body {
    animation: hero-pill-in .45s ease 2.72s forwards !important;
  }
  .hero.is-intro .hero__line:nth-child(1) > span { animation-delay: .78s !important; }
  .hero.is-intro .hero__line:nth-child(2) > span { animation-delay: .94s !important; }
  .hero.is-intro .hero__mask p { animation-delay: 1.1s !important; }
  .hero.is-intro .hero__actions { animation-delay: 1.28s !important; }
  /* the scrolling strips are content, not decoration — slow them right down
     rather than freezing them mid-loop */
  .ticker__track {
    animation-duration: 90s !important;
    animation-iteration-count: infinite !important;
  }
  .badge-spin svg {
    animation-duration: 40s !important;
    animation-iteration-count: infinite !important;
  }
}

/* 10. Responsive --------------------------------------------------------- */
@media (min-width: 1025px) and (min-height: 700px) {
  .hero {
    height: calc(100dvh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    container-type: size;
    container-name: hero;
  }
  .hero__inner {
    padding-top: clamp(24px, 10cqh, 68px);
    padding-bottom: clamp(24px, 6.6cqh, 48px);
  }
  .hero__copy { padding-bottom: clamp(48px, 9cqh, 80px); }
  .hero .doctor-card { margin-top: 12px; }
  .hero h1 { margin-bottom: clamp(12px, 3.8cqh, 22px); }
  .hero__cta { margin-bottom: 0; }
}

@media (max-width: 1180px) {
  :root { --sec-space: 84px; }
  .nav ul { gap: 18px; }
  .research { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 118px; }
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .nav {
    position: static; order: 3; flex: 1 0 100%;
    display: block; max-height: none; overflow: hidden;
    margin-inline: calc(var(--gutter) * -1);
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .nav ul {
    justify-content: flex-start; gap: 20px;
    width: auto; max-width: none;
    margin-bottom: -28px;
    padding: 0 var(--gutter) 28px;
  }
  .nav li { border-bottom: 0; }
  .nav a { display: inline-block; padding: 12px 0; }

  .hero { min-height: calc(100dvh - var(--header-h)); height: auto; }
  .hero__media { position: static; aspect-ratio: 4 / 5; }
  .hero__media img { object-position: 68% 40%; transform-origin: 68% 40%; }
  .hero__inner { padding: 40px var(--gutter) 48px; }
  .hero__copy {
    position: static;
    transform: none;
    max-width: none;
    flex: none;
    justify-content: flex-start;
  }
  .hero .doctor-card { margin-left: 0; align-self: flex-start; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .feature + .feature { border-left: 0; padding-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid rgba(13, 58, 77, .12); padding-left: 28px; }

  .about, .services, .testimonial { grid-template-columns: 1fr; gap: 44px; }
  .about__media .badge-spin { left: auto; right: 18px; top: 18px; width: 96px; height: 96px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --sec-space: 64px; --gutter: 18px; --header-h: 108px; }
  .sec-head { margin-bottom: 36px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .header-actions .btn,
  .footer-whatsapp,
  .pc-card__foot .btn,
  .pc-table .btn { padding: 9px 14px; font-size: .64rem; }
  .header-actions .btn__mark { display: none; }

  .hero__cta { gap: 16px; }
  .hero__cta p, .hero__mask { max-width: none; }

  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { border-left: 0; padding-left: 0; }
  .feature + .feature { border-top: 1px solid rgba(13, 58, 77, .12); padding-top: 16px; }

  .service-card { grid-template-columns: 1fr; }
  .service-card__thumb img { min-height: 200px; }
  .service-card__body { padding: 22px; }
  .steps, .research { grid-template-columns: 1fr; }
  .testimonial__card { padding: 22px 20px; }
  .testimonial__mark { width: 28px; }
  .cta-banner { min-height: 380px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .footer-disclaimer p { max-width: none; }
  .sm-panel { right: 12px; left: 12px; width: auto; }
  .pc-grid { grid-template-columns: 1fr; }
  .pc-toolbar { flex-direction: column; align-items: stretch; }
  .pc-toolbar__aside { justify-content: space-between; }
}

@media (max-width: 400px) {
  .header-actions .btn,
  .footer-whatsapp,
  .pc-card__foot .btn,
  .pc-table .btn { padding: 8px 12px; font-size: .62rem; }
  .header-actions .btn__wa,
  .footer-whatsapp .btn__wa { width: 15px; height: 15px; }
  .nav-toggle { width: 36px; height: 36px; }
  .brand strong { font-size: 1.02rem; }
}

/* 11. Peptide catalog ---------------------------------------------------- */
.pc-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: #d5d2cd;
  padding: 72px 0 64px;
}
.pc-hero__media {
  position: absolute;
  inset: 0;
}
.pc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.pc-hero--copy .pc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .97) 22%, rgba(255, 255, 255, .72) 38%, rgba(255, 255, 255, .28) 52%, rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}
.pc-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.pc-hero__copy h1 {
  max-width: 720px;
  color: var(--ink);
}
.pc-hero__copy .sub {
  color: var(--ink);
  max-width: 460px;
}
.page-catalog .pc-catalog { padding-top: 36px; }

.pc-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.pc-search {
  flex: 1; min-width: min(260px, 100%); display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.pc-search svg { flex: none; color: var(--body); }
.pc-search input {
  width: 100%; border: 0; outline: 0; font: inherit; font-size: .9rem; color: var(--ink); background: transparent;
}
.pc-toolbar__aside { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-sort { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--body); }
.pc-sort select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .8rem; letter-spacing: 0; text-transform: none; font-weight: 500;
  color: var(--ink); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 36px 10px 14px; cursor: pointer;
  background-color: #fff;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 14px center; background-size: 10px 6px;
}
.pc-view { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pc-view button {
  padding: 10px 14px; border: 0; background: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--body);
}
.pc-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.pc-filters { margin-bottom: 22px; overflow: hidden; }
.pc-filter-label {
  margin: 0 0 10px; font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--body);
}
.pc-pills {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin-bottom: -28px; padding-bottom: 28px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-padding-inline: 4px 56px;
}
.pc-pills::-webkit-scrollbar { display: none; width: 0; height: 0; }
.pc-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; font-size: .72rem; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.pc-pill span {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--cyan-soft); font-size: .64rem;
}
.pc-pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pc-pill[aria-pressed="true"] span { background: rgba(255,255,255,.16); color: #fff; }

.pc-count { margin: 0 0 22px; font-size: .85rem; color: var(--body); }

.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pc-card {
  display: flex; flex-direction: column;
  padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  color: inherit; cursor: pointer;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
a.pc-card { text-decoration: none; }
.pc-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }

html.has-gsap .pc-card,
html.has-gsap .service-card { transition: none; }
html.has-gsap .pc-card__media img,
html.has-gsap .service-card__thumb img { transition: none; }
html.has-gsap .pc-card:hover,
html.has-gsap .service-card:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
html.has-gsap .pc-card:hover .pc-card__media img,
html.has-gsap .service-card:hover .service-card__thumb img { transform: none; }
.pc-card__media { position: relative; overflow: hidden; background: #f3f3f3; }
.pc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .1);
  pointer-events: none;
}
.pc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 12;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform .22s ease;
}
.pc-card__photo {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; text-align: left; border-radius: 0;
}
.pc-card__photo:hover .pc-card__media img,
.pc-card:hover .pc-card__media img { transform: scale(1.06); }
.pc-card__body { display: flex; flex-direction: column; gap: 14px; padding: 24px; flex: 1; }
.pc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; margin-bottom: -4px; }
.pc-kicker {
  margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .12em; line-height: 1.35;
  text-transform: uppercase; color: var(--body);
}
.pc-card__title { display: flex; flex-direction: column; gap: 4px; }
.pc-card h3 { line-height: 1.3; }
.pc-aliases { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--body); }
.pc-blurb {
  margin: 0; font-size: .875rem; line-height: 1.7; color: var(--body);
}
.pc-meta {
  display: grid; margin: 0;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.pc-meta > div { padding: 16px 18px; }
.pc-meta > div + div { border-top: 1px solid var(--border); }
.pc-meta dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; line-height: 1.35;
  text-transform: uppercase; color: var(--body); margin-bottom: 6px;
}
.pc-meta dd { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--ink); font-weight: 600; }
.pc-effects-label {
  margin: 0 0 8px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; line-height: 1.35;
  text-transform: uppercase; color: var(--body);
}
.pc-effects {
  margin: 0;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--body);
}
.pc-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.pc-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink);
}
.pc-icon-btn.is-saved { background: var(--cyan-soft); border-color: var(--cyan); color: var(--ink); }
.pc-empty { padding: 40px 0; color: var(--body); }

.pc-badge {
  display: inline-flex; align-items: center; width: max-content; max-width: 100%;
  padding: 4px 9px; border-radius: 999px; line-height: 1.35;
  font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pc-badge--fda { background: #e4f7ee; color: #1f7a4d; }
.pc-badge--investigational { background: var(--cyan-soft); color: var(--ink); }
.pc-badge--research { background: #f8efe3; color: #9a5b16; }
.pc-badge--unapproved { background: #fdecea; color: #b42318; }

.pc-table-clip {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.pc-table-wrap {
  overflow-x: auto;
  margin-bottom: -20px;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pc-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pc-table th {
  text-align: left; padding: 14px 16px; background: var(--ink); color: #fff;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; white-space: nowrap;
}
.pc-table td { padding: 16px; border-top: 1px solid var(--border); vertical-align: middle; font-size: .82rem; white-space: nowrap; }
.pc-table td strong { display: block; color: var(--ink); font-size: .95rem; }
.pc-table td .pc-aliases { display: block; color: var(--body); font-size: .75rem; margin-top: 4px; white-space: nowrap; }
.pc-table tbody tr:hover { background: #f8fbfc; }
.pc-table .pc-badge { margin-top: 0; }
.pc-table__dose { display: block; font-weight: 600; color: var(--ink); }
.pc-table__freq { display: block; color: var(--body); margin-top: 4px; }
.pc-table td:nth-child(4) { white-space: normal; min-width: 200px; }
.pc-table td:last-child { width: 1%; }

.pc-dialog {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 24px; background: rgba(8, 42, 57, .5);
}
.pc-dialog[hidden] { display: none; }
.pc-dialog__panel {
  position: relative; width: min(540px, 100%); max-height: 90vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); padding: 0;
  box-shadow: var(--shadow-md); overflow: hidden;
}
#pcDialogBody { overflow: auto; flex: 1; min-height: 0; }
.pc-dialog p { margin: 0; }
.pc-dialog__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: grid; place-items: center; padding: 0;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .96); color: var(--ink); line-height: 0;
  box-shadow: 0 1px 4px rgba(13, 58, 77, .16);
}
.pc-dialog__close svg { display: block; }
.pc-dialog .pc-card__media { margin: 0; border-radius: 0; }
.pc-dialog .pc-card__media img { aspect-ratio: 16 / 14; }
.pc-dialog__content {
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px 56px 32px 32px;
}
.pc-dialog__intro { display: flex; flex-direction: column; gap: 8px; }
.pc-dialog__head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-start; gap: 8px 10px;
}
.pc-dialog__head .pc-kicker { margin: 0; max-width: calc(100% - 8px); }
.pc-dialog__head .pc-badge { margin: 0; }
.pc-dialog__panel h2 {
  margin: 0;
}
.pc-dialog .pc-aliases { margin: 0; }
.pc-dialog .pc-blurb { font-size: .9rem; line-height: 1.7; }
.pc-dialog .pc-meta {
  grid-template-columns: 1fr 1fr; gap: 0; margin: 0;
}
.pc-dialog .pc-meta > div { padding: 16px 18px; }
.pc-dialog .pc-meta > div + div {
  border-top: 0; border-left: 1px solid var(--border);
}
.pc-effects-block { margin: 0; }
.pc-dialog-note {
  margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .8rem; line-height: 1.65; color: var(--body);
}
.pc-dialog .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 1100px) {
  .pc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-toolbar { flex-direction: column; align-items: stretch; }
  .pc-toolbar__aside { justify-content: space-between; }
  .pc-hero { min-height: 260px; padding: 48px 0 40px; }
  .pc-hero__media img { object-position: 72% center; }
  .pc-dialog { padding: 10px; }
  .pc-dialog .pc-meta { grid-template-columns: 1fr; }
  .pc-dialog .pc-meta > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .pc-dialog__content { padding: 22px 52px 26px 20px; }
}

/* 12. Blog -------------------------------------------------------------- */
.blog-feature, .blog-follow { scroll-margin-top: 88px; }
.blog-feed > article:last-child { margin-bottom: 96px; }
.blog-feature__media { width: 100%; background: #e8eef1; }
.blog-feature__media img {
  display: block; width: 100%; height: min(42vh, 420px);
  object-fit: cover; object-position: center;
}
.blog-article__inner { max-width: 760px; padding: 44px 0 72px; }
.blog-feature h1 {
  margin: 10px 0 18px;
}
.blog-lede {
  margin: 0 0 28px;
  font-size: 1.15rem; line-height: 1.65; color: var(--ink);
}
.blog-follow {
  padding: 56px 0 8px;
  border-top: 1px solid var(--border);
}
.blog-follow__inner { max-width: 760px; }
.blog-follow__head { display: contents; }
.blog-follow__media {
  margin: 0 0 28px; width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; background: #f3f3f3;
}
.blog-follow__media img {
  display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center;
}
.blog-follow__intro { margin-bottom: 22px; }
.blog-follow h2 {
  margin: 8px 0 12px;
}
.blog-follow .blog-lede { font-size: 1.02rem; margin-bottom: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.blog-card a { display: block; color: inherit; }
.blog-card__media { overflow: hidden; background: #f3f3f3; }
.blog-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card__body { padding: 20px 22px 22px; }
.blog-card h2 { font-size: var(--h3); margin: 6px 0 10px; }
.blog-card__excerpt { margin: 0; font-size: .8125rem; line-height: 1.5; }

.blog-post-page { padding: 48px 0 80px; }
.blog-post { max-width: 760px; }
.blog-back { margin-bottom: 22px; }
.blog-back a { color: var(--ink); font-size: .85rem; font-weight: 600; }
.blog-post__media { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; }
.blog-post__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-post h1 { margin: 8px 0 22px; }
.blog-body { font-size: 1.02rem; line-height: 1.7; color: var(--body); }
.blog-body h2, .blog-body h3 { margin: 1.4em 0 .5em; }
.blog-body p { margin: 0 0 1rem; }
.blog-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.blog-body ul, .editor-surface ul { margin: 0 0 1rem; padding-left: 1.2em; list-style: disc; }
.blog-body ol, .editor-surface ol { margin: 0 0 1rem; padding-left: 1.2em; list-style: decimal; }
.blog-body blockquote, .editor-surface blockquote {
  margin: 0 0 1rem; padding: 8px 0 8px 16px; border-left: 3px solid var(--cyan);
  color: var(--ink);
}

.admin-main { padding: 48px 0 80px; min-height: 70vh; }
.admin-login { max-width: 420px; }
.admin-login h1, .admin-toolbar h1 { margin-bottom: 8px; }
.admin-form, .admin-editor { display: grid; gap: 14px; margin-top: 24px; }
.admin-form label, .admin-editor label { display: grid; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--body); }
.admin-form input, .admin-editor input[type="text"], .admin-editor input:not([type="checkbox"]):not([type="file"]) {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink);
}
.admin-check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); }
.admin-error { margin: 0; color: #b42318; font-size: .85rem; }
.admin-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.admin-row strong { display: block; color: var(--ink); }
.admin-row span { display: block; font-size: .78rem; color: var(--body); margin-top: 4px; }
.admin-row__actions { display: flex; gap: 8px; }
.admin-upload { display: grid; gap: 10px; }
.admin-upload img { width: 100%; max-width: 360px; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-toolbar button {
  min-width: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: .78rem; font-weight: 600; color: var(--ink);
}
.editor-toolbar button:hover { border-color: var(--ink); }
.editor-surface {
  min-height: 280px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; line-height: 1.65; color: var(--ink); background: #fff;
}
.editor-surface:focus { outline: 3px solid var(--cyan-strong); outline-offset: 2px; }
.admin-actions { display: flex; gap: 10px; }

@media (max-width: 720px) {
  .blog-follow__media { margin-bottom: 22px; }
  .admin-row { flex-direction: column; align-items: stretch; }
}

/* 13. Legal pages ------------------------------------------------------- */
.legal-page { padding: 64px 0 96px; }
.legal { max-width: 760px; }
.legal h1 { margin: 0 0 10px; }
.legal-updated { margin: 0 0 32px; font-size: .85rem; color: var(--body); }
.legal h2 { margin: 2em 0 .55em; font-size: 1.2rem; }
.legal p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.7; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2em; list-style: disc; }
.legal li { margin: 0 0 .45em; font-size: .95rem; line-height: 1.65; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 14. COA reports ------------------------------------------------------- */
.coa-reports {
  padding: 64px 0 96px;
  background: #fff;
}
.coa-feature {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px 36px;
  align-items: center;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.coa-feature__cover {
  display: block;
  min-height: 280px;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 10px;
}
.coa-feature__cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}
.coa-feature__body {
  max-width: none;
  min-width: 0;
  padding: 8px 8px 8px 0;
}
.coa-feature__body .chip { margin-bottom: 18px; }
.coa-feature__body h2 {
  margin: 0 0 14px;
}
.coa-feature__body p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.65;
}
.coa-feature__meta {
  margin: 0 0 28px !important;
  font-size: .82rem !important;
  letter-spacing: .04em;
  color: var(--body);
}
.coa-feature .btn svg { flex: none; }

@media (max-width: 800px) {
  .coa-feature {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .coa-feature__cover,
  .coa-feature__cover img { min-height: 220px; }
  .coa-feature__body {
    padding: 0;
  }
}

/* 15. Handling guide ---------------------------------------------------- */
.guide-hero .pc-hero__copy { max-width: 640px; }
.guide-page {
  padding: 48px 0 80px;
  background: #fff;
}
.guide { max-width: var(--container); }

.guide-rx {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid #f0e2a8;
  border-radius: 8px;
  background: #fff8dc;
  color: var(--ink);
}
.guide-rx__label {
  display: block;
  margin: 0 0 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a12;
}
.guide-rx p { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.55; }

.guide-foot {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.guide-foot p {
  margin: 0 0 1em;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--body);
}
.guide-foot p:last-child { margin-bottom: 0; }

.guide-sheet {
  margin: 0 0 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.guide-card {
  scroll-margin-top: calc(var(--header-h) + 12px);
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 12px 36px;
  align-items: start;
  padding: 28px 32px;
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.guide-sheet .guide-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 28px 32px 26px;
}
.guide-card:last-child { border-bottom: 0; }
.guide-card--plain {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
}
.guide-card--plain .guide-card__body {
  padding-left: 0;
  border-left: 0;
}
.guide-card--plain h2 { font-size: 1.35rem; }
.guide-card__side { min-width: 0; }
.guide-fig { margin: 0; }
.guide-fig img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
}
.guide-card__body {
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.guide-sheet .guide-card__body {
  padding-left: 0;
  border-left: 0;
}
.guide-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 18px;
}
.guide-row h2 { flex: 1 1 220px; }
.guide-row .guide-label { margin: 2px 0 0; flex: none; }
.guide-main {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 8px 36px;
  align-items: start;
}
.guide-copy > :last-child { margin-bottom: 0; }
.guide-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.guide-card h3 { margin: 18px 0 6px; }
.guide-card p,
.guide-card li { font-size: .95rem; line-height: 1.7; }
.guide-card ul,
.guide-card ol {
  margin: 8px 0 1rem;
  padding-left: 1.25em;
}
.guide-card ul { list-style: disc; }
.guide-card ol { list-style: decimal; }
.guide-card li { margin: 0 0 .55em; }
.guide-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.guide-card .source-list p { margin: 3px 0 0; color: var(--body); font-size: .9rem; }
.guide-card .source-list li { margin: 0 0 16px; }

.guide-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.guide-label--ok { background: #e7f6ee; color: #1d6b45; }
.guide-label--spec { background: var(--cyan-soft); color: var(--ink); }
.guide-label--limit { background: var(--cream); color: #8a5a22; }

.guide-source { margin-top: 16px !important; font-size: .88rem !important; color: var(--body); }
.guide-source strong { color: var(--ink); }
.guide-small { font-size: .88rem !important; color: var(--body); }

@media (max-width: 800px) {
  .guide-page { padding-top: 32px; }
  .guide-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 18px;
  }
  .guide-sheet .guide-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 16px;
  }
  .guide-main { grid-template-columns: 1fr; }
  .guide-card__body {
    padding-left: 0;
    border-left: 0;
  }
  .guide-card--plain { padding: 0; }
}

@media print {
  .site-header, .site-footer { display: none; }
  .guide-page { padding: 0; background: #fff; }
  .guide-card, .guide-rx { break-inside: avoid; }
}
