/* Zero Obiecții în vânzări · ADNV × Clean Code Culture
   Paleta și tipografia sunt luate din PDF-ul original (Inter). */
:root {
  --blue: #1527d6;
  --blue-soft: #dce0f7;
  --ink: #11131a;
  --text: #23262f;
  --body: #3c4150;
  --muted: #8a90a6;
  --muted-2: #555b6e;
  --faint: #b3b8c9;
  --line: #e3e6f0;
  --box: #f6f7fd;
  --hl: #fff1bf;
  --yellow: #ffc000;
  --warn-bg: #fff9e6;
  --warn-title: #9a6f00;
  --danger: #e5533c;
  --danger-bg: #fdf1ee;
  --danger-title: #c23a25;
  --green: #2fbf8a;
  --page: #ffffff;
  --radius: 10px;
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: var(--blue); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logos { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logos .adnv { height: 28px; width: 28px; }
.logos .ccc { height: 28px; width: auto; }
.logos .x { color: var(--faint); font-weight: 300; font-size: 16px; }
.topbar .crumb { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--ink); border-radius: 6px; padding: 6px 10px;
}
.admin-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  border: 1px solid var(--line); background: #fff; color: var(--muted-2);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--blue-soft); color: var(--blue); }

/* ---------- hero (copertă) ---------- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--blue);
}
.hero-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 56px; }
.hero-logos .adnv { width: 64px; height: 64px; }
.hero-logos .ccc { height: 60px; width: auto; }
.hero-logos .x { color: var(--faint); font-size: 26px; font-weight: 300; }
.badge-yellow {
  display: inline-block; background: var(--yellow); color: var(--blue);
  font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 4px;
}
.hero h1 {
  margin: 22px 0 18px; color: var(--ink);
  font-weight: 800; font-size: clamp(44px, 9vw, 76px); line-height: 1.02; letter-spacing: -.025em;
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { color: var(--muted-2); font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55; max-width: 620px; margin: 0; }

/* ---------- index pași ---------- */
.index { margin: 44px 0 0; border-top: 1px solid var(--line); list-style: none; padding: 0; }
.index li { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 4px; color: var(--ink); text-decoration: none; min-height: 56px;
}
a.index-row:hover .index-title { color: var(--blue); }
.index-num { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.index-title { font-size: 17px; }
.index-row.locked .index-num, .index-row.locked .index-title { color: var(--faint); }
.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px;
}
.status.on { color: #0f7a54; background: #e3f7ee; }
.status.off { color: var(--muted); background: var(--box); }
.status svg { width: 12px; height: 12px; }

/* switch admin */
.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line); transition: background .2s; flex: none; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17,19,26,.25); transition: transform .2s; }
.switch[aria-checked="true"] .track { background: var(--blue); }
.switch[aria-checked="true"] .knob { transform: translateX(18px); }
.switch[aria-checked="true"] .lbl { color: var(--blue); }
.switch:disabled { opacity: .5; cursor: wait; }

