/* ==========================================================================
   Skinimalist landing page v3
   Design tokens mirror the iOS app asset catalog (Assets.xcassets/colors).
   ========================================================================== */

:root {
  /* Brand greens (from app) */
  --leaf-deep: #235640;
  --leaf-deep-dark: #193C2D;
  --leaf: #386F63;
  --leaf-dark: #00645C;
  --leaf-light: #1A7D8A;
  --leaf-lighter: #61978B;
  --promo-leaf: #229C82;

  /* Signal colors (from app) */
  --toxic: #FF784B;
  --toxic-light: #FF8C66;
  --toxic-dark: #C13000;
  --water-dark: #416C88;
  --toxic-purple: #6483FF;
  --neutral-amber: #D39845;

  /* Neutrals */
  --graphite: #272727;
  --graphite-light: #656565;
  --almost-white: #EBEBEB;
  --cream: #F5F2EC;      /* marble table-top from promo photography */
  --paper: #FBFAF7;
  --ink: #1C1F1E;

  --radius-xl: 44px;
  --radius-lg: 28px;
  --radius-md: 18px;

  --shell: 1160px;

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-soft: 0 18px 50px rgba(28, 44, 38, 0.12);
  --shadow-card: 0 10px 34px rgba(28, 44, 38, 0.10);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

a { color: var(--leaf-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section-pad { padding: clamp(64px, 9vw, 120px) 0; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  /* Long Swedish/German compound words (e.g. "Innehållsförteckningen") must be
     able to break, or they force the whole column wider than a phone screen. */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 { font-size: clamp(1.85rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.18rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--leaf-lighter);
  margin-bottom: 18px;
}

.on-dark .eyebrow { color: rgba(255, 255, 255, 0.62); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--graphite-light);
  max-width: 56ch;
}

.on-dark .lead { color: rgba(255, 255, 255, 0.82); }

/* --------------------------------------------------------------------------
   Skip link + a11y
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--leaf-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 12px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(35, 86, 64, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(20, 40, 32, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links > a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links > a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: #fff;
  color: var(--leaf-deep) !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--almost-white); }

.lang-switcher {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px;
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switcher button[aria-pressed="true"] {
  background: #fff;
  color: var(--leaf-deep);
}

.nav-toggle { display: none; }
.nav-button { display: none; }

@media (max-width: 840px) {
  .nav-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    cursor: pointer;
    padding: 8px;
  }
  .nav-button span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px clamp(20px, 4vw, 40px) 30px;
    background: rgba(25, 60, 45, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero with drifting clouds (mirrors HeroGradientAnimationView in the app)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--leaf-deep);
  color: #fff;
  padding-top: clamp(120px, 16vw, 170px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.clouds::before {
  /* dark overlay like the app's overlayColor black 0.42 */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 2;
}

.cloud {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  filter: blur(70px);
  mix-blend-mode: plus-lighter;
  opacity: 0.5;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}

@supports not (mix-blend-mode: plus-lighter) {
  .cloud { mix-blend-mode: screen; }
}

.cloud-1 { background: radial-gradient(closest-side, rgba(97, 151, 139, 0.9), transparent 70%); top: -28%; left: -18%; animation-duration: 29s; }
.cloud-2 { background: radial-gradient(closest-side, rgba(34, 156, 130, 0.75), transparent 70%); top: 8%; right: -26%; animation-duration: 33s; animation-delay: -9s; }
.cloud-3 { background: radial-gradient(closest-side, rgba(26, 125, 138, 0.7), transparent 70%); bottom: -34%; left: 4%; animation-duration: 27s; animation-delay: -17s; }
.cloud-4 { background: radial-gradient(closest-side, rgba(56, 111, 99, 0.95), transparent 70%); bottom: -20%; right: 6%; animation-duration: 38s; animation-delay: -5s; }
.cloud-5 { background: radial-gradient(closest-side, rgba(255, 120, 75, 0.14), transparent 70%); top: 20%; left: 28%; animation-duration: 41s; animation-delay: -23s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(6vw, -4vh, 0) rotate(24deg) scale(1.12); }
  100% { transform: translate3d(-5vw, 5vh, 0) rotate(-18deg) scale(0.94); }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero .lead { margin-bottom: 30px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.store-badge img { height: 52px; width: auto; }
.store-badge.large img { height: 62px; }

.secondary-link {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}
.secondary-link:hover { text-decoration: none; border-color: #fff; }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chips span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Hero phone */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: min(320px, 78vw);
  border-radius: 46px;
  padding: 10px;
  background: #101312;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.phone img, .phone video {
  border-radius: 37px;
  width: 100%;
}

.float-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--leaf-deep);
  border-radius: 50%;
  width: 118px;
  height: 118px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: float 7s ease-in-out infinite;
}

.float-badge .score { font-size: 2rem; font-weight: 800; line-height: 1; }
.float-badge .score-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--leaf-lighter);
}

