﻿/* SWISDERM - design tokens & layout (S Factor chocolate palette + dark theme) */
:root {
  color-scheme: light;
  --color-bg-rgb: 249, 244, 239;
  --color-bg: #f9f4ef;
  --color-bg-elevated: #fffcf8;
  --color-surface: #efe6dc;
  --color-brand-navy: #3d2817;
  --color-swiss-red: #8b5a2b;
  --color-text: #1f1410;
  --color-text-muted: #3d2e26;
  --color-accent: #6e4418;
  --color-accent-hover: #5a3614;
  --color-accent-soft: rgba(110, 68, 24, 0.18);
  --color-border: rgba(44, 24, 16, 0.16);
  --color-hero-overlay: rgba(var(--color-bg-rgb), 0.92);
  --color-pulse-glow: rgba(92, 61, 36, 0.38);
  --color-footer-bg: #352218;
  --color-footer-text: rgba(255, 252, 248, 0.95);
  --color-footer-text-muted: rgba(255, 250, 245, 0.78);
  --color-footer-faint: rgba(255, 250, 245, 0.6);
  --color-footer-link: #fff8f0;
  --color-toggle-active-bg: #3d2817;
  --color-toggle-active-fg: #fffcf8;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 20px 50px rgba(61, 40, 28, 0.08);
  --shadow-card: 0 8px 30px rgba(61, 40, 28, 0.06);
  --header-h: 4.625rem;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 72rem;
  --max-w-narrow: 40rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-bg-rgb: 26, 18, 14;
  --color-bg: #1a120e;
  --color-bg-elevated: #241a14;
  --color-surface: #2a1f18;
  --color-brand-navy: #f4e8dc;
  --color-swiss-red: #d4a574;
  --color-text: #faf3eb;
  --color-text-muted: #e5d6c8;
  --color-accent: #e8bc8c;
  --color-accent-hover: #f0cba3;
  --color-accent-soft: rgba(232, 188, 140, 0.22);
  --color-border: rgba(244, 232, 220, 0.2);
  --color-hero-overlay: rgba(var(--color-bg-rgb), 0.94);
  --color-pulse-glow: rgba(212, 165, 116, 0.28);
  --color-footer-bg: #0f0b09;
  --color-footer-text: rgba(255, 248, 240, 0.96);
  --color-footer-text-muted: rgba(255, 242, 230, 0.8);
  --color-footer-faint: rgba(255, 240, 228, 0.62);
  --color-footer-link: #fff0e0;
  --color-toggle-active-bg: #c9a076;
  --color-toggle-active-fg: #1a120e;
  --shadow-soft: 0 24px 56px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 36px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-text);
}

.prose a,
.contact-card a:not(.btn),
.checkout-shell a:not(.btn),
.product-label-card a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

li + li {
  margin-top: var(--space-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg-elevated);
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(var(--color-bg-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(61, 40, 28, 0.07);
}

html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: clamp(2.125rem, 4.2vw, 2.875rem);
  width: auto;
  max-width: min(48vw, 13.5rem);
  object-fit: contain;
  object-position: left center;
  animation: float 6s ease-in-out infinite;
  transition: filter var(--transition), background-color var(--transition), padding var(--transition);
  border-radius: var(--radius-sm);
}

html[data-theme="dark"] .site-logo {
  background-color: rgba(249, 244, 239, 0.95);
  padding: 6px 12px;
  filter: none;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), transform 0.2s ease;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-text);
  background: transparent;
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: transparent;
  border: none;
  margin-left: 0.5rem;
}

.lang-toggle button {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.4rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  position: relative;
}

.lang-toggle button:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--color-text);
  background: transparent;
}

.lang-toggle button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  width: 72px;
  height: 36px;
  border-radius: 36px;
  background: #f9f4ef;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  overflow: visible;
}

html[data-theme="dark"] .theme-toggle {
  background: #2a1f18;
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3d2817;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1;
}

html[data-theme="dark"] .theme-toggle::before {
  transform: translateX(36px);
  background: #c9a076;
}

.theme-toggle button {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #3d2817;
  padding: 0;
  width: 36px;
  height: 34px;
  cursor: pointer;
  transition: color 0.3s ease;
}

html[data-theme="dark"] .theme-toggle button {
  color: #c9a076;
}

