/* Pasakos kūrimo vedlys. Naudoja tuos pačius kintamuosius kaip site.css. */
.app { min-height: 100svh; }
.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.steps li { width: 14px; height: 14px; background: var(--field-3); clip-path: var(--rhomb); }
.steps li.done { background: var(--muted); }
.steps li.on { background: var(--ink); width: 18px; height: 18px; }
.app__main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: 96px; }
.demo-note { grid-column: 1 / -1; background: var(--surface); padding: 12px 16px; font-size: 1rem; }
.panel { max-width: 640px; }
.panel h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: .95; }
.panel .lead { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.q { margin-top: 30px; }
.q > .label, .q > label { display: block; font: 700 1.0625rem/1.25 var(--display); margin-bottom: 10px; }
.opt { font: 400 1rem/1 var(--text); color: var(--muted); }
.hint { margin-top: 8px; font-size: 1rem; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick {
  font: 700 1.0625rem/1.25 var(--display); text-align: left; padding: 16px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.pick small { display: block; margin-top: 4px; font: 400 1rem/1.35 var(--text); color: var(--muted); }
.pick:hover { transform: translateY(-2px); background: var(--field-2); }
.pick[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pick[aria-pressed="true"] small { color: var(--bg); }
.pick--big { padding: 22px 18px; font-size: 1.375rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 700 1rem/1 var(--display); padding: 12px 18px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); clip-path: var(--btn); transition: transform .15s var(--ease); }
.tag:hover { transform: translateY(-2px); }
.tag[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.row { display: flex; gap: 8px; align-items: stretch; }
.row .field { flex: 1; min-width: 0; margin-top: 0; }
.counter { text-align: right; font-size: 1rem; color: var(--muted); margin-top: 4px; }
.warn { margin-top: 10px; background: var(--ink); color: var(--bg); padding: 12px 14px; font-size: 1rem; }
.char { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.char select { font: 400 1.0625rem/1.3 var(--text); background: var(--surface); color: var(--ink); border: 2px solid transparent; padding: 12px; }
.char .rm { border: 0; background: var(--surface); color: var(--ink); font: 700 1.25rem/1 var(--display); width: 48px; cursor: pointer; }
.add { margin-top: 4px; border: 0; background: none; color: var(--ink); font: 700 1rem/1 var(--display); cursor: pointer; padding: 12px 0; display: inline-flex; gap: .5em; align-items: center; }
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch input { width: 24px; height: 24px; accent-color: var(--ink); flex: 0 0 auto; margin-top: 2px; }
.voice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; margin-bottom: 8px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); text-align: left; font: inherit; }
.voice[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.voice__play { width: 38px; height: 38px; background: var(--accent); color: var(--accent-ink); clip-path: var(--rhomb); display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.voice[aria-pressed="true"] .voice__play { background: var(--bg); color: var(--ink); }
.voice b { font: 700 1.125rem/1.1 var(--display); display: block; }
.voice__tag { margin-left: auto; font-size: 1rem; }
.sum { margin: 24px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; }
.progress { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.progress li { display: flex; gap: 14px; align-items: center; color: var(--muted); font: 700 1.125rem/1.2 var(--display); }
.progress li::before { content: ""; width: 16px; height: 16px; background: var(--field-3); clip-path: var(--rhomb); flex: 0 0 auto; }
.progress li.on { color: var(--ink); }
.progress li.on::before { background: var(--ink); animation: pulse 1s ease-in-out infinite alternate; }
.progress li.ok { color: var(--ink); }
.progress li.ok::before { background: var(--ink); }
@keyframes pulse { to { transform: scale(.55); } }
.listen { margin-top: 24px; background: var(--ink); color: var(--bg); padding: 20px; }
.listen b { font: 700 1.25rem/1.2 var(--display); display: block; }
.listen audio { width: 100%; margin-top: 12px; }
.listen p { margin-top: 8px; font-size: 1rem; }
.story { margin-top: 24px; background: #fbf5dc; color: #1d2a20; padding: clamp(20px, 3vw, 36px); font-size: 1.125rem; line-height: 1.65; }
.story h2 { font-size: 1.75rem; margin-bottom: 14px; color: #133621; }
.story p + p { margin-top: 1em; }
.story mark { background: #f4d96c; color: inherit; padding: 0 .1em; }
.story--fade { max-height: 420px; overflow: hidden; position: relative; }
.story textarea { width: 100%; min-height: 60svh; font: 400 1.125rem/1.65 var(--text); color: #1d2a20; background: #fff; border: 2px solid #133621; padding: 16px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prices { display: grid; gap: 8px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); text-align: left; font: inherit; }
.price b { font: 700 1.75rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.price span span { display: block; font-size: 1rem; color: var(--muted); }
.price[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.price[aria-pressed="true"] span span { color: var(--bg); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 1rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; accent-color: var(--ink); flex: 0 0 auto; margin-top: 2px; }
.paymethods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.error { margin-top: 20px; background: var(--danger); color: #3a0d05; padding: 14px 16px; font-size: 1rem; }
.app__nav { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.app__nav .btn { min-width: 160px; }
.art { position: sticky; top: 24px; }
.art__rhomb { aspect-ratio: 1; background: var(--accent); clip-path: var(--rhomb); position: relative; }
.art__rhomb img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: cover; clip-path: var(--rhomb); transition: opacity .4s var(--ease); }
.done-mark { width: 72px; height: 72px; background: var(--ink); clip-path: var(--rhomb); margin-bottom: 24px; }
.coupon { margin-top: 18px; font: 700 1.75rem/1 var(--display); letter-spacing: .02em; background: var(--surface); padding: 16px; display: inline-block; }
@media (max-width: 860px) {
  .app__main { grid-template-columns: minmax(0, 1fr); }
  .art { display: none; }
  .choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__nav .btn { flex: 1; min-width: 0; }
  .char { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .char .rm { grid-column: 2; justify-self: end; }
  .paymethods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .progress li.on::before { animation: none; } }
