/* ============================================================
   AVION Peptides — styles
   Tokens extracted from avionpeptides.com
   ============================================================ */

:root {
  --bg: #050505;
  --accent: #a855f7;
  --accent-deep: #9333ea;
  --lavender: #d8b4fe;
  --text: #ffffff;
  --text-90: rgba(255, 255, 255, 0.9);
  --text-70: rgba(255, 255, 255, 0.7);
  --text-60: rgba(255, 255, 255, 0.6);
  --text-50: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(168, 85, 247, 0.3);
  --radius-card: 24px;
  --radius-pill: 9999px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 0.9s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(168, 85, 247, 0.4);
  color: #fff;
}

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

/* ---------- Atmosphere ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.08), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(120, 0, 255, 0.05), transparent 50%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
  animation: orb-drift-1 26s ease-in-out infinite alternate;
}

.orb--2 {
  width: 420px;
  height: 420px;
  top: 30%;
  right: -160px;
  background: radial-gradient(circle, rgba(120, 0, 255, 0.18), transparent 70%);
  animation: orb-drift-2 32s ease-in-out infinite alternate;
}

.orb--3 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: 35%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15), transparent 70%);
  animation: orb-drift-3 38s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  to { transform: translate(90px, 70px) scale(1.12); }
}
@keyframes orb-drift-2 {
  to { transform: translate(-70px, -90px) scale(1.08); }
}
@keyframes orb-drift-3 {
  to { transform: translate(60px, -50px) scale(1.15); }
}

/* Faint 1px purple grid, used on hero + about */
.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.3) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.055;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  will-change: transform;
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1.1rem;
}

.gradient-text {
  background: linear-gradient(to right, #a855f7, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Shimmer variant for section headings */
.shimmer {
  background: linear-gradient(100deg, #fff 40%, var(--lavender) 50%, #fff 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer-sweep 5.5s linear infinite;
}

@keyframes shimmer-sweep {
  to { background-position: -220% 0; }
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

/* Reveal underline for headings */
.underline-reveal {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.underline-reveal::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #a855f7, #9333ea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out) 0.25s;
}

.in-view .underline-reveal::after,
.underline-reveal.in-view::after {
  transform: scaleX(1);
}

.section-intro {
  color: var(--text-60);
  max-width: 46ch;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s,
    border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.btn--primary {
  background: #fff;
  color: #000;
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 40px -8px rgba(168, 85, 247, 0.45);
}

.btn--ghost {
  border: 1px solid var(--card-border);
  color: var(--text-90);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--card-border-hover);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(5px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--card-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.logo__peptides {
  background: linear-gradient(to right, #a855f7, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-70);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: linear-gradient(to right, #a855f7, #9333ea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__links a:hover,
.nav__links a.active {
  color: #fff;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-70);
  min-height: 44px;
  padding: 0 0.5rem;
  transition: color 0.3s;
}

.lang-toggle:hover {
  color: #fff;
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  align-items: center;
  z-index: 130;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 5, 5, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  clip-path: circle(0% at calc(100% - 48px) 36px);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-out), visibility 0s 0.6s;
}

.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 48px) 36px);
  visibility: visible;
  transition: clip-path 0.6s var(--ease-out), visibility 0s;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-90);
  display: block;
  padding: 0.55rem 0;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.3s;
}

.mobile-menu.open a:not(.btn) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.mobile-menu a:not(.btn):hover {
  color: var(--accent);
}

.mobile-menu .btn {
  margin-top: 1.8rem;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.5s var(--ease-out) 0.55s, opacity 0.5s 0.55s;
}

.mobile-menu.open .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__content {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-rise 1.1s var(--ease-out) forwards;
}

.hero__line:nth-child(2) span {
  animation-delay: 0.15s;
}

@keyframes line-rise {
  to { transform: translateY(0); }
}

.hero__sub {
  margin-top: 1.8rem;
  max-width: 54ch;
  color: var(--text-60);
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.55s forwards;
}

.hero__ctas {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.75s forwards;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.05s forwards;
}

.hero__badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(168, 85, 247, 0); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  padding-block: 1.1rem;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee-scroll 36s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-50);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee__track span::after {
  content: "◆";
  font-size: 0.5rem;
  color: var(--accent);
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

.product-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.45s var(--ease-out), box-shadow 0.45s;
  will-change: transform;
}

.product-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px -20px rgba(168, 85, 247, 0.35),
    0 0 0 1px rgba(168, 85, 247, 0.08) inset;
}

/* Shine sweep on hover */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.055) 45%,
    rgba(216, 180, 254, 0.09) 55%,
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.05s;
  pointer-events: none;
}