.theme-toggle button[data-theme="light"][aria-pressed="true"] {
  color: #fff;
}

html[data-theme="dark"] .theme-toggle button[data-theme="dark"][aria-pressed="true"] {
  color: #1a120e;
}

.theme-toggle button svg {
  width: 16px;
  height: 16px;
  transition: color 0.3s ease;
}

@media (min-width: 400px) {
  .theme-toggle button {
    /* override previous media query */
    padding: 0;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  background: var(--color-bg);
  padding: var(--space-lg) var(--space-md);
  flex-direction: column;
  gap: var(--space-xs);
  border-top: 1px solid var(--color-border);
  animation: fadeSlide 0.35s ease;
  overflow-y: auto;
  z-index: 100;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.125rem;
  font-family: var(--font-serif);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a[aria-current="page"] {
  color: var(--color-accent);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    padding: 0 1rem;
  }

  .nav-desktop a {
    position: relative;
    overflow: hidden;
  }

  .nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
  }

  .nav-desktop a:hover::after,
  .nav-desktop a[aria-current="page"]::after {
    width: 100%;
    left: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

@media (min-width: 960px) and (max-width: 1200px) {
  .nav-desktop a {
    font-size: 0.8125rem;
    padding: 0.35rem 0.25rem;
  }
  
  .nav-desktop {
    gap: 0.25rem;
  }

  .theme-toggle button,
  .lang-toggle button {
    padding: 0.3rem 0.45rem;
    font-size: 0.6875rem;
  }

  .site-logo {
    max-width: min(38vw, 10.5rem);
  }
}

@media (min-width: 1201px) {
  .nav-desktop {
    column-gap: 0.2rem;
  }
}

main {
  min-height: calc(100vh - var(--header-h) - 200px);
}

.hero {
  position: relative;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(180, 130, 88, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(139, 90, 43, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(212, 165, 116, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(139, 90, 43, 0.08), transparent);
}

/* Homepage hero only: fruit imagery on the right, contained to this section */
.hero--home {
  isolation: isolate;
  min-height: clamp(22rem, 65vh, 42rem);
  background-color: var(--color-bg);
}

.hero--home::before,
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: cover, auto min(100%, 48rem);
  background-position: left center, right center;
  background-repeat: no-repeat;
}

.hero--home::before {
  background-image:
    linear-gradient(
      105deg,
      var(--color-bg) 0%,
      rgba(var(--color-bg-rgb), 0.94) 28%,
      rgba(var(--color-bg-rgb), 0.72) 46%,
      rgba(var(--color-bg-rgb), 0.2) 62%,
      transparent 72%
    ),
    url("../assets/sfactor-product.png");
  animation: heroImageFade1 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero--home::after {
  background-image:
    linear-gradient(
      105deg,
      var(--color-bg) 0%,
      rgba(var(--color-bg-rgb), 0.94) 28%,
      rgba(var(--color-bg-rgb), 0.72) 46%,
      rgba(var(--color-bg-rgb), 0.2) 62%,
      transparent 72%
    ),
    url("../assets/Fruits.png");
  animation: heroImageFade2 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
}

html[data-theme="dark"] .hero--home::before {
  background-image:
    linear-gradient(
      105deg,
      var(--color-bg) 0%,
      rgba(var(--color-bg-rgb), 0.98) 28%,
      rgba(var(--color-bg-rgb), 0.85) 46%,
      rgba(var(--color-bg-rgb), 0.2) 62%,
      transparent 72%
    ),
    url("../assets/sfactor-product.png");
}

html[data-theme="dark"] .hero--home::after {
  background-image:
    linear-gradient(
      105deg,
      var(--color-bg) 0%,
      rgba(var(--color-bg-rgb), 0.98) 28%,
      rgba(var(--color-bg-rgb), 0.85) 46%,
      rgba(var(--color-bg-rgb), 0.2) 62%,
      transparent 72%
    ),
    url("../assets/Fruits.png");
}

@keyframes heroImageFade1 {
  0%, 40% { opacity: 1; background-position: 0% 50%, 100% 50%; }
  50%, 90% { opacity: 0; background-position: 0% 50%, calc(100% + 60px) 50%; }
  100% { opacity: 1; background-position: 0% 50%, 100% 50%; }
}

@keyframes heroImageFade2 {
  0%, 40% { opacity: 0; background-position: 0% 50%, calc(100% - 60px) 50%; }
  50%, 90% { opacity: 1; background-position: 0% 50%, 100% 50%; }
  100% { opacity: 0; background-position: 0% 50%, calc(100% - 60px) 50%; }
}

@media (max-width: 767px) {
  .hero--home {
    min-height: clamp(38rem, 85vh, 50rem);
    padding-bottom: var(--space-2xl);
  }

  .hero--home::before,
  .hero--home::after {
    background-size: auto min(35vh, 18rem);
    background-position: center top, center 90%;
  }

  .hero--home::before {
    background-image:
      linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(var(--color-bg-rgb), 0.96) 45%,
        rgba(var(--color-bg-rgb), 0.85) 55%,
        rgba(var(--color-bg-rgb), 0.15) 70%,
        rgba(var(--color-bg-rgb), 0) 80%
      ),
      url("../assets/sfactor-product.png");
    animation: heroImageFadeMobile1 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .hero--home::after {
    background-image:
      linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(var(--color-bg-rgb), 0.96) 45%,
        rgba(var(--color-bg-rgb), 0.85) 55%,
        rgba(var(--color-bg-rgb), 0.15) 70%,
        rgba(var(--color-bg-rgb), 0) 80%
      ),
      url("../assets/Fruits.png");
    animation: heroImageFadeMobile2 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  html[data-theme="dark"] .hero--home::before {
    background-image:
      linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(var(--color-bg-rgb), 0.98) 45%,
        rgba(var(--color-bg-rgb), 0.85) 55%,
        rgba(var(--color-bg-rgb), 0.2) 70%,
        transparent 80%
      ),
      url("../assets/sfactor-product.png");
  }

  html[data-theme="dark"] .hero--home::after {
    background-image:
      linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(var(--color-bg-rgb), 0.98) 45%,
        rgba(var(--color-bg-rgb), 0.85) 55%,
        rgba(var(--color-bg-rgb), 0.2) 70%,
        transparent 80%
      ),
      url("../assets/Fruits.png");
  }

  @keyframes heroImageFadeMobile1 {
    0%, 40% { opacity: 1; background-position: 50% 0%, 50% 90%; }
    50%, 90% { opacity: 0; background-position: 50% 0%, 50% calc(90% + 40px); }
    100% { opacity: 1; background-position: 50% 0%, 50% 90%; }
  }

  @keyframes heroImageFadeMobile2 {
    0%, 40% { opacity: 0; background-position: 50% 0%, 50% calc(90% - 40px); }
    50%, 90% { opacity: 1; background-position: 50% 0%, 50% 90%; }
    100% { opacity: 0; background-position: 50% 0%, 50% calc(90% - 40px); }
  }

  .hero--home .hero-inner {
    padding-bottom: min(45vw, 14rem);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--space-md);
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fffef9;
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 var(--color-pulse-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: #fffef9;
  animation: none;
  filter: brightness(1.05);
}

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

.btn-ghost:hover {
  border-color: var(--color-accent-soft);
  color: var(--color-text);
}

.section {
  padding: var(--space-xl) var(--space-md);
}

.section-alt {
  background: var(--color-surface);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  max-width: 36ch;
  margin-bottom: var(--space-lg);
}

.section-head p {
  margin-bottom: 0;
}

.grid-cards {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-soft);
}

.card h2,
.card h3 {
  margin-bottom: var(--space-sm);
}

.card h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.card-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.card-link:hover {
  color: var(--color-text);
}

.page-hero {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 50%, var(--color-surface) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}

/* Cinematic About Page Styles */
.cinematic-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 50%, var(--color-surface) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  border-bottom: 1px solid var(--color-border);
}

.cinematic-hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.cinematic-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.cinematic-lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

.cinematic-section {
  padding: var(--space-2xl) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.cinematic-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.cinematic-section-inner--wide {
  max-width: min(72rem, 96vw);
}

.cinematic-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  text-align: center;
  max-width: 42ch;
  margin: 0 auto;
  color: var(--color-text);
  font-weight: 400;
}

.cinematic-grid {
  display: grid;
  gap: var(--space-xl);
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cinematic-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.cinematic-text-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

.cinematic-closing {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero .lead {
  font-size: 1.125rem;
  max-width: 50ch;
  margin: 0;
}

.prose {
  max-width: var(--max-w-narrow);
}

.prose.wide {
  max-width: 48rem;
}

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.prose h2:first-child {
  margin-top: 0;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.pill-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: var(--space-sm);
}

.pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.9;
}

.mission-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.what-we-are {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.contact-layout {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.contact-form label,
.member-login-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.contact-form input,
.contact-form textarea,
.member-login-form input[type="text"],
.member-login-form input[type="password"],
.member-login-form input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.member-login-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus,
.member-login-form input[type="text"]:focus,
.member-login-form input[type="password"]:focus,
.member-login-form input[type="number"]:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 14%, transparent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Swisderm login (posts to swisderm.ca member system) */
.login-shell {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-2xl);
  }
}

.login-aside-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.login-aside p {
  margin-bottom: var(--space-md);
}

.login-aside-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-bottom: 0 !important;
}

.login-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.login-card-head {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.login-card-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.login-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin: 0;
  color: var(--color-text);
}

.member-login-form .login-captcha-block label {
  margin-bottom: var(--space-xs);
}

.login-captcha-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: calc(-0.25rem) 0 var(--space-sm);
}

