/* Secțiunea „Aplicația în mișcare”: butoane de pași, tabletă și telefon. */
.rand-titlu { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; margin-bottom: .75rem; }
.rand-titlu .supratitlu { margin: 0; }
/* buton mic, cu zonă de atingere de 44px */
.pauza { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.4rem; background: none; border: 0; color: var(--sters); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pauza[hidden] { display: none; }
.pauza svg { width: 1.9rem; height: 1.9rem; padding: .4rem; border: 1px solid var(--margine); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: border-color .2s, color .2s; }
.pauza:hover svg { color: var(--text); border-color: var(--violet); }
.pauza .i-porneste { display: none; fill: currentColor; stroke: none; }
.pauza.oprit .i-pauza { display: none; }
.pauza.oprit .i-porneste { display: block; }
.prezentare h2 { margin-bottom: .25rem; }

.pasi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-block: 1.5rem 2.5rem; }
.pasi button { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: center; gap: .2rem .55rem; text-align: left; background: none; border: 1px solid var(--margine); border-radius: .75rem; padding: .75rem .85rem .9rem; color: var(--text); font: 400 1rem var(--corp); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .25s, background-color .25s; }
.pasi strong { font: 700 1.02rem var(--titlu); line-height: 1.2; }
.pasi span { grid-column: 1 / -1; color: var(--sters); font-size: .85rem; line-height: 1.4; }
.pasi button[aria-pressed="true"] { background: var(--card); border-color: var(--violet); }
.pasi i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.ruleaza .pasi button[aria-pressed="true"] i { animation: timp 5s linear forwards; }

