/* ============================================================================
   Legacy Wellness — design system
   Extends the Legacy Health and Fitness palette (orange #ff6b35 on dark slate)
   with a cool clinical accent (teal) for the wellness/Rx side.
   ============================================================================ */

:root {
  --bg-0: #08080a;
  --bg-1: #0d0d0d;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --bg-elev: #1f1f26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf1;
  --text-dim: #a9a9b2;
  --text-mute: #6c6c75;
  --brand: #ff6b35;
  --brand-2: #ff8c5a;
  --brand-glow: rgba(255, 107, 53, 0.35);
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --accent-glow: rgba(45, 212, 191, 0.25);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 10px 40px var(--brand-glow);
  --shadow-accent: 0 10px 40px var(--accent-glow);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  overscroll-behavior-y: contain;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg-1);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 600px at 88% -8%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(900px 520px at -6% 28%, rgba(255, 107, 53, 0.07), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(255, 140, 90, 0.06), transparent 60%);
}

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

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

button { font-family: inherit; }

/* ============================================================================
   Layout primitives
   ============================================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 30%, transparent);
}

.section-tight { padding: 3rem 0; }

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.eyebrow.eyebrow-brand { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-weight: 700; }

p { color: var(--text-dim); font-size: 1rem; }

.lead {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.65;
}

.text-center { text-align: center; }
.center { margin-left: auto; margin-right: auto; }

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 53, 0.4);
}

.btn-accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #062e2a;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.28);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(45, 212, 191, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; min-height: 40px; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================================
   Header / nav
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand .logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-brand .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.25));
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text .wordmark {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-brand-text .wordmark .dot { color: var(--brand); }
.nav-brand-text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .nav-brand-text .wordmark { font-size: 0.95rem; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.cart-link:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(255, 107, 53, 0.06);
}
.cart-link.has-items {
  color: var(--brand);
  border-color: rgba(255, 107, 53, 0.5);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { padding: 0.6rem 1rem; min-height: 40px; font-size: 0.85rem; }
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(16px);
  z-index: 49;
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .btn { width: 100%; margin-top: 1.25rem; }

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
  padding: 4.5rem 0 4rem;
  position: relative;
}

.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--brand); }
.hero h1 .accent-cool { color: var(--accent); }
.hero .lead { margin: 0 auto 2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.trust-strip > div {
  text-align: center;
  padding: 0.5rem;
}
.trust-strip strong {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--text);
}
.trust-strip span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 0.35rem;
}
@media (max-width: 640px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   Cards & grids
   ============================================================================ */

.glass {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pillar-card { display: flex; flex-direction: column; gap: 1rem; }
.pillar-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.25);
}
.pillar-card.brand .icon {
  background: rgba(255, 107, 53, 0.12);
  color: var(--brand);
  border-color: rgba(255, 107, 53, 0.25);
}
.pillar-card .icon svg,
.process-step .icon svg,
.icon-inline svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  display: block;
}
.pillar-card h3 { color: var(--text); }
.pillar-card p { font-size: 0.95rem; }
.pillar-card .pillar-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}
.pillar-card .pillar-link:hover { gap: 0.7rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: var(--shadow-accent);
}
.product-card .product-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}
.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.product-card .product-sub {
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.product-card .product-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  flex-grow: 1;
}
.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.product-card .product-price .from {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.product-card .product-price .price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}
.product-card .product-price .price-range {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.product-card .compare-callout {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: -0.4rem 0 0.85rem;
  line-height: 1.4;
}
.product-card .compare-callout .vs { color: var(--text-mute); }
.product-card .compare-callout .brand-price {
  text-decoration: line-through;
  color: var(--text-mute);
  opacity: 0.85;
}
.product-card .compare-callout .save {
  color: var(--accent);
  font-weight: 700;
}
.product-card .btn { width: 100%; }
.product-card .btn-row-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-card .btn-row-stack .btn { width: 100%; }
.product-card .btn.is-added {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #062e2a;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.4);
}

/* ============================================================================
   Cart + checkout layout
   ============================================================================ */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.cart-line .cl-info { min-width: 0; }
.cart-line .cl-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.cart-line h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.cart-line .cl-sub { font-size: 0.82rem; color: var(--text-mute); margin-bottom: 0.6rem; }
.cart-line .cl-unit { font-size: 0.85rem; color: var(--text-dim); }
.cart-line .cl-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 130px;
}
.cart-line .cl-line-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.cart-line .cl-remove {
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
}
.cart-line .cl-remove:hover { color: var(--danger); text-decoration-color: var(--danger); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-1);
}
.qty-stepper button {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper button:hover { color: var(--brand); background: rgba(255,107,53,0.06); }
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper input {
  width: 44px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
  min-height: 0;
  padding: 0;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-empty {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.cart-empty h2 { margin-bottom: 0.75rem; }
.cart-empty p { margin-bottom: 1.5rem; }

.totals-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}
.totals-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.totals-row.totals-total {
  border-top: 1px solid var(--line-strong);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.totals-row .ts-name { display: inline-flex; align-items: center; gap: 0.5rem; }
.totals-row .ts-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-mute);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.totals-row .ts-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}
.totals-card .btn-block { width: 100%; margin-top: 1rem; }
.totals-card .secure-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 0.85rem;
  justify-content: center;
}

