/* ============================================================
   DermaSci — style.css
   Cream / navy / teal · Aptos (headings) + Inter (body) + Manrope (UI)
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --teal:         #11808D;
  --teal-soft:    rgba(17,128,141,0.08);
  --teal-hover:   #0e6d78;

  --gold:         #A3947E;
  --gold-soft:    rgba(163,148,126,0.12);

  --mauve:        #8E7A9E;
  --mauve-soft:   rgba(142,122,158,0.10);

  --green:        #8FD9AE;

  --navy:         #0F1B2D;
  --cream:        #F8F5F0;
  --white:        #FFFFFF;

  --ink:          #0F1B2D;
  --ink-mid:      #455060;
  --ink-2:        rgba(69,80,96,0.5);
  --line:         #E5E0D6;
  --border-dark:  rgba(255,255,255,0.12);

  /* Aptos isn't a web font: visitors without it installed get Manrope. */
  --serif:  Aptos, 'Aptos Display', Manrope, Inter, system-ui, sans-serif;
  --sans:   Inter, system-ui, -apple-system, sans-serif;
  --ui:     Manrope, Inter, system-ui, sans-serif;

  --max-w:  1080px;
  --pad-x:  28px;
  --nav-h:  66px;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: var(--sans); cursor: pointer; }

/* ── Shared layout wrap ─────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Section eyebrow / heading / lede — shared ─────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-eyebrow-gold { color: var(--gold); }
.section-eyebrow-teal { color: var(--teal); }

.section-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 640px;
  margin-bottom: 18px;
}

.section-lede {
  font-size: 16.5px;
  color: var(--ink-mid);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-mid);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  display: inline-block;
  white-space: nowrap;
  padding: 9px 18px;
  background: var(--teal);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 10px;
  transition: filter 0.15s;
}
.nav-cta:hover { filter: brightness(1.08); color: #fff !important; }

/* Language switch — FR | EN */
.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-lang-switch a {
  color: var(--ink-2);
  font-weight: 700;
  transition: color 0.15s;
}
.nav-lang-switch a.active,
.nav-lang-switch a:hover {
  color: var(--navy);
}
.nav-lang-switch span { color: var(--ink-2); }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.2s;
}

/* ── HERO — video background + centered text ────────────────── */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 27, 45, 0.62) 0%,
    rgba(15, 27, 45, 0.55) 55%,
    rgba(15, 27, 45, 0.78) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px var(--pad-x) 88px;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C7E8ED;
  margin-bottom: 22px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 820px;
  margin: 0 auto 22px;
}
.hero-headline em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--green);
}

