/* ==========================================================================
   Velissé — Core Stylesheet
   Brand tokens sourced directly from logo artwork (navy #0B1F45 / purple #623087)
   ========================================================================== */

:root{
  /* ---- Brand colors (from logo + PDF sales sheets) ---- */
  --navy:        #0B1F45;   /* primary text, headings, wordmark */
  --navy-deep:   #050F22;   /* darkest sections, footer */
  --navy-mid:    #16305C;
  --purple:      #623087;   /* primary accent / CTA */
  --purple-deep: #4A2566;   /* CTA hover */
  --purple-soft: #F1E7F6;   /* light tint backgrounds, badges */
  --purple-line: #B79ACB;
  --gold:        #A9814E;   /* tertiary accent — Structura Peptide */
  --gold-soft:   #F1E7D6;

  /* ---- Cream / paper ---- */
  --cream:       #FAF5EC;   /* page background */
  --cream-deep:  #F1E7D4;   /* alternate section background */
  --paper:       #FFFFFF;   /* cards */
  --ink:         #241F19;   /* body copy on cream (warm near-black) */
  --ink-soft:    #6B6255;   /* muted / secondary copy */
  --line:        rgba(11,31,69,0.12);
  --line-soft:   rgba(11,31,69,0.07);

  /* ---- Type ---- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* ---- Misc ---- */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-card: 0 18px 40px -22px rgba(11,31,69,0.35);
  --shadow-soft: 0 10px 30px -18px rgba(11,31,69,0.25);
  --ease: cubic-bezier(.22,.68,0,1);
  --maxw: 1240px;
}

/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
h1,h2,h3,h4,h5{ font-family:var(--font-display); color:var(--navy); margin:0 0 .5em; font-weight:600; line-height:1.15; }
p{ margin:0 0 1em; }
:focus-visible{ outline:2px solid var(--purple); outline-offset:3px; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.container--narrow{ max-width:860px; }
.container--wide{ max-width:1400px; }

/* ------------------------------- Utility text ------------------------------ */
.eyebrow{
  font-family:var(--font-body);
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--purple);
  font-weight:500;
  display:inline-flex;
  align-items:center;
  gap:14px;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:var(--purple-line); display:inline-block; }
