/* ==========================================================================
   Debraj Pharma — storefront design system
   Mobile-first. No framework. Tokens → primitives → components → utilities.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — clinical teal, the colour of a dispensary counter, not a casino */
  --c-brand-950: #04211f;
  --c-brand-900: #06312f;
  --c-brand-800: #084a45;
  --c-brand-700: #0b6b64;
  --c-brand-600: #0d857c;
  --c-brand-500: #14a196;
  --c-brand-300: #6fcdc4;
  --c-brand-100: #c9ece8;
  --c-brand-050: #edf8f7;

  /* Ink — navy-leaning neutrals */
  --c-ink-900: #0b1a2b;
  --c-ink-800: #16283d;
  --c-ink-700: #24384f;
  --c-ink-600: #3d5268;
  --c-ink-500: #5b6b80;
  --c-ink-400: #7c8b9e;
  --c-ink-300: #a3b0be;
  --c-ink-200: #cbd4de;
  --c-ink-100: #e3e9ef;
  --c-ink-050: #f1f5f8;

  --c-surface: #ffffff;
  --c-surface-soft: #f6f9fb;
  --c-surface-sunk: #eef3f7;
  --c-border: #e3e9ef;
  --c-border-strong: #cbd4de;

  /* Signals */
  --c-wa: #25d366;
  --c-wa-ink: #0f7a3d;
  --c-wa-dark: #1da851;
  --c-accent: #f59e0b;
  --c-accent-soft: #fef3c7;
  --c-danger: #dc2626;
  --c-danger-soft: #fee2e2;
  --c-ok: #059669;
  --c-ok-soft: #d1fae5;
  --c-info: #2563eb;
  --c-info-soft: #dbeafe;
  --c-warn: #b45309;
  --c-warn-soft: #fef3c7;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  /* Spacing — 4pt base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(11, 26, 43, 0.06);
  --sh-sm: 0 1px 3px rgba(11, 26, 43, 0.08), 0 1px 2px rgba(11, 26, 43, 0.04);
  --sh-md: 0 4px 12px rgba(11, 26, 43, 0.08), 0 2px 4px rgba(11, 26, 43, 0.04);
  --sh-lg: 0 12px 32px rgba(11, 26, 43, 0.12), 0 4px 8px rgba(11, 26, 43, 0.04);
  --sh-xl: 0 24px 56px rgba(11, 26, 43, 0.16);
  --sh-brand: 0 8px 20px rgba(13, 133, 124, 0.28);
  --sh-wa: 0 8px 20px rgba(37, 211, 102, 0.32);

  --container: 1200px;
  --header-h: 68px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  /* "clip" (unlike "hidden") does not create a scroll container, so
     position: sticky on the header keeps working. */
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink-700);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--c-brand-700); text-decoration: none; }
a:hover { color: var(--c-brand-600); }

h1, h2, h3, h4, h5 {
  color: var(--c-ink-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

ul, ol { padding-left: 1.25em; }

hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-8) 0; }

:focus-visible {
  outline: 3px solid var(--c-brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--c-brand-100); color: var(--c-brand-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--c-brand-700);
  color: #fff;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }

.section { padding-block: var(--s-12); }
.section--tight { padding-block: var(--s-8); }
.section--soft { background: var(--c-surface-soft); }
.section--sunk { background: var(--c-surface-sunk); }

@media (min-width: 768px) {
  .section { padding-block: var(--s-20); }
  .section--tight { padding-block: var(--s-12); }
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand-600);
  margin-bottom: var(--s-2);
}

.section__title { font-size: var(--fs-2xl); }
.section__sub { color: var(--c-ink-500); max-width: 60ch; margin-top: var(--s-2); }

@media (min-width: 768px) {
  .section__title { font-size: var(--fs-3xl); }
}

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--c-brand-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.6875rem var(--s-5);
  font-size: var(--fs-base);
  font-weight: 650;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink-700); --btn-bd: var(--c-border-strong); }
.btn--ghost:hover { --btn-bg: var(--c-surface-soft); --btn-bd: var(--c-brand-300); --btn-fg: var(--c-brand-700); }

.btn--soft { --btn-bg: var(--c-brand-050); --btn-fg: var(--c-brand-800); }
.btn--soft:hover { --btn-bg: var(--c-brand-100); }

.btn--dark { --btn-bg: var(--c-ink-900); }
.btn--danger { --btn-bg: var(--c-danger); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink-900); }