.login-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.login-captcha-img-wrap {
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #1a1a1a;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}

.login-captcha-img-wrap:hover {
  box-shadow: 0 4px 20px rgba(44, 42, 40, 0.12);
}

.login-captcha-img-wrap:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.login-captcha-img-wrap img {
  display: block;
  height: 44px;
  width: auto;
  min-width: 120px;
  object-fit: cover;
}

.login-captcha-input {
  flex: 1 1 8rem;
  min-width: 6rem;
  margin-bottom: 0 !important;
}

.member-login-form input.login-captcha-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.member-login-form input.login-captcha-input[type="number"]::-webkit-outer-spin-button,
.member-login-form input.login-captcha-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.login-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.login-forgot {
  font-size: 0.9375rem;
  font-weight: 500;
}

.login-submit {
  margin: 0;
  min-width: 7.5rem;
}

.member-login-form input.login-submit {
  width: auto;
  margin-bottom: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--space-md);
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.site-footer a {
  color: var(--color-footer-link);
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  .footer-right {
    align-items: flex-end;
  }
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.footer-logo {
  display: block;
  height: clamp(1.65rem, 3vw, 2.2rem);
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  transition: filter var(--transition);
}

html[data-theme="dark"] .footer-logo-wrap {
  background-color: rgba(249, 244, 239, 0.95);
}

html[data-theme="dark"] .footer-logo {
  filter: none;
}

.footer-brand p {
  color: var(--color-footer-text-muted);
  font-size: 0.9375rem;
  margin: var(--space-sm) 0 0;
  max-width: 32ch;
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--color-footer-faint);
}

.footer-contact {
  margin: var(--space-sm) 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-footer-text-muted);
}

