/* ==========================================================================
   pb-sin 18 ("muscle") advertorial — Het Vitaal Journaal
   Standalone static build. Styles ported 1:1 from the source lander's
   styles/styles.css; Google Fonts replaced with self-hosted variable woff2
   (media/fonts/). Formatting follows the original stylesheet.
   ========================================================================== */

/* ---- Fonts (self-hosted, same binaries as the live page loads) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../media/fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../media/fonts/source-serif-4-var.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../media/fonts/source-serif-4-italic-var.woff2") format("woff2");
}

/* ==========================================================================
   The Longevity Journal — advertorial layout
   ========================================================================== */
:root {
   --page-bg-1: #efe7d6;
   --page-bg-2: #ddd0b4;
   --paper: #fffdf9;
   --paper-raised: #f6f0e3;
   --ink: #201d18;
   --muted: #6f6759;
   --rule: #e4dcc8;
   --accent: #b3261e;
   --accent-dark: #7d1614;
   --accent-soft: #f4ded9;
   --accent-2: #0b5c4e;
   --accent-2-dark: #073a31;
   --accent-2-soft: #d9ebe6;
   --highlight: #ffe27a;
   --gold: #c79a3f;
   --good: #1f7a4d;

   --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
   --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
   --content-w: 700px;
}

* {
   box-sizing: border-box;
}

html {
   -webkit-text-size-adjust: 100%;
}

body {
   margin: 0;
   background: radial-gradient(circle at 50% 0%, var(--page-bg-1) 0%, var(--page-bg-2) 100%);
   background-attachment: fixed;
   color: var(--ink);
   font-family: var(--font-sans);
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   min-width: 360px;
}

a {
   color: var(--accent-2);
}

a, button {
   cursor: pointer;
}

img {
   display: block;
   width: 100%;
}

::selection {
   background: var(--highlight);
}

@media (prefers-reduced-motion: reduce) {
   * {
      animation: none !important;
      transition: none !important;
   }
}

a:focus-visible,
button:focus-visible {
   outline: 2px solid var(--accent-2);
   outline-offset: 3px;
}

/* Advertorial banner (sits above the card) */
.adv-label {
   text-align: center;
   padding: 8px 0;
}

.adv-label span {
   font: 700 11px/1 var(--font-sans);
   letter-spacing: .09em;
   text-transform: uppercase;
   color: var(--muted);
   background: rgba(255, 255, 255, .55);
   padding: 4px 12px;
   border-radius: 20px;
}

/* The page card */
.page {
   max-width: 760px;
   margin: 22px auto 60px;
   background: var(--paper);
   border-radius: 16px;
   box-shadow: 0 30px 60px -25px rgba(35, 25, 10, .45), 0 1px 0 rgba(255, 255, 255, .5) inset;
   overflow: hidden;
}

/* Masthead — full-bleed colored banner */
.masthead {
   margin: 0;
   width: 100%;
   padding: 32px 24px;
   text-align: center;
   background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-2-dark) 100%);
}

.mast-title {
   margin: 0;
   font-family: var(--font-serif);
   font-weight: 700;
   font-size: clamp(1.5rem, 4vw, 2.1rem);
   letter-spacing: -0.01em;
   color: #fff;
}

.mast-title em {
   font-style: italic;
   color: #ffd479;
   font-weight: 600;
}

/* Article shell */
.article {
   max-width: var(--content-w);
   margin: 0 auto;
   padding: 0 24px 8px;
}

.crumbs {
   font: 600 12px/1.4 var(--font-sans);
   letter-spacing: .03em;
   color: var(--muted);
   margin: 24px 0 0;
}

.crumbs span {
   color: var(--ink);
   font-weight: 700;
}

.kicker {
   display: inline-block;
   margin: 16px 0 10px;
   padding: 5px 12px;
   background: var(--accent);
   color: #fff;
   font: 700 11px/1 var(--font-sans);
   letter-spacing: .09em;
   text-transform: uppercase;
   border-radius: 20px;
}

.headline {
   position: relative;
   margin: 0 0 26px;
   padding-bottom: 18px;
   font-family: var(--font-serif);
   font-weight: 700;
   font-size: clamp(1.7rem, 4.4vw, 2.5rem);
   line-height: 1.18;
   color: var(--ink);
}