.btn--lg { padding: 0.875rem var(--s-6); font-size: var(--fs-md); border-radius: var(--r-md); }
.btn--sm { padding: 0.4375rem var(--s-3); font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

.btn__icon { flex: none; width: 1.125em; height: 1.125em; }

/* The primary order action. Deliberately the loudest control on the page. */
.btn--order {
  --btn-bg: var(--c-wa);
  --btn-fg: #05331a;
  width: 100%;
  padding: 0.9375rem var(--s-5);
  font-size: var(--fs-md);
  font-weight: 750;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  box-shadow: var(--sh-wa);
}
.btn--order:hover { --btn-bg: var(--c-wa-dark); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4); }
.btn--order .btn__icon { width: 1.375em; height: 1.375em; }

/* --------------------------------------------------------------------------
   5. Badges & pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.1875rem 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.4;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.badge--ok    { background: var(--c-ok-soft);     color: #065f46; }
.badge--bad   { background: var(--c-danger-soft); color: #991b1b; }
.badge--warn  { background: var(--c-warn-soft);   color: var(--c-warn); }
.badge--info  { background: var(--c-info-soft);   color: #1e40af; }
.badge--muted { background: var(--c-ink-050);     color: var(--c-ink-500); }
.badge--brand { background: var(--c-brand-050);   color: var(--c-brand-800); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3125rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  color: var(--c-ink-600);
}

/* Rx / schedule markers */
.rx-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.25rem 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-sm);
  background: var(--c-brand-050);
  color: var(--c-brand-800);
  border: 1px solid var(--c-brand-100);
}

.rx-flag--sched {
  background: var(--c-warn-soft);
  color: var(--c-warn);
  border-color: #fde68a;
}

.discount-badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  padding: 0.25rem 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 750;
  color: #fff;
  background: var(--c-accent);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--c-brand-900);
  color: var(--c-brand-100);
  font-size: var(--fs-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 36px;
  padding-block: var(--s-1);
}

.topbar__list { display: flex; align-items: center; gap: var(--s-5); list-style: none; padding: 0; margin: 0; }

/* Items that are plain <li> (not links) need their own gap, otherwise the
   icon sits flush against the text — e.g. the clock beside the hours. */
.topbar__list li { display: inline-flex; align-items: center; gap: 0.45em; }
.topbar__list li svg { flex: none; }
.topbar a { color: var(--c-brand-100); display: inline-flex; align-items: center; gap: 0.375em; }
.topbar a:hover { color: #fff; }
/* Phone numbers and hours must never break mid-value. */
.topbar__list li,
.topbar__list a { white-space: nowrap; }

/* Scoped through .topbar__list so it outranks the `.topbar__list li` display
   rule declared earlier. Without the extra specificity the email and hours
   reappeared on phones and wrapped the bar onto four lines. */
.topbar__list li.topbar__hide { display: none; }

@media (min-width: 768px) {
  .topbar__list li.topbar__hide { display: inline-flex; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--dur) var(--ease);
}

.header.is-stuck { box-shadow: var(--sh-md); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}

/* Allowed to shrink so the tagline can ellipsis instead of forcing overflow. */
.brand { display: inline-flex; align-items: center; gap: var(--s-3); flex: 0 1 auto; min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }

/* Name and tagline need their own line-heights, otherwise the descenders of
   the name sit on top of the tagline. */
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: var(--fs-md);
  font-weight: 750;
  line-height: 1.25;
  color: var(--c-ink-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Kept on every screen size. If the tagline is longer than the space, it
   truncates with an ellipsis rather than wrapping into the name or pushing
   the header wider. */
.brand__tag {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--c-ink-400);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav { display: none; margin-left: auto; min-width: 0; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: var(--s-2) 0.6875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink-600);
  border-radius: var(--r-sm);
  white-space: nowrap;            /* never wrap a menu label */
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover { color: var(--c-brand-700); background: var(--c-brand-050); }
.nav__link.is-active { color: var(--c-brand-700); }

.nav__caret {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}
.nav__trigger[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__trigger[aria-expanded="true"] { color: var(--c-brand-700); background: var(--c-brand-050); }

/* Dropdown panel */
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 120;
  width: 340px;
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease-out), visibility 180ms;
}

.nav__item--menu.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }

.nav__menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;                    /* hover bridge, so the panel does not flicker */
}

.nav__menu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }

.nav__menu-link {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  color: var(--c-ink-700);
  transition: background-color var(--dur) var(--ease);
}
.nav__menu-link:hover { background: var(--c-brand-050); color: var(--c-brand-800); }