.footer-contact a {
  color: var(--color-footer-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-contact a:hover {
  color: #fff;
}

/* Scroll reveal & Page load animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero h1 {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-hero .lead {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.cinematic-hero h1 {
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cinematic-hero .cinematic-lead {
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.section-inner.prose p {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-inner.prose p:nth-child(1) { animation-delay: 0.25s; }
.section-inner.prose p:nth-child(2) { animation-delay: 0.35s; }
.section-inner.prose p:nth-child(3) { animation-delay: 0.45s; }
.section-inner.prose p:nth-child(4) { animation-delay: 0.55s; }
.section-inner.prose p:nth-child(5) { animation-delay: 0.65s; }
.section-inner.prose p:nth-child(6) { animation-delay: 0.75s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .product-3d.is-in-view .product-3d__tilt {
    animation: none;
  }

  .product-3d__tilt {
    transform: none;
  }
}

/* -- Product: S Factor -- */
.i18n-only-en,
.i18n-only-fr {
  display: none;
}

html[lang="en"] .i18n-only-en,
html[lang="en-US"] .i18n-only-en {
  display: block;
}

html[lang="fr"] .i18n-only-fr {
  display: block;
}

.product-showcase-section {
  padding-top: var(--space-lg);
  position: relative;
  overflow: hidden;
  min-height: min(58vh, 32rem);
}

.product-showcase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 40%, rgba(139, 90, 43, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(180, 130, 88, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .product-showcase-section::before {
  background:
    radial-gradient(ellipse 70% 80% at 15% 40%, rgba(212, 165, 116, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(139, 90, 43, 0.12), transparent 50%);
}

.product-showcase-inner {
  max-width: var(--max-w);
  position: relative;
  z-index: 1;
}

.product-showcase-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

.product-showcase-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .product-showcase-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-2xl);
  }
}

.product-showcase-visual {
  margin: 0;
  justify-self: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

html[data-theme="dark"] .product-showcase-visual {
  box-shadow: none;
}

@media (min-width: 900px) {
  .product-showcase-visual {
    justify-self: end;
  }
}

/* Product image: no frame - sits on page background; 3D spin while in view */
@keyframes productSpinY {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.product-3d {
  max-width: min(100%, 28rem);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .product-3d--hero {
    max-width: 32rem;
  }
}

.product-3d__tilt {
  /* Removed 3D transform properties */
}

/* Removed rotation animation for the product image */
.product-3d.is-in-view .product-3d__tilt {
  /* animation: productSpinY 26s linear infinite; */
}

.product-3d img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  /* Removed heavy box-shadow to make it look cleaner as a flat image */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.product-3d img:hover {
  transform: scale(1.08) translateY(-8px);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.product-link-anim {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}


html[data-theme="dark"] .product-3d img {
  /* Removed dark mode box shadow */
}

.product-3d--compact {
  max-width: 18rem;
}

.product-3d--compact.is-in-view .product-3d__tilt {
  /* animation-duration: 30s; */
}

.product-showcase-title {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.04em;
}

.product-showcase-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.product-showcase-lead {
  font-size: 1.0625rem;
  margin-bottom: var(--space-md);
}

.product-showcase-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.product-showcase-meta li + li {
  margin-top: var(--space-xs);
}

.product-showcase-meta li {
  position: relative;
  padding-left: 1.25rem;
}

.product-showcase-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.95;
}

.product-showcase-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.product-showcase-price-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.product-showcase-pricing-link {
  margin: var(--space-sm) 0 0;
  font-size: 0.9375rem;
}

.product-showcase-pricing-link a {
  font-weight: 600;
}

/* S-Factor tier pricing table */
.product-pricing-wrap {
  max-width: min(44rem, 100%);
  margin: 0 auto;
}

.product-pricing-head {
  text-align: center;
  margin-bottom: var(--space-md);
}

.product-pricing-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}

.product-pricing-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 40ch;
  margin-inline: auto;
}

.product-pricing-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-card);
}

