/* ShopMedic AI — shopmedic.ro
   Un singur fișier CSS. Fără framework, fără cereri externe. Mobile-first. */

/* ---------- Tokens ---------- */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f3f7f6;
  --surface:     #ffffff;
  --ink:         #0f1c19;
  --muted:       #566863;
  --line:        #dde6e3;
  --line-soft:   #eaf0ee;
  --brand:       #0d7d6f;
  --brand-strong:#0a5d4b;
  --brand-tint:  #e2f1ed;
  --ok:          #1a7f37;
  --warn:        #8a5a00;   /* inchis fata de #9a6700: eticheta de severitate pe fundal galben pica AA la 4.48 */
  --warn-tint:   #fdf5e2;
  --danger:      #b42318;
  --danger-tint: #fdeceb;
  --shadow:      0 1px 2px rgba(15,28,25,.05), 0 8px 24px -12px rgba(15,28,25,.16);
  --radius:      12px;
  --w:           44rem;
  --w-wide:      64rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0c1412;
    --bg-alt:      #101c19;
    --surface:     #13211e;
    --ink:         #e7efec;
    --muted:       #94a6a1;
    --line:        #23342f;
    --line-soft:   #1a2825;
    --brand:       #43c3a3;
    --brand-strong:#6fd8bd;
    --brand-tint:  #0f2e28;
    --ok:          #4cc46d;
    --warn:        #e2ab4d;
    --warn-tint:   #2c2313;
    --danger:      #ff6f61;
    --danger-tint: #331a19;
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, .97rem + .15vw, 1.0625rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.95rem, 1.35rem + 2.8vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--brand); }

strong { font-weight: 650; }

code, kbd {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  padding: .12em .4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.25rem, var(--w)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.25rem, var(--w-wide)); margin-inline: auto; }

section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
section.tint { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.lede { font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); color: var(--muted); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .9rem;
}

.center { text-align: center; }
.narrow { max-width: 38rem; }
.center.narrow { margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head > div {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .7rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo svg { flex: none; }
.logo span { color: var(--brand); font-weight: 600; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.25rem;
  font: inherit; font-weight: 600; font-size: .97rem;
  border-radius: 9px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #04211b; }
  .btn-primary:hover { color: #04211b; }
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-sm { padding: .5rem .85rem; font-size: .88rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 30rem) { .cta-row .btn { width: 100%; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 5vw, 5rem); padding-bottom: clamp(2.75rem, 2rem + 4vw, 4.5rem); }
.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 34rem; }
.hero-note {
  margin-top: 1.9rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft);
  font-size: .93rem; color: var(--muted);
}
.hero-note strong { color: var(--ink); font-weight: 620; }

/* ---------- Pași ---------- */
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; counter-reset: s; }
.steps li {
  position: relative; counter-increment: s;
  padding: 0 0 1.65rem 3.15rem;
  border-left: 2px solid var(--line);
  margin-left: 1.05rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: -1.06rem; top: -.15rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-strong);
  border: 2px solid var(--bg);
  font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .97rem; }