.nav__menu-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--c-brand-050);
  color: var(--c-brand-700);
}
.nav__menu-icon svg { width: 17px; height: 17px; }
.nav__menu-link:hover .nav__menu-icon { background: var(--c-brand-100); }

.nav__menu-title { display: block; font-weight: 650; font-size: var(--fs-base); color: var(--c-ink-900); }
.nav__menu-sub { display: block; font-size: var(--fs-xs); color: var(--c-ink-400); line-height: 1.45; }

.nav__menu-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding: var(--s-3);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-brand-700);
}
.nav__menu-all:hover { color: var(--c-brand-600); }

.header__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; flex: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__actions { margin-left: var(--s-2); }
}

/* Between 1024 and 1180 the row is tight — tighten padding rather than shrink
   the text, so labels stay readable. */
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav__link { padding-inline: 0.5rem; }
  .header__actions .btn { padding-inline: 0.625rem; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-ink-700);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  /* The panel parks off-screen via translateX(100%); without this it widens
     the document and the whole page scrolls sideways on a phone. */
  overflow: hidden;
}

.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 43, 0.5);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(88vw, 340px);
  background: var(--c-surface);
  padding: var(--s-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; }

.drawer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-2);
  font-weight: 600;
  color: var(--c-ink-800);
  border-bottom: 1px solid var(--c-border);
}
.drawer__link:hover { color: var(--c-brand-700); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-brand-950);
  color: #fff;
  isolation: isolate;
}

/* All slides share a single grid cell, so the track grows to fit the TALLEST
   slide instead of clipping it. With absolute positioning a long headline
   overflowed the fixed height and got cut off by the hero's overflow:hidden. */
.hero__track {
  position: relative;
  display: grid;
  min-height: 460px;
}

@media (min-width: 768px) { .hero__track { min-height: 560px; } }

.hero__slide {
  grid-area: 1 / 1;
  position: relative;          /* containing block for .hero__bg / .hero__veil */
  /* Own stacking context, always. Without this an active slide (opacity:1)
     creates none, and its z-index:-2 background escapes to the hero and can
     paint under a neighbouring slide. */
  isolation: isolate;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 700ms;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.is-active .hero__bg { animation: kenburns 14s var(--ease) forwards; }
.hero__slide[data-anim="fade"].is-active .hero__bg { animation: none; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 33, 31, 0.94) 0%, rgba(4, 33, 31, 0.78) 45%, rgba(4, 33, 31, 0.35) 100%),
    radial-gradient(120% 90% at 15% 50%, rgba(13, 133, 124, 0.4), transparent 60%);
}

.hero__content { max-width: 40rem; padding-block: var(--s-12); }

@media (min-width: 768px) {
  .hero__content { padding-block: var(--s-16); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3125rem 0.75rem;
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand-100);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
}

