/* ============================================================
   Examer Health — examer.xyz
   Aesthetic: clinical instrument, warmly lit.
   Deep teal chassis · cream lab-report paper · mint "in range" signal.
   The reference-range bar is the recurring structural motif.
   ============================================================ */

/* Fraunces is requested with its italic axis — the hero's emphasis uses the real
   italic rather than a synthesised oblique. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink:        #041416;
  --ink-2:      #071a1c;
  --panel:      #0e2a2d;
  --panel-2:    #133338;
  --panel-3:    #18474d;
  --line:       #29545a;
  --line-soft:  #3c666c;

  --paper:      #f3eee5;
  --paper-2:    #e7f1ee;

  --mint:       #7fe7c4;
  --mint-deep:  #2cb88a;
  --amber:      #f6b56b;
  --coral:      #ff8c7a;

  --text:       #f5f7f6;
  --muted:      #a4c0bc;
  --dark:       #112426;
  --dark-soft:  #425e5b;

  --display: 'Fraunces', Georgia, serif;
  --sans:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }

/* ---------- language switching ---------- */
[data-lang="en"] [lang="pt"] { display: none !important; }
[data-lang="pt"] [lang="en"] { display: none !important; }

/* ---------- atmosphere ---------- */
body::before {
  /* warm light source, upper right — the "lit instrument" */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70rem 44rem at 82% -8%, rgba(127, 231, 196, 0.13), transparent 62%),
    radial-gradient(50rem 34rem at 8% 12%, rgba(246, 181, 107, 0.07), transparent 60%);
}
body::after {
  /* film grain */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-variation-settings: 'opsz' 120; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; }
p  { margin: 0 0 1.05em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 1.8rem;
  height: 1px;
  background: var(--mint);
  opacity: 0.6;
}
.lede { font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 54ch; }

/* ---------- the motif: reference-range bar ---------- */
.rangebar {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,140,122,0.35) 0 16%, rgba(127,231,196,0.55) 16% 78%, rgba(246,181,107,0.4) 78% 100%);
}
.rangebar i {
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--mint);
  border: 2.5px solid var(--ink-2);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--mint), 0 0 14px rgba(127,231,196,0.75);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 20, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(41, 84, 90, 0.55);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand b { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); align-self: flex-end; padding-bottom: 0.28rem; }

.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px;
  background: rgba(14, 42, 45, 0.7);
  flex: none;
}
.lang button {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.62rem;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--mint); color: var(--dark); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 500;
  padding: 0.82rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(.2,.8,.3,1), box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn-primary { background: var(--mint); color: var(--dark); box-shadow: 0 10px 30px -12px rgba(127,231,196,0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(127,231,196,0.85); }
.btn-ghost { border-color: var(--line-soft); color: var(--text); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--mint); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-note { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-top: 1.4rem; letter-spacing: 0.02em; }

/* reveal on load */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.85s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; } .d5 { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- the report card (hero artwork) ---------- */
.report {
  background: var(--paper);
  color: var(--dark);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.35rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-1.1deg);
}
.report-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(17,36,38,0.14); }
.report-head strong { font-family: var(--display); font-weight: 500; font-size: 1.06rem; }
.report-head time { font-family: var(--mono); font-size: 0.68rem; color: var(--dark-soft); letter-spacing: 0.05em; }

.marker { padding: 0.95rem 0 0.85rem; border-bottom: 1px solid rgba(17,36,38,0.1); }
.marker:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.marker-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.55rem; }
.marker-name { font-size: 0.9rem; font-weight: 500; }
.marker-val { font-family: var(--mono); font-size: 0.94rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.marker-val u { text-decoration: none; font-size: 0.7rem; color: var(--dark-soft); margin-left: 0.22rem; }
.marker .rangebar { background: linear-gradient(90deg, rgba(17,36,38,0.1) 0 18%, rgba(44,184,138,0.4) 18% 76%, rgba(17,36,38,0.1) 76% 100%); height: 4px; }
.marker .rangebar i { background: var(--mint-deep); border-color: var(--paper); box-shadow: 0 0 0 1px var(--mint-deep); }
.marker.warn .rangebar i { background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.marker-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; color: var(--dark-soft); margin-top: 0.4rem; letter-spacing: 0.04em; }

.report-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(44,184,138,0.16); color: #1d7d5e;
  padding: 0.3rem 0.6rem; border-radius: 99px; margin-top: 1rem;
}
.report-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-deep); }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.sec-head h2 { margin-bottom: 1rem; }