.product-pricing-caption {
  caption-side: bottom;
  padding: var(--space-sm) var(--space-md) 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

.product-pricing-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.product-pricing-table thead th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-bg-elevated);
  background: color-mix(in srgb, var(--color-accent) 78%, var(--color-brand-navy) 22%);
  border-bottom: 1px solid var(--color-border);
}

html[data-theme="dark"] .product-pricing-table thead th {
  color: var(--color-brand-navy);
  background: color-mix(in srgb, var(--color-accent) 55%, var(--color-surface) 45%);
}

.product-pricing-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.product-pricing-table td,
.product-pricing-table tbody th {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.product-pricing-table tbody tr:nth-child(even) td,
.product-pricing-table tbody tr:nth-child(even) th {
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
}

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

.product-pricing-table thead th:nth-child(2),
.product-pricing-table td:nth-child(2) {
  text-align: center;
}

.product-pricing-table thead th:nth-child(3),
.product-pricing-table thead th:nth-child(4),
.product-pricing-table thead th:nth-child(5),
.product-pricing-table thead th:nth-child(6),
.product-pricing-table td:nth-child(3),
.product-pricing-table td:nth-child(4),
.product-pricing-table td:nth-child(5),
.product-pricing-table td:nth-child(6) {
  text-align: right;
}

.product-pricing-footnote {
  margin: var(--space-md) 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.product-info-section.cinematic-section {
  min-height: 0;
  align-items: flex-start;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.product-label-section-head {
  max-width: 40rem;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.product-label-section-head--compact {
  margin-bottom: var(--space-md);
}

.product-label-section-head h2 {
  margin-bottom: var(--space-xs);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
}

.product-label-section-head--compact .product-label-section-lead {
  font-size: 1rem;
}

.product-label-section-lead {
  margin: 0;
  color: var(--color-text-muted);
}

.product-label-card {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.product-label-card--dashboard {
  max-width: min(72rem, 100%);
  padding: var(--space-md) var(--space-md);
}

@media (min-width: 640px) {
  .product-label-card {
    padding: var(--space-xl);
  }

  .product-label-card--dashboard {
    padding: var(--space-lg) var(--space-xl);
  }
}

.product-label-card-head {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.product-label-muted--tight {
  margin-bottom: 0;
}

.product-label-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 900px) {
  .product-label-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-xl);
    align-items: start;
  }

  .product-spec--ingredients {
    grid-column: 1;
    grid-row: 1;
  }

  .product-spec--nutrition {
    grid-column: 2;
    grid-row: 1;
  }

  .product-spec--directions {
    grid-column: 1;
    grid-row: 2;
  }

  .product-spec--safety {
    grid-column: 2;
    grid-row: 2;
  }

  .product-spec--benefits {
    grid-column: 1;
    grid-row: 3;
  }

  .product-spec--storage {
    grid-column: 2;
    grid-row: 3;
  }

  .product-spec--manufacturer {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

.product-spec {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.product-spec__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-xs);
}

.product-spec__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text);
}

.product-spec__body p {
  margin: 0 0 0.5rem;
}

.product-spec__body p:last-child {
  margin-bottom: 0;
}

.product-spec__body--dense .product-mini + .product-mini {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
}

.product-mini__k {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 0.25rem;
}

.product-mini p:not(.product-mini__k) {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-label-ingredients-cols {
  column-width: 12rem;
  column-gap: 1.25rem;
  column-fill: balance;
  margin-bottom: 0.5rem !important;
  orphans: 2;
  widows: 2;
}

@media (min-width: 600px) {
  .product-label-ingredients-cols {
    column-count: 2;
    column-width: auto;
  }
}

.product-allergen {
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
}

.product-label-fine {
  font-size: 0.8125rem !important;
  margin-bottom: 0.35rem !important;
}

.product-label-card-title {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  margin-bottom: var(--space-xs);
}

.product-label-muted {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.product-label-block {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.product-label-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-label-block--compact {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
}

.product-label-block h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

.product-label-block p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.product-label-block p:last-child {
  margin-bottom: 0;
}

.product-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-details-table th,
.product-details-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

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

.product-details-table th {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  width: 35%;
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
  border-right: 1px solid var(--color-border);
}

.product-details-table td {
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-bg-elevated);
}

.product-details-table p {
  margin-bottom: 0.5rem;
}

.product-details-table p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .product-details-table th,
  .product-details-table td {
    display: block;
    width: 100%;
    border-right: none;
  }
  .product-details-table th {
    padding-bottom: 0.5rem;
    border-bottom: none;
  }
  .product-details-table td {
    padding-top: 0;
  }
}

.product-table-scroll {
  overflow-x: auto;
  margin-top: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.product-nutrition-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.product-nutrition-table th,
.product-nutrition-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border: 1px solid var(--color-border);
}

.product-nutrition-table thead th {
  background: var(--color-surface);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.product-nutrition-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg));
}

.product-nutrition-table--compact {
  font-size: 0.8125rem;
}

.product-nutrition-table--compact th,
.product-nutrition-table--compact td {
  padding: 0.4rem 0.45rem;
}

.product-nutrition-table--compact thead th {
  font-size: 0.625rem;
  padding: 0.35rem 0.45rem;
}

.product-label-importer p {
  margin-bottom: var(--space-sm);
}

.product-label-fineprint {
  font-size: 0.8125rem !important;
  color: var(--color-text-muted) !important;
  margin-top: var(--space-md) !important;
  margin-bottom: 0 !important;
}

.product-label-back-link {
  text-align: center;
  margin-top: var(--space-xl);
  margin-bottom: 0;
}

.product-label-back-link a {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Featured product on services */
.product-feature-card {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .product-feature-card {
    grid-template-columns: minmax(0, 20rem) 1fr;
    padding: var(--space-2xl);
    gap: var(--space-2xl);
  }
}

.product-feature-visual {
  margin: 0;
  justify-self: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.product-feature-copy h2 {
  margin-bottom: var(--space-xs);
}

.product-feature-tagline {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.product-feature-copy p {
  margin-bottom: var(--space-md);
}

.product-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Checkout — compact, scannable layout */
body.page-checkout .cinematic-hero.checkout-hero-compact,
body.page-checkout-success .cinematic-hero {
  min-height: 0;
  padding: var(--space-lg) var(--space-md);
}

body.page-checkout .cinematic-hero-inner,
body.page-checkout-success .cinematic-hero-inner {
  max-width: 36rem;
}

body.page-checkout .cinematic-hero h1,
body.page-checkout-success .cinematic-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: var(--space-xs);
}

body.page-checkout .cinematic-section.checkout-section {
  min-height: 0;
  padding: var(--space-md) var(--space-md) var(--space-2xl);
  align-items: flex-start;
}

.checkout-shell {
  display: grid;
  gap: var(--space-md);
  align-items: start;
  max-width: min(38rem, 100%);
  margin: 0 auto;
}

@media (min-width: 840px) {
  .checkout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-lg);
    max-width: min(42rem, 100%);
  }
}

.checkout-summary {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 840px) {
  .checkout-summary {
    position: sticky;
    top: calc(var(--header-h) + var(--space-md));
  }
}

.checkout-summary h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin-bottom: 0.35rem;
}