.hero__title {
  font-size: clamp(1.875rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: var(--s-4);
}

.hero__body {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: var(--s-8);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Staggered reveal on the active slide */
.hero__slide.is-active .hero__eyebrow { animation: rise 600ms var(--ease-out) both; }
.hero__slide.is-active .hero__title   { animation: rise 600ms 80ms var(--ease-out) both; }
.hero__slide.is-active .hero__body    { animation: rise 600ms 160ms var(--ease-out) both; }
.hero__slide.is-active .hero__actions { animation: rise 600ms 240ms var(--ease-out) both; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: var(--s-6);
  z-index: 3;
  display: flex;
  gap: var(--s-2);
  transform: translateX(-50%);
}

.hero__dot {
  width: 32px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.32);
  transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease);
}
.hero__dot.is-active { background: #fff; width: 48px; }

@media (min-width: 768px) {
  .hero__dots { left: auto; right: var(--s-8); transform: none; }
}

/* ---- Hero artwork -------------------------------------------------------
   Sits above the slides so it persists as they change. Pointer-events off so
   it never blocks the buttons underneath. ------------------------------- */

.hero__art {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  /* Mobile: fully on-screen in the bottom-right, soft enough to read over. */
  right: 3%;
  bottom: 3%;
  width: 44%;
  max-width: 165px;
  opacity: 0.5;
}

/* Tablet: the artwork moves beside the copy, so both have to be narrower or
   they collide. */
@media (min-width: 768px) {
  .hero__art {
    right: 1%;
    bottom: auto;
    top: 50%;
    width: 32%;
    max-width: 320px;
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (min-width: 1024px) {
  .hero__art { right: 2%; width: 40%; max-width: 420px; }
}

@media (min-width: 1200px) {
  .hero__art { right: 5%; max-width: 470px; }
}

.hero__art svg { width: 100%; height: auto; overflow: visible; }

/* Gentle drift on the whole composition */
.hero__art-float { animation: art-float 7s var(--ease) infinite alternate; transform-origin: center; }
.hero__art-float--slow { animation-duration: 9s; }
.hero__art-float--fast { animation-duration: 5.5s; }

@keyframes art-float {
  from { transform: translateY(-7px); }
  to   { transform: translateY(7px); }
}

/* Capsule tumbling slowly */
.hero__art-spin { animation: art-spin 18s linear infinite; transform-origin: center; }

@keyframes art-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ECG trace drawing itself, then resetting */
.hero__art-pulse {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: art-trace 3.2s var(--ease) infinite;
}

@keyframes art-trace {
  0%   { stroke-dashoffset: 260; opacity: 0; }
  12%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Halo rings breathing outward */
.hero__art-ring { animation: art-ring 4s var(--ease-out) infinite; transform-origin: center; }
.hero__art-ring--2 { animation-delay: 1.3s; }
.hero__art-ring--3 { animation-delay: 2.6s; }

@keyframes art-ring {
  0%   { transform: scale(0.72); opacity: 0; }
  35%  { opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Sparkle dots */
.hero__art-twinkle { animation: art-twinkle 3s var(--ease) infinite; }
.hero__art-twinkle--2 { animation-delay: 0.9s; }
.hero__art-twinkle--3 { animation-delay: 1.8s; }

@keyframes art-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.9;  transform: scale(1.15); }
}

/* Give the copy room so it never runs under the artwork */
@media (min-width: 768px) {
  .hero__content { max-width: 27rem; }
}

@media (min-width: 1024px) {
  .hero__content { max-width: 32rem; }
}

@media (min-width: 1200px) {
  .hero__content { max-width: 36rem; }
}

@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   8. Trust bar
   -------------------------------------------------------------------------- */

.trustbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-4);
  padding-block: var(--s-6);
}

.trust {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.trust__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-brand-050);
  color: var(--c-brand-700);
}
.trust__icon svg { width: 20px; height: 20px; }

.trust__title { font-size: var(--fs-base); font-weight: 700; color: var(--c-ink-900); }
.trust__text { font-size: var(--fs-sm); color: var(--c-ink-500); }

/* --------------------------------------------------------------------------
   9. Cards — category
   -------------------------------------------------------------------------- */

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-brand-500), var(--c-brand-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease-out);
}

.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--c-brand-100); }
.cat-card:hover::after { transform: scaleX(1); }

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--c-brand-050);
  color: var(--c-brand-700);
}
.cat-card__icon svg { width: 26px; height: 26px; }

.cat-card__title { font-size: var(--fs-lg); }
.cat-card__text { font-size: var(--fs-sm); color: var(--c-ink-500); flex: 1; }

.cat-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-brand-700);
}

/* --------------------------------------------------------------------------
   10. Cards — product
   -------------------------------------------------------------------------- */

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.p-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--c-brand-100); }

.p-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--c-brand-050), var(--c-surface-sunk));
  overflow: hidden;
}

.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--s-5);
  transition: transform 420ms var(--ease-out);
}
.p-card:hover .p-card__media img { transform: scale(1.05); }

.p-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }

.p-card__cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brand-600);
}

.p-card__title { font-size: var(--fs-lg); line-height: 1.25; }
.p-card__title a { color: inherit; }
.p-card__title a:hover { color: var(--c-brand-700); }

.p-card__generic { font-size: var(--fs-sm); color: var(--c-ink-400); margin-top: -0.375rem; }

.p-card__flags { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.p-card__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.price__now { font-size: var(--fs-xl); font-weight: 750; color: var(--c-ink-900); letter-spacing: -0.02em; }
.price__was { font-size: var(--fs-sm); color: var(--c-ink-400); text-decoration: line-through; }
.price__save { font-size: var(--fs-xs); font-weight: 700; color: var(--c-ok); }
.price__unit { font-size: var(--fs-xs); color: var(--c-ink-400); width: 100%; }

/* The CTA stack — Order Now dominant, Schedule Order beneath it */
.p-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  padding-top: 0;
  border-top: 0;
}

.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-1);
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.qty__label { font-size: var(--fs-xs); font-weight: 650; color: var(--c-ink-500); padding-left: var(--s-2); }
.qty__group { display: flex; align-items: center; gap: var(--s-1); }

.qty__btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-ink-700);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.qty__btn:hover:not(:disabled) { background: var(--c-brand-050); color: var(--c-brand-700); border-color: var(--c-brand-300); }
.qty__btn:disabled { opacity: 0.4; cursor: not-allowed; }