.hero-body {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  text-align: center;
  transition: filter 0.15s, transform 0.15s;
  letter-spacing: 0.005em;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Evidence-grade chip strip in hero */
.evidence-strip {
  margin: 56px auto 0;
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.grade {
  border-radius: 9px;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.grade small { font-weight: 700; opacity: 0.75; font-size: 11px; }
.grade-strong { background: var(--teal); color: #fff; }
.grade-strong small { color: rgba(255,255,255,0.85); opacity: 1; }
.grade-moderate { background: var(--teal-soft); color: var(--teal); border: 1.5px solid var(--teal); }
.grade-emerging { background: transparent; color: var(--ink-mid); border: 1.5px dashed var(--line); }

/* ── Reveal on scroll (main.js adds .is-visible) ────────────── */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Section base ───────────────────────────────────────────── */
section { padding: 84px 0; }

/* ── WHY DERMASCI EXISTS ────────────────────────────────────── */
.why-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}
.why-copy p {
  font-size: 15.5px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.why-copy p strong { color: var(--navy); font-weight: 700; }
.why-copy p:last-child { margin-bottom: 0; }

.noise-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.noise {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}
.noise .x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.noise.answer {
  background: var(--teal-soft);
  border-color: rgba(17,128,141,0.30);
  color: var(--navy);
  font-weight: 700;
}
.noise.answer .x { background: var(--teal); color: #fff; }

/* ── WHAT IS DERMASCI ───────────────────────────────────────── */
.what-section { background: var(--navy); color: #fff; }
.what-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: start;
}
.what-section .section-heading { color: #fff; }
.what-copy > p {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
}
.what-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.what-point {
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.03);
}
.what-point h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.what-point p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
}

/* ── THE ENGINE ─────────────────────────────────────────────── */
.engine-section { background: var(--cream); }
.engine-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.engine-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.engine-step {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(15,27,45,0.04);
}
.engine-num {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-family: var(--ui);
  font-weight: 800;
}
.engine-step:nth-child(even) .engine-num { background: var(--gold-soft); color: var(--gold); }
.engine-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.engine-step h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.engine-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin-top: 6px;
}

/* ── OUR RATING SCALE ───────────────────────────────────────── */
.scale-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scale-section .section-lede { margin-bottom: 36px; }

.scale-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
}
.scale-row {
  display: grid;
  grid-template-columns: 240px 1fr 180px;
  gap: 20px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.scale-row:last-child { border-bottom: none; }

.scale-tier {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scale-bar {
  width: 5px;
  height: 34px;
  border-radius: 5px;
  flex-shrink: 0;
}
.tier-1 .scale-bar { background: var(--teal); }
.tier-2 .scale-bar { background: var(--teal); opacity: 0.6; }
.tier-3 .scale-bar { background: var(--gold); }
.tier-4 .scale-bar { background: var(--ink-mid); opacity: 0.35; }

.scale-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.scale-desc {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.6;
}
.scale-action {
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.tier-1 .scale-action, .tier-2 .scale-action { color: var(--teal); }
.tier-3 .scale-action, .tier-4 .scale-action { color: var(--gold); }
.tier-5 .scale-action { color: var(--ink-mid); }

.scale-rules {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scale-rule {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
  padding-left: 14px;
  border-left: 2px solid var(--mauve);
}
.scale-rule strong { color: var(--navy); font-weight: 800; display: block; margin-bottom: 4px; }

/* ── PRODUCTS ───────────────────────────────────────────────── */
.products-section { background: var(--cream); }

/* Heading on the left, lede on the right (products, FAQ) */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 42px;
  margin-bottom: 40px;
}
.section-head .section-heading { margin-bottom: 0; }
.section-head .section-lede { max-width: 460px; }

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(15,27,45,0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.pc-consumer::before { background: var(--mauve); }
.pc-clinic::before   { background: var(--teal); }

.pc-copy { padding: 34px 30px 28px; flex: 1; }
.pc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pc-tag {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pc-consumer .pc-tag { color: var(--mauve); }
.pc-clinic .pc-tag   { color: var(--teal); }

.pc-heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pc-lede {
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 18px;
}

.feat {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.feat-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
}
.feat-item::before {
  content: '✓';
  font-weight: 800;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}
.pc-consumer .feat-item::before { color: var(--mauve); }
.pc-clinic .feat-item::before   { color: var(--teal); }

.btn-mauve { background: var(--mauve); }

/* Illustrative preview panel under each card */
.pc-demo {
  padding: 20px 22px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.demo-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.demo-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 11px;
  color: var(--ink-mid);
}
.demo-body { padding: 14px; }
.demo-chip {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
}
.pc-consumer .demo-chip { background: var(--mauve-soft); color: var(--mauve); }
.pc-clinic .demo-chip   { background: var(--teal-soft); color: var(--teal); }
.demo-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-mid);
}
.demo-row:last-child { border-bottom: none; }
.demo-row strong { color: var(--navy); font-weight: 700; text-align: right; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.faq-list { max-width: 880px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
  color: var(--teal);
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  padding: 0 34px 20px 2px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* ── WORKING WITH DERMASCI ──────────────────────────────────── */
.partner-section { background: var(--cream); }
.partner-wrap {
  text-align: center;
  max-width: 720px;
}
.partner-wrap .section-heading,
.partner-wrap .section-lede {
  margin-left: auto;
  margin-right: auto;
}
.partner-wrap .btn-primary {
  margin-top: 28px;
}

/* ── WAITLIST ───────────────────────────────────────────────── */
.waitlist-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.waitlist-wrap {
  max-width: 780px;
}
.waitlist-wrap .section-heading {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.waitlist-embed-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}
.waitlist-embed-wrap iframe {
  display: block;
  border: none;
  background: transparent;
  width: 100%;
}

.waitlist-note {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 24px;
}
.waitlist-fallback {
  margin-top: 8px;
}
.waitlist-fallback-link {
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.waitlist-fallback-link:hover { opacity: 1; }

/* Honeypot — visually hidden */
.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── RESEARCH ESSAYS (homepage cards) ───────────────────────── */
.essays-section { background: var(--cream); }
.essays-header {
  text-align: center;
  margin-bottom: 48px;
}
.essays-header .section-heading,
.essays-header .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.essays-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.essay-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(15,27,45,0.04);
}
.essay-card:hover {
  border-color: rgba(17,128,141,0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,27,45,0.08);
}

.essay-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.essay-figure-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  padding: 14px 32px 0;
}
.essay-figure-note a { color: var(--teal); opacity: 0.85; }
.essay-figure-note a:hover { opacity: 1; }

.essay-body {
  padding: 28px 32px 36px;
}
.essay-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.essay-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 16px;
}
.essay-excerpt {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 20px;
  max-width: 780px;
}
.essay-source {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.essay-read-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.essay-read-link:hover { gap: 10px; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.contact-inner {
  max-width: 620px;
  text-align: center;
}
.contact-inner .section-heading,
.contact-inner .section-lede {
  margin-left: auto;
  margin-right: auto;
}
.contact-inner .section-lede { margin-bottom: 36px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mid);
  padding: 14px 0 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b8b4ae; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17,128,141,0.12);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-send {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  background: var(--teal);
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  letter-spacing: 0.005em;
}
.btn-send:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Form status message */
.form-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  display: none;
  text-align: center;
}
.form-msg.success { background: #d1fae5; color: #065f46; display: block; }
.form-msg.error   { background: #fee2e2; color: #991b1b; display: block; }

.form-status-msg {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
}
.form-status-msg.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status-msg.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
}
.footer-upper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px var(--pad-x) 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand img {
  height: 18px;
  width: auto;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
  max-width: 320px;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }

.footer-lower {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--pad-x) 30px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social a {
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { color: #fff; }
.footer-copy,
.footer-launch {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ── LEGAL PAGES (Privacy, Terms, Giveaway Rules) ───────────── */
.legal-page {
  background: var(--cream);
  padding: 60px var(--pad-x) 100px;
}
.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}
.legal-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-content {
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.75;
}
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--navy);
  line-height: 1.25;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  margin: 32px 0 12px;
}
.legal-content h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin: 28px 0 10px;
}
.legal-content p {
  margin-bottom: 20px;
}
.legal-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--teal-hover); }
.legal-content ul, .legal-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-placeholder {
  color: var(--ink-2);
  font-style: italic;
}
.legal-meta {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.7;
}
.legal-intro {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-mid);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 32px;
}
.legal-emphasis {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  color: var(--ink-mid);
  font-style: italic;
}
.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}
.legal-content th,
.legal-content td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-content th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}
.legal-content td { color: var(--ink-mid); }
.legal-doc-ref {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

/* ── ESSAY PAGES ─────────────────────────────────────────────── */
.essay-hero {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background: var(--navy);
}
.essay-hero picture,
.essay-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.72);
}
.essay-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 27, 45, 0.10) 30%,
    rgba(15, 27, 45, 0.55) 100%
  );
}