.checkout-summary-product {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.checkout-summary-product img {
  width: 3.75rem;
  height: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.checkout-summary-name {
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}

.checkout-summary-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.checkout-summary-tier {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.checkout-summary-lines {
  margin: 0;
}

.checkout-summary-lines > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: 0.35rem;
}

.checkout-summary-lines dt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.checkout-summary-lines dd {
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.checkout-summary-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.checkout-summary-total dt {
  font-weight: 600;
  color: var(--color-text);
}

.checkout-summary-total dd {
  font-size: 1.125rem;
  font-family: var(--font-serif);
}

.checkout-tax-note,
.checkout-setup-note,
.checkout-shipping-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.checkout-shipping-hint {
  margin-top: var(--space-sm);
}

.checkout-setup-details {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.checkout-setup-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-muted);
}

.checkout-setup-details summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.checkout-setup-details .checkout-setup-note {
  margin: var(--space-xs) 0 0;
}

.checkout-form-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-card);
}

.checkout-form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.checkout-form-intro {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

/* Dense form — match order summary card height */
.checkout-form-dense.checkout-form .checkout-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-form-dense.checkout-form .checkout-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  align-items: start;
}

@media (max-width: 420px) {
  .checkout-form-dense.checkout-form .checkout-form-row-2 {
    grid-template-columns: 1fr;
  }
}