.eyebrow--center{ justify-content:center; }
.eyebrow--light{ color:#D9C7E6; }
.eyebrow--light::before{ background:rgba(255,255,255,.4); }

.lede{ font-size:1.08rem; color:var(--ink-soft); max-width:56ch; }
.italic-serif{ font-family:var(--font-display); font-style:italic; color:var(--purple); }
.text-center{ text-align:center; }
.center-col{ display:flex; flex-direction:column; align-items:center; text-align:center; }

.divider{ width:52px; height:2px; background:var(--purple); margin:18px 0; border:0; }
.divider--center{ margin:18px auto; }

.section{ padding:96px 0; }
.section--tight{ padding:64px 0; }
.section--cream-deep{ background:var(--cream-deep); }
.section--navy{ background:var(--navy-deep); color:#EDE7DA; }
.section--navy h2, .section--navy h3{ color:#FBF8F2; }
.section--purple{ background:linear-gradient(155deg,#3B1E52,#623087 60%,#4A2566); color:#F4ECF8; }
.section--purple h2, .section--purple h3{ color:#fff; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  background:var(--purple-soft); color:var(--purple-deep);
  border-radius:999px; padding:6px 14px;
}
.badge--gold{ background:var(--gold-soft); color:#7C5B2C; }
.badge--outline{ background:transparent; border:1px solid rgba(255,255,255,.35); color:inherit; }

/* --------------------------------- Buttons --------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-weight:500; font-size:.86rem;
  letter-spacing:.06em; text-transform:uppercase;
  padding:15px 30px; border-radius:var(--radius); border:1px solid transparent;
  cursor:pointer; transition:transform .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--purple); color:#fff; box-shadow:0 14px 28px -14px rgba(98,48,135,.55); }
.btn-primary:hover{ background:var(--purple-deep); }
.btn-outline{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:#fff; }
.btn-outline-light{ background:transparent; border-color:rgba(255,255,255,.55); color:#fff; }
.btn-outline-light:hover{ background:#fff; color:var(--navy); }
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ background:#8E6B3E; }
.btn-block{ width:100%; }
.btn-sm{ padding:11px 22px; font-size:.76rem; }

/* ================================ HEADER =================================== */
.site-header{
  position:sticky; top:0; z-index:200;
  background-image:url('../images/header-silk-bg.jpg');
  background-size:cover; background-position:center;
  background-color:var(--cream);
  border-bottom:1px solid rgba(11,31,69,.08);
}
.site-header__bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; padding:14px 24px;
  max-width:var(--maxw); margin:0 auto;
}
.site-header__logo img{ height:46px; width:auto; }
.site-header__nav{ display:flex; align-items:center; gap:34px; }
.site-header__nav a{
  font-size:.82rem; letter-spacing:.05em; text-transform:uppercase; font-weight:500;
  color:var(--navy); position:relative; padding:6px 0; margin-right:34px; /* fallback for engines without flex gap */
}
.site-header__nav a:last-child{ margin-right:0; }
.site-header__nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--purple);
  transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease);
}
.site-header__nav a:hover::after, .site-header__nav a[aria-current="page"]::after{ transform:scaleX(1); }
.site-header__nav a[aria-current="page"]{ color:var(--purple); }

.site-header__ctas{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:38px; height:38px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(11,31,69,.2); color:var(--navy); background:rgba(255,255,255,.5);
  transition:background .3s ease, color .3s ease, border-color .3s ease;
}
.icon-btn:hover{ background:var(--navy); color:#fff; border-color:var(--navy); }

.menu-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.menu-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; transition:transform .3s ease, opacity .3s ease; }

/* Mobile nav */
@media (max-width: 980px){
  .site-header__nav{
    position:fixed; inset:0 0 0 auto; width:min(320px,86vw); height:100vh;
    background:var(--cream); flex-direction:column; align-items:flex-start; justify-content:flex-start;
    padding:100px 30px 30px; gap:22px;
    transform:translateX(100%); transition:transform .4s var(--ease);
    box-shadow:-10px 0 40px rgba(0,0,0,.15);
  }
  .site-header__nav.is-open{ transform:translateX(0); }
  .menu-toggle{ display:block; }
  .site-header__ctas .btn-sm-label{ display:none; }
}

/* Top utility strip (CTAs) */
.top-strip{
  background:var(--navy-deep); color:#E7E0D3;
  font-size:.72rem; letter-spacing:.05em;
}
.top-strip .container{ display:flex; align-items:center; justify-content:space-between; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; gap:8px; }
.top-strip a{ color:#E7E0D3; opacity:.9; }
.top-strip a:hover{ opacity:1; text-decoration:underline; }
.top-strip__ctas{ display:flex; gap:20px; }
.top-strip__ctas a{ display:inline-flex; align-items:center; gap:6px; }

/* ================================= HERO ===================================== */
.hero{
  position:relative; overflow:hidden;
  display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:40px;
  padding:80px 0 90px;
}
.hero__content{ position:relative; z-index:2; }
.hero__content h1{ font-size:clamp(2.4rem,4.2vw,3.6rem); margin-bottom:.35em; }
.hero__content .lede{ margin-bottom:2em; }
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero__media{ position:relative; }
/* height:auto is a safety net: if a future width/height HTML attribute
   pair on a hero image ever doesn't match the real file's aspect ratio,
   this still forces height to scale from the actual rendered width
   rather than stretching to a mismatched fixed box. Always set the
   width/height attributes to the image's true pixel dimensions. */
.hero__media img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-card); height:auto; }
.hero__media::after{
  content:""; position:absolute; inset:18px -18px -18px 18px; z-index:-1;
  border:1px solid var(--purple-line); border-radius:var(--radius-lg);
}
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; padding:56px 0 60px; text-align:center; }
  .hero__actions{ justify-content:center; }
  .hero__media::after{ display:none; }
}

/* ============================= PRODUCT CARDS ================================ */
.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
@media (max-width:980px){ .product-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .product-grid{ grid-template-columns:1fr; } }

.product-card{
  background:var(--paper); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-soft); display:flex; flex-direction:column;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-card); }