.qty__input {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-base);
  background: transparent;
  border: 0;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.p-card__note {
  display: flex;
  align-items: center;
  gap: 0.375em;
  font-size: var(--fs-xs);
  color: var(--c-ink-400);
  justify-content: center;
}
.p-card__note svg { width: 13px; height: 13px; flex: none; }

/* --------------------------------------------------------------------------
   11. Product detail
   -------------------------------------------------------------------------- */

.pdp { display: grid; gap: var(--s-8); }

@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: var(--s-12); }
}

.pdp__gallery {
  position: relative;
  background: linear-gradient(160deg, var(--c-brand-050), var(--c-surface-sunk));
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pdp__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: var(--s-8); }

.pdp__buy {
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.pdp__title { font-size: var(--fs-2xl); }
.pdp__strength { font-size: var(--fs-base); color: var(--c-ink-500); font-weight: 600; }

.pdp__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--c-surface-soft);
  border-radius: var(--r-md);
}

.spec__label { font-size: var(--fs-xs); color: var(--c-ink-400); font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; }
.spec__value { font-size: var(--fs-base); font-weight: 650; color: var(--c-ink-800); }

.prose { color: var(--c-ink-600); }
.prose h2 { font-size: var(--fs-xl); margin-block: var(--s-8) var(--s-3); }
.prose h3 { font-size: var(--fs-lg); margin-block: var(--s-6) var(--s-2); }
.prose p { margin-bottom: var(--s-4); }
.prose ul, .prose ol { margin-bottom: var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--r-md); margin-block: var(--s-6); }
.prose blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--c-brand-500);
  background: var(--c-brand-050);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-ink-700);
}
.prose > :first-child { margin-top: 0; }

.callout {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: var(--fs-sm);
}
.callout__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.callout--warn { background: var(--c-warn-soft); border-color: #fde68a; color: #78350f; }
.callout--info { background: var(--c-info-soft); border-color: #bfdbfe; color: #1e3a8a; }
.callout--brand { background: var(--c-brand-050); border-color: var(--c-brand-100); color: var(--c-brand-900); }
.callout--danger { background: var(--c-danger-soft); border-color: #fecaca; color: #7f1d1d; }
.callout strong { display: block; margin-bottom: 0.125rem; }

.tabs { border-bottom: 1px solid var(--c-border); display: flex; gap: var(--s-1); overflow-x: auto; }

.tabs__btn {
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-base);
  font-weight: 650;
  color: var(--c-ink-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tabs__btn:hover { color: var(--c-brand-700); }
.tabs__btn.is-active { color: var(--c-brand-700); border-bottom-color: var(--c-brand-600); }

.tabs__panel { padding-top: var(--s-6); }
.tabs__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }

.field__label { font-size: var(--fs-sm); font-weight: 650; color: var(--c-ink-800); }
.field__label .req { color: var(--c-danger); }
.field__hint { font-size: var(--fs-xs); color: var(--c-ink-400); }
.field__error { font-size: var(--fs-xs); color: var(--c-danger); font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.625rem var(--s-3);
  font-size: var(--fs-base);
  color: var(--c-ink-800);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-brand-500);
  box-shadow: 0 0 0 3px var(--c-brand-050);
}

.input::placeholder, .textarea::placeholder { color: var(--c-ink-300); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-danger); }

.textarea { min-height: 120px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  padding-right: var(--s-8);
}

.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--c-brand-600); }

/* Drop zone for prescription upload */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  background: var(--c-surface-soft);
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--c-brand-500); background: var(--c-brand-050); }
.dropzone__icon { width: 36px; height: 36px; color: var(--c-brand-600); }
.dropzone__title { font-weight: 650; color: var(--c-ink-800); font-size: var(--fs-base); }
.dropzone__hint { font-size: var(--fs-xs); color: var(--c-ink-400); }
.dropzone input[type="file"] { display: none; }

.filechip {
  display: none;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-brand-050);
  border: 1px solid var(--c-brand-100);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.filechip.is-shown { display: flex; }
