/* ============================================================
   THUASNE VENOFLEX® ELEGANCE — STORYTELLING ADVERTORIAL
   Style: Dark Premium Editorial
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Onest:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:          #0f0d20;
  --color-bg-soft:     #1a1635;
  --color-bg-card:     #211e3a;
  --color-bg-warm:     #f5f3ef;
  --color-primary:     #2c52eb;
  --color-accent:      #5fcafa;
  --color-accent-soft: rgba(95,202,250,0.12);
  --color-dark:        #0f0d20;
  --color-text:        rgba(255,255,255,0.82);
  --color-text-muted:  rgba(255,255,255,0.50);
  --color-text-dark:   #1a1635;
  --color-border:      rgba(255,255,255,0.08);
  --color-border-soft: rgba(95,202,250,0.18);
  --color-rule:        rgba(95,202,250,0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Onest', system-ui, sans-serif;

  --nav-h: 0px; /* no sticky nav in storytelling mode */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  --transition: 0.3s ease;
  --shadow-soft: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-card: 0 8px 48px rgba(0,0,0,0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   CONTRAST HELPERS
   ============================================================ */
.on-dark { color: rgba(255,255,255,0.82); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,0.70); }
.on-dark a:not(.btn) { color: inherit; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  box-sizing: border-box;
}

.container--wide {
  max-width: 1100px;
}

/* ============================================================
   ADVERTORIAL DISCLOSURE BAR
   ============================================================ */
.disclosure-bar {
  background: rgba(44, 82, 235, 0.15);
  border-bottom: 1px solid rgba(44, 82, 235, 0.30);
  padding: 9px 0;
  text-align: center;
}

.disclosure-bar p {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.article-header {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px);
}

.article-header__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 20px;
}

.article-header__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 28px;
}

.article-header__title em {
  font-style: italic;
  color: var(--color-accent);
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 1.5px solid var(--color-border-soft);
  color: var(--color-accent);
  flex: none;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.byline__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.byline__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.byline__bio {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================================
   LEAD FIGURE (full-width photo after header)
   ============================================================ */
.lead-figure {
  width: 100%;
  margin: 0 0 clamp(32px, 5vw, 56px);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--color-bg-card);
}

.lead-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.lead-figure .photo-placeholder {
  min-height: 100%;
  border-radius: var(--radius-md);
}

/* ============================================================
   ARTICLE BODY — SECTIONS & PROSE
   ============================================================ */
.article-section {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.article-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-rule);
}

.article-section h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.article-section p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
  line-height: 1.78;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section strong {
  color: #fff;
  font-weight: 600;
}

/* Inline figure within body */
.inline-figure {
  margin: clamp(28px, 4vw, 48px) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.inline-figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.inline-figure--half {
  float: right;
  width: 46%;
  margin: 0 0 28px 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.inline-figure--half img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   INLINE CTA (soft link, not a button)
   ============================================================ */
.inline-cta {
  background: rgba(44, 82, 235, 0.10);
  border: 1px solid rgba(44, 82, 235, 0.30);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: clamp(28px, 4vw, 44px) 0;
}

.inline-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 12px;
}

.inline-cta p:last-child {
  margin-bottom: 0;
}

.inline-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(95,202,250,0.35);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.inline-cta__link:hover {
  color: #fff;
  border-color: #fff;
}

.inline-cta__link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ============================================================
   PRODUCT TURN — FACTS TABLE + BADGE ROW
   ============================================================ */
.product-turn {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  margin: clamp(36px, 5vw, 60px) 0;
}

.product-turn__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.product-turn__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-bg);
}

.product-turn__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-turn__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-turn__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.product-turn__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

/* Facts table */
.facts {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.facts__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.facts__row:last-child {
  border-bottom: none;
}

.facts__row dt {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.facts__row dd {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.82);
}

/* Icon badge row */
.badge-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.badge-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.badge-row__item svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.badge-row__item span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
  margin: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 52px);
}

.faq__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-rule);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.faq__icon svg {
  width: 12px;
  height: 12px;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq--open .faq__icon {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  transform: none;
}

.faq--open .faq__icon svg {
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding-bottom: 20px;
}

.faq--open .faq__answer {
  display: block;
}

.faq__answer p {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.72;
  margin-bottom: 12px;
}

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

.faq__answer a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(95,202,250,0.3);
  transition: color var(--transition);
}