.product-card__media{ aspect-ratio:4/5; overflow:hidden; background:var(--cream-deep); }
.product-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.product-card:hover .product-card__media img{ transform:scale(1.045); }
.product-card__body{ padding:26px 26px 28px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-card__eyebrow{ font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--purple); font-weight:600; }
.product-card__body h3{ font-size:1.34rem; margin-bottom:0; }
.product-card__body p{ color:var(--ink-soft); font-size:.92rem; margin-bottom:0; flex:1; }
.product-card__meta{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.product-card__price{ font-family:var(--font-display); font-size:1.15rem; color:var(--navy); }
.product-card__actions{ display:flex; gap:10px; margin-top:14px; }

/* =============================== FEATURE GRID ================================ */
.feature-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:36px 48px; }
@media (max-width:760px){ .feature-grid{ grid-template-columns:1fr; } }
.feature{ padding-top:18px; border-top:1px solid var(--line); }
.feature h4{ font-size:1.05rem; margin-bottom:.4em; }
.feature p{ color:var(--ink-soft); font-size:.92rem; margin-bottom:0; }
.section--navy .feature{ border-top-color:rgba(255,255,255,.18); }
.section--navy .feature p{ color:#C7C0B2; }

.stat-row{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.icon-feature{ text-align:center; padding:0 10px; }
.icon-feature__icon{ width:52px; height:52px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--purple-line); color:var(--purple); }
.icon-feature h5{ font-family:var(--font-body); font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--navy); margin-bottom:.3em; font-weight:600; }
.icon-feature p{ font-size:.82rem; color:var(--ink-soft); margin:0; }

/* ================================ SPLIT ROW =================================== */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split.reverse .split__media{ order:2; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:34px; } .split.reverse .split__media{ order:0; } }
.split__media img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-soft); width:100%; }
.split__media--frame{ position:relative; }
.split__media--frame::before{
  content:""; position:absolute; inset:-16px -16px auto auto; width:70%; height:70%;
  border:1px solid var(--purple-line); border-radius:var(--radius-lg); z-index:-1;
}

/* ================================ SIGNATURE BLOCK ============================= */
.signature-block{ display:flex; align-items:center; gap:16px; margin-top:26px; }
.signature-block img{ height:52px; }
.signature-block .sig-name{ font-family:var(--font-display); font-style:italic; font-size:1.15rem; color:var(--navy); }
.signature-block .sig-title{ font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); }

/* ================================ INGREDIENT PILLS ============================ */
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 0; }
.pill{ font-size:.76rem; padding:6px 14px; border-radius:999px; background:var(--purple-soft); color:var(--purple-deep); font-weight:500; }