.product-card:hover::before {
  left: 140%;
  transition: left 0.85s var(--ease-out);
}

.product-card__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 70% 20%, rgba(168, 85, 247, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.product-card:hover .product-card__glow {
  opacity: 1;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.product-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.9rem 0.32rem calc(0.9rem + 0.18em);
  margin-top: 0.2rem;
}

.product-card__name {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}

.product-card__blurb {
  font-size: 0.85rem;
  color: var(--text-50);
  flex-grow: 1;
}

.product-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.product-card__purity {
  display: block;
  line-height: 1.2;
}

.purity-value,
.purity-unit {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  display: inline;
}

.purity-unit {
  color: var(--accent);
}

.purity-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-top: 0.2rem;
}

/* Molecule motif */
.molecule {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.mol-orbit {
  fill: none;
  stroke: rgba(168, 85, 247, 0.14);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  transform-origin: 60px 60px;
  animation: orbit-spin 26s linear infinite;
}

.product-card:hover .mol-orbit {
  animation-duration: 8s;
  stroke: rgba(168, 85, 247, 0.35);
}

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

.mol-bond {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.mol-bond--faint {
  stroke: rgba(168, 85, 247, 0.18);
}

.mol-atom {
  fill: rgba(255, 255, 255, 0.55);
  animation: atom-pulse 3.2s ease-in-out infinite;
}

.mol-atom--accent {
  fill: var(--accent);
}

@keyframes atom-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Cards inside an already-revealed grid shouldn't re-stagger on filter */
.no-transition {
  transition: none !important;
}

/* ---------- Section: products (index) ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.products-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- Section: about ---------- */
.about {
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__stat {
  text-align: center;
}

.about__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 18vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(to right, #a855f7, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.about__number-label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-50);
}

.about__body p {
  color: var(--text-70);
  max-width: 56ch;
  margin-top: 1.4rem;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.8rem;
  transition: border-color 0.4s, transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.feature-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px -20px rgba(168, 85, 247, 0.3);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 1.3rem;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--lavender);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-60);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band__inner {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(168, 85, 247, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
}

.cta-band p {
  color: var(--text-60);
  max-width: 52ch;
  margin: 1.1rem auto 2.2rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  padding-block: 4rem 2.5rem;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__tagline {
  color: var(--text-50);
  font-size: 0.9rem;
  max-width: 34ch;
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-70);
  margin-bottom: 1.1rem;
}

.footer address,
.footer ul {
  font-style: normal;
  list-style: none;
  color: var(--text-50);
  font-size: 0.88rem;
  line-height: 2;
}

.footer a {
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--lavender);
}

.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-50);
  font-size: 0.78rem;
}

.footer__disclaimer {
  color: rgba(216, 180, 254, 0.5);
}

/* ---------- Catalog page ---------- */
.catalog-hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 8vw, 5rem));
  padding-bottom: 1.5rem;
}

.catalog-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: -0.05em;
}

/* Sticky filter bar */
.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding-block: 0.85rem;
}

.filter-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 2px;
  margin-inline: -2px;
  padding-inline: 2px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  color: var(--text-70);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.25s var(--ease-out);
}

.chip:hover {
  color: #fff;
  border-color: var(--card-border-hover);
  transform: translateY(-1px);
}

