/* ============================================================
   Typology — Ingredient Label Editorial ("prescription sheet")
   Cream paper, ink serif, mono codes, Rx tables, subtle stamps.
   Palette: paper #f7f5f0, ink #1d1d1b, sage #4a5d43, clay #a06a4b
   Type: Cormorant Garamond (display) + Inter (body) + Space Mono
   ============================================================ */

:root {
  --primary: #1d1d1b;
  --paper: #f7f5f0;
  --surface: #fffefb;
  --ink: #1d1d1b;
  --muted: #8b8880;
  --line: #e3e0d6;
  --line-strong: #c9c5b8;
  --accent: #4a5d43;
  --accent2: #a06a4b;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --max: 1080px;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }
.lp-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lp-container { max-width: var(--max); margin: 0 auto; padding: 0 28px; width: 100%; }
.lp-skip {
  position: absolute; top: -99px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 8px 16px; z-index: 1000; text-decoration: none;
}
.lp-skip:focus { top: 0; }

/* ===== Prescription pad header ===== */
.lp-pad {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.lp-pad-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.lp-brand { display: flex; align-items: center; text-decoration: none; }
.lp-brand-mark { height: 26px; width: auto; }
.lp-pad-links { display: flex; gap: 26px; }
.lp-pad-links a {
  text-decoration: none; color: var(--muted);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  transition: color .2s ease;
}
.lp-pad-links a:hover { color: var(--ink); }

.lp-lang-menu { position: relative; }
.lp-lang-button {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit; font-size: 12px; letter-spacing: .06em;
  cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.lp-lang-button:hover { border-color: var(--ink); }
.lp-lang-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  list-style: none; margin: 0; padding: 6px;
  min-width: 190px; max-height: 320px; overflow-y: auto; z-index: 110;
  box-shadow: 0 10px 28px -14px rgba(29, 29, 27, .3);
}
.lp-lang-list button {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 8px 10px; border-radius: 4px;
  cursor: pointer; font: inherit; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.lp-lang-list button:hover { background: var(--paper); }
.lp-lang-list button[aria-current="true"] { background: var(--paper); font-weight: 600; }
.lp-lang-native { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ===== Hero ===== */
.lp-hero { padding: 132px 0 72px; min-height: 100dvh; display: flex; align-items: center; }
.lp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* --- Formula sheet --- */
.lp-sheet {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 28px 20px;
  position: relative;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(29, 29, 27, .25);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.lp-sheet::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.lp-sheet-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.lp-sheet-clinic {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em; color: var(--muted);
}
.lp-sheet-clinic #lp-ref { color: var(--ink); }
.lp-sheet-patient { text-align: right; }
.lp-sheet-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .18em; color: var(--muted);
  text-transform: uppercase;
}
.lp-sheet-line {
  font-family: var(--font-display);
  font-size: 21px; font-style: italic;
  border-bottom: 1px solid var(--ink);
  padding: 0 6px 2px;
}
.lp-sheet-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  position: relative; z-index: 1;
}
.lp-sheet-bottle img { width: 100%; }
.lp-sheet-code {
  font-size: 44px; line-height: 1;
  letter-spacing: .04em;
  color: var(--accent2);
}
.lp-sheet-name {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 600;
  margin: 4px 0 14px;
}
.lp-rx { width: 100%; border-collapse: collapse; }
.lp-rx tr { border-bottom: 1px solid var(--line); }
.lp-rx tr:last-child { border-bottom: 0; }
.lp-rx td { padding: 8px 6px; vertical-align: top; }
.lp-rx-pct { font-family: var(--font-mono); font-size: 13px; width: 42px; color: var(--ink); }
.lp-rx-ing { font-size: 13px; font-weight: 500; line-height: 1.35; }
.lp-rx-note { font-size: 11px; color: var(--muted); line-height: 1.4; }
.lp-rx-nil .lp-rx-pct { color: var(--accent); }
.lp-rx-nil .lp-rx-ing { color: var(--muted); font-weight: 400; }
.lp-sheet-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  position: relative; z-index: 1;
}
.lp-sign-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.lp-signature { width: 150px; color: var(--ink); opacity: .8; }
.lp-sheet-stamp {
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 10px; letter-spacing: .12em; line-height: 1.5;
  text-align: center;
  transform: rotate(-6deg);
  opacity: .8;
}

/* --- Hero copy --- */
.lp-hero-copy { position: relative; z-index: 2; }
.lp-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
}
.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 22px;
}
.lp-hero-title em { font-style: italic; color: var(--accent); }
.lp-hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 0 34px;
}
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius);
  font: inherit; font-weight: 500; font-size: 14px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background .25s ease, border-color .25s ease;
}
.lp-btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lp-btn-primary:hover { transform: translateY(-2px); background: #000; }
.lp-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.lp-btn-ghost:hover { border-color: var(--ink); }

/* ===== Sections ===== */
.lp-section { padding: 104px 0; }
.lp-section-light { background: var(--paper); }
.lp-section-cream { background: var(--surface); border-block: 1px solid var(--line); }
.lp-section-head { max-width: 640px; margin-bottom: 52px; }
.lp-section-head .lp-kicker { color: var(--accent2); }
.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.lp-section-lede { font-size: 15px; color: var(--muted); margin: 0; max-width: 520px; }

/* ===== Catalog — Rx cards ===== */
.lp-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lp-rx-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s ease;
  position: relative;
}
.lp-rx-card::after {
  content: "R×";
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--line-strong);
  transition: color .25s ease;
}
.lp-rx-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(29, 29, 27, .3); }
.lp-rx-card:hover::after { color: var(--accent2); }
.lp-rx-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.lp-rx-card-img img {
  width: 82%; height: 82%; object-fit: contain;
  transition: transform .8s var(--ease);
}
.lp-rx-card:hover .lp-rx-card-img img { transform: scale(1.04); }
.lp-rx-card-code {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--accent2);
  margin-bottom: 4px;
}
.lp-rx-card-name {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  margin: 0 0 4px;
}
.lp-rx-card-actives { font-size: 13px; color: var(--ink); margin: 0 0 2px; }
.lp-rx-card-target { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.lp-rx-card-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
}
.lp-rx-card-price { font-family: var(--font-mono); }
.lp-rx-card-link { color: var(--accent); font-weight: 500; }