/* ================================== VL CARD =================================== */
.vl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:900px){ .vl-grid{ grid-template-columns:1fr; } }
.vl-card{ position:relative; border-radius:var(--radius-lg); overflow:hidden; min-height:420px; display:flex; align-items:flex-end; box-shadow:var(--shadow-soft); }
.vl-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.vl-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(5,15,34,0) 30%,rgba(5,15,34,.86) 100%); z-index:1; }
.vl-card__body{ position:relative; z-index:2; padding:26px 24px; color:#fff; }
.vl-card__code{ font-size:.68rem; letter-spacing:.18em; color:#D9C7E6; margin-bottom:6px; display:block; }
.vl-card__body h3{ color:#fff; font-size:1.4rem; margin-bottom:.3em; }
.vl-card__body p{ color:#E4DCEF; font-size:.86rem; margin-bottom:0; }

/* ================================== TIMELINE / STEPS =========================== */
.steps{ counter-reset:step; display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
@media (max-width:900px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; } }
.step{ position:relative; padding-top:52px; }
.step::before{ counter-increment:step; content:counter(step,decimal-leading-zero); font-family:var(--font-display); font-size:1.6rem; color:var(--purple-line); position:absolute; top:0; left:0; }
.step h5{ font-size:.98rem; margin-bottom:.4em; color:var(--navy); }
.step p{ font-size:.85rem; color:var(--ink-soft); margin:0; }

/* =================================== TESTIMONIAL BAND =========================== */
.quote-band{ text-align:center; max-width:760px; margin:0 auto; }
.quote-band blockquote{ font-family:var(--font-display); font-style:italic; font-size:clamp(1.3rem,2.4vw,1.8rem); color:var(--navy); margin:0 0 18px; line-height:1.4; }
.section--navy .quote-band blockquote, .section--purple .quote-band blockquote{ color:#fff; }
.quote-band cite{ font-style:normal; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); }

/* =================================== FORMS ======================================= */
.form-panel{ background:var(--paper); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); padding:44px; }
@media (max-width:640px){ .form-panel{ padding:28px; } }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color:var(--navy); font-weight:500; margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--cream); font-family:var(--font-body); font-size:.94rem; color:var(--ink);
  transition:border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--purple); box-shadow:0 0 0 3px rgba(98,48,135,.12);
}
.field textarea{ resize:vertical; min-height:130px; }
.field-note{ font-size:.76rem; color:var(--ink-soft); margin-top:6px; }
.form-success, .form-error{ display:none; padding:16px 18px; border-radius:var(--radius); font-size:.9rem; margin-bottom:20px; }
.form-success{ background:#E7F3E6; color:#2B5E30; border:1px solid #BFE0BE; }
.form-error{ background:#FBEAEA; color:#8A2E2E; border:1px solid #F0C6C6; }
.form-success.is-visible, .form-error.is-visible{ display:block; }
.recaptcha-disclosure{ font-size:.72rem; color:var(--ink-soft); margin-top:14px; line-height:1.6; }
.recaptcha-disclosure a{ text-decoration:underline; }

/* =================================== FOOTER ======================================= */
.site-footer{ background:var(--navy-deep); color:#CFC7B6; padding-top:70px; }
.site-footer a{ color:#CFC7B6; }
.site-footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:36px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.1); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand img{ height:34px; margin-bottom:16px; }
.footer-brand p{ font-size:.86rem; color:#A79E8C; max-width:32ch; }
.footer-social{ display:flex; gap:12px; margin-top:18px; }
.footer-col h6{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:#8F8672; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:11px; font-size:.88rem; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; padding:26px 0; font-size:.76rem; color:#8F8672; flex-wrap:wrap; gap:10px; }
.footer-bottom ul{ display:flex; gap:22px; flex-wrap:wrap; }

/* =================================== MISC ========================================= */
.breadcrumb{ font-size:.76rem; color:var(--ink-soft); padding:18px 0 0; }
.breadcrumb a{ color:var(--ink-soft); }
.breadcrumb a:hover{ color:var(--purple); }
.page-intro{ padding:56px 0 10px; text-align:center; }
.page-intro h1{ font-size:clamp(2rem,3.6vw,2.8rem); }
.page-intro .lede{ margin:0 auto; }

.two-col-text{ columns:2; column-gap:48px; }
@media (max-width:760px){ .two-col-text{ columns:1; } }

.table-clean{ width:100%; border-collapse:collapse; font-size:.9rem; }
.table-clean th, .table-clean td{ text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); }
.table-clean th{ font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--navy); }

.legal-content h2{ font-size:1.3rem; margin-top:2em; }
.legal-content h3{ font-size:1.05rem; margin-top:1.6em; }
.legal-content p, .legal-content li{ color:var(--ink-soft); font-size:.94rem; }
.legal-content li{ margin-bottom:.5em; }
.legal-updated{ font-size:.8rem; color:var(--ink-soft); }

.skip-link{ position:absolute; left:-999px; top:0; background:var(--navy); color:#fff; padding:12px 18px; z-index:999; }
.skip-link:focus{ left:12px; top:12px; }

/* Progressive enhancement: content is fully visible by default. The
   fade-up animation only applies once we know JS has actually run
   (html.js, set by an inline script in <head>) — so if JS is blocked,
   slow, or errors out, every .reveal section is still fully visible
   rather than stuck at opacity:0. */
.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible{ opacity:1; transform:none; }

.chat-fab{
  position:fixed; right:22px; bottom:22px; z-index:300;
  background:var(--purple); color:#fff; border:0; border-radius:999px;
  padding:14px 20px; display:flex; align-items:center; gap:10px;
  box-shadow:0 16px 30px -12px rgba(98,48,135,.55); cursor:pointer;
  font-family:var(--font-body); font-size:.82rem; letter-spacing:.03em; text-transform:uppercase; font-weight:500;
  transition:transform .3s var(--ease), background .3s ease;
}
.chat-fab:hover{ transform:translateY(-3px); background:var(--purple-deep); }
@media (max-width:640px){ .chat-fab span{ display:none; } .chat-fab{ padding:14px; } }