.checkout-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.checkout-section h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.checkout-section h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.payment-placeholder {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--bg-1);
  border: 1px dashed var(--line-strong);
  color: var(--text-mute);
  text-align: center;
  font-size: 0.9rem;
}
.payment-placeholder strong { color: var(--text); display: block; margin-bottom: 0.4rem; }

.compliance-strip {
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.compliance-strip strong { color: var(--accent); }

/* Category headers within shop */
.shop-category {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.shop-category:first-of-type { margin-top: 0; }
.shop-category h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.shop-category .cat-count {
  color: var(--text-mute);
  font-size: 0.85rem;
}

.shop-subcategory {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.shop-subcategory .vs-brand {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0;
}
.shop-subcategory .vs-brand .brand-price {
  text-decoration: line-through;
  opacity: 0.85;
}
.shop-subcategory + .product-grid { margin-top: 0; }

.shop-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
}
.shop-toc a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.shop-toc a:hover {
  color: var(--text);
  border-color: var(--brand);
}

/* ============================================================================
   Process / steps
   ============================================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}
.process-step h3 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.5rem;
}
.process-step p { font-size: 0.9rem; }

/* ============================================================================
   Wellness packages (membership analog)
   ============================================================================ */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.package-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  /* Smooth hover-lift so the cards feel less like static blocks. The
     featured card overrides this with a stronger lift below. */
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.package-card:hover {
  border-color: rgba(255, 107, 53, 0.35);
  transform: translateY(-2px);
}
.package-card.featured {
  border-color: rgba(255, 107, 53, 0.6);
  box-shadow: var(--shadow-brand), 0 0 0 1px rgba(255, 107, 53, 0.25) inset;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.04), transparent 35%), var(--bg-2);
}
/* Lift the featured card slightly above its neighbors on desktop so the
   eye lands there first. Disabled at narrow widths where the cards stack
   vertically and a translate would just visually misalign them. */
@media (min-width: 860px) {
  .package-card.featured {
    transform: translateY(-8px);
  }
  .package-card.featured:hover {
    transform: translateY(-12px);
  }
}
.package-card .pkg-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.95rem;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
  white-space: nowrap;
  z-index: 2;
}
.package-card .pkg-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.35rem; }
.package-card .pkg-tagline { color: var(--text-mute); font-size: 0.9rem; margin-bottom: 1rem; }
.package-card .pkg-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.package-card .pkg-price .price { font-size: 2.5rem; font-weight: 800; }
.package-card .pkg-price .cadence { color: var(--text-mute); font-size: 0.9rem; }
.package-card .pkg-intro {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--brand);
  border: 1px solid rgba(255, 107, 53, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}
.package-card .pkg-annual {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: -0.6rem;
  margin-bottom: 1.4rem;
  line-height: 1.4;
}
.package-card .pkg-annual strong {
  color: var(--accent);
  font-weight: 700;
}
.package-card ul {
  list-style: none;
  padding: 0;
  /* Bottom margin removed — the button now uses margin-top:auto to anchor
     itself at the card bottom, which produces a single clean spacer above
     the CTA instead of a gap visible inside the bullet list. */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.package-card ul li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.package-card ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1.5;
}
/* The CTA + disclaimer always sit at the bottom of the card. margin-top:
   auto eats whatever vertical space is left in the flex column so that
   variable-length bullet lists don't push the buttons to different
   heights — they all line up across the row. */