.steps .hi::before { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .steps .hi::before { color: #04211b; } }

/* ---------- Card generic ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.15rem, .9rem + 1vw, 1.75rem);
}
.card + .card { margin-top: 1rem; }
.card h3 { margin-bottom: .4em; }

.callout {
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: .97rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Listă „ce nu facem" ---------- */
.plain { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.plain li {
  position: relative; padding-left: 1.9rem; margin-bottom: .8rem; color: var(--muted);
}
.plain li::before {
  content: ""; position: absolute; left: .35rem; top: .72em;
  width: .72rem; height: 2px; background: var(--muted); border-radius: 2px;
}
.plain.yes li::before {
  content: "✓"; left: 0; top: 0; width: auto; height: auto; background: none;
  color: var(--brand); font-weight: 700;
}

/* ---------- Tabel comparativ ---------- */
.cmp { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .95rem; }
.cmp th, .cmp td { padding: .8rem .7rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.cmp thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp thead th:last-child { color: var(--brand); }
.cmp tbody th { font-weight: 500; }
.cmp td { text-align: center; width: 7.5rem; font-variant-numeric: tabular-nums; }
.cmp .key th { font-weight: 650; }
.cmp .key { background: var(--brand-tint); }
.cmp .key td:last-child { color: var(--brand-strong); font-weight: 700; }
.no { color: var(--muted); }
.yes { color: var(--ok); font-weight: 700; }

@media (max-width: 38rem) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { display: none; }
  .cmp tr { border-bottom: 1px solid var(--line); padding: .85rem 0; }
  .cmp tbody th { padding: 0 0 .5rem; font-weight: 600; }
  .cmp td { width: auto; text-align: left; padding: .1rem 0; border: 0; }
  .cmp td::before { content: attr(data-l) ": "; color: var(--muted); font-size: .87rem; }
  .cmp .key { background: none; border-left: 3px solid var(--brand); padding-left: .85rem; }
}

/* ---------- Prețuri ---------- */
.plans { display: grid; gap: 1rem; margin-top: 2.25rem; }
@media (min-width: 52rem) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem; position: relative;
}
.plan.best { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -.72rem; left: 1.35rem;
  background: var(--brand); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .plan .tag { color: #04211b; } }
.plan h3 { font-size: 1.15rem; margin-bottom: .15em; }
.plan .who { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; min-height: 2.7em; }
.price { font-size: 2.35rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-year { font-size: .87rem; color: var(--muted); margin: .45rem 0 1.25rem; }
.plan ul { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: .93rem; }
.plan li { padding-left: 1.55rem; position: relative; margin-bottom: .55rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "—"; color: var(--line); font-weight: 400; }
.plan-foot { margin-top: 2rem; font-size: .93rem; color: var(--muted); }

/* ---------- Replica de raport ---------- */
.report {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 2rem; box-shadow: var(--shadow);
}
.report-head { padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line-soft); }
.report-head h3 { font-size: 1.05rem; margin: .6rem 0 .3rem; }
.report-meta { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  color: #fff; font-size: .78rem; font-weight: 650; background: var(--danger);
}
.report-body { padding: 1.15rem 1.3rem; }
.rtable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rtable th, .rtable td { text-align: left; padding: .5rem .55rem; border-bottom: 1px solid var(--line-soft); }
.rtable th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.rtable td:first-child { color: var(--muted); }
.st-ok { color: var(--ok); font-weight: 650; }
.st-warn { color: var(--warn); font-weight: 650; }
.st-bad { color: var(--danger); font-weight: 650; }
.finding {
  border-left: 3px solid var(--danger); background: var(--danger-tint);
  border-radius: 0 8px 8px 0; padding: .85rem 1rem; margin-top: 1.15rem; font-size: .92rem;
}
.finding .sev {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 800; color: var(--danger); display: block; margin-bottom: .2rem;
}
.finding .t { font-weight: 650; display: block; margin-bottom: .35rem; }
.finding code { background: color-mix(in srgb, var(--bg) 60%, transparent); font-size: .78rem; display: inline-block; margin-top: .5rem; }
.report-foot {
  padding: .8rem 1.3rem; background: var(--bg-alt);
  border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .78rem;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 2.4rem 1.05rem 0; position: relative;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .55rem; top: 1.55rem;
  width: .58rem; height: .58rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq .a { padding: 0 0 1.25rem; color: var(--muted); font-size: .97rem; max-width: 40rem; }

/* ---------- Despre ---------- */
.about-legal {
  margin-top: 1.75rem; padding-top: 1.15rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}

/* ---------- Formular ---------- */
.form-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  margin-top: 2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .72rem .85rem;
  font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 1.35rem; }
.consent input { margin-top: .25rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1rem; font-size: .86rem; color: var(--muted); }
.form-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: 8px; font-size: .93rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--brand-tint); border-left: 3px solid var(--brand); }
.form-msg.err { background: var(--danger-tint); border-left: 3px solid var(--danger); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--bg-alt); border-top: 1px solid var(--line);
  padding-block: 2.5rem; font-size: .88rem; color: var(--muted);
}
.site-foot p { margin-bottom: .6rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--brand-strong); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.25rem; }

/* ---------- Pagini secundare (juridic) ---------- */
.doc { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.doc h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); margin-top: 2.25rem; }
.doc h2:first-of-type { margin-top: 1.5rem; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: .5rem; }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.25rem 0; }
.doc table th, .doc table td { text-align: left; padding: .6rem .55rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Print ---------- */
@media print {
  .site-head, .cta-row, .form-box, .skip { display: none; }
  body { background: #fff; color: #000; }
}