.chip.active {
  background: linear-gradient(to right, #a855f7, #9333ea);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 22px -8px rgba(168, 85, 247, 0.6);
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-50);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem 0.7rem 2.7rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input::placeholder {
  color: var(--text-50);
}

.search-input:focus {
  outline: none;
  border-color: var(--card-border-hover);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.catalog-grid-section {
  padding-top: 2.5rem;
}

.catalog-count {
  color: var(--text-50);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-50);
  display: none;
}

.empty-state.visible {
  display: block;
  animation: fade-up 0.6s var(--ease-out);
}

.empty-state h3 {
  color: var(--text-90);
  margin-bottom: 0.6rem;
}

/* Card filter transitions */
.product-card.is-hiding {
  animation: card-out 0.32s var(--ease-out) forwards;
  pointer-events: none;
}

.product-card.is-showing {
  animation: card-in 0.45s var(--ease-out) both;
}

@keyframes card-out {
  to {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Swiss identity ---------- */
.swiss-cross {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.swiss-cross--sm {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Hero badge switches to mono label style */
.hero__badge {
  font-family: var(--font-mono);
}

/* Per-card origin line */
.card-origin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
}

.card-origin .swiss-cross {
  width: 11px;
  height: 11px;
  border-radius: 2.5px;
}

/* Rotating Swiss Made seal (About section) */
.swiss-seal {
  width: clamp(110px, 14vw, 150px);
  height: auto;
  margin: 2.2rem auto 0;
}

/* Only the ring text spins — the central cross stays upright */
.seal-rotor {
  transform-origin: 60px 60px;
  animation: seal-rotate 45s linear infinite;
  will-change: transform;
}

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

.seal-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.seal-ring--inner {
  stroke: rgba(168, 85, 247, 0.3);
  stroke-dasharray: 2 4;
}

.seal-text {
  font-family: var(--font-mono);
  font-size: 9.2px;
  letter-spacing: 0.16em;
  fill: rgba(255, 255, 255, 0.55);
}

/* Coordinates detail — wraps only at the · separators */
.about-coords {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--lavender);
  opacity: 0.75;
}

.coord-seg {
  white-space: nowrap;
}

.coord-sep {
  color: var(--accent);
}

@media (max-width: 560px) {
  .about-coords {
    font-size: 0.68rem;
  }
}

/* Alpine ridge divider — draws on when scrolled into view */
.ridge {
  margin-top: 3.5rem;
}

.ridge svg {
  width: 100%;
  height: auto;
  display: block;
}

.ridge path {
  fill: none;
  stroke: rgba(168, 85, 247, 0.28);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  transition: stroke-dashoffset 2.4s var(--ease-out) 0.2s;
}

.ridge.in-view path {
  stroke-dashoffset: 0;
}

/* Footer address line with cross */
.footer__addr-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Language toggle & i18n fade ---------- */
.lang-opt {
  color: var(--text-50);
  transition: color 0.3s;
}

.lang-opt.active {
  color: #fff;
}

.lang-sep {
  color: var(--text-50);
  margin: 0 0.15rem;
}

.mobile-menu .lang-toggle {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.5s var(--ease-out) 0.5s, opacity 0.5s 0.5s, color 0.3s;
}

.mobile-menu.open .lang-toggle {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle fade while swapping languages (body classes set by i18n.js) */
body.lang-anim [data-i18n],
body.lang-anim [data-i18n-html],
body.lang-anim .product-card,
body.lang-anim .chip,
body.lang-anim .catalog-count {
  transition: opacity 0.18s ease !important;
}

body.lang-fading [data-i18n],
body.lang-fading [data-i18n-html],
body.lang-fading .product-card,
body.lang-fading .chip,
body.lang-fading .catalog-count {
  opacity: 0 !important;
}

/* ---------- Responsive ---------- */
/* ---------- Product card media (render images) ---------- */
.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  margin: -0.4rem -0.4rem 0.4rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 60%, rgba(168, 85, 247, 0.12), transparent 70%);
  overflow: hidden;
}

.product-card__media img {
  max-height: 150px;
  width: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: translateY(-4px) scale(1.04);
}

.product-card__mg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-50);
  margin-top: 0.35rem;
  white-space: nowrap;
}

.product-card__name a {
  transition: color 0.3s;
}

.product-card__name a:hover {
  color: var(--lavender);
}

/* ---------- Sub-page hero (product / calculator / legal / contact) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-60);
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.breadcrumb:hover {
  color: var(--lavender);
}

.breadcrumb .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.breadcrumb:hover .arrow {
  transform: translateX(-4px);
}

/* ---------- Product detail ---------- */
.pd-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.pd-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.pd-media::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(ellipse 55% 50% at 50% 60%, rgba(168, 85, 247, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.pd-media img {
  max-height: min(52vh, 480px);
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
  animation: pd-float 7s ease-in-out infinite alternate;
}

@keyframes pd-float {
  to { transform: translateY(-14px); }
}

.pd-info .product-card__tag {
  display: inline-block;
}

.pd-info h1 {
  margin-top: 1rem;
}

.pd-purity {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.pd-purity .purity-value,
.pd-purity .purity-unit {
  font-size: 2.6rem;
}

.pd-purity .purity-label {
  font-size: 0.7rem;
}

.swiss-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  border: 1px solid rgba(216, 180, 254, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
}

.pd-blurb {
  margin-top: 1.4rem;
  color: var(--text-70);
  max-width: 52ch;
}

.pd-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Specs table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.92rem;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
  width: 38%;
}

.spec-table td {
  color: var(--text-90);
}

/* Quality strip */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

/* ---------- Forms (calculator / contact) ---------- */
.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-60);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--card-border-hover);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.field select option {
  background: #141414;
  color: #fff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: end;
}

