/* ==========================================================================
   LED mask comparison — Dr. Renú
   Layout DNA lifted from the "Travel Website Landing Page (Community)" Figma:
   centred nav → split hero over a warm blob → 4-up icon row → 3 product cards
   → numbered steps beside an image card → soft panel CTA → light footer.
   Typography and palette follow the Dr. Renú premium spec.
   ========================================================================== */

/* ---------- tokens ----------
   Palette (user-supplied):
     #ffffff  paper
     #00171f  ink        — near-black navy
     #003459  deep       — deep blue, secondary text + dark surfaces
     #007ea7  accent     — primary action / accent
     #00a8e8  bright     — highlight, tints
   Neutrals and surface tints below are all mixes of those five with white.
   ---------------------------------------------------------------------- */
:root {
  --paper:      #ffffff;
  --ink:        #00171f;
  --deep:       #003459;
  --accent:     #007ea7;
  --bright:     #00a8e8;

  --ink-2:      #003459;
  --ink-3:      #4d7385;                  /* #003459 lightened */
  --line:       rgba(0, 52, 89, .14);
  --line-2:     rgba(0, 52, 89, .08);

  --accent-ink: #003459;                  /* accent hover / pressed */
  --accent-sc:  #ffffff;

  --cream:      #f3f9fc;                  /* section wash */
  --tint:       #d6eef9;                  /* #00a8e8 @ ~14% on white */
  --tint-deep:  #a9dcf3;                  /* #00a8e8 @ ~30% on white */
  --tint-soft:  #e7f4fa;
  --mist:       #e9f1f5;

  /* Wavelength swatches stay literal: a dot standing for 660 nm red light
     must read red. These are the only colours outside the palette. */
  --red:        #c2453b;
  --nir:        #7a4f86;
  --blue:       #007ea7;
  --green:      #4f8562;
  --yellow:     #b08829;

  --r-sm: .5rem;
  --r-md: 1rem;
  --r-lg: 1.75rem;
  --r-xl: 2.5rem;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0,23,31,.05), 0 8px 24px -12px rgba(0,23,31,.18);
  --shadow-md: 0 2px 4px rgba(0,23,31,.05), 0 24px 48px -24px rgba(0,23,31,.24);
  --shadow-lg: 0 40px 80px -40px rgba(0,23,31,.34);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --shell: 78rem;
  --gut: 1.5rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- primitives ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--cream { background: var(--cream); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--ink);
}
.display--xl { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
.display--lg { font-size: clamp(2.125rem, 4.4vw, 3.25rem); }

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.62;
  color: var(--ink-2);
  letter-spacing: -.012em;
}
.muted { color: var(--ink-3); }
.small { font-size: .8125rem; line-height: 1.55; }

.head-center { max-width: 40rem; margin-inline: auto; text-align: center; }
.head-center .display { margin-top: .75rem; }
.head-center .lede { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9375rem 1.75rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-sc); box-shadow: 0 12px 28px -14px rgba(0,126,167,.55); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(0,52,89,.04); }
.btn--sm { padding: .625rem 1.125rem; font-size: .875rem; }

/* ==========================================================================
   Disclosure — ONE component only.
   The single disclaimer block carries id="independent-dr-renu" (plus the
   matching class and data attribute as stable hooks). Non-independence is
   stated there and nowhere else on the page — no inline badges, no repeats.
   ========================================================================== */