.faq__answer a:hover {
  color: #fff;
}

/* ============================================================
   CLOSING CTA BLOCK
   ============================================================ */
.closing-cta {
  background: linear-gradient(135deg, #1a1635 0%, #211e3a 100%);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  margin: clamp(32px, 5vw, 56px) 0;
  text-align: center;
}

.closing-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 16px;
}

.closing-cta__headline em {
  font-style: italic;
  color: var(--color-accent);
}

.closing-cta__text {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  margin-bottom: 28px;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 28px;
}

.cta-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.cta-link-btn:hover {
  background: #1f3fcc;
  transform: translateY(-1px);
}

.cta-link-btn svg {
  width: 16px;
  height: 16px;
}

.closing-cta__note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0918;
  border-top: 1px solid var(--color-border);
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 40px);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.footer__brand span {
  color: var(--color-accent);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
  margin: 16px 0 20px;
  font-size: 13px;
}

.footer__links a {
  color: rgba(255,255,255,0.50);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__links .sep {
  color: rgba(255,255,255,0.22);
  margin: 0 10px;
  user-select: none;
}

.footer__disclosure {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 4px;
}

.footer__disclosure p {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  margin-bottom: 10px;
}

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

.footer__disclosure a {
  color: rgba(95,202,250,0.55);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.footer__disclosure a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ============================================================
   PHOTO PLACEHOLDER — ALWAYS PINK
   ============================================================ */
.photo-placeholder {
  background: linear-gradient(135deg, #ff6eb4, #ff3d9a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: inherit;
}

.photo-placeholder__icon { font-size: 32px; }
.photo-placeholder__label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: sans-serif;
  text-align: center;
  padding: 0 16px;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 48px);
  max-width: 640px;
  background: #1e1b38;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  z-index: 9999;
  box-shadow: 0 16px 64px rgba(0,0,0,0.6);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.45s ease;
  opacity: 0;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-banner__text a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(95,202,250,0.3);
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.02em;
}

.cookie-btn--accept {
  background: var(--color-primary);
  color: #fff;
}

.cookie-btn--accept:hover { background: #1f3fcc; }

.cookie-btn--reject {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}

.cookie-btn--reject:hover { background: rgba(255,255,255,0.14); }

.cookie-btn--configure {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid rgba(95,202,250,0.3);
}

.cookie-btn--configure:hover { background: rgba(95,202,250,0.06); }

.cookie-prefs {
  display: none;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.cookie-prefs.is-open { display: block; }

.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cookie-pref-row:last-of-type { margin-bottom: 16px; }

.cookie-pref-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.cookie-pref-label small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: none;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-switch__track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 11px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch__track::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch input:checked + .toggle-switch__track {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-switch__track::after {
  transform: translateX(18px);
}

.toggle-switch input:disabled + .toggle-switch__track {
  opacity: 0.45;
  cursor: not-allowed;
}

.cookie-btn--save {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-btn--save:hover { background: #1f3fcc; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.article-header__kicker  { animation: fade-up 0.7s ease forwards; }
.article-header__title   { animation: fade-up 0.7s ease 0.12s forwards; opacity: 0; }
.byline                  { animation: fade-up 0.7s ease 0.22s forwards; opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .product-turn__grid {
    grid-template-columns: 1fr;
  }

  .product-turn__image {
    aspect-ratio: 4/3;
  }

  .badge-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .inline-figure--half {
    float: none;
    width: 100%;
    margin: 28px 0;
  }

  .facts__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 20px 20px;
  }

  .badge-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-banner__buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* Progressive-enhancement safety (injected by builder): scroll-reveal blocks stay VISIBLE
   unless JS confirms it can animate them by adding .js-anim to <html>. Guarantees a
   truncated page or a failed script can never leave content permanently hidden. */
html:not(.js-anim) .reveal,
html:not(.js-anim) .reveal-left,
html:not(.js-anim) .reveal-right,
html:not(.js-anim) .reveal-scale,
html:not(.js-anim) .stagger-child {
  opacity: 1 !important;
  transform: none !important;
}