.filechip__name { flex: 1; font-weight: 600; color: var(--c-brand-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip__clear { color: var(--c-ink-500); font-weight: 700; padding: 0 var(--s-2); }

/* --------------------------------------------------------------------------
   13. Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 43, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.modal.is-open .modal__scrim { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__panel--wide { width: min(100%, 760px); }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--c-border);
}

.modal__title { font-size: var(--fs-lg); }
.modal__sub { font-size: var(--fs-sm); color: var(--c-ink-500); margin-top: var(--s-1); }

.modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  color: var(--c-ink-500);
  transition: background-color var(--dur) var(--ease);
}
.modal__close:hover { background: var(--c-surface-soft); color: var(--c-ink-900); }

.modal__body { padding: var(--s-6); overflow-y: auto; flex: 1; }
.modal__foot {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-soft);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.modal__foot .btn { flex: 1; }

.steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); }
.step {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--c-border);
}
.step.is-done { background: var(--c-brand-500); }

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */

.review {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  height: 100%;
}

.review__text { color: var(--c-ink-600); flex: 1; font-size: var(--fs-base); }

.review__who { display: flex; align-items: center; gap: var(--s-3); }

.review__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--c-brand-100);
  color: var(--c-brand-800);
  font-weight: 750;
  font-size: var(--fs-sm);
  overflow: hidden;
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }

.review__name { font-weight: 700; color: var(--c-ink-900); font-size: var(--fs-base); }
.review__place { font-size: var(--fs-xs); color: var(--c-ink-400); }

.stars { display: inline-flex; gap: 1px; font-size: var(--fs-md); letter-spacing: 1px; }
.stars__star { color: var(--c-ink-200); }
.stars__star.is-filled { color: var(--c-accent); }

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-8);
}
.rating-summary__score { font-size: var(--fs-4xl); font-weight: 750; color: var(--c-ink-900); line-height: 1; }
.rating-summary__bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: var(--s-1); }
.rating-bar { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-ink-500); }
.rating-bar__track { flex: 1; height: 6px; background: var(--c-ink-100); border-radius: var(--r-pill); overflow: hidden; }
.rating-bar__fill { height: 100%; background: var(--c-accent); border-radius: var(--r-pill); }

/* --------------------------------------------------------------------------
   15. Videos
   -------------------------------------------------------------------------- */

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-ink-900);
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out), opacity var(--dur) var(--ease); }
.video-card__thumb:hover img { transform: scale(1.05); opacity: 0.85; }

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-card__play span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh-lg);
  transition: transform var(--dur) var(--ease);
}
.video-card__thumb:hover .video-card__play span { transform: scale(1.1); }
.video-card__play svg { width: 22px; height: 22px; color: var(--c-danger); margin-left: 3px; }

.video-card__body { padding: var(--s-4) var(--s-5); }
.video-card__title { font-size: var(--fs-base); font-weight: 700; color: var(--c-ink-900); }
.video-card__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
  margin-top: var(--s-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__frame { aspect-ratio: 16 / 9; }
.video-card__frame iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   16. Blog
   -------------------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.post-card__media { aspect-ratio: 16 / 9; background: var(--c-surface-sunk); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.05); }

.post-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-ink-400); }
.post-card__title { font-size: var(--fs-lg); line-height: 1.3; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--c-brand-700); }
.post-card__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   17. Breadcrumbs, pagination, tables
   -------------------------------------------------------------------------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-ink-400); list-style: none; padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--c-ink-300); }
.crumbs a { color: var(--c-ink-500); }
.crumbs a:hover { color: var(--c-brand-700); }
.crumbs [aria-current] { color: var(--c-ink-800); font-weight: 600; }

.pagination { display: flex; justify-content: center; margin-top: var(--s-10); }
.pagination__list { display: flex; flex-wrap: wrap; gap: var(--s-1); list-style: none; padding: 0; margin: 0; }

.pagination__link {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-ink-600);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
}
.pagination__link:hover:not(.is-disabled):not(.is-current) { border-color: var(--c-brand-300); color: var(--c-brand-700); background: var(--c-brand-050); }
.pagination__link.is-current { background: var(--c-brand-700); border-color: var(--c-brand-700); color: #fff; }
.pagination__link.is-disabled { opacity: 0.4; }
.pagination__ellipsis { display: grid; place-items: center; min-width: 28px; height: 40px; color: var(--c-ink-300); }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--c-border); }
.table th { font-weight: 700; color: var(--c-ink-500); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; background: var(--c-surface-soft); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--c-surface-soft); }

/* --------------------------------------------------------------------------
   18. Order tracking stepper
   -------------------------------------------------------------------------- */

.stepper { display: flex; flex-direction: column; gap: 0; }

.stepper__item { display: flex; gap: var(--s-4); }
.stepper__rail { display: flex; flex-direction: column; align-items: center; flex: none; }

.stepper__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-border-strong);
  color: var(--c-ink-300);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.stepper__dot svg { width: 14px; height: 14px; }

