:root {
  /* Paleta: #EF7B1B portocaliu, #08676E petrol, #3B9FA4 turcoaz, #D0EBF4 bleu */
  --bg: #eef7f9; --surface: #ffffff; --bg-2: #e3f2f5;
  --ink: #0d3134; --ink-2: #355a5d; --muted: #4b6b6e; --line: #d4e8eb;
  --accent: #08676e; --accent-2: #06545a; --accent-ink: #fff;
  --pop: #ef7b1b; --pop-ink: #0d3134;
  --ok: #1f7a55; --ok-t: #e1f4ec; --warn: #a24f0f; --warn-t: #fdeedf;
  --peach-t: #fdeedf; --green-t: #dcefef; --lilac-t: #d0ebf4;
  --shadow: 0 1px 2px rgba(8, 60, 64, .05), 0 14px 34px -16px rgba(8, 80, 88, .22);
  --r: 22px;
  --f-d: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --f-b: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#062628; --surface:#0b3639; --bg-2:#0f4245; --ink:#e6f5f6; --ink-2:#b5d6d8; --muted:#8fb7ba; --line:#1a4c50; --accent:#5ec3c7; --accent-2:#7fd2d5; --accent-ink:#062628; --pop:#ff9440; --pop-ink:#062628; --ok:#6fd6a0; --ok-t:#13392c; --warn:#ffb877; --warn-t:#3b2a18; --peach-t:#3a2614; --green-t:#0f4a4c; --lilac-t:#123f52; --shadow:0 1px 2px rgba(0,0,0,.3),0 14px 34px -16px rgba(0,0,0,.65); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#062628; --surface:#0b3639; --bg-2:#0f4245; --ink:#e6f5f6; --ink-2:#b5d6d8; --muted:#8fb7ba; --line:#1a4c50; --accent:#5ec3c7; --accent-2:#7fd2d5; --accent-ink:#062628; --pop:#ff9440; --pop-ink:#062628; --ok:#6fd6a0; --ok-t:#13392c; --warn:#ffb877; --warn-t:#3b2a18; --peach-t:#3a2614; --green-t:#0f4a4c; --lilac-t:#123f52; --shadow:0 1px 2px rgba(0,0,0,.3),0 14px 34px -16px rgba(0,0,0,.65); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2 { font-family: var(--f-d); letter-spacing: -.02em; line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; }
.muted { color: var(--muted); }

.top { max-width: 1040px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px/1.1 var(--f-d); }
.brand b { font-weight: 600; }
.logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--peach-t); font-size: 22px; }
.top nav { display: flex; gap: 8px; }
.pill { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill [data-count]:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--pop); color: var(--pop-ink); font-size: 12px; }
main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; }
.foot { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 14px; border: 0; font-weight: 700; text-decoration: none; transition: transform .16s var(--ease), background .16s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:not(:disabled):hover { background: var(--accent-2); }
.btn-soft { background: var(--bg-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Acasă */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--surface); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); max-width: 18ch; }
.lead { color: var(--ink-2); margin: 12px 0 20px; max-width: 56ch; }
.ring { --p: 0; width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--pop) calc(var(--p) * 1%), var(--bg-2) 0); }
.ring b { font: 600 30px var(--f-d); }
.ring small { color: var(--muted); font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.step { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.step header { position: relative; padding: 20px 20px 16px; background: var(--tint); }
.step .num { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.step h2 { font-size: 22px; margin: 2px 0 6px; }
.step header p { color: var(--ink-2); font-size: 14px; }
.step .meta { position: absolute; top: 18px; right: 18px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.step ol { list-style: none; margin: 0; padding: 8px; }
.step li a { display: grid; grid-template-columns: 36px 1fr 20px; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; }
.step li a:hover { background: var(--bg-2); }
.step li small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.step li a.done { color: var(--muted); }
.step .chk { color: var(--ok); font-weight: 700; }
.ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--tint, var(--bg-2)); font-size: 18px; }
.ic.big { width: 52px; height: 52px; border-radius: 16px; font-size: 26px; }
.tone-peach { --tint: var(--peach-t); }
.tone-green { --tint: var(--green-t); }
.tone-lilac { --tint: var(--lilac-t); }

/* Lecție */
.lesson { max-width: 720px; margin: 0 auto; }
.lesson-top { display: flex; align-items: center; gap: 14px; }
.lesson-top .t { flex: 1; min-width: 0; }
.lesson-top h1 { font-size: 22px; }
.lesson-top small { color: var(--muted); font-size: 13px; }
.close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; background: var(--surface); box-shadow: var(--shadow); }
.bar { height: 6px; border-radius: 6px; background: var(--line); margin: 16px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--pop); border-radius: inherit; transition: width .36s var(--ease); }
.card { background: var(--surface); border-radius: var(--r); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.enter { animation: enter .36s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .enter { animation: none; } .bar i { transition: none; } }
.card h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 12px; }
.card .body { color: var(--ink-2); font-size: 17px; }
.reveal-btn { margin-top: 18px; }
.reveal { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--tint); font-weight: 600; animation: enter .3s var(--ease); }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; transition: border-color .16s, background .16s; }
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.opt.picked.good { border-color: var(--ok); background: var(--ok-t); }
.opt.picked.meh { border-color: var(--warn); background: var(--warn-t); }
.fb p { margin-top: 14px; padding: 12px 16px; border-radius: 14px; }
.fb .ok { background: var(--ok-t); }
.fb .warn { background: var(--warn-t); }
.fb .muted { padding: 0 4px; background: none; font-size: 14px; }
.sort { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.sort li { padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); display: grid; gap: 10px; font-weight: 600; }
.sort li.right { border-color: var(--ok); }
.sort li.wrong { border-color: var(--warn); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 7px 12px; border-radius: 999px; border: 0; background: var(--bg-2); font-size: 13px; font-weight: 700; }
.pick button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.free { display: grid; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.free input { font: inherit; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.keep { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; animation: enter .3s var(--ease); }
.kt { font-weight: 700; flex: 1 1 260px; }
.keep button[aria-pressed="true"] { background: var(--ok-t); color: var(--ok); }
.nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hint { flex: 1; color: var(--muted); font-size: 14px; }
.recap { text-align: center; }
.recap h2 { margin-top: 12px; }
.recap .ic { margin: 0 auto; }
.keeps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; text-align: left; }
.keeps li { padding: 12px 16px; border-radius: 14px; background: var(--tint, var(--bg-2)); font-weight: 600; }
.keeps li::before { content: '💡 '; }

/* Pagini */
.page { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.page h1 { font-size: clamp(26px, 4vw, 36px); }
.plan { margin: 20px 0; display: grid; gap: 10px; }
.plan div { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.plan dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.plan dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 16px; }
.page > .btn-ghost:last-child { margin-top: 10px; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; } .ring { width: 120px; } .brand span:last-child { font-size: 14px; } .pill { padding: 8px 11px; font-size: 13px; } }
@media print { .top, .foot, .row, hr, .page .btn, .page > .muted { display: none; } body { background: #fff; } .page { box-shadow: none; } }

/* Ilustrații */
.art { display: block; width: min(220px, 60%); height: auto; aspect-ratio: 1; object-fit: cover; margin: -6px auto 14px; border-radius: 24px; }
.hero-side { display: grid; justify-items: center; gap: 4px; }
.hero-art { width: 220px; height: auto; aspect-ratio: 1; border-radius: 28px; }
.hero-side .ring { position: relative; z-index: 1; width: 110px; margin-top: -40px; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--pop) calc(var(--p) * 1%), var(--bg-2) 0); box-shadow: var(--shadow); }
.hero-side .ring b { font-size: 22px; }
.hero-side .ring small { font-size: 10px; }
:root[data-theme="dark"] .art, :root[data-theme="dark"] .hero-art { filter: brightness(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art, :root:not([data-theme="light"]) .hero-art { filter: brightness(.92); } }
@media (max-width: 560px) { .hero-art { width: 170px; } }

/* Comutator de aspect, în subsol */
.theme { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.theme button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.theme button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media print { .theme { display: none; } }

/* Sursa de pe card */
.src { margin-top: 16px; font-size: 13px; color: var(--muted); }
.src a { color: var(--accent); font-weight: 600; }
.src-h { font-size: 18px; margin: 22px 0 6px; }
.src-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.src-list a { color: var(--accent); font-weight: 600; }