.badge-score { top: 6%; right: max(2%, calc(50% - 260px)); }

.float-chip {
  position: absolute;
  bottom: 12%;
  left: max(0%, calc(50% - 280px));
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 8s ease-in-out infinite reverse;
}

.float-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--promo-leaf);
  box-shadow: 0 0 0 5px rgba(34, 156, 130, 0.18);
}

.float-chip strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.float-chip small { color: var(--graphite-light); font-size: 0.78rem; }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 12px; }
}

@media (max-width: 460px) {
  .badge-score { right: 0; width: 96px; height: 96px; }
  .float-badge .score { font-size: 1.6rem; }
  .float-chip { left: 0; }
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats-strip {
  background: var(--leaf-deep-dark);
  color: #fff;
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}

.stats-grid dt {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats-grid dd {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 4px;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.section-heading { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--paper);
  border: 1px solid rgba(35, 86, 64, 0.08);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--promo-leaf);
  margin-bottom: 16px;
}

.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--graphite-light); font-size: 0.97rem; }

@media (max-width: 840px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Feature panels (green promo-card style from App Store promos)
   -------------------------------------------------------------------------- */

.feature-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--promo-leaf);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  box-shadow: var(--shadow-soft);
}

.feature-panel.deep { background: var(--leaf-deep); }
.feature-panel.dusk { background: var(--water-dark); }

.feature-panel .clouds { opacity: 0.75; }
.feature-panel .clouds::before { background: rgba(0, 0, 0, 0.18); }

.feature-panel > * { position: relative; z-index: 4; }
.feature-panel > .clouds { position: absolute; z-index: 1; }

.feature-panel h2 { color: #fff; margin-bottom: 18px; }

.feature-panel p { color: rgba(255, 255, 255, 0.85); }

.feature-panel ul {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.feature-panel li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.feature-panel li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.feature-panel .panel-visual {
  display: flex;
  justify-content: center;
}

.feature-panel .phone { width: min(280px, 70vw); }

.feature-stack { display: grid; gap: clamp(26px, 4vw, 44px); }

@media (max-width: 900px) {
  .feature-panel { grid-template-columns: minmax(0, 1fr); }
  .feature-panel .panel-visual { order: -1; }
}

/* score orb – gradient circle from promo3 */
.score-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 140, 102, 0.95), transparent 55%),
    radial-gradient(circle at 72% 68%, rgba(26, 125, 138, 0.95), transparent 60%),
    linear-gradient(135deg, #FF8C66, #1A7D8A);
  filter: saturate(1.15);
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   My skin – ring videos
   -------------------------------------------------------------------------- */

.rings-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.rings-media video {
  width: min(380px, 86vw);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(10, 25, 20, 0.5);
  background: #0c1413;
}

.rings-toggle {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(12, 20, 19, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 999px;
}

.rings-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.rings-toggle button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: var(--leaf-deep);
}

.myskin-visual {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.skin-diff-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.skin-diff-intro {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.skin-diff-text {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.98rem;
  min-height: 5.4em;
}

.skin-diff-text[hidden] { display: none; }

.skin-diff-text strong { color: #fff; }

/* --------------------------------------------------------------------------
   Two-column showcase rows (screenshot + copy)
   -------------------------------------------------------------------------- */

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.showcase-row + .showcase-row { margin-top: clamp(56px, 8vw, 100px); }

.showcase-row.flip .showcase-media { order: 2; }

.showcase-media { display: flex; justify-content: center; }

.showcase-media .phone { width: min(300px, 74vw); }

.showcase-copy h2 { margin-bottom: 16px; }
.showcase-copy p { color: var(--graphite-light); }

.check-list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 156, 130, 0.14);
  color: var(--promo-leaf);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .showcase-row { grid-template-columns: minmax(0, 1fr); }
  .showcase-row.flip .showcase-media { order: 0; }
}

/* --------------------------------------------------------------------------
   Articles / guides
   -------------------------------------------------------------------------- */

.articles-section { background: var(--paper); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(35, 86, 64, 0.09);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(28, 44, 38, 0.14);
}

.article-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--promo-leaf);
  margin-bottom: 14px;
}