.stepper__line { width: 2px; flex: 1; min-height: 28px; background: var(--c-border); }

.stepper__item.is-done .stepper__dot { background: var(--c-brand-600); border-color: var(--c-brand-600); color: #fff; }
.stepper__item.is-done .stepper__line { background: var(--c-brand-500); }
.stepper__item.is-current .stepper__dot { border-color: var(--c-brand-600); color: var(--c-brand-700); box-shadow: 0 0 0 4px var(--c-brand-050); }
.stepper__item.is-bad .stepper__dot { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }

.stepper__body { padding-bottom: var(--s-5); }
.stepper__title { font-weight: 700; color: var(--c-ink-800); font-size: var(--fs-base); }
.stepper__item:not(.is-done):not(.is-current) .stepper__title { color: var(--c-ink-400); }
.stepper__time { font-size: var(--fs-xs); color: var(--c-ink-400); }

/* --------------------------------------------------------------------------
   19. Floating channels
   -------------------------------------------------------------------------- */

.fab {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 150;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: var(--s-3);
}

.fab__toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  box-shadow: var(--sh-wa);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.fab__toggle:hover { transform: scale(1.06); }
.fab__toggle svg { width: 30px; height: 30px; }
.fab__toggle[aria-expanded="true"] { background: var(--c-ink-800); box-shadow: var(--sh-lg); }
.fab__toggle[aria-expanded="true"] .fab__icon-open { display: none; }
.fab__toggle:not([aria-expanded="true"]) .fab__icon-close { display: none; }

.fab__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-wa);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.fab__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.fab__item {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.fab.is-open .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__item:nth-child(1) { transition-delay: 40ms; }
.fab.is-open .fab__item:nth-child(2) { transition-delay: 80ms; }
.fab.is-open .fab__item:nth-child(3) { transition-delay: 120ms; }
.fab.is-open .fab__item:nth-child(4) { transition-delay: 160ms; }
.fab.is-open .fab__item:nth-child(5) { transition-delay: 200ms; }

.fab__link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2);
  background: var(--c-surface);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  color: var(--c-ink-800);
  font-weight: 650;
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: transform var(--dur) var(--ease);
}
.fab__link:hover { transform: translateX(-3px); color: var(--c-ink-900); }

.fab__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  color: #fff;
}
.fab__badge svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   20. Footer + activity ticker
   -------------------------------------------------------------------------- */

/* Floating card, bottom-left. Sits clear of the contact FAB in the
   bottom-right corner and never pushes page content around. */
.ticker {
  position: fixed;
  left: var(--s-4);
  bottom: var(--s-4);
  z-index: 140;
  /* A definite width, not max-width. The rotating lines are absolutely
     positioned, so they add no intrinsic width — an auto-sized pill collapsed
     the slot to zero and showed only the label. */
  width: min(94vw, 540px);
  background: rgba(4, 33, 31, 0.94);
  backdrop-filter: blur(10px) saturate(160%);
  color: var(--c-brand-100);
  border: 1px solid rgba(111, 205, 196, 0.25);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: ticker-in 520ms var(--ease-out) both;
}

@keyframes ticker-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Neutralise the .container class that also sits on this element. */
.ticker__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: auto;
  max-width: none;
  min-height: 46px;
  margin: 0;
  padding: var(--s-2) var(--s-5) var(--s-2) var(--s-2);
  font-size: var(--fs-sm);
}

/* Phones: keep it narrow and clear of the floating contact button. */
@media (max-width: 560px) {
  .ticker {
    left: var(--s-3);
    right: var(--s-3);
    bottom: 88px;         /* sits above the floating contact button */
    width: auto;          /* left+right pin the width */
  }
  .ticker__inner { padding-right: var(--s-4); gap: var(--s-2); min-height: 42px; }

  /* Icon only — the heading is a bare text node, so collapse it with
     font-size rather than display:none, which cannot target a text node.
     That hands the full width to the message so city names are not clipped.
     Scoped through .ticker so it outranks the base rule declared later. */
  .ticker .ticker__label { font-size: 0; gap: 0; }
  .ticker .ticker__item { font-size: var(--fs-xs); }
}

.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-brand-300);
  white-space: nowrap;
}

.ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: blip 2s var(--ease-out) infinite;
}

/* WhatsApp mark in the strip label, with the same live pulse. */
.ticker__mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--c-wa);
  color: #04211f;
  position: relative;
}
.ticker__mark svg { width: 14px; height: 14px; }
.ticker__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-wa);
  animation: blip-ring 2.2s var(--ease-out) infinite;
}