.field-row .unit-select {
  min-width: 92px;
}

/* ---------- Calculator layout ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
}

.calc-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.8rem;
}

.calc-panel h2 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  color: var(--text-90);
}

.result-row {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
}

.result-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s;
}

.result-card.pulse {
  animation: result-pulse 0.5s var(--ease-out);
}

@keyframes result-pulse {
  0% { border-color: rgba(168, 85, 247, 0.6); }
  100% { border-color: var(--card-border); }
}

.result-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-50);
}

.result-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin-top: 0.3rem;
  display: block;
}

.result-value .unit {
  font-size: 0.55em;
  color: var(--accent);
}

.result-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-60);
  margin-top: 0.35rem;
  display: block;
}

.calc-warning {
  display: none;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--lavender);
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: 12px;
  padding: 0.7rem 1rem;
}

.calc-warning.visible {
  display: block;
  animation: fade-up 0.5s var(--ease-out);
}

.calc-note {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--text-50);
}

/* Syringe visual */
.syringe-wrap {
  margin-top: 1.6rem;
}

.syringe-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.syr-barrel {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.syr-fill {
  fill: rgba(168, 85, 247, 0.45);
  transition: width 0.7s var(--ease-out);
}

.syr-tick {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.syr-label {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: rgba(255, 255, 255, 0.5);
}

.syr-metal {
  fill: rgba(255, 255, 255, 0.22);
}

.syr-plunger {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.syr-piston {
  fill: rgba(168, 85, 247, 0.55);
  stroke: rgba(216, 180, 254, 0.5);
  stroke-width: 1;
  transition: y 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#syrRod {
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Print list page ---------- */
.print-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.print-table th,
.print-table td {
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
}

.print-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  background: rgba(168, 85, 247, 0.06);
}

.print-table tbody tr:last-child td {
  border-bottom: none;
}

.print-table td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
}

.print-table .num {
  font-family: var(--font-mono);
}

.print-meta {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-50);
}

/* Table overflow guard on small screens */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
}

/* ---------- Legal page ---------- */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 0;
}

.legal-section {
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--card-border);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1.2rem;
}

.legal-section p {
  color: var(--text-70);
  max-width: 72ch;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.6rem;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 1.5rem;
}

.info-item h3 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.5rem;
}

.info-item p,
.info-item address {
  font-style: normal;
  color: var(--text-70);
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-item a {
  color: var(--text-90);
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  transition: color 0.3s, border-color 0.3s;
}

.info-item a:hover {
  color: var(--lavender);
  border-color: var(--lavender);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-50);
}

/* ---------- Quote modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}

.modal {
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  background: #0d0d10;
  border: 1px solid var(--card-border-hover);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 40px 90px -30px rgba(168, 85, 247, 0.35);
}

.modal-backdrop.open .modal {
  transform: none;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.modal__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.modal__close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  color: var(--text-70);
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.modal__close:hover {
  border-color: var(--card-border-hover);
  color: #fff;
  transform: rotate(90deg);
}

/* ---------- Product page: benefits & applications ---------- */
.pd-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.pd-list-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.8rem;
}

.pd-list-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.pd-list-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.pd-list-card li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-70);
  font-size: 0.92rem;
}

.pd-list-card li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.55rem;
  color: var(--accent);
}

.mono-cell {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
}

/* ---------- Calculator: quick buttons & syringe toggle ---------- */
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-btn {
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  color: var(--text-70);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.quick-btn:hover {
  color: #fff;
  border-color: var(--card-border-hover);
}

.quick-btn.active {
  background: linear-gradient(to right, #a855f7, #9333ea);
  border-color: transparent;
  color: #fff;
}

/* Vertical syringe */
.syringe-vertical {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.syringe-vertical svg {
  height: 300px;
  width: auto;
  max-width: 100%;
}

.syr-fill-v {
  fill: rgba(168, 85, 247, 0.45);
  transition: y 0.7s var(--ease-out), height 0.7s var(--ease-out);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* Two-column calculator layout — holds at ALL widths (live-site UX) */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) 2.2fr;
  gap: 1.2rem;
  align-items: start;
}

.syringe-col {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.2rem 0.8rem;
  text-align: center;
}

.draw-result {
  margin-bottom: 0.6rem;
}

.draw-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 0.35rem;
}

.draw-units {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 2.1rem);
  color: #fff;
  display: block;
  line-height: 1.1;
}