.essay-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 100px;
  background: var(--cream);
}

.essay-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 36px 0 28px;
  transition: gap 0.15s, opacity 0.15s;
  text-decoration: none;
}
.essay-back-link:hover { gap: 12px; opacity: 0.85; }

.essay-page-header {
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.essay-page-header .section-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.essay-page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 6px;
  margin-bottom: 18px;
}
.essay-page-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 680px;
}
.essay-credit {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 18px;
}

.essay-page-figure { margin-bottom: 40px; }
.essay-page-figure img {
  width: 100%;
  border-radius: 12px;
}
.essay-page-figure-caption {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-top: 12px;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}
.essay-page-figure-caption a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.essay-article { color: var(--ink-mid); }
.essay-article h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  padding-top: 4px;
}
.essay-article h2:first-child { margin-top: 0; }
.essay-article p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 24px;
}
.essay-article p:last-child { margin-bottom: 0; }
.essay-article a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.essay-article a:hover { color: var(--teal-hover); }

.essay-ref {
  font-size: 13.5px !important;
  font-style: italic;
  color: var(--ink-2) !important;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: -6px 0 28px !important;
  line-height: 1.65 !important;
}

.essay-article-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 72px 0 64px;
}

.essay-inline-figure {
  margin-bottom: 44px;
  border-radius: 12px;
  overflow: hidden;
}
.essay-inline-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.essay-part-header { margin-bottom: 40px; }
.essay-part-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.essay-part-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.essay-part-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 680px;
}

.essay-brand-sig {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  opacity: 0.85;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

/* The full link row plus the CTA stops fitting below this width (sooner in French) */
@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: var(--nav-h) 0 0;
    /* backdrop-filter on .site-nav makes the nav this panel's containing
       block, so the bottom inset alone would collapse it to the nav's height */
    height: calc(100dvh - var(--nav-h));
    background: var(--cream);
    padding: 24px 20px;
    gap: 18px;
    z-index: 99;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav-links.open a { font-size: 16px; color: var(--navy); }
  .nav-links.open .nav-cta { width: fit-content; }
  .nav-links.open .nav-lang-switch {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    gap: 10px;
    font-size: 14px;
    width: 100%;
  }
  .nav-burger { display: flex; }
}

@media (max-width: 900px) {
  section { padding: 64px 0; }

  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .scale-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .scale-action { text-align: left; }
  .scale-rules { grid-template-columns: 1fr; gap: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .what-grid, .engine-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { display: block; }
  .section-head .section-lede { margin-top: 14px; }
  .footer-upper { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { justify-content: flex-start; }
  .footer-lower { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }


  .hero { min-height: 560px; }
  .hero-content { padding: 72px 20px 68px; }
  .hero-headline { font-size: clamp(34px, 8vw, 44px); }
  .hero-body { font-size: 16px; }
  .evidence-strip { flex-direction: column; padding: 18px 22px; margin-top: 44px; }
  .grade { width: 100%; justify-content: center; }

  .what-points, .engine-steps { grid-template-columns: 1fr; }
  .pc-copy { padding: 30px 22px 24px; }
  .pc-head { flex-direction: column; gap: 4px; }

  .essay-img { height: 220px; }
  .essay-body { padding: 22px 22px 28px; }
  .essay-title { font-size: 21px; }
  .essay-figure-note { padding: 12px 22px 0; }

  .contact-form input,
  .contact-form textarea { font-size: 16px; } /* prevents iOS zoom on focus */

  .essay-hero { height: 300px; }
  .essay-wrap { padding-bottom: 72px; }
}