.checkout-form-dense.checkout-form label {
  margin-bottom: 0.15rem;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
}

.checkout-form-dense.checkout-form input[type="email"],
.checkout-form-dense.checkout-form input[type="text"],
.checkout-form-dense.checkout-form input[type="number"],
.checkout-form-dense.checkout-form select {
  padding: 0.42rem 0.55rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.checkout-form-dense.checkout-form .checkout-distance-wrap {
  margin-bottom: 0;
}

.checkout-form-dense.checkout-form .checkout-distance-wrap .login-captcha-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.checkout-packages-hint {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.checkout-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
}

.checkout-form-dense.checkout-form select {
  padding: 0.42rem 0.55rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.checkout-form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 14%, transparent);
}

.checkout-distance-wrap {
  margin-bottom: var(--space-md);
}

.checkout-error {
  color: #9b2c2c;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

html[data-theme="dark"] .checkout-error {
  color: #ffb4b4;
}

.checkout-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.checkout-form.checkout-form-dense .checkout-form-actions {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  gap: 0.45rem;
  align-items: center;
}

.checkout-form-card .checkout-form-actions .checkout-submit {
  flex: 1 1 9rem;
  min-width: 0;
}

.checkout-form-card .checkout-form-actions .btn-ghost {
  flex: 0 1 auto;
}

.checkout-form-card .checkout-form-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

body.page-checkout .checkout-form-card .checkout-submit.btn-primary {
  animation: none;
}

@media (max-width: 380px) {
  .checkout-form-card .checkout-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-form-card .checkout-form-actions .checkout-submit {
    flex: 1 1 auto;
  }
}

.checkout-submit {
  border: none;
  cursor: pointer;
}

.checkout-stripe-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: var(--space-md) 0 0;
}

.checkout-form.checkout-form-dense .checkout-stripe-note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.checkout-success-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}