.package-card > .btn {
  margin-top: auto;
}
.package-card > .pkg-disclaimer {
  margin-top: 0.85rem;
}
.package-card ul li .val-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  white-space: nowrap;
}
.package-card .pkg-value-summary {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 0;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.package-card .pkg-value-summary strong { color: var(--accent); font-weight: 700; }
/* The .pkg-recurring-note chip styling lives below — see the existing
   .package-card .pkg-recurring-note rule. We just place it visibly on a
   new line here so it reads as a separate footer beneath the summary. */
.package-card .pkg-value-summary .pkg-recurring-note {
  display: block;
  margin-top: 0.5rem;
  width: fit-content;
}
.package-card .pkg-tax-line {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: -0.4rem;
  margin-bottom: 1.4rem;
  line-height: 1.4;
}
.package-card .pkg-tax-line strong {
  color: var(--text);
  font-weight: 800;
}
.package-card .pkg-recurring-note {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 999px;
}

/* ============================================================================
   FAQ accordion
   ============================================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-item .faq-body p + p { margin-top: 0.75rem; }

/* ============================================================================
   Forms
   ============================================================================ */

.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--brand); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 107, 53, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--brand);
}

.form-helper {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.form-status.is-success { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--success); display: block; }
.form-status.is-error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--danger); display: block; }

/* Date / time slot picker */
.slot-picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.slot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.slot-row input { background: var(--bg-1); }
@media (max-width: 540px) { .slot-row { grid-template-columns: 1fr; } }

/* ============================================================================
   CTA band & footer
   ============================================================================ */

.cta-band {
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 80% 50%, rgba(255, 107, 53, 0.18), transparent 60%),
    radial-gradient(500px 200px at 10% 50%, rgba(45, 212, 191, 0.14), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band .lead { margin: 0 auto 1.5rem; }
.cta-band .btn-row { justify-content: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: var(--bg-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.25rem;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.25));
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.footer-brand .wordmark {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}
.footer-brand .wordmark .dot { color: var(--brand); }
.footer-brand .wordmark small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-mute); max-width: 32ch; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-mute);
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--text-dim); }

.disclaimer {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 800px;
}

/* ============================================================================
   Page hero (for inner pages)
   ============================================================================ */

.page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.page-hero .lead { margin: 0 auto; }

/* ============================================================================
   Legal / long-form copy
   ============================================================================ */

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}
.prose h2 { color: var(--text); margin: 2.5rem 0 1rem; font-size: 1.45rem; }
.prose h3 { color: var(--text); margin: 1.75rem 0 0.75rem; font-size: 1.1rem; }
.prose p, .prose li { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); border-bottom: 1px solid rgba(255, 107, 53, 0.4); }
.prose a:hover { border-bottom-color: var(--brand); }

/* ============================================================================
   Misc
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.badge.badge-accent { background: rgba(45, 212, 191, 0.12); color: var(--accent); border: 1px solid rgba(45, 212, 191, 0.25); }
.badge.badge-brand { background: rgba(255, 107, 53, 0.12); color: var(--brand); border: 1px solid rgba(255, 107, 53, 0.25); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

[hidden] { display: none !important; }

/* ============================================================
   2026 Wellness pivot — pain band, peptide preview, modal funnel
   ============================================================ */

/* Pain-point cards ("what hasn't worked") */
.pain-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.pain-card {
    position: relative;
    padding: 1.5rem 1.5rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.pain-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.35);
}
.pain-card h3 {
    margin: 0.6rem 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}
.pain-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-dim);
}
.pain-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.04));
    color: var(--brand);
    border: 1px solid rgba(255, 107, 53, 0.25);
}

/* Reframe transition block */
.reframe {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.06), transparent 80%);
    border-top: 1px solid rgba(255, 107, 53, 0.18);
    border-bottom: 1px solid rgba(255, 107, 53, 0.18);
}
.reframe h2 {
    margin: 0.6rem 0 1.1rem;
}
.reframe .lead {
    margin: 0 auto;
}

/* Peptide preview cards on the homepage */
.peptide-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-top: 2rem;
}
.peptide-preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.peptide-preview-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.45);
}
.peptide-preview-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}
.peptide-preview-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-dim);
}
.peptide-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.25);
    font-weight: 700;
}

/* Inline peptide list inside package cards. Visually distinct from the
   parent ul so it reads as "details for this protocol" rather than "more
   bullets." Indented card-within-the-card with a brand-colored left rule.
   We override the parent's flex-row li display + ✓ pseudo-content so the
   nested items render as a regular indented list. */