.headline::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 56px;
   height: 4px;
   border-radius: 2px;
   background: linear-gradient(90deg, var(--accent-2), var(--gold));
}

.byline {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   padding: 18px 0;
   margin-bottom: 30px;
   border-top: 1px solid var(--rule);
   border-bottom: 1px solid var(--rule);
   font-family: var(--font-sans);
   font-size: 14px;
}

.avatar {
   flex-shrink: 0;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
}

.byline b {
   color: var(--ink);
   font-weight: 700;
}

.byline .meta {
   margin-left: auto;
   text-align: right;
   color: var(--muted);
   font-size: 13px;
   line-height: 1.6;
   white-space: nowrap;
}

/* Body copy */
.body {
   font-family: var(--font-serif);
   font-size: 19px;
   line-height: 1.75;
   color: var(--ink);
}

.body p {
   margin: 0 0 20px;
}

.body b {
   font-weight: 700;
   color: var(--ink);
}

.body em {
   font-style: italic;
}

.lead {
   font-size: 22px;
   line-height: 1.5;
   font-weight: 600;
   margin-bottom: 26px;
}

.hl {
   background: linear-gradient(100deg, transparent 0%, var(--highlight) 6%, var(--highlight) 94%, transparent 100%);
   padding: 1px 3px;
   border-radius: 2px;
   -webkit-box-decoration-break: clone;
   box-decoration-break: clone;
}

h2.section {
   margin: 52px 0 22px;
   padding-top: 22px;
   border-top: 3px solid var(--accent-2);
   font-family: var(--font-serif);
   font-weight: 700;
   font-size: 1.55rem;
   line-height: 1.28;
   color: var(--ink);
}

/* Figures / images */
figure {
   margin: 32px 0;
}

.hero-ph,
.ph {
   background: var(--paper-raised);
   border: 1px solid var(--rule);
   border-radius: 10px;
   overflow: hidden;
}

.hero-ph img,
.ph img {
   width: 100%;
   display: block;
}

figcaption {
   margin-top: 9px;
   font-family: var(--font-sans);
   font-style: italic;
   font-size: 13px;
   line-height: 1.55;
   color: var(--muted);
}

/* Pull quote */
blockquote.pull {
   position: relative;
   margin: 34px 0;
   padding: 6px 0 6px 30px;
   border-left: 4px solid var(--accent-2);
   font-family: var(--font-serif);
   font-style: italic;
   font-size: 21px;
   line-height: 1.5;
   color: var(--ink);
}

blockquote.pull::before {
   content: "\201C";
   position: absolute;
   left: 2px;
   top: -14px;
   font-family: var(--font-serif);
   font-size: 3.2rem;
   color: var(--accent-2);
   opacity: .28;
}

blockquote.pull cite {
   display: block;
   margin-top: 12px;
   font-family: var(--font-sans);
   font-style: normal;
   font-weight: 600;
   font-size: 13px;
   color: var(--muted);
}

/* Stats */
.stats {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 16px;
   margin: 38px 0;
}

.stats>div {
   padding: 20px 14px;
   background: var(--accent-2-soft);
   border-radius: 12px;
   text-align: center;
}

.s-num {
   font-family: var(--font-serif);
   font-weight: 700;
   font-size: 2.2rem;
   line-height: 1;
   color: var(--accent-2);
}

.s-num em {
   font-style: normal;
   font-size: 1.25rem;
   margin-left: 1px;
}

.s-lbl {
   margin-top: 8px;
   font-family: var(--font-sans);
   font-size: 12.5px;
   line-height: 1.45;
   color: var(--muted);
}

/* Ingredients */
.ingredient {
   display: flex;
   gap: 18px;
   margin: 26px 0;
   padding-bottom: 26px;
   border-bottom: 1px solid var(--rule);
}

.ingredient .num {
   flex-shrink: 0;
   width: 52px;
   height: 52px;
   border-radius: 50%;
   background: var(--accent-2-soft);
   color: var(--accent-2);
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: var(--font-serif);
   font-weight: 700;
   font-size: 1.3rem;
}