/* ===== Principles ===== */
.lp-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.lp-principle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.lp-principle:last-child, .lp-principle:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.lp-principle-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  color: var(--accent2);
  line-height: 1;
}
.lp-principle-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.lp-principle-body { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== Labels ===== */
.lp-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lp-label-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.lp-label-badge {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
}
.lp-label-name { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 4px 0 0; }
.lp-label-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ===== Diagnostic CTA ===== */
.lp-section-diag { background: var(--ink); color: var(--paper); }
.lp-diag-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: center;
}
.lp-diag-copy .lp-kicker { color: #b8c9ae; }
.lp-diag-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.08;
  margin: 0 0 16px;
}
.lp-diag-body { color: rgba(247, 245, 240, .7); max-width: 440px; margin: 0 0 30px; }
.lp-section-diag .lp-btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lp-section-diag .lp-btn-primary:hover { background: #fff; }
.lp-diag-art img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}

/* ===== Footer ===== */
.lp-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 0;
}
.lp-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.lp-footer-left { display: flex; align-items: center; gap: 16px; }
.lp-footer-logo { height: 22px; width: auto; }
.lp-footer-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.lp-footer-links a { color: var(--accent); font-weight: 500; font-size: 13px; text-decoration: none; }
.lp-footer-links a:hover { color: var(--ink); }

/* ===== Reveal ===== */
.lp-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform .8s var(--ease);
}
.lp-reveal.is-visible { opacity: 1; transform: none; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lp-rx-card, .lp-btn { transition: none; }
  .lp-rx-card-img img { transition: none; transform: none !important; }
}

/* ===== RTL ===== */
html[dir="rtl"] .lp-pad-links { flex-direction: row-reverse; }
html[dir="rtl"] .lp-sheet-stamp { transform: rotate(6deg); }
html[dir="rtl"] .lp-lang-list { right: auto; left: 0; }
html[dir="rtl"] .lp-lang-list button { text-align: right; }
html[dir="rtl"] .lp-lang-native { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lp-sheet-patient { text-align: left; }
html[dir="rtl"] .lp-rx-card::after { right: auto; left: 16px; }
@media (max-width: 1000px) {
  html[dir="rtl"] .lp-sheet { text-align: right; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero { padding-top: 130px; text-align: center; }
  .lp-hero-sub, .lp-hero-cta { margin-left: auto; margin-right: auto; justify-content: center; }
  .lp-sheet { text-align: left; }
  .lp-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-principles { grid-template-columns: 1fr; gap: 0; }
  .lp-principle:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .lp-labels { grid-template-columns: 1fr; }
  .lp-diag-inner { grid-template-columns: 1fr; overflow: hidden; }
  .lp-diag-copy { max-width: 100%; }
  .lp-diag-art { order: -1; max-width: 100%; overflow: hidden; }
  .lp-diag-art img { max-width: 420px; width: 100%; margin: 0 auto; }
  .lp-pad-links { display: none; }
}
@media (max-width: 560px) {
  .lp-section { padding: 72px 0; }
  .lp-catalog { grid-template-columns: 1fr; }
  .lp-sheet-body { grid-template-columns: 1fr; }
  .lp-sheet-bottle img { max-width: 220px; margin: 0 auto; }
  .lp-sheet-code { font-size: 36px; text-align: center; }
  .lp-sheet-name { text-align: center; }
}
/* ===== Disclaimer (anti-phishing notice) ===== */
.lp-footer-legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line, #ccc);
}
.lp-footer-legal p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #888);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
