/* ===== Creatorul de carte ===== */
.creator { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; padding-block: 24px 80px; }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0 auto; padding: 0; counter-reset: s; }
.stepper li button { display: inline-flex; align-items: center; gap: 6px; padding: .4em .75em; font-weight: 800; font-size: .88rem; border: 2px solid transparent; border-radius: 999px; background: none; color: var(--ink-3); }
.stepper li button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; font-size: .78rem; }
.stepper li.done button { color: var(--ink-2); }
.stepper li.done button span { background: var(--sky); color: var(--ink); border-color: var(--ink); }
.stepper li.cur button { color: var(--ink); border-color: var(--ink); background: var(--mustard-2); }
.stepper li.cur button span { background: var(--mustard); border-color: var(--ink); }
.stepper li button[disabled] { cursor: default; }
@media (max-width: 1180px) { .stepper li:not(.cur) button em { display: none; } }
@media (max-width: 700px) { .stepper { display: none; } }

.wizard { padding: clamp(20px, 3.5vw, 40px); position: relative; overflow: hidden; }
.wz-progress { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--sky-2); }
.wz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mustard), var(--pink)); transition: width .6s var(--ease-out); }
.wz-step { animation: step-in .45s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.wz-step h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 8px; }
.wz-step > p.lead { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 26px; }
.wz-step .kicker { margin: 0; }
.field { margin-bottom: 22px; }
.field > label, .field > .lbl { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.field .opt { font-family: var(--f-body); font-weight: 700; color: var(--ink-3); font-size: .9rem; }
.input, .textarea, .select { width: 100%; padding: .8em 1em; font-size: 1.08rem; font-weight: 700; background: #fff; border: var(--line); border-radius: 16px; transition: box-shadow .2s; }
.input:focus, .textarea:focus, .select:focus { outline: none; box-shadow: 0 0 0 4px var(--mustard); }
.input.big { font-family: var(--f-display); font-size: 1.6rem; padding: .5em .8em; }
.textarea { min-height: 130px; resize: vertical; font-weight: 600; line-height: 1.5; }
.err { color: #d4462a; font-weight: 800; font-size: .92rem; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { font-size: 1rem; padding: .55em 1.1em; }

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pick { position: relative; text-align: center; padding: 10px 10px 12px; background: #fff; border: var(--line); border-radius: 20px; font-weight: 700; transition: transform .25s var(--ease-spring), box-shadow .25s; }
.pick:hover { transform: translateY(-4px); }
.pick[aria-pressed="true"] { background: var(--mustard-2); box-shadow: 0 0 0 4px var(--mustard); }
.pick[aria-pressed="true"]::after { content: ''; position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2150' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/18px no-repeat; border: 2px solid var(--ink); animation: pop-in .4s var(--ease-spring); }
.pick .pk-art { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); margin-bottom: 8px; }
.pick .pk-art .scene { width: 100%; height: 100%; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.style-grid .pk-art { aspect-ratio: 4/3; }
.font-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.font-grid .pick { text-align: left; padding: 14px 16px; }
.font-grid .pick b { display: block; font-size: 1.5rem; line-height: 1.1; margin-bottom: 2px; }
.font-grid .pick small { color: var(--ink-2); font-weight: 700; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value-grid .pick { padding: 16px 10px; }
.value-grid .pick .vi { width: 54px; height: 54px; margin: 0 auto 8px; }
@media (max-width: 1000px) { .theme-grid, .value-grid { grid-template-columns: repeat(2, 1fr); } .style-grid { grid-template-columns: repeat(2, 1fr); } }

.upload { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1.6px dashed var(--ink-3); border-radius: 20px; background: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s; }
.upload:hover, .upload.drag { border-color: var(--ink); background: var(--sky-2); }
.upload .up-ph { width: 140px; height: 140px; border-radius: 50%; border: var(--line); background: var(--sky-2) center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.upload .up-ph svg { width: 48px; height: 48px; color: var(--ink-2); }
.upload ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .upload { grid-template-columns: 1fr; justify-items: center; text-align: center; } .upload ul { text-align: left; } }

.char-list { display: grid; gap: 12px; margin-bottom: 14px; }
.char-row { display: grid; grid-template-columns: 1fr 150px 1fr auto; gap: 10px; align-items: center; padding: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; animation: step-in .35s var(--ease-out) both; }
.char-row .input, .char-row .select { padding: .6em .8em; font-size: 1rem; border-radius: 12px; }
@media (max-width: 640px) { .char-row { grid-template-columns: 1fr 1fr; } .char-row .rm { grid-column: 2; justify-self: end; } }
.ai-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ded-options { display: grid; gap: 10px; margin-top: 14px; }
.ded-options button { text-align: left; padding: 14px 16px; font-family: var(--f-hand); font-size: 1.05rem; line-height: 1.3; background: #fff; border: 2px solid var(--ink); border-radius: 16px; animation: step-in .4s var(--ease-out) both; }
.ded-options button:hover { background: var(--mustard-2); }

.summary-list { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; font-weight: 700; }
.summary-list li span { color: var(--ink-2); }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formats .pick { text-align: left; padding: 18px; }
.formats .pick b { display: block; font-family: var(--f-display); font-size: 1.3rem; }
.formats .pick .pr { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; margin: 4px 0; }
.formats .pick small { color: var(--ink-2); font-weight: 700; display: block; }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }
.demo-note { margin-top: 16px; font-size: .9rem; font-weight: 700; color: var(--ink-3); text-align: center; }

.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 2px dashed rgba(42, 33, 80, .15); }
.wz-nav .btn[hidden] { display: none; }

/* previzualizare */
.preview { position: sticky; top: 90px; display: grid; gap: 18px; }
.pv-stage { position: relative; height: 460px; perspective: 1400px; }
.pv-book { --w: 310px; --h: 400px; top: 50%; }
.pv-inside { display: flex; gap: 14px; align-items: center; padding: 14px 16px; transform: rotate(-1deg); }
.pv-inside small { font-weight: 800; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.pv-inside p { font-family: var(--f-hand); font-size: 1rem; line-height: 1.25; color: var(--ink); }
.pv-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; border: var(--line); background: var(--sky-2) center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.pv-photo .sticker-svg { width: 80%; }
.pv-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pv-summary li { padding: .3em .8em; font-weight: 800; font-size: .85rem; background: #fff; border: 2px solid var(--ink); border-radius: 999px; }
.b-title.f-story { font-style: italic; }
.b-title.f-hand { font-family: var(--f-hand); }
.b-title.f-hand { font-variation-settings: normal; }
.b-title.f-round { font-family: var(--f-body); font-weight: 800; }

@media (max-width: 960px) {
  .creator { grid-template-columns: 1fr; }
  .preview { position: relative; top: 0; order: -1; }
  .pv-stage { height: 330px; }
  .pv-book { --w: 220px; --h: 285px; }
  .pv-book .b-title .b-name { font-size: 1.8rem; }
  .pv-book .b-title .b-sub { font-size: 1.05rem; }
  .pv-inside, .pv-summary { display: none; }
}