@keyframes blip-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes blip {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ticker__slot { flex: 1; min-width: 0; position: relative; height: 1.5rem; }

.ticker__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker__item.is-active { opacity: 1; transform: none; }
.ticker__item em { font-style: normal; color: #fff; font-weight: 650; }
.ticker__age { color: var(--c-brand-300); font-size: var(--fs-xs); }

/* Statements about the pharmacy, shown before any order has been verified.
   Deliberately styled differently from an order line so it cannot be
   mistaken for a purchase notification. */
.ticker__note { color: rgba(255, 255, 255, 0.82); }
.ticker__note::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--c-brand-300);
  vertical-align: middle;
}

.footer { background: var(--c-brand-900); color: var(--c-brand-100); }

.footer__grid {
  display: grid;
  gap: var(--s-8);
  padding-block: var(--s-12);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-10); } }

.footer h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-4);
}

.footer__text { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.66); }

.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer__list a { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); }
.footer__list a:hover { color: #fff; }

.footer__contact { display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--fs-sm); }
.footer__contact-row { display: flex; gap: var(--s-3); align-items: flex-start; color: rgba(255, 255, 255, 0.72); }
.footer__contact-row svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--c-brand-300); }
.footer__contact-row a { color: rgba(255, 255, 255, 0.72); }
.footer__contact-row a:hover { color: #fff; }

.footer__licence {
  padding: var(--s-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.footer__licence strong { color: #fff; display: block; margin-bottom: var(--s-1); }

.footer__icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: var(--s-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
}
.footer__icons-item {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-brand-300);
}
.footer__icons-item svg { width: 19px; height: 19px; }

.footer__social { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}
.footer__bar a { color: rgba(255, 255, 255, 0.7); }
.footer__bar a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   21. Flash, empty states, misc
   -------------------------------------------------------------------------- */

.flash-stack { position: fixed; top: calc(var(--header-h) + var(--s-3)); right: var(--s-4); z-index: 400; display: flex; flex-direction: column; gap: var(--s-2); max-width: min(92vw, 420px); }

.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-sm);
  font-weight: 550;
  background: var(--c-surface);
  border-left: 4px solid var(--c-ink-300);
  animation: rise 320ms var(--ease-out) both;
}
.flash--success { border-left-color: var(--c-ok); color: #065f46; }
.flash--error { border-left-color: var(--c-danger); color: #991b1b; }
.flash__close { margin-left: auto; color: var(--c-ink-400); font-weight: 700; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-16) var(--s-6);
  text-align: center;
  background: var(--c-surface-soft);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-lg);
}
.empty__icon { width: 44px; height: 44px; color: var(--c-ink-300); }
.empty__title { font-size: var(--fs-lg); color: var(--c-ink-700); }
.empty__text { font-size: var(--fs-sm); color: var(--c-ink-400); max-width: 42ch; }

.page-head {
  background: linear-gradient(140deg, var(--c-brand-900), var(--c-brand-700));
  color: #fff;
  padding-block: var(--s-12);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 90% 10%, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.page-head__title { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.page-head__sub { color: rgba(255, 255, 255, 0.78); max-width: 60ch; margin-top: var(--s-2); }
.page-head .crumbs { margin-bottom: var(--s-4); }
.page-head .crumbs a, .page-head .crumbs [aria-current] { color: rgba(255, 255, 255, 0.8); }
.page-head .crumbs li + li::before { color: rgba(255, 255, 255, 0.4); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.toolbar__count { font-size: var(--fs-sm); color: var(--c-ink-500); }

.tts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  font-size: var(--fs-xs);
  color: var(--c-brand-100);
}
.tts-toggle svg { width: 14px; height: 14px; }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--s-2); } .stack-3 { gap: var(--s-3); }
.stack-4 { gap: var(--s-4); } .stack-6 { gap: var(--s-6); }

.row { display: flex; align-items: center; }
.row-2 { gap: var(--s-2); } .row-3 { gap: var(--s-3); } .row-4 { gap: var(--s-4); }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.grow { flex: 1; }

.tc { text-align: center; }
.tr { text-align: right; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.muted { color: var(--c-ink-400); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }

.hide { display: none !important; }
@media (min-width: 768px) { .hide-md { display: none !important; } }
@media (max-width: 767px) { .show-md { display: none !important; } }

/* --------------------------------------------------------------------------
   23. Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .hero__slide.is-active .hero__bg { animation: none; }
}

@media print {
  .header, .footer, .fab, .ticker, .topbar, .modal, .flash-stack, .pagination { display: none !important; }
  body { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}