@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/geistmono-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Pharmion Landing Page: Design System */
:root {
  --green-900: #0c3221;
  --green-800: #154d31;
  --green-700: #1f6b43;
  --green-600: #2a8755;
  --green-100: #e3ede7;
  --green-50: #eef3ef;
  --cream: #f7f6f2;
  --cream-2: #efede5;
  --paper: #ffffff;
  --ink-900: #0f1d17;
  --ink-700: #2a3a32;
  --ink-500: #5a6a62;
  --ink-300: #97a39c;
  --line: #e3e1d8;
  --line-soft: #ecebe3;
  --honey: #d4a14a;
  --honey-soft: #f4e9d2;
  --accent-ink: #1f6b43;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 0 rgba(15, 29, 23, 0.04), 0 8px 24px -12px rgba(15, 29, 23, 0.08);
  --shadow-elev: 0 1px 0 rgba(15, 29, 23, 0.04), 0 24px 60px -28px rgba(15, 29, 23, 0.18);
  --maxw: 1240px;
  --gutter: 32px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink-900);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 18px -10px rgba(31,107,67,0.6);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); border-color: #d6d3c7; }
body.dark .btn-ghost:hover { border-color: #2f3a34; }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-nav { padding: 10px 18px; font-size: 14px; }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: backdrop-filter .25s ease, background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 246, 242, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--ink-900);
}
.logo-svg {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: transparent;
  color: var(--ink-700);
}
.theme-toggle:hover { background: var(--paper); }
.theme-toggle .icon-sun { display: none; }
body.dark .theme-toggle .icon-sun { display: block; }
body.dark .theme-toggle .icon-moon { display: none; }

/* ----- Hero ----- */
.hero {
  padding: 76px 0 72px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
h1.headline {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}
h1.headline em {
  font-style: normal;
  color: var(--accent-ink);
}
.sub {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-500);
  max-width: 520px;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.sub-note {
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 500px;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.fineprint {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ink-500);
  font-size: 13px;
}
.fineprint .check {
  display: inline-flex; align-items: center; gap: 6px;
}
.fineprint .check svg { color: var(--accent-ink); }

/* ----- Hero panel: BMI checker ----- */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bmi-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.bmi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 3px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--green-700) 30%,
    var(--honey) 70%,
    transparent 100%);
  border-radius: 0 0 3px 3px;
}
.bmi-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 8px;
}
.bmi-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 18px;
}
.bmi-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.bmi-title-n {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}
.bmi-block { margin-bottom: 12px; }
.bmi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.bmi-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.bmi-seg {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--green-100);
  border-radius: 99px;
  padding: 3px;
}
.bmi-seg button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-500);
  padding: 5px 12px;
  border-radius: 99px;
  transition: background 0.15s ease, color 0.15s ease;
}
.bmi-seg button[aria-pressed="true"] { background: var(--green-700); color: #fff; }
.bmi-seg button:not([aria-pressed="true"]):hover { color: var(--accent-ink); }
.bmi-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.bmi-val .n {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--green-800);
}
.bmi-val .u { font-size: 12px; font-weight: 500; color: var(--ink-500); }
.bmi-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right,
    var(--green-700) 0%,
    var(--green-700) var(--p, 50%),
    rgba(31,107,67,0.15) var(--p, 50%),
    rgba(31,107,67,0.15) 100%);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  margin: 0 0 6px;
}
.bmi-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 99px;
  background: var(--paper);
  border: 2px solid var(--green-700);
  box-shadow: 0 4px 12px -2px rgba(15,29,23,0.18);
  cursor: grab;
  transition: transform 0.15s ease;
}
.bmi-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.bmi-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.bmi-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 99px;
  background: var(--paper);
  border: 2px solid var(--green-700);
  cursor: grab;
}
.bmi-slider:focus-visible,
.bmi-seg button:focus-visible,
.bmi-cta:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.bmi-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.bmi-result {
  border-top: 1px dashed var(--line-soft);
  margin-top: 16px;
  padding-top: 16px;
}
.bmi-band {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--accent-ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bmi-band.is-live { opacity: 1; }
.bmi-band.warn { background: var(--honey-soft); color: var(--ink-700); }
.bmi-msg {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0 0 16px;
  min-height: 63px;
}
.bmi-cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.bmi-cta.is-live {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.bmi-disclaim {
  font-size: 11.5px;
  color: var(--ink-300);
  line-height: 1.55;
  margin: 14px 0 0;
}


/* ----- Ticker ----- */
.ticker {
  background: var(--green-900);
  color: #f1ede0;
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--green-900), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  var(--green-900), transparent); }
.ticker-track {
  display: flex;
  animation: marquee 36s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(241,237,224,0.9);
}
.ticker-item .num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff;
}
.ticker-bullet {
  width: 4px; height: 4px; border-radius: 99px;
  background: var(--honey);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Section base ----- */
.section { padding: 112px 0; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-500);
  margin: 0;
  text-wrap: pretty;
}

