:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1652f0;
  --accent-hover: #0e3ec2;
  --accent-soft: #eff4ff;
  --accent-border: #bfdbfe;
  --success: #059669;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: 'DM Sans', var(--font);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, a, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section-shell {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll, 0%);
  background: var(--accent);
  z-index: 100;
  pointer-events: none;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark {
  height: 28px;
  width: 26px;
  display: flex;
  gap: 3px;
  align-items: center;
  transform: rotate(-24deg);
}

.brand-mark i {
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: var(--accent);
}

.brand-mark i:first-child,
.brand-mark i:last-child {
  height: 16px;
  background: #93c5fd;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-name > span {
  display: inline;
  color: var(--accent);
}

.brand-name small {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color 0.18s;
}

.main-nav a:hover,
.main-nav a.is-current {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}

.language-switcher button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.header-cta {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s;
}

.header-cta:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 24px 20px;
  display: grid;
  gap: 8px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--surface-alt);
}

/* SECTION HEADS */
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* HERO + PRODUCT */
.hero-product {
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 82% 18%, rgba(22, 82, 240, 0.09), transparent 70%),
    radial-gradient(ellipse 55% 45% at 12% 85%, rgba(56, 189, 248, 0.08), transparent 65%),
    linear-gradient(rgba(226, 232, 240, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.35) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px, auto;
  border-bottom: 1px solid var(--line);
}