.ingredient .tag {
   margin-bottom: 5px;
   font-family: var(--font-sans);
   font-weight: 700;
   font-size: 11px;
   letter-spacing: .08em;
   text-transform: uppercase;
   color: var(--accent-2);
}

.ingredient h4 {
   margin: 0 0 8px;
   font-family: var(--font-serif);
   font-size: 1.3rem;
   color: var(--ink);
}

.ingredient p {
   margin: 0 0 8px;
   font-family: var(--font-serif);
   font-size: 16.5px;
   line-height: 1.65;
   color: var(--ink);
}

/* Timeline */
.timeline {
   margin: 30px 0;
   border-left: 2px solid var(--rule);
}

.row {
   position: relative;
   padding: 0 0 26px 28px;
}

.row::before {
   content: "";
   position: absolute;
   left: -8.5px;
   top: 4px;
   width: 12px;
   height: 12px;
   border-radius: 50%;
   background: var(--accent-2);
   border: 3px solid var(--paper);
}

.row:last-child {
   padding-bottom: 0;
}

.when {
   margin-bottom: 6px;
   font-family: var(--font-sans);
   font-weight: 700;
   font-size: 12px;
   letter-spacing: .07em;
   text-transform: uppercase;
   color: var(--accent-2);
}

.what {
   font-family: var(--font-serif);
   font-size: 17px;
   line-height: 1.65;
   color: var(--ink);
}

/* Reviews */
.review {
   margin: 16px 0;
   padding: 20px 22px;
   background: var(--paper-raised);
   border-left: 4px solid var(--gold);
   border-radius: 4px 10px 10px 4px;
}

.stars {
   margin-bottom: 8px;
   color: var(--gold);
   font-size: 15px;
   letter-spacing: 2px;
}

.quote {
   margin: 0 0 10px;
   font-family: var(--font-serif);
   font-style: italic;
   font-size: 17px;
   line-height: 1.6;
   color: var(--ink);
}

.who {
   font-family: var(--font-sans);
   font-size: 13px;
   color: var(--muted);
}

.who b {
   color: var(--ink);
   font-weight: 700;
}

/* Checklist */
.checks ul {
   list-style: none;
   margin: 26px 0;
   padding: 0;
}

.checks li {
   position: relative;
   margin-bottom: 14px;
   padding-left: 34px;
   font-family: var(--font-serif);
   font-size: 17px;
   line-height: 1.5;
   color: var(--ink);
}

.checks li::before {
   content: "✓";
   position: absolute;
   left: 0;
   top: -1px;
   width: 22px;
   height: 22px;
   border-radius: 50%;
   background: var(--good);
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 13px;
}

/* CTA blocks */
.cta {
   margin: 44px 0;
   padding: 40px 28px;
   background: linear-gradient(160deg, var(--accent-2) 0%, var(--accent-2-dark) 100%);
   border-radius: 16px;
   text-align: center;
   color: #fff;
}

.eyebrow {
   margin-bottom: 10px;
   font-family: var(--font-sans);
   font-weight: 700;
   font-size: 12px;
   letter-spacing: .1em;
   text-transform: uppercase;
   color: #ffd479;
}

.cta h3 {
   margin: 0 0 22px;
   font-family: var(--font-serif);
   font-size: 1.55rem;
   line-height: 1.32;
   color: #fff;
}

.product-ph {
   max-width: 280px;
   margin: 0 auto 24px;
}

.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 16px 34px;
   background: linear-gradient(135deg, var(--accent), var(--accent-dark));
   color: #fff;
   font-family: var(--font-sans);
   font-weight: 700;
   font-size: 17px;
   text-decoration: none;
   border-radius: 30px;
   box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
   transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .55);
}

.btn:active {
   transform: translateY(0);
}

.arrow {
   font-weight: 400;
}

.guarantee {
   margin-top: 18px;
   font-family: var(--font-sans);
   font-weight: 700;
   font-size: 14px;
   color: #8fe3bb;
}

.stock {
   margin-top: 8px;
   font-family: var(--font-sans);
   font-size: 13px;
   color: rgba(255, 255, 255, .75);
}