/* ----- How it works ----- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px;
  top: 38px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--green-100) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.tl-step {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.timeline.is-shown .tl-step {
  opacity: 1;
  transform: translateY(0);
}
.tl-num {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--green-100);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transform: scale(0.6);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: inherit;
}
.timeline.is-shown .tl-num { transform: scale(1); }
.tl-step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.tl-step p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ----- Support / community ----- */
.section.support { background: var(--cream-2); }
.support-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.support-title { text-align: left; }
.support-sub { margin-bottom: 36px; }
.support-copy .section-eyebrow { text-align: left; }
.support-copy .section-title,
.support-copy .section-sub { text-align: left; margin-left: 0; }
.support-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.support-icon {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.support-feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.support-feature p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}
.support-note {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: 480px;
}

.support-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.support-ambient {
  position: absolute;
  inset: -40px -60px;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at var(--bx1) var(--by1), rgba(42,135,85,0.32), transparent 70%),
    radial-gradient(36% 34% at var(--bx2) var(--by2), rgba(212,161,74,0.26), transparent 70%),
    radial-gradient(44% 38% at var(--bx3) var(--by3), rgba(31,107,67,0.24), transparent 70%),
    radial-gradient(34% 30% at var(--bx4) var(--by4), rgba(119,174,200,0.2), transparent 70%);
  filter: blur(10px);
  animation: tgBlobs 36s linear infinite;
}
.chat-phone {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.42);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 36px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 24px 70px -24px rgba(15,29,23,0.35),
    0 8px 24px -12px rgba(15,29,23,0.12);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  background: linear-gradient(rgba(21,77,49,0.62), rgba(31,107,67,0.55));
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #f1f7f3;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.chat-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.chat-status { font-size: 11.5px; color: rgba(255,255,255,0.75); margin-top: 1px; }
.chat-body {
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 430px;
  overflow: hidden;
  transition: opacity 0.5s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g fill='none' stroke='rgba(31,107,67,0.09)' stroke-width='1.5' stroke-linecap='round'><path d='M28 30c-3-5-10-3-10 2 0 4 6 7 10 10 4-3 10-6 10-10 0-5-7-7-10-2z'/><path d='M100 18c8 0 14 6 14 14-8 0-14-6-14-14z'/><circle cx='142' cy='64' r='5'/><path d='M44 92l3 6 6 3-6 3-3 6-3-6-6-3 6-3z'/><path d='M104 124c4-4 8 4 12 0'/><path d='M24 138v10M19 143h10'/><circle cx='78' cy='72' r='3'/><path d='M138 128c0-4 3-7 7-7'/></g></svg>");
}
.chat-body.is-resetting { opacity: 0; }
.chat-day { text-align: center; margin-bottom: 2px; }
.chat-day span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 4px 10px;
  border-radius: 999px;
}
.chat-msg {
  position: relative;
  max-width: 82%;
  padding: 9px 12px 8px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-900);
  display: none;
}
.chat-msg.is-shown {
  display: block;
  animation: msgSpring 0.4s cubic-bezier(0.2, 0.9, 0.35, 1.2) both;
}
.chat-msg.in.is-shown { transform-origin: left bottom; }
.chat-msg.out.is-shown { transform-origin: right bottom; }
@keyframes msgSpring {
  from { opacity: 0; transform: scale(0.82) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-msg .chat-text { display: inline; }
.chat-msg.in {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.7);
  border-top-left-radius: 5px;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(15,29,23,0.06);
}
.chat-msg.in::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -8px;
  border-right: 9px solid rgba(255,255,255,0.68);
  border-bottom: 10px solid transparent;
}
.chat-msg.out {
  background: rgba(42,135,85,0.2);
  border: 1px solid rgba(42,135,85,0.12);
  border-top-right-radius: 5px;
  align-self: flex-end;
}
.chat-msg.out::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -8px;
  border-left: 9px solid rgba(42,135,85,0.2);
  border-bottom: 10px solid transparent;
}
.chat-ticks {
  width: 15px;
  height: 10px;
  margin-left: 4px;
  vertical-align: -1px;
  color: #4d9ec4;
}
.chat-sender {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}
.chat-sender.coach { color: var(--accent-ink); }
.chat-sender.m1 { color: #b0722a; }
.chat-sender.m2 { color: #3e7896; }
.chat-sender.m3 { color: #8a5fa8; }
.chat-sender.m4 { color: #c25b4e; }
.chat-time {
  display: inline-block;
  font-size: 10px;
  color: var(--ink-300);
  margin-left: 8px;
  transform: translateY(2px);
}
.chat-react {
  position: absolute;
  bottom: -10px;
  left: 10px;
  font-size: 10.5px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 2px 7px;
  box-shadow: 0 1px 3px rgba(15,29,23,0.08);
}
.chat-msg:has(.chat-react) { margin-bottom: 10px; }

/* Apple-style typing bubble: small, with thought-tail circles */
.chat-typing {
  position: relative;
  align-self: flex-start;
  display: none;
  gap: 5px;
  align-items: center;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 18px;
  padding: 12px 15px;
  margin-left: 6px;
  box-shadow: 0 1px 3px rgba(15,29,23,0.06);
}
.chat-typing.is-on {
  display: inline-flex;
  animation: msgSpring 0.3s cubic-bezier(0.2, 0.9, 0.35, 1.2) both;
  transform-origin: left bottom;
}
.chat-typing::before,
.chat-typing::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.7);
}
.chat-typing::before {
  width: 9px; height: 9px;
  left: -3px; bottom: -3px;
}
.chat-typing::after {
  width: 5px; height: 5px;
  left: -9px; bottom: -9px;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--ink-300);
  animation: appleDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes appleDot {
  0%, 60%, 100% { opacity: 0.35; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1.12); }
}

/* Pharmion CTA message bubble */
.chat-msg-cta {
  background: var(--green-700) !important;
  border-color: var(--green-700) !important;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -8px rgba(31,107,67,0.55);
}
.chat-msg-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(31,107,67,0.65);
}
.chat-msg-cta:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.chat-msg-cta::before { border-right-color: var(--green-700) !important; }
.chat-msg-cta .cta-sender {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
}
.cta-sender-mark { width: 14px; height: 14px; color: #fff; }
.chat-msg-cta .chat-text svg { vertical-align: -1px; margin-left: 2px; }
.chat-msg-cta .chat-time { color: rgba(255,255,255,0.6); }
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 14px;
}
.chat-input-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  color: var(--ink-300);
}
.chat-input-field {
  flex: 1;
  font-size: 13px;
  color: var(--ink-300);
}
.chat-mic {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(31,107,67,0.85);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(31,107,67,0.5);
}