.draw-units .unit {
  font-size: 0.45em;
  color: var(--accent);
}

.draw-ml {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-60);
  display: block;
  margin-top: 0.2rem;
}

.syringe-col .quick-row {
  justify-content: center;
  margin-top: 0.9rem;
}

.syringe-col .quick-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  min-height: 40px;
}

/* Dose slider */
.dose-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dose-value {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.dose-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  margin: 1rem 0 0.4rem;
  cursor: pointer;
}

.dose-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(to right, #a855f7, #9333ea);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  cursor: pointer;
}

.dose-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(to right, #a855f7, #9333ea);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  cursor: pointer;
}

.dose-slider:disabled {
  opacity: 0.45;
  cursor: default;
}

.dose-slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.dose-minmax {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-50);
}

.dose-custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .calc-layout {
    grid-template-columns: 104px 1fr;
    gap: 0.8rem;
  }

  .calc-layout .calc-panel {
    padding: 1.1rem;
  }

  .syringe-col {
    padding: 0.9rem 0.45rem;
  }

  .syringe-vertical svg {
    height: 200px;
  }

  .metrics-grid,
  .dose-custom-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Saved calculations (print list) ---------- */
.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.saved-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saved-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.saved-card p {
  font-size: 0.87rem;
  color: var(--text-70);
}

.saved-card p strong {
  color: var(--text-90);
  font-weight: 600;
}

.saved-card .num {
  font-family: var(--font-mono);
}

.saved-card__remove {
  margin-top: 0.9rem;
  align-self: flex-start;
}

/* ---------- Print styles ---------- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .atmosphere,
  .nav,
  .mobile-menu,
  .footer,
  .print-actions,
  .marquee,
  .grid-lines {
    display: none !important;
  }

  main {
    padding: 0 !important;
  }

  .page-hero {
    padding: 0 0 1rem !important;
  }

  .page-hero h1,
  .page-hero .hero__sub {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: none !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .hero__line span {
    transform: none !important;
    animation: none !important;
  }

  .print-table,
  .table-scroll {
    border: none;
    border-radius: 0;
    background: none;
    overflow: visible;
  }

  .print-table th,
  .print-table td {
    color: #000 !important;
    border-bottom: 1px solid #999;
    background: none !important;
    padding: 0.45rem 0.6rem;
  }

  .print-table td:first-child {
    color: #000 !important;
  }

  .print-meta,
  .print-disclaimer {
    color: #333 !important;
    margin-top: 1rem;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  /* Saved calculations planner */
  .saved-grid {
    display: block;
  }

  .saved-card {
    background: none;
    border: 1px solid #999;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    break-inside: avoid;
  }

  .saved-card h3,
  .saved-card p,
  .saved-card p strong,
  .saved-card .num {
    color: #000 !important;
  }

  .saved-card__remove,
  .modal-backdrop,
  .empty-state {
    display: none !important;
  }
}

/* Nav collapses earlier than the rest: with 6 links + toggle + CTA
   (and longer Spanish labels) the row only breathes above ~1200px.
   Links never wrap — below this the burger takes over. */
@media (max-width: 1199px) {
  .nav__links,
  .nav__actions .btn,
  .nav__actions .lang-toggle {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

@media (max-width: 900px) {
  .pd-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pd-media img {
    max-height: 320px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* Stat + seal share one balanced row on mobile */
  .about__stat {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1.2rem;
  }

  .about__number {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(5rem, 24vw, 9rem);
  }

  .about__number-label {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.4rem;
  }

  .swiss-seal {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: clamp(96px, 26vw, 110px);
    margin: 0;
    align-self: center;
  }

  /* The stat label already says it — drop the duplicate eyebrow on mobile */
  .about__body .eyebrow {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fixed nav must never clip anchored content */
main [id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

@media (max-width: 560px) {
  .container {
    width: min(1200px, 100% - 2.2rem);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__ctas .btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 561px) and (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .hero__sub,
  .hero__ctas,
  .hero__badge {
    opacity: 1;
    transform: none;
  }

  .hero__line span {
    transform: none;
    animation: none;
  }

  .marquee__track {
    animation: none;
  }
}