.rule { height: 1px; background: linear-gradient(90deg, var(--line), transparent); border: 0; margin: 0; }

/* ---------- step / feature grid ---------- */
.steps { 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; }
.step { background: var(--ink-2); padding: clamp(1.6rem, 3vw, 2.2rem); transition: background 0.3s; }
.step:hover { background: var(--panel); }
.step-n { font-family: var(--mono); font-size: 0.68rem; color: var(--mint); letter-spacing: 0.16em; margin-bottom: 1.6rem; display: block; }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }
.card {
  background: linear-gradient(160deg, var(--panel) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(.2,.8,.3,1);
}
.card:hover { border-color: var(--line-soft); transform: translateY(-3px); }
.card-icon { width: 34px; height: 34px; color: var(--mint); margin-bottom: 1.15rem; }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- privacy band ---------- */
.band {
  background: linear-gradient(150deg, var(--panel-2), var(--ink-2) 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.facts li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.facts svg { width: 19px; height: 19px; flex: none; color: var(--mint); margin-top: 0.2rem; }
.facts b { color: var(--text); font-weight: 500; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 760px; }
.tier { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.9rem 1.6rem; background: var(--ink-2); }
.tier.hi { border-color: var(--mint); background: linear-gradient(160deg, rgba(127,231,196,0.09), var(--ink-2) 65%); }
.tier-name { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); margin-bottom: 1rem; }
.tier-price { font-family: var(--display); font-size: 2.4rem; line-height: 1; margin-bottom: 0.3rem; }
.tier-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.tier li::before { content: '→'; color: var(--mint); margin-right: 0.55rem; font-family: var(--mono); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-size: 1.02rem; font-weight: 500;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mint); }
.faq summary::after {
  content: '+';
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--mint); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 2.5rem 1.4rem 0; color: var(--muted); font-size: 0.96rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- contact panel ---------- */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem;
}
.contact-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.45rem; background: var(--ink-2); }
.contact-box h3 { margin-bottom: 0.45rem; }
.contact-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.contact-box a { font-family: var(--mono); font-size: 0.9rem; word-break: break-word; }

/* ---------- legal document pages ---------- */
.doc-head { padding: clamp(3rem, 7vw, 5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.doc-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

.doc { max-width: 68ch; padding: 2.8rem 0 4rem; }
.doc h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: 0.6rem; border-top: 0; padding-top: 0; }
.doc h3 { margin: 1.8rem 0 0.5rem; font-size: 1.05rem; }
.doc p, .doc li { color: var(--muted); font-size: 1rem; }
.doc strong { color: var(--text); font-weight: 500; }
.doc ul, .doc ol { padding-left: 1.15rem; margin: 0 0 1.05em; display: grid; gap: 0.5rem; }
.doc li::marker { color: var(--mint); }

.callout {
  border-left: 2px solid var(--mint);
  background: linear-gradient(90deg, rgba(127,231,196,0.08), transparent 70%);
  padding: 1.15rem 1.3rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 1.6rem 0;
}
.callout p { margin: 0; color: var(--text); font-size: 0.95rem; }

.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; margin-bottom: 2.6rem; background: var(--ink-2); }
.toc p { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 0 0 0.7rem; }
.toc ol { margin: 0; padding-left: 1.1rem; gap: 0.32rem; }
.toc a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.toc a:hover { color: var(--mint); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(2.6rem, 5vw, 3.6rem) 0 2.4rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 30ch; }
.foot-brand p { color: var(--muted); font-size: 0.88rem; margin: 0.9rem 0 0; }
.foot-nav { display: flex; gap: clamp(2rem, 6vw, 4rem); }
.foot-col p { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 0 0 0.85rem; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-base {
  margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(41,84,90,0.5);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.03em;
}

.disclaimer {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.3rem;
  font-size: 0.84rem;
  color: var(--muted);
  background: rgba(14,42,45,0.5);
  margin-top: 2.2rem;
}
.disclaimer b { color: var(--amber); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .report { transform: none; max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .foot-grid { flex-direction: column; }
  .foot-nav { flex-wrap: wrap; gap: 2rem; }
}

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