/* ----- Compare table ----- */
.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;
}
.section.compare { padding-top: 0; }
.compare-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th,
.compare-table td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: middle;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-500);
  border-bottom: 1px solid var(--line-soft);
  padding-top: 20px;
  padding-bottom: 18px;
}
.compare-table tbody tr + tr th,
.compare-table tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}
.compare-table tbody th {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  width: 38%;
}
.compare-table td {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}
.compare-table .col-pharmion {
  background: var(--green-50);
  width: 34%;
}
.compare-table td.col-pharmion {
  display: table-cell;
  color: var(--ink-700);
}
.compare-table td.col-pharmion > span:last-child { vertical-align: middle; }
.compare-check {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent-ink);
  margin-right: 9px;
  vertical-align: middle;
  flex-shrink: 0;
}
.compare-logo {
  height: 20px;
  width: auto;
  display: block;
  color: var(--ink-900);
}

/* ----- Why Pharmion ----- */
.section.why {
  background: var(--cream-2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
}
.why-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.why-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

/* ----- Animated CTA card ----- */
@property --bx1 { syntax: "<percentage>"; inherits: false; initial-value: 15%; }
@property --by1 { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --bx2 { syntax: "<percentage>"; inherits: false; initial-value: 85%; }
@property --by2 { syntax: "<percentage>"; inherits: false; initial-value: 25%; }
@property --bx3 { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --by3 { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --bx4 { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --by4 { syntax: "<percentage>"; inherits: false; initial-value: 85%; }
@keyframes tgBlobs {
  0%   { --bx1: 15%; --by1: 20%; --bx2: 85%; --by2: 25%; --bx3: 80%; --by3: 80%; --bx4: 20%; --by4: 85%; }
  25%  { --bx1: 85%; --by1: 25%; --bx2: 80%; --by2: 80%; --bx3: 20%; --by3: 85%; --bx4: 15%; --by4: 20%; }
  50%  { --bx1: 80%; --by1: 80%; --bx2: 20%; --by2: 85%; --bx3: 15%; --by3: 20%; --bx4: 85%; --by4: 25%; }
  75%  { --bx1: 20%; --by1: 85%; --bx2: 15%; --by2: 20%; --bx3: 85%; --by3: 25%; --bx4: 80%; --by4: 80%; }
  100% { --bx1: 15%; --by1: 20%; --bx2: 85%; --by2: 25%; --bx3: 80%; --by3: 80%; --bx4: 20%; --by4: 85%; }
}

.cta-section { padding: 96px 0; }
.cta-card {
  color: #f1ede0;
  border-radius: 28px;
  padding: 96px 48px 88px;
  position: relative;
  overflow: hidden;
  background-color: var(--green-900);
  background-image:
    radial-gradient(ellipse 70% 70% at var(--bx1) var(--by1), rgba(42,135,85,0.55), transparent 60%),
    radial-gradient(ellipse 65% 65% at var(--bx2) var(--by2), rgba(21,77,49,0.75),  transparent 60%),
    radial-gradient(ellipse 65% 65% at var(--bx3) var(--by3), rgba(212,161,74,0.25), transparent 55%),
    radial-gradient(ellipse 60% 60% at var(--bx4) var(--by4), rgba(6,22,15,0.88),   transparent 60%);
  animation: tgBlobs 28s linear infinite reverse;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.cta-sub {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(241,237,224,0.7);
  max-width: 460px;
  margin: 0 auto 36px;
}
.cta-btn {
  background: var(--honey);
  color: #2a1f0a;
  display: flex;
  margin: 0 auto 18px;
  padding: 16px 32px;
  font-size: 16px;
  width: fit-content;
}
.cta-btn:hover { background: #e6b15c; transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }
.cta-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241,237,224,0.72);
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  font-size: 13px;
  color: var(--ink-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo { margin-bottom: 16px; }
.footer h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--accent-ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 24px;
}
.footer-disclaimer + .footer-disclaimer { margin-top: -12px; }

/* ----- Dark theme ----- */
body.dark {
  background: #0c100e;
  color: #e8e6dd;
  --cream: #0c100e;
  --cream-2: #141a16;
  --paper: #161c19;
  --ink-900: #e8e6dd;
  --ink-700: #c2c0b6;
  --ink-500: #8c9088;
  --line: #232a26;
  --line-soft: #1c2320;
  --green-100: #1d3528;
  --green-50: #14201a;
  --accent-ink: #6bb28c;
}
body.dark .nav.scrolled { background: rgba(12,16,14,0.72); }
body.dark .btn-ghost { color: #e8e6dd; }
body.dark .why-card { background: #1d2521; border-color: #2a322d; }
body.dark .support-feature { background: #1d2521; border-color: #2a322d; }
body.dark .support-ambient {
  background:
    radial-gradient(42% 38% at var(--bx1) var(--by1), rgba(79,154,114,0.3), transparent 70%),
    radial-gradient(36% 34% at var(--bx2) var(--by2), rgba(212,161,74,0.2), transparent 70%),
    radial-gradient(44% 38% at var(--bx3) var(--by3), rgba(42,135,85,0.22), transparent 70%),
    radial-gradient(34% 30% at var(--bx4) var(--by4), rgba(119,174,200,0.14), transparent 70%);
}
body.dark .chat-phone {
  background: rgba(22,28,25,0.5);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 24px 70px -24px rgba(0,0,0,0.6),
    0 8px 24px -12px rgba(0,0,0,0.35);
}
body.dark .chat-header {
  background: linear-gradient(rgba(16,40,27,0.75), rgba(21,77,49,0.45));
  border-bottom-color: rgba(255,255,255,0.1);
}
body.dark .chat-avatar { background: rgba(255,255,255,0.14); }
body.dark .chat-body {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1.5' stroke-linecap='round'><path d='M28 30c-3-5-10-3-10 2 0 4 6 7 10 10 4-3 10-6 10-10 0-5-7-7-10-2z'/><path d='M100 18c8 0 14 6 14 14-8 0-14-6-14-14z'/><circle cx='142' cy='64' r='5'/><path d='M44 92l3 6 6 3-6 3-3 6-3-6-6-3 6-3z'/><path d='M104 124c4-4 8 4 12 0'/><path d='M24 138v10M19 143h10'/><circle cx='78' cy='72' r='3'/><path d='M138 128c0-4 3-7 7-7'/></g></svg>");
}
body.dark .chat-msg.in { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
body.dark .chat-msg.in::before { border-right-color: rgba(255,255,255,0.08); }
body.dark .chat-msg.out { background: rgba(107,178,140,0.16); border-color: rgba(107,178,140,0.12); }
body.dark .chat-msg.out::before { border-left-color: rgba(107,178,140,0.16); }
body.dark .chat-ticks { color: #77aec8; }
body.dark .chat-day span { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.09); }
body.dark .chat-react { background: rgba(40,48,44,0.9); border-color: rgba(255,255,255,0.12); }
body.dark .chat-typing,
body.dark .chat-typing::before,
body.dark .chat-typing::after { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
body.dark .chat-typing span { background: #8c9088; }
body.dark .chat-input-pill { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); }
body.dark .chat-mic { background: rgba(79,154,114,0.8); }
body.dark .chat-msg-cta {
  background: var(--green-600) !important;
  border-color: var(--green-600) !important;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
}
body.dark .chat-msg-cta::before { border-right-color: var(--green-600) !important; }
body.dark .chat-msg-cta:focus-visible { outline-color: var(--honey); }
body.dark .chat-sender.m1 { color: #d4a14a; }
body.dark .chat-sender.m2 { color: #77aec8; }
body.dark .chat-sender.m3 { color: #b493d1; }
body.dark .chat-sender.m4 { color: #e08a7e; }
body.dark .compare-card { background: #1d2521; border-color: #2a322d; }
body.dark .compare-table thead th,
body.dark .compare-table tbody tr + tr th,
body.dark .compare-table tbody tr + tr td { border-color: #2a322d; }
body.dark .compare-table td.col-pharmion { color: #c2c0b6; }
body.dark .compare-check { background: #1d2521; }
body.dark .bmi-card { background: #1d2521; border-color: #2a322d; }
body.dark .bmi-val .n,
body.dark .bmi-title-n { color: #f3f1e8; }
body.dark .bmi-seg { background: #141a16; border-color: #2f3a34; }
body.dark .bmi-seg button { color: #c2c0b6; }
body.dark .bmi-seg button[aria-pressed="true"] { background: var(--honey); color: #1a1410; }
body.dark .bmi-slider {
  background: linear-gradient(to right,
    var(--honey) 0%,
    var(--honey) var(--p, 50%),
    rgba(255,255,255,0.12) var(--p, 50%),
    rgba(255,255,255,0.12) 100%);
}
body.dark .bmi-slider::-webkit-slider-thumb { background: #fff; border-color: var(--honey); }
body.dark .bmi-slider::-moz-range-thumb { background: #fff; border-color: var(--honey); }
body.dark .bmi-band.warn { background: rgba(212,161,74,0.16); color: var(--honey); }
body.dark .bmi-result { border-top-color: #2a322d; }
body.dark .bmi-ends { color: #8c9088; }
body.dark .bmi-slider:focus-visible,
body.dark .bmi-seg button:focus-visible { outline-color: var(--honey); }

/* Narrow two-column widths: band chip on its own line so band changes never re-wrap the row */
@media (min-width: 921px) and (max-width: 1160px) {
  .bmi-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bmi-msg { min-height: 84px; }
}

/* ----- Motion preferences ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-card { animation: none; }
  .ticker-track { animation: none; }
  .support-ambient { animation: none; }
  .chat-typing span { animation: none; }
  .chat-typing.is-on { animation: none; }
  .chat-msg.is-shown { animation: none; }
  .chat-body { overflow-y: auto; transition: none; }
  .bmi-band, .bmi-cta { transition: none; }
  .tl-step { opacity: 1; transform: none; transition: none; }
  .tl-num { transform: scale(1); transition: none; }
}

/* ----- Responsive ----- */
@media (max-width: 920px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-card { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-nav { display: none; }
  .bmi-msg { min-height: 105px; }
  .bmi-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .compare-table th,
  .compare-table td { padding: 12px 12px; }
  .compare-table tbody th { font-size: 12.5px; }
  .compare-table td { font-size: 11.5px; }
  .compare-table thead th { font-size: 9.5px; letter-spacing: 0.05em; }
  .compare-check { width: 16px; height: 16px; margin-right: 6px; }
  .compare-check svg { width: 9px; height: 9px; }
  .compare-logo { height: 15px; }
}