.hero-product .section-shell {
  width: 100%;
  max-width: 1340px;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.clinical-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(32px, 4.1vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 14px 0 10px;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 520px;
}

.product-configurator {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.config-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-block span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.price-block strong {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.variant-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.variant {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.variant:hover {
  border-color: var(--line-strong);
}

.variant.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.variant-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.variant-title strong {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.variant-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.18s, transform 0.18s;
}

.variant.active .variant-check {
  opacity: 1;
  transform: scale(1);
}

.variant small {
  font-size: 12px;
  color: var(--muted);
}

.selected-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

.selected-facts > div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.selected-facts span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.selected-facts strong {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.payment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
}

.payment-note span:first-child {
  color: var(--success);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  flex: 1 1 200px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, transform 0.18s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  flex: 1 1 180px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.18s, background 0.18s;
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}

/* STUDIO PRODUCT FRAME */
.studio-frame {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.studio-meta-top,
.studio-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.purity-pill {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.product-photo-wrap {
  margin: 10px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f4f7fb;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  display: grid;
  place-items: center;
}

.pen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.studio-frame:hover .pen-image {
  transform: scale(1.02);
}

.photo-zoom {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  transition: border-color 0.18s;
}

.photo-zoom:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* METRICS STRIP */
.metrics-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.metric-item {
  position: relative;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.metric-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(22, 82, 240, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(22, 82, 240, 0.13), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.metric-item:hover {
  background: var(--accent-soft);
  box-shadow: inset 0 0 28px rgba(22, 82, 240, 0.08);
}

.metric-item:hover::before {
  transform: scaleX(1);
}

.metric-item:hover::after {
  opacity: 1;
}

.metric-item:last-child {
  border-right: 0;
}

.metric-index {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
}

.metric-item strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-block;
}

.metric-item.is-spinning .metric-index,
.metric-item.is-spinning strong {
  animation: slotReel 0.42s cubic-bezier(0.2, 0.85, 0.3, 1);
}

@keyframes slotReel {
  0% {
    transform: translateY(-65%);
    opacity: 0.25;
  }
  45% {
    transform: translateY(18%);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-5%);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.metric-item small {
  font-size: 12px;
  color: var(--muted);
}

/* COMPARE + SPECS */
.compare-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.single-format-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  align-items: stretch;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.compare-card:hover {
  border-color: var(--line-strong);
}

.compare-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-md);
}

.compare-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.compare-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.compare-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-secondary);
}

.compare-card.selected .compare-pill {
  background: var(--accent-soft);
  color: var(--accent);
}

.compare-dose {
  font-family: var(--font-num);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.compare-dose span {
  font-size: 20px;
  color: var(--muted);
  font-weight: 500;
}

.compare-card p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.compare-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compare-dl dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.compare-dl dd {
  margin: 0;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
}

.specs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.spec-row:nth-child(even) {
  border-right: 0;
}

.spec-row:nth-last-child(-n+2) {
  border-bottom: 0;
}

.spec-row span {
  color: var(--muted);
}

.spec-row strong {
  text-align: right;
  font-weight: 700;
}

/* VISUAL CALCULATOR */
.calculator-section {
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(22, 82, 240, 0.06), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.calc-dashboard {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: stretch;
}

.calc-controls {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-variant-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.calc-variant-sync span {
  color: var(--muted);
}

.calc-variant-sync strong {
  color: var(--accent);
  font-weight: 700;
}

.goal-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.goal-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.goal-inputs input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
}

.goal-error {
  margin: 0;
  font-size: 12px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.goal-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
}

.goal-slider-label output {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--accent);
}

.goal-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.goal-slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: auto;
}

.kpi-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.kpi-box span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.kpi-box strong {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.calc-visual-stage {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stage-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-secondary);
}

.legend-before,
.legend-after {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.legend-before {
  border-top: 2px dashed #94a3b8;
}

.legend-after {
  background: var(--accent);
}

.torso-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.torso-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.torso-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.torso-svg {
  width: 100%;
  max-width: 190px;
  height: 210px;
}

.torso-frame,
.torso-spine {
  stroke: #cbd5e1;
  stroke-width: 1.5;
  fill: none;
}

.body-before {
  fill: rgba(148, 163, 184, 0.12);
  stroke: #94a3b8;
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.body-after {
  fill: rgba(22, 82, 240, 0.14);
  stroke: var(--accent);
  stroke-width: 2.5;
  transition: d 0.25s ease;
}

.measure-line {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}

.measure-dot {
  fill: var(--accent);
}

.torso-stat {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.goal-chart {
  width: 100%;
  height: auto;
  display: block;
}

.goal-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.goal-target-line {
  stroke: #93c5fd;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.goal-chart-fill {
  fill: url(#goalFill);
}

.goal-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.goal-start-dot {
  fill: var(--ink);
}

.goal-end-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}

.goal-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}

/* RECEPTORS / SCIENCE */
.science-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.receptor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.receptor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s, background 0.18s;
}

.receptor-card:hover {
  border-color: var(--line-strong);
}

.receptor-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.receptor-number {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.receptor-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.receptor-card small {
  font-size: 13px;
  color: var(--ink-secondary);
}

.receptor-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
}

.receptor-detail-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.detail-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.receptor-detail h3 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.receptor-detail p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.receptor-detail-index {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* REVIEWS (BEFORE / AFTER) */
.reviews-section {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, #e0ecff 0%, #f8fafc 65%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ba-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
}

.ba-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-labels {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.ba-labels span {
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.ba-labels span:last-child {
  background: var(--accent);
}

.review-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.review-result {
  color: var(--success);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 999px;
}

.review-variant {
  color: var(--muted);
}

.review-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.review-body blockquote {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.review-person {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.review-person span {
  color: var(--muted);
}

/* FAQ */
.faq-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 20px;
}

.faq-list details[open] {
  border-color: var(--accent-border);
}

.faq-list summary {
  list-style: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none;
  transition: transform 0.2s;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: #e2e8f0;
  padding-top: 48px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 36px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  display: block;
}

.footer-logo span {
  color: #60a5fa;
}

.footer-main small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 700;
}

.footer-main p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-top {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 12px;
  color: #94a3b8;
}

/* DIALOGS */
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.photo-dialog {
  max-width: 680px;
  background: #f4f7fb;
  position: relative;
}

.photo-dialog img {
  width: 100%;
  height: auto;
}

.photo-dialog button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.request-dialog {
  background: var(--surface);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.dialog-top button {
  border: 0;
  background: var(--surface-alt);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
}

.dialog-body,
.dialog-success {
  padding: 24px;
}

.dialog-body h2,
.dialog-success h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.dialog-body p,
.dialog-success p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-secondary);
}

#requestForm {
  display: grid;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dialog-payment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.dialog-payment-badge span:first-child {
  color: var(--success);
}

#requestForm label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

#requestForm input,
#requestForm select {
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

.form-submit {
  margin-top: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
}

.form-submit:hover {
  background: var(--accent-hover);
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FLIP CARDS (HOW IT HELPS LOSE WEIGHT) */
.flip-section {
  padding-top: 20px;
  padding-bottom: 72px;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flip-card {
  border: 0;
  padding: 0;
  background: transparent;
  perspective: 1200px;
  min-height: 248px;
  text-align: left;
}

.flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 248px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
}

.flip-front {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.flip-card:hover .flip-front {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.flip-back {
  background: var(--ink);
  color: #f8fafc;
  border-color: var(--ink);
  transform: rotateY(180deg);
}

.flip-num {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.flip-back .flip-num {
  color: #93c5fd;
}

.flip-front strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 8px;
}

.flip-front small {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.flip-back p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

.flip-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
}

.flip-back .flip-hint {
  color: #93c5fd;
}

/* LABORATORY COA SECTION */
.coa-section {
  padding-top: 12px;
  padding-bottom: 72px;
}

.coa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.coa-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.coa-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.coa-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 600px;
}

.coa-purity-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  text-align: right;
  flex: none;
}

.coa-purity-badge span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #065f46;
}

.coa-purity-badge strong {
  display: block;
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--success);
  line-height: 1.1;
  margin: 4px 0;
}

.coa-purity-badge small {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
}

.coa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.coa-metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.coa-metric span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.coa-metric strong {
  display: block;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.coa-metric small {
  font-size: 11px;
  color: var(--ink-secondary);
}

.coa-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.coa-verify-code {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.coa-verify-code code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 5px 10px;
  border-radius: 6px;
}

.coa-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 13px;
}

/* INTERACTIVE 3D MOLECULAR SPHERE */
.molecule-section {
  position: relative;
  min-height: 200vh;
  background: radial-gradient(circle at 50% 48%, #0f2552 0%, #071226 65%, #040914 100%);
  color: #f8fafc;
  overflow-x: clip;
}

.molecule-sticky {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  min-height: 540px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.molecule-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.molecule-overlay {
  position: relative;
  z-index: 2;
  pointer-events: none;
  text-align: center;
  max-width: 620px;
  padding: 24px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.molecule-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.molecule-overlay h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
  text-shadow: 0 4px 24px rgba(4, 9, 20, 0.7);
}

.molecule-overlay p {
  margin: 0 auto 18px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 500px;
  text-shadow: 0 2px 16px rgba(4, 9, 20, 0.8);
}

.molecule-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.molecule-legend i {
  font-style: normal;
  color: #c084fc;
}

/* 4-CARD VIDEO TOUR */
.video-tour-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.video-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
  overflow: hidden;
}

.video-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-step-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 999px;
}

.video-card-body {
  padding: 20px 22px 22px;
}

.video-card-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.video-card-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-grid-layout,
  .calc-dashboard,
  .faq-layout,
  .single-format-layout {
    grid-template-columns: 1fr;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: 0;
  }
  .metric-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flip-grid,
  .coa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coa-head {
    flex-direction: column;
  }
  .coa-purity-badge {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .header-cta {
    display: none;
  }
  .compare-cards,
  .specs-card,
  .receptor-grid,
  .reviews-grid,
  .torso-grid,
  .footer-main,
  .form-row-2,
  .flip-grid,
  .coa-grid,
  .video-cards-grid {
    grid-template-columns: 1fr;
  }
  .coa-card {
    padding: 20px;
  }
  .spec-row {
    border-right: 0;
  }
  .spec-row:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .spec-row:last-child {
    border-bottom: 0;
  }
  .selected-facts {
    grid-template-columns: 1fr;
  }
  .receptor-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric-item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