.peptide-list {
    list-style: none !important;
    padding: 0.45rem 0 0.2rem 0.85rem !important;
    margin: 0.5rem 0 0 !important;
    border-left: 2px solid rgba(255, 107, 53, 0.25);
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
}
.package-card ul li .peptide-list li {
    display: list-item !important;
    list-style: none !important;
    font-size: 0.85rem !important;
    color: var(--text-mute) !important;
    padding: 0 !important;
    line-height: 1.5;
}
/* Suppress the parent's ✓ pseudo on nested peptide-list items. We win on
   specificity by chaining .peptide-list. */
.package-card ul li .peptide-list li::before {
    content: "" !important;
    margin-right: 0;
}

/* Per-package disclaimer */
.pkg-disclaimer {
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-mute);
    text-align: center;
}

/* Compliance footer line under sections */
.compliance-line {
    margin: 2rem auto 0;
    max-width: 880px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-mute);
    padding: 0 0.5rem;
}

/* ============================================================
   Catalog page (peptides catalog) — no-checkout cards
   ============================================================ */
.catalog-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.6rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.catalog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.4);
}
.catalog-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
}
.catalog-card .catalog-aliases {
    font-size: 0.75rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.catalog-card .catalog-pain {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-dim);
}
.catalog-card .catalog-mechanism {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-mute);
    font-style: italic;
}
.catalog-card .catalog-mechanism::before {
    content: "How it works: ";
    font-style: normal;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 0.3rem;
}
.catalog-card button {
    margin-top: auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.catalog-section {
    margin-top: 3rem;
}
.catalog-section h2 {
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
    font-weight: 800;
}
.catalog-section .catalog-section-sub {
    color: var(--text-dim);
    margin: 0 0 0.4rem;
    max-width: 760px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================================
   Modal funnel — opened from any [data-wellness-cta] click
   ============================================================ */

body.wf-locked {
    overflow: hidden;
}

.wf-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.wf-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: wf-fade-in 0.18s ease;
}
.wf-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #131314;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.6rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    animation: wf-slide-up 0.22s cubic-bezier(0.2, 0.8, 0.25, 1);
}
@keyframes wf-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wf-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wf-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.wf-close:hover {
    background: rgba(255, 107, 53, 0.18);
    color: var(--brand);
}

.wf-header {
    text-align: center;
    margin-bottom: 1.4rem;
}
.wf-header h2 {
    margin: 0.5rem 0 0.55rem;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 800;
}
.wf-sub {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.wf-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.wf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.wf-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.wf-field > span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    font-weight: 600;
}
.wf-field > span em {
    color: var(--brand);
    font-style: normal;
}
.wf-field > span small {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
    color: var(--text-mute);
    font-weight: 400;
}
.wf-field input,
.wf-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.wf-field input:focus,
.wf-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.06);
}
.wf-field textarea {
    resize: vertical;
    min-height: 70px;
}

.wf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.45;
    cursor: pointer;
}
.wf-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

/* Honeypot — visually hidden but not display:none (so bots that skip
   hidden fields still see + fill it). */
.wf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wf-submit {
    margin-top: 0.4rem;
}

.wf-status {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.2em;
    color: var(--text-dim);
}
.wf-status.is-error  { color: #ef4444; }
.wf-status.is-success { color: #10b981; }

.wf-fineprint {
    margin: 0.6rem 0 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--text-mute);
    text-align: center;
}
.wf-fineprint a {
    color: var(--text-dim);
    text-decoration: underline;
}

/* Success state */
.wf-success {
    text-align: center;
    padding: 1rem 0.5rem;
}
.wf-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(16, 185, 129, 0.4);
}
.wf-success h2 {
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
}
.wf-success p {
    color: var(--text-dim);
    margin: 0 auto 1.4rem;
    max-width: 400px;
    line-height: 1.55;
    font-size: 0.95rem;
}
.wf-success a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

/* Mobile tweaks */
@media (max-width: 540px) {
    .wf-dialog {
        padding: 1.6rem 1.25rem 1.25rem;
        max-height: calc(100vh - 1.5rem);
    }
    .wf-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .wf-header h2 {
        font-size: 1.25rem;
    }
}

/* Header CTA: fix the "Book a free consult" button-as-anchor visual when
   it's a <button> element instead of <a>. */
.nav-cta button.btn {
    cursor: pointer;
    border: 0;
    font-family: inherit;
}