.scena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15.5rem); gap: 1.75rem; align-items: center; }
.os { --os-fond: #17111f; --os-card: #241c31; --os-linie: #3a3049; font-family: -apple-system, BlinkMacSystemFont, system-ui, 'IBM Plex Sans', sans-serif; line-height: 1.3; color: var(--text); background: var(--os-fond); overflow: hidden; }
.os p, .os ul { margin: 0; padding: 0; list-style: none; }
.os em { font-style: normal; color: var(--violet); }

.tableta { container-type: inline-size; padding: 1.6%; background: #07050b; border: 1px solid #4a4058; border-radius: 4.5% / 6%; box-shadow: 0 40px 80px -40px rgb(139 108 255 / .75); }
.tableta .os { display: grid; grid-template-columns: 25% minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); aspect-ratio: 4 / 3; border-radius: 3.2% / 4.3%; font-size: 2.05cqw; }
.tableta .stare { grid-column: 1 / -1; }
.stare { display: flex; justify-content: space-between; align-items: center; padding: .55em 1.6em .35em; font-weight: 600; font-size: .85em; }
.baterie { width: 1.9em; height: .9em; border-radius: .25em; background: linear-gradient(90deg, var(--text) 75%, transparent 75%); border: 1px solid rgb(246 242 255 / .6); }
.lateral { background: #120d19; border-right: 1px solid var(--os-linie); padding: .6em .7em; overflow: hidden; }
.lateral .nume { font-weight: 700; font-size: 1.1em; padding-inline: .4em; }
.lateral .locatie { margin-block: .6em; padding: .4em .6em; background: var(--os-card); border-radius: .6em; font-size: .85em; }
.lateral li { padding: .27em .6em; border-radius: .55em; color: var(--sters); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .35s, color .35s; }
.lateral li.ales { background: rgb(139 108 255 / .24); color: var(--violet-deschis); font-weight: 600; }
.continut { display: grid; min-height: 0; }
.ecran { grid-area: 1 / 1; min-width: 0; padding: .6em 1.4em 1em; opacity: 0; visibility: hidden; transform: translateX(2em) scale(.97); transition: opacity .35s, transform .55s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .35s; }
.ecran.activ { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .65s cubic-bezier(.2, .9, .3, 1.25), visibility 0s; }
.os .titlu { font-weight: 800; font-size: 2em; letter-spacing: -.02em; margin-bottom: .15em; }
.os .sub { color: var(--sters); font-size: .88em; margin-bottom: .7em; }
.os .cauta { background: var(--os-card); border-radius: .75em; padding: .45em .8em; color: var(--sters); margin-bottom: .7em; }
.os .grup { background: var(--os-card); border-radius: 1em; padding: 0 .9em; margin-bottom: .7em; }
.os .rand { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6em; padding: .58em 0; border-top: 1px solid var(--os-linie); }
.os .rand:first-child { border-top: 0; }
.os .coloane .rand { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.2fr); }
.os .rand > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os .rand b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.os .rand small { display: block; color: var(--sters); font-size: .8em; }
.os .cap { color: var(--sters); font-size: .8em; text-transform: uppercase; letter-spacing: .04em; }
.os .jos b { color: #ff8fa3; }
.os .verde { color: var(--menta); }
.os .total { display: flex; justify-content: space-between; gap: .6em; padding: .1em .9em .6em; font-variant-numeric: tabular-nums; }
.os .actiune { background: var(--violet); color: #130c22; font-weight: 700; text-align: center; border-radius: .85em; padding: .55em; }
.os .actiune.sus { margin-bottom: .7em; }
.os .gata { margin-top: .6em; text-align: center; color: var(--menta); font-weight: 700; }
.os .cifre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55em; margin-block: .4em .8em; }
.os .cifre p { background: var(--os-card); border-radius: .85em; padding: .55em .7em; }
.os .cifre span { color: var(--sters); font-size: .82em; }
.os .cifre p > span { display: block; }
.os .cifre b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.os .cifre b span { font-size: 1em; color: inherit; }
.os .grup-titlu { font-weight: 700; margin-bottom: .4em; }
.grafic { display: flex; align-items: flex-end; gap: .7em; height: 8em; padding: .8em; background: var(--os-card); border-radius: 1em; }
.grafic i { flex: 1; height: 100%; border-radius: .35em; background: var(--violet); transform-origin: bottom; }
.grafic .h40 { transform: scaleY(.4); } .grafic .h45 { transform: scaleY(.45); } .grafic .h60 { transform: scaleY(.6); }
.grafic .h65 { transform: scaleY(.65); } .grafic .h70 { transform: scaleY(.7); } .grafic .h85 { transform: scaleY(.85); }

.mobil { container-type: inline-size; width: 100%; max-width: 15.5rem; margin-inline: auto; padding: .5rem; background: #07050b; border: 1px solid #4a4058; border-radius: 2.6rem; box-shadow: 0 40px 80px -35px rgb(139 108 255 / .75); }
.mobil .os { display: flex; flex-direction: column; aspect-ratio: 9 / 19.5; border-radius: 2.15rem; font-size: 5.2cqw; }
.mobil .stare { padding: .8em 1.4em .2em; }
.insula { width: 31%; height: 2.1em; background: #000; border-radius: 2em; }
.mobil .continut { flex: 1; }
.mobil .ecran { padding: .8em .85em; }
.mobil .cifre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.taburi { display: grid; grid-template-columns: repeat(5, 1fr); padding: .7em .35em .35em; background: rgb(18 13 25 / .94); border-top: 1px solid var(--os-linie); font-size: .72em; color: var(--sters); text-align: center; }
.taburi span::before { content: ""; display: block; width: 1.7em; height: 1.7em; margin: 0 auto .25em; border-radius: .55em; background: currentColor; opacity: .35; transition: transform .35s cubic-bezier(.2, .9, .3, 1.6), opacity .35s; }
.taburi .ales { color: var(--violet-deschis); font-weight: 700; }
.taburi .ales::before { opacity: 1; transform: scale(1.12); }
.indicator { width: 36%; height: .35em; margin: .25em auto .5em; border-radius: 1em; background: var(--text); opacity: .8; }
.concept { max-width: 44rem; margin: 1.5rem auto 0; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .ecran.activ .rand { animation: urca .5s cubic-bezier(.2, .9, .3, 1.2) backwards; }
  .ecran.activ .rand:nth-child(2) { animation-delay: .1s; }
  .ecran.activ .rand:nth-child(3) { animation-delay: .2s; }
  .ecran.activ .rand:nth-child(4) { animation-delay: .3s; }
  .ecran.activ .rand:nth-child(5) { animation-delay: .4s; }
  .ecran.activ .rand:nth-child(6) { animation-delay: .5s; }
  .ecran.activ .rand:nth-child(7) { animation-delay: .6s; }
  /* Stoc: produsul sub minim atrage atenția */
  .ecran.activ .rand.jos { animation: urca .5s .2s backwards, atentie 1s 1s ease-in-out 3; }
  /* Recepție: marfa sosește, apoi se confirmă stocul */
  .ecran.activ .rand.soseste { animation: soseste .65s cubic-bezier(.2, .9, .3, 1.15) .2s backwards; }
  .ecran.activ .rand.soseste:nth-child(3) { animation-delay: .6s; }
  .ecran.activ .rand.soseste:nth-child(4) { animation-delay: 1s; }
  .ecran.activ .rand.soseste:nth-child(5) { animation-delay: 1.4s; }
  .mobil .ecran.activ .rand.soseste:nth-child(1) { animation-delay: .2s; }
  .mobil .ecran.activ .rand.soseste:nth-child(2) { animation-delay: .6s; }
  .mobil .ecran.activ .rand.soseste:nth-child(3) { animation-delay: 1s; }
  .mobil .ecran.activ .rand.soseste:nth-child(4) { animation-delay: 1.4s; }
  .ecran.activ .gata { animation: pop .6s 2.3s cubic-bezier(.2, .9, .3, 1.6) backwards; }
  .ecran.activ[data-ecran="1"] .actiune { animation: apasa .45s 1.95s ease; }
  /* Comenzi: se apasă „Generează”, apoi apar comenzile pe furnizori */
  .ecran.activ .actiune.sus { animation: apasa .45s .5s ease; }
  .ecran.activ .grup.soseste { animation: urca .6s .95s cubic-bezier(.2, .9, .3, 1.3) backwards; }
  .ecran.activ .grup.soseste ~ .grup.soseste { animation-delay: 1.35s; }
  .ecran.activ .grup.soseste .rand { animation: none; }
  /* Rapoarte: coloanele cresc */
  .ecran.activ .grafic i { animation: creste .8s .4s cubic-bezier(.2, .9, .3, 1.2) backwards; }
  .ecran.activ .grafic i:nth-child(2) { animation-delay: .5s; } .ecran.activ .grafic i:nth-child(3) { animation-delay: .6s; }
  .ecran.activ .grafic i:nth-child(4) { animation-delay: .7s; } .ecran.activ .grafic i:nth-child(5) { animation-delay: .8s; }
  .ecran.activ .grafic i:nth-child(6) { animation-delay: .9s; } .ecran.activ .grafic i:nth-child(7) { animation-delay: 1s; }
  .ecran.activ .cifre p { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) backwards; }
  .ecran.activ .cifre p:nth-child(2) { animation-delay: .08s; } .ecran.activ .cifre p:nth-child(3) { animation-delay: .16s; }
  .ecran.activ .cifre p:nth-child(4) { animation-delay: .24s; } .ecran.activ .cifre p:nth-child(5) { animation-delay: .32s; }
  .ecran.activ .cifre p:nth-child(6) { animation-delay: .4s; }
}

@keyframes timp { to { transform: scaleX(1); } }
@keyframes soseste { from { opacity: 0; transform: translateX(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes apasa { 50% { transform: scale(.93); filter: brightness(1.25); } }
@keyframes atentie { 50% { background: rgb(255 143 163 / .2); } }
@keyframes creste { from { transform: scaleY(0); } }

@media (max-width: 820px) {
  .pasi { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
  .pasi span { display: none; }
  .scena { grid-template-columns: minmax(0, 1fr); }
  .mobil { max-width: 16rem; }
}
@media (max-width: 520px) {
  .mobil { order: -1; }
  .tableta .os { font-size: 2.5cqw; }
  .tableta .lateral li:nth-child(n+14), .tableta .sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pasi button, .ecran, .ecran.activ { transition: none; }
}
