/* emedici.ro — one stylesheet, no framework. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f6f1e8;
  --card: #fffdf8;
  --ink: #12241f;
  --muted: #56655f;
  --line: #e2d9c9;
  --teal: #1d6b5b;
  --teal-soft: #d9ebe4;
  --accent: #d9582f;
  --accent-ink: #fff;
  --sun: #f2c14e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18,36,31,.06), 0 8px 30px rgba(18,36,31,.07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-variation-settings: "SOFT" 50, "opsz" 144; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,241,232,.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 650 1.35rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.logo em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav a.btn-dark, .nav a.btn-dark:hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--sans); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(217,88,47,.28); }
.btn-primary:hover { background: #c64c25; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-art { position: relative; }
.pain-stack { display: grid; gap: 14px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.pain:nth-child(2) { margin-left: 34px; }
.pain:nth-child(3) { margin-left: 12px; }
.pain .n { flex: none; font: 700 1.6rem/1 var(--serif); color: var(--accent); min-width: 58px; }
.pain p { margin: 0; font-size: .96rem; }
.pain small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; }
@media (max-width: 880px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pain:nth-child(n) { margin-left: 0; }
}

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.band { background: var(--ink); color: #eef3f0; }
.band h2, .band h3 { color: #fff; }
.band .muted { color: #a9bbb4; }
.band .eyebrow { color: var(--sun); }
.soft { background: var(--teal-soft); }

/* Idea cards */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.idea .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 18px; }
.idea .icon svg { width: 28px; height: 28px; }
.idea ul { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 8px; }
.idea li { padding-left: 26px; position: relative; font-size: .96rem; }
.idea li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.idea .price { font: 650 1.5rem/1 var(--serif); margin: auto 0 4px; }
.idea .price small { font: 400 .85rem/1.3 var(--sans); color: var(--muted); display: block; margin-top: 6px; }
.idea .actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.idea .more { font-size: .92rem; font-weight: 500; }
.tag { position: absolute; top: 18px; right: 18px; font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; background: #fdf0d2; color: #8a5a00; padding: 6px 9px; border-radius: 999px; }
@media (max-width: 960px) { .ideas { grid-template-columns: 1fr; max-width: 560px; } }

/* Steps / story */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font: 600 2.4rem/1 var(--serif); color: var(--sun); margin-bottom: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.quote { font: 500 clamp(1.3rem, 2.6vw, 1.9rem)/1.35 var(--serif); margin: 0; max-width: 30em; }
.quote cite { display: block; margin-top: 14px; font: 400 .95rem/1.4 var(--sans); color: var(--muted); font-style: normal; }

/* Doctors strip */
.doctors { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .doctors { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.checks li::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Article / sub pages */
.page-hero { padding: 56px 0 24px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: #f1ebdf; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.source { font-size: .85rem; color: var(--muted); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 26px 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-box { background: var(--ink); color: #eef3f0; border-radius: 22px; padding: 32px; margin: 40px 0; }
.cta-box h2, .cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: #c3d2cc; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link h3 { font-size: 1.15rem; }
.card-link p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Footer */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.disclaimer { margin-top: 20px; font-size: .82rem; max-width: 70em; }

/* Waitlist dialog */
dialog.wl { border: 0; padding: 0; border-radius: 24px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.wl::backdrop { background: rgba(18,36,31,.55); backdrop-filter: blur(3px); }
.wl-inner { padding: 30px 28px 26px; }
.wl-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1ebdf; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink); }
.wl h2 { font-size: 1.6rem; padding-right: 36px; }
.wl .sub { color: var(--muted); font-size: .96rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1 1 auto; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .92rem; text-align: center; background: #fff; }
.seg input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 6px 0 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b3261e; font-size: .9rem; min-height: 1.2em; margin: 4px 0 10px; }
.wl .btn { width: 100%; }
.wl-done { text-align: center; padding: 16px 0 6px; }
.wl-done .big { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.cf-turnstile { min-height: 65px; margin-bottom: 8px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