.micro {
   margin-top: 14px;
   font-family: var(--font-sans);
   font-size: 12px;
   line-height: 1.5;
   color: rgba(255, 255, 255, .6);
}

/* Comments */
.comments {
   margin-top: 50px;
   padding: 28px 24px;
   background: var(--paper-raised);
   border-radius: 14px;
}

.comments h3 {
   margin: 0 0 16px;
   font-family: var(--font-serif);
   font-size: 1.4rem;
   color: var(--ink);
}

.note {
   margin-bottom: 26px;
   font-family: var(--font-sans);
   font-style: italic;
   font-size: 13px;
   color: var(--muted);
}

.comment {
   display: flex;
   gap: 12px;
   margin-bottom: 20px;
   font-family: var(--font-sans);
}

.comment .av {
   flex-shrink: 0;
   width: 34px;
   height: 34px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
}

.c-name {
   margin-bottom: 3px;
   font-weight: 700;
   font-size: 14px;
   color: var(--ink);
}

.c-body {
   margin-bottom: 6px;
   font-size: 15px;
   line-height: 1.55;
   color: var(--ink);
}

.c-body b {
   color: var(--accent-2);
}

.c-actions {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 6px;
   font-size: 12px;
   color: var(--muted);
}

.c-actions span:not(:first-child)::before {
   content: "·";
   margin-right: 6px;
}

.act {
   cursor: pointer;
   font-weight: 600;
}

.act:hover {
   color: var(--accent-2);
   text-decoration: underline;
}

.like-ico::before {
   content: "👍";
   font-size: 10px;
   margin-right: 2px;
}

.comment.reply {
   margin-top: 16px;
   margin-bottom: 0;
}

/* Sources / footnotes */
.footnotes {
   /* max-width: var(--content-w); */
   margin: 50px auto 0;
   padding: 24px;
   background: var(--paper-raised);
   border-radius: 14px;
   font-family: var(--font-sans);
   font-size: 13px;
   line-height: 1.6;
   color: var(--muted);
}

.footnotes h3 {
   margin: 0 0 12px;
   font-size: 12px;
   letter-spacing: .06em;
   text-transform: uppercase;
   color: var(--ink);
}

.footnotes h3:not(:first-child) {
   margin-top: 24px;
}

.footnotes p {
   margin: 0 0 9px;
}

.references p a {
   word-wrap: break-word;
}

/* Footer */
footer {
   max-width: var(--content-w);
   margin: 0 auto;
   padding: 28px 24px 44px;
   font-family: var(--font-sans);
   font-size: 12px;
   line-height: 1.6;
   color: var(--muted);
}

footer p {
   margin: 0 0 14px;
}

footer a {
   margin-right: 14px;
   color: var(--accent-2);
   text-decoration: none;
}

footer a:hover {
   text-decoration: underline;
}

footer img {
   margin-top: 10px;
   max-width: 140px;
}

/* Responsive */
@media (max-width: 640px) {
   .page {
      margin: 0 auto;
      border-radius: 0;
   }

   .body {
      font-size: 17px;
   }

   .lead {
      font-size: 19px;
   }

   blockquote.pull {
      font-size: 18px;
   }

   .stats {
      grid-template-columns: 1fr;
   }

   .ingredient {
      flex-direction: column;
      gap: 10px;
   }

   .cta {
      padding: 30px 20px;
      border-radius: 0;
   }

   .cta h3 {
      font-size: 1.3rem;
   }

   h2.section {
      font-size: 1.3rem;
      margin: 42px 0 18px;
   }
}


/* ---- Floating bottom CTA -------------------------------------------------
   Shown by js/main.js once the reader passes 30% scroll depth. Visibility is
   toggled on this wrapper so the inner .btn keeps its own hover transform. */
.cta-float {
   position: fixed;
   left: 0;
   right: 0;
   bottom: 14px;
   z-index: 900;
   display: flex;
   justify-content: center;
   pointer-events: none;
   opacity: 0;
   transform: translateY(120%);
   transition: opacity .25s ease, transform .25s ease;
}

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

.cta-float .btn {
   pointer-events: auto;
}