.article-card h3 { margin-bottom: 10px; }
.article-card p { color: var(--graphite-light); font-size: 0.94rem; flex-grow: 1; }

.article-card .read-more {
  margin-top: 18px;
  font-weight: 600;
  color: var(--leaf-dark);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { display: grid; gap: 14px; max-width: 780px; margin: 0 auto; }

.faq-list details {
  background: var(--paper);
  border: 1px solid rgba(35, 86, 64, 0.09);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--promo-leaf);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p { margin-top: 12px; color: var(--graphite-light); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta .cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--leaf-deep);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(44px, 7vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.final-cta h2 { color: #fff; margin-bottom: 14px; }
.final-cta p { color: rgba(255, 255, 255, 0.82); }
.final-cta .cta-panel > * { position: relative; z-index: 4; }
.final-cta .cta-panel > .clouds { position: absolute; z-index: 1; }

@media (max-width: 760px) {
  .final-cta .cta-panel { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--leaf-deep-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.footer .brand { font-size: 0.84rem; }

.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); text-align: left; }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Article pages
   -------------------------------------------------------------------------- */

.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--leaf-deep);
  color: #fff;
  padding: clamp(130px, 16vw, 180px) 0 clamp(48px, 7vw, 80px);
}

.article-hero .shell { position: relative; z-index: 4; }

.article-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; }

.article-hero .article-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 110px);
  font-size: 1.05rem;
}

.article-body h2 {
  font-size: 1.55rem;
  margin: 2.2em 0 0.7em;
}

.article-body h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }

.article-body p { margin-bottom: 1.1em; color: #33403B; }

.article-body ul, .article-body ol { margin: 0 0 1.2em 1.3em; color: #33403B; }
.article-body li { margin-bottom: 0.5em; }

.article-body .fact-box {
  background: rgba(34, 156, 130, 0.09);
  border-left: 4px solid var(--promo-leaf);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 1.6em 0;
  font-size: 0.98rem;
}

.article-body .fact-box strong { color: var(--leaf-dark); }

.article-body .warn-box {
  background: rgba(255, 120, 75, 0.09);
  border-left: 4px solid var(--toxic);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 1.6em 0;
  font-size: 0.98rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.94rem;
}

.article-body th, .article-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(35, 86, 64, 0.14);
  vertical-align: top;
}

.article-body th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leaf-lighter);
}

.table-scroll { overflow-x: auto; }

.article-cta {
  background: var(--leaf-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-top: 3em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-cta p { color: rgba(255, 255, 255, 0.88); margin: 0; max-width: 44ch; }
.article-cta strong { color: #fff; }

.article-footer-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 60px;
  font-size: 0.95rem;
}

.sources {
  font-size: 0.86rem;
  color: var(--graphite-light);
  border-top: 1px solid rgba(35, 86, 64, 0.14);
  padding-top: 1.4em;
  margin-top: 3em;
}