.independent-dr-renu { position: relative; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-family: var(--serif); font-size: 1.375rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
}
.brand span { font-family: var(--sans); font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nav__links { display: flex; gap: 2rem; justify-self: center; }
.nav__links a {
  font-size: .875rem; font-weight: 500; letter-spacing: -.014em;
  color: var(--ink-2); text-decoration: none; transition: color .18s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { justify-self: end; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__copy > * + * { margin-top: 1.375rem; }
.hero h1 { margin-top: 1rem; max-width: 22ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .875rem; }

/* stage: warm blob + cut-out photo + floating cards (Figma DNA) */
.stage { position: relative; aspect-ratio: 1 / 1.02; }
.stage__blob {
  position: absolute; inset: 2% -6% 8% 2%;
  background: linear-gradient(160deg, var(--tint) 0%, var(--tint-deep) 100%);
  border-radius: 46% 46% 46% 46% / 40% 40% 52% 52%;
}
/* photo sits inside an arch frame that overlaps the blob, as the reference does */
.stage__frame {
  position: absolute; inset: 8% 12% 0 14%;
  border-radius: 14rem 14rem var(--r-lg) var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 72px -32px rgba(0,23,31,.34);
  background: var(--mist);
}
.stage__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
}
.floatcard {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: .75rem .9375rem;
  box-shadow: var(--shadow-md);
}
.floatcard b { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.floatcard span { font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.floatcard--a { top: 12%; left: -1%; }
.floatcard--b { top: 44%; right: -2%; }
.floatcard--c { bottom: 8%; left: 2%; }

/* ---------- disclosure banner ---------- */
.disclose {
  border: 1px solid var(--tint-deep);
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, var(--cream), var(--tint) 260%);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
}
.disclose__mark {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.375rem; line-height: 1;
}
.disclose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -.015em; }
.disclose p { margin-top: .75rem; color: var(--ink-2); font-size: .9375rem; }
.disclose p + p { margin-top: .625rem; }
.disclose a { color: var(--accent-ink); }

/* ---------- 4-up criteria row ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.4vw, 2.25rem); margin-top: 3.5rem; }
.crit__icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 1.125rem;
  background: var(--mist); color: var(--ink);
}
.crit__icon svg { width: 1.25rem; height: 1.25rem; }
.crit h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.024em; }
.crit p { margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }

/* ---------- comparison table ---------- */
.tablewrap {
  margin-top: 3rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ctable { min-width: 68rem; font-size: .875rem; }
.ctable th, .ctable td { padding: 1rem 1.125rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.ctable thead th { position: sticky; top: 0; background: var(--paper); z-index: 2; border-bottom: 1px solid var(--line); }
.ctable tbody tr:last-child td, .ctable tbody tr:last-child th { border-bottom: 0; }
.ctable th[scope="row"] {
  width: 13.5rem; min-width: 13.5rem; font-weight: 400; letter-spacing: -.014em;
  background: var(--cream); position: sticky; left: 0; z-index: 1;
}
.ctable th[scope="row"] b { display: block; font-weight: 600; color: var(--ink); letter-spacing: -.022em; }
.ctable th[scope="row"] span { display: block; margin-top: .125rem; color: var(--ink-3); font-size: .8125rem; }
.ctable thead th { font-weight: 600; letter-spacing: -.016em; white-space: nowrap; }
.ctable caption { caption-side: top; padding: 1.125rem 1.25rem; text-align: left; }
/* our own row: a faint tint for legibility only, no added emphasis */
.ctable tbody tr.is-ours td { background: rgba(0,168,232,.07); }
.ctable tbody tr.is-ours th[scope="row"] { background: linear-gradient(90deg, var(--cream), rgba(0,168,232,.07)); }
.ctable .num { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.02em; }
.wl { display: inline-flex; align-items: center; gap: .375rem; margin: .125rem .375rem .125rem 0; font-size: .8125rem; white-space: nowrap; }
.wl::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.wl--red { color: var(--red); } .wl--nir { color: var(--nir); }
.wl--blue { color: var(--blue); } .wl--green { color: var(--green); }
.wl--yellow { color: var(--yellow); }

/* ---------- steps beside image (Figma DNA) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.steps { margin-top: 2.5rem; display: grid; gap: 1.75rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.125rem; align-items: start; }
.step__n {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-md);
  display: grid; place-items: center; flex: none;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.02em;
}
.step:nth-child(1) .step__n { background: var(--tint); color: var(--accent-ink); }
.step:nth-child(2) .step__n { background: var(--mist); color: var(--ink); }
.step:nth-child(3) .step__n { background: var(--tint-soft); color: var(--accent); }
.step h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.024em; }
.step p { margin-top: .375rem; font-size: .9375rem; color: var(--ink-2); }

.imgcard { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 5; }
.imgcard img { width: 100%; height: 100%; object-fit: cover; }
.minicard {
  position: absolute; right: -1.25rem; bottom: 2rem; z-index: 2;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md); border: 1px solid var(--line-2);
  padding: 1rem 1.125rem; box-shadow: var(--shadow-lg);
  max-width: 15rem;
}
.minicard b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; }
.minicard p { margin-top: .25rem; font-size: .8125rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 3rem; max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0; position: relative;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.024em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%;
  width: .625rem; height: .625rem; margin-top: -.4375rem;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.1875rem; }
.faq .faq__a { padding: 0 2rem 1.75rem 0; color: var(--ink-2); font-size: .9375rem; }
.faq .faq__a p + p { margin-top: .75rem; }

/* ---------- footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .625rem; }
.footer a { font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.sources { margin-top: 1rem; display: grid; gap: .5rem; }
.sources li { font-size: .8125rem; color: var(--ink-3); }



/* ---------- key facts (answer-first summary) ---------- */
.keyfacts {
  margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.kf { background: var(--paper); padding: 1.5rem 1.625rem; }
.kf dt {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.15;
  letter-spacing: -.015em; color: var(--ink);
}
.kf dd {
  margin: .625rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--ink-2);
}

/* liftable spec sentence opening each evidence note */
.note__spec { font-weight: 500; color: var(--ink) !important; }

/* FAQ summaries carry a real <h3>; keep it inline so the chevron still works */
.faq summary h3 {
  display: inline; font-size: inherit; font-weight: inherit;
  letter-spacing: inherit; color: inherit;
}

/* ---------- spectrum chart ---------- */
.spec {
  --spec-label: 15rem;
  margin-top: 3.5rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); padding: clamp(1.5rem, 3vw, 2.5rem);
}
.spec__axis, .spec__track { position: relative; }
.spec__rows { position: relative; display: grid; gap: .125rem; padding-top: 1.5rem; }

/* full-height evidence guides, aligned to the track column */
.spec__guides {
  position: absolute; inset: 1.5rem 0 0;
  display: grid; grid-template-columns: var(--spec-label) 1fr; gap: 1rem;
  pointer-events: none;
}
.spec__guidetrack { grid-column: 2; position: relative; }
.spec__band { position: absolute; top: 0; bottom: 0; border-radius: var(--r-sm); }
.spec__band--red { background: rgba(194,69,59,.09); }
.spec__band--nir { background: rgba(122,79,134,.09); }
.spec__band i {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  padding-bottom: .3125rem;
  font-size: .625rem; font-style: normal; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.spec__row {
  display: grid; grid-template-columns: var(--spec-label) 1fr;
  align-items: center; gap: 1rem;
  padding: .5rem 0; border-top: 1px solid var(--line-2);
}
.spec__row { position: relative; }
.spec__row.is-ours { background: rgba(0,168,232,.07); border-radius: var(--r-sm); }
.spec__label { font-size: .8125rem; line-height: 1.35; padding-left: .5rem; }
.spec__label b { display: block; font-weight: 600; letter-spacing: -.02em; }
.spec__label span { color: var(--ink-3); }
.spec__track { height: 1.5rem; }
.spec__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line);
}
.spec__dot {
  position: absolute; top: 50%; width: .75rem; height: .75rem;
  margin: -.375rem 0 0 -.375rem; border-radius: 50%;
  border: 2px solid var(--paper); background: currentColor;
}
.spec__dot--red { color: var(--red); } .spec__dot--nir { color: var(--nir); }
.spec__dot--blue { color: var(--blue); } .spec__dot--green { color: var(--green); }
.spec__dot--yellow { color: var(--yellow); }
/* axis shares the rows' grid so ticks line up with the dots exactly */
.spec__axis {
  margin-top: .75rem;
  display: grid; grid-template-columns: var(--spec-label) 1fr; gap: 1rem;
}
.spec__axistrack { grid-column: 2; position: relative; height: 1.25rem; }
.spec__axis span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: .6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.legend {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin: 1.75rem 0 0 var(--spec-label);
  padding-top: 1.25rem; border-top: 1px solid var(--line-2);
}

/* ---------- evidence notes ---------- */
.notes { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.note {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.375rem 1.5rem; background: var(--paper);
}
.note h3 { font-size: .9375rem; font-weight: 400; color: var(--ink-3); letter-spacing: -.014em; }
.note h3 b { color: var(--ink); font-weight: 600; }
.note p { margin-top: .625rem; font-size: .875rem; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { max-width: 30rem; margin-inline: auto; aspect-ratio: 1 / 1; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .imgcard { max-width: 28rem; }
  .minicard { right: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: repeat(2, 1fr); }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .spec { --spec-label: 10rem; }
}
@media (max-width: 44rem) {
  .nav__links { display: none; }
  .nav__in { grid-template-columns: 1fr auto; }
  .grid4 { grid-template-columns: 1fr; gap: 2rem; }
  .disclose { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .floatcard--a { left: -.5rem; } .floatcard--b { right: -.5rem; }
  .notes, .keyfacts { grid-template-columns: 1fr; }
  /* stack the chart: brand label sits above its own track */
  .spec { --spec-label: 0rem; }
  .legend { margin-left: 0; }
  .spec__axis { grid-template-columns: 1fr; gap: 0; }
  .spec__axistrack { grid-column: 1; }
  .spec__guides { display: none; }
  .spec__row { grid-template-columns: 1fr; gap: .25rem; }
  .spec__label { padding-left: 0; }
}

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

@media print {
  .nav, .hero__actions { display: none; }
  .tablewrap { overflow: visible; }
}