.meta-line { margin-top: 40px; }
.meta-line .k { color: var(--blue); font-weight: 800; letter-spacing: .2em; font-size: 13px; text-transform: uppercase; }
.meta-line .v { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- secțiuni ---------- */
.step { padding: 56px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.step.is-new { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: #eef0fd; } 100% { background: transparent; } }
.pill-step {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  font-size: 13px; letter-spacing: .14em; padding: 6px 12px; border-radius: 5px;
}
.step h2 { margin: 14px 0 4px; color: var(--ink); font-weight: 800; font-size: clamp(30px, 5vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.step .day { color: var(--muted); font-size: 16px; margin: 0 0 20px; }

.step-admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; font-size: 14px;
}
.step-admin-bar.on { background: #e3f7ee; color: #0f7a54; }
.step-admin-bar.off { background: var(--box); color: var(--muted-2); border: 1px dashed var(--faint); }
.step.hidden-for-users .step-body { opacity: .55; }

.facts { margin: 0 0 24px; }
.fact { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 700; color: var(--ink); }
.fact dd { margin: 0; color: var(--body); }

/* ---------- chenarul promptului ---------- */
.prompt {
  position: relative; background: var(--box); border: 1px solid var(--blue-soft);
  border-left: 5px solid var(--blue); border-radius: var(--radius);
  padding: 20px 24px 22px; color: var(--text); font-size: 15px; line-height: 1.62;
}
.prompt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px;
}
.prompt-label { color: var(--blue); font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 14px; font-weight: 700; font-size: 14px;
  box-shadow: 0 1px 0 rgba(17,19,26,.08);
  transition: background .15s, transform .05s;
}
.copy-btn:hover { background: #0f1fb8; }
.copy-btn:active { transform: translateY(1px); }
.copy-btn.done { background: #0f7a54; }
.copy-btn svg { width: 16px; height: 16px; }
.prompt-foot { display: flex; justify-content: flex-end; margin-top: 18px; }

.pl { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pl + .pl { margin-top: 2px; }
.pl.h { color: var(--blue); font-weight: 800; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 16px; }
.pl.h:first-child { margin-top: 0; }
.pl.b { color: var(--ink); font-weight: 700; margin-top: 12px; }
.pl { padding-left: calc(var(--lvl, 0) * var(--indent, 20px)); }
.pl.hang { padding-left: calc(var(--lvl, 0) * var(--indent, 20px) + var(--hang, 1.3em)); text-indent: calc(-1 * var(--hang, 1.3em)); }

mark.fill {
  background: var(--hl); color: var(--ink); border-radius: 3px; padding: 1px 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- pasul 0 ---------- */
.intro { color: var(--body); font-size: 17px; margin: 0 0 18px; }
.howto { margin: 0 0 28px; padding-left: 0; list-style: none; counter-reset: h; }
.howto li { counter-increment: h; position: relative; padding: 6px 0 6px 34px; color: var(--body); }
.howto li::before { content: counter(h) '.'; position: absolute; left: 4px; top: 6px; font-weight: 800; color: var(--ink); }
.howto strong { color: var(--ink); }

.plan { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15px; }
.plan th { text-align: left; color: var(--blue); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; padding: 10px 8px; border-bottom: 2px solid var(--blue); }
.plan td { vertical-align: top; padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--body); }
.plan .pn { display: block; color: var(--blue); font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.plan .pt { color: var(--ink); font-weight: 700; }
.plan .when { white-space: nowrap; color: var(--muted-2); }

.callout { border-radius: var(--radius); padding: 16px 20px; margin: 0 0 16px; border-left: 4px solid; }
.callout .ct { font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--body); }
.callout.warn { background: var(--warn-bg); border-color: var(--yellow); }
.callout.warn .ct { color: var(--warn-title); }
.callout.danger { background: var(--danger-bg); border-color: var(--danger); }
.callout.danger .ct { color: var(--danger-title); }

/* ---------- pas blocat (participanți) ---------- */
.coming {
  margin: 56px 0 0; padding: 28px 24px; border: 1px dashed var(--faint); border-radius: var(--radius);
  text-align: center; color: var(--muted-2); background: var(--box);
}
.coming .ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; margin-bottom: 10px; color: var(--blue); border: 1px solid var(--blue-soft); }
.coming strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* ---------- footer ---------- */
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--box); position: relative; }
.login-page::before { content: ''; position: fixed; left: 0; top: 0; bottom: 0; width: 14px; background: var(--blue); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; box-shadow: 0 10px 40px rgba(21,39,214,.07); }
.login-card .hero-logos { margin-bottom: 28px; gap: 12px; }
.login-card .hero-logos .adnv { width: 44px; height: 44px; }
.login-card .hero-logos .ccc { height: 42px; }
.login-card h1 { margin: 14px 0 6px; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.login-card p { margin: 0 0 22px; color: var(--muted-2); font-size: 15px; }
.pin-input {
  width: 100%; font: inherit; font-size: 28px; font-weight: 700; letter-spacing: .5em; text-align: center;
  padding: 12px 10px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff;
}
.pin-input:focus { outline: none; border-color: var(--blue); }
.btn-primary { width: 100%; margin-top: 14px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 14px; font-weight: 700; font-size: 16px; }
.btn-primary:disabled { opacity: .6; }
.login-err { color: var(--danger-title); font-size: 14px; margin-top: 10px; min-height: 1.4em; }
.login-back { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(17,19,26,.25); max-width: calc(100vw - 32px);
}
.toast a { color: #fff; font-weight: 700; margin-left: 8px; }

.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .topbar .crumb { display: none; }
  .hero { padding: 40px 0 40px; }
  .hero::before { width: 8px; }
  .hero-logos { margin-bottom: 36px; gap: 12px; }
  .hero-logos .adnv { width: 48px; height: 48px; }
  .hero-logos .ccc { height: 44px; }
  .index-row { grid-template-columns: 74px 1fr; row-gap: 6px; }
  .index-row > :last-child { grid-column: 2; justify-self: start; }
  .index-title { font-size: 16px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .prompt { padding: 16px 14px 18px; font-size: 14.5px; border-left-width: 4px; }
  .prompt { --indent: 12px; }
  .prompt-head { align-items: flex-start; }
  .copy-btn { width: 100%; justify-content: center; padding: 12px 14px; }
  .prompt-foot .copy-btn { width: 100%; }
  .plan thead { display: none; }
  .plan, .plan tbody, .plan tr, .plan td { display: block; width: 100%; }
  .plan tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .plan td { border: 0; padding: 2px 0; }
  .step { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step.is-new { animation: none; }
}
.switch .lbl { min-width: 72px; text-align: left; }
