/* CUT. PASTE. PLAY. · player-ul: pânza de 1920 × 1080, subtitrarea, bara de control, ferestrele. */
:root {
  --ink: #181918; --cream: #F6F3EA; --lime: #DDF338; --coral: #FF6256; --blue: #4159EF; --mauve: #915774;
  --orange: #ED7D31; --green: #70AD47; --grey: #66665F; --beige: #E8E5DB; --paper: #FFFFFF;
  --line-c: #D4D2CA; --line-d: #3B3C3A; --ink-2: #242523; --ink-3: #2E2F2D; --mute: #A9A9A1;
  --font: Arial, Arimo, 'Liberation Sans', Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); overflow: hidden; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- Aplicația: pânza scalată la fereastră ---------- */
.app { position: fixed; left: 0; top: 0; width: 1920px; height: 1224px; transform-origin: 0 0; background: var(--ink); }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: clip; background: var(--cream); }
.stage.is-dark, .stage.is-cover, .stage.is-final { background: var(--ink); }

/* focus vizibil peste tot: lime pe fond închis, negru pe crem și pe lime */
:focus { outline: none; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.is-dark :focus-visible, .is-cover :focus-visible, .is-final :focus-visible, .bar :focus-visible, .cc :focus-visible,
.modal--dark :focus-visible, .menu :focus-visible { outline-color: var(--lime); }

/* ---------- Cadrul slide-ului (din layouturile PowerPoint) ---------- */
.chrome { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ch-hdr { position: absolute; left: 63px; top: 29px; margin: 0; font-size: 16.7px; line-height: 20px; font-weight: 700; letter-spacing: .19em; color: #2A2B29; }
.ch-sec { position: absolute; right: 64px; top: 24px; height: 28px; margin: 0; display: flex; align-items: center; font-size: 14.67px; font-weight: 700; color: var(--grey); white-space: nowrap; }
.ch-line { position: absolute; left: 64px; width: 1792px; height: 2px; background: var(--line-c); }
.ch-line--top { top: 72px; }
.ch-line--bot { top: 1047px; }
.ch-num { position: absolute; left: 64px; top: 1006px; height: 28px; margin: 0; display: flex; align-items: center; font-size: 14.67px; font-weight: 700; color: var(--ink); }
.ch-foot { position: absolute; left: 150px; top: 1013px; margin: 0; font-size: 14px; line-height: 18px; letter-spacing: .17em; color: #6B6B63; }
.ch-prog { position: absolute; left: 64px; top: 1045px; height: 5px; width: 0; background: var(--coral); transition: width .6s cubic-bezier(.3, .7, .2, 1); }
.is-dark .ch-hdr, .is-cover .ch-hdr, .is-final .ch-hdr { color: #ECECEC; }
.is-dark .ch-sec, .is-cover .ch-sec, .is-final .ch-sec { color: var(--lime); }
.is-dark .ch-line, .is-cover .ch-line, .is-final .ch-line { background: var(--line-d); }
.is-dark .ch-num, .is-cover .ch-num, .is-final .ch-num { color: #FFFFFF; }
.is-dark .ch-foot, .is-cover .ch-foot, .is-final .ch-foot { color: #8C8C84; }

/* ---------- Butoanele de navigare de pe slide (layouturile Conținut și Închis) ---------- */
.snav { position: absolute; left: 1376px; top: 936px; display: flex; gap: 16px; z-index: 60; }
.snav-btn { height: 60px; border: 0; padding: 0 8px; font-size: 21.33px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color .15s, transform .15s; }
.snav-prev { width: 224px; background: var(--beige); }
.snav-next { width: 240px; background: var(--lime); }
.snav-prev:hover { background: #DCD8CB; }
.snav-next:hover { background: #C7DB32; }
.snav-btn:active { transform: translateY(1px); }
.snav-btn:disabled { opacity: .45; }
.snav .arr { font-family: Arial, 'Segoe UI Symbol', sans-serif; }

/* ---------- Subtitrarea ---------- */
.cc { position: absolute; left: 0; top: 1080px; width: 1920px; height: 64px; display: flex; align-items: center; justify-content: center;
  padding: 0 220px; background: var(--ink); text-align: center; }
.cc span { color: #F3F1E8; font-size: 24px; line-height: 29px; max-height: 58px; overflow: hidden; }
.cc.is-off span { visibility: hidden; }

/* ---------- Bara de control ---------- */
.bar { position: absolute; left: 0; top: 1144px; width: 1920px; height: 80px; display: flex; align-items: center; gap: 8px; padding: 0 24px;
  background: var(--ink); border-top: 1px solid #2C2D2B; color: #F3F1E8; }
.bar-progress { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--lime); }
.bar-btn { height: 52px; min-width: 52px; padding: 0 14px; border: 0; background: transparent; color: #F3F1E8; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; font-weight: 700; transition: background-color .15s, color .15s; }
.bar-btn:hover:not(:disabled) { background: var(--ink-3); }
.bar-btn:disabled { color: #6E6F6B; }
.bar-btn[aria-pressed="true"] { color: var(--lime); }
.bar-btn .ico { width: 26px; height: 26px; }
.bar-play { width: 60px; height: 52px; background: var(--lime); color: var(--ink); }
.bar-play:hover:not(:disabled) { background: #C7DB32; }
.bar-play:disabled { background: #3A3B38; color: #6E6F6B; }
.bar-play.is-attn { animation: attn 1.4s ease-in-out infinite; }
@keyframes attn { 0%, 100% { box-shadow: 0 0 0 0 rgba(221, 243, 56, .0); } 50% { box-shadow: 0 0 0 8px rgba(221, 243, 56, .35); } }
.bar-label { margin: 0 0 0 10px; min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; overflow: hidden; font-size: 18px; }
.bar-label b { color: var(--lime); font-size: 18px; }
.bar-label .chap { color: var(--mute); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.bar-voice { display: flex; align-items: center; gap: 4px; }
.bar-sep { width: 1px; height: 32px; background: #3A3B38; margin: 0 8px; }
.bar-rate { min-width: 72px; font-variant-numeric: tabular-nums; }

/* ---------- Ferestre ---------- */
.modal { position: absolute; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(24, 25, 24, .72);
  animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-panel { position: relative; background: var(--cream); color: var(--ink); max-width: 1640px; max-height: 960px; overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: panel-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes panel-in { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal--dark .modal-panel { background: var(--ink); color: #F3F1E8; }
.modal-x { position: absolute; right: 0; top: 0; width: 64px; height: 64px; border: 0; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; z-index: 5; }
.modal-x .ico { width: 30px; height: 30px; }
.modal-x:hover { background: #333431; }
.modal--dark .modal-x { background: var(--lime); color: var(--ink); }
.modal-body { padding: 64px 72px 56px; }
.m-h { margin: 0 0 24px; font-size: 48px; line-height: 54px; font-weight: 700; }
.m-lead { margin: 0 0 28px; font-size: 26px; line-height: 36px; max-width: 980px; }
.m-small { margin: 0; font-size: 19px; line-height: 27px; color: var(--grey); }
.modal--dark .m-small { color: var(--mute); }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: .02em; }

/* butoanele din ferestre și de pe slide-uri (în stilul cursului) */
.btn { height: 60px; padding: 0 26px; border: 0; background: var(--beige); color: var(--ink); font-size: 21px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: background-color .15s, transform .15s; text-decoration: none; }
.btn:hover:not(:disabled) { background: #DCD8CB; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; }
.btn .ico { width: 26px; height: 26px; }
.btn--lime { background: var(--lime); }
.btn--lime:hover:not(:disabled) { background: #C7DB32; }
.btn--ink { background: var(--ink); color: #FFFFFF; }
.btn--ink:hover:not(:disabled) { background: #333431; }
.btn--small { height: 48px; padding: 0 18px; font-size: 18px; }
.btn--small .ico { width: 22px; height: 22px; }
.btn--link { background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 0 8px; }
.btn--link:hover:not(:disabled) { background: transparent; color: var(--grey); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Mesaje ---------- */
.toast, .banner { position: absolute; z-index: 140; left: 50%; transform: translateX(-50%); bottom: 26px; display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  max-width: 1200px; font-size: 21px; line-height: 28px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: toast-in .25s ease-out; }
.toast { background: var(--ink); color: #FFFFFF; }
.toast .ico { width: 26px; height: 26px; color: var(--lime); flex: none; }
.banner { background: var(--coral); color: var(--ink); }
.banner .ico { width: 28px; height: 28px; flex: none; }
.banner .x { border: 0; background: transparent; color: var(--ink); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Intro (logo animat) și ecranul de final ---------- */
.intro { position: absolute; inset: 0; z-index: 200; background: #000000; display: flex; align-items: center; justify-content: center; transition: opacity .6s; }
.intro video { width: 1080px; height: 1080px; }
.intro.is-out { opacity: 0; pointer-events: none; }
.intro .skip { position: absolute; right: 40px; bottom: 40px; background: #2A2B29; color: #FFFFFF; }
.intro .skip:hover { background: #3A3B38; }
.app.is-intro .bar, .app.is-intro .cc { visibility: hidden; }

.end { position: absolute; inset: 0; z-index: 150; background: var(--ink); display: flex; align-items: center; justify-content: center; animation: modal-in .4s ease-out; }
.end-card { width: 1500px; background: var(--cream); padding: 72px 80px 64px; display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.end-card h2 { margin: 0 0 18px; font-size: 64px; line-height: 70px; }
.end-card .m-lead { margin-bottom: 36px; }
.end-logos { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; margin: 0 0 28px; }
.end-made { margin: 0 0 6px; font-size: 22px; font-weight: 700; }

/* ---------- Ecranul „întoarce telefonul” (pe telefon, ținut în picioare) ---------- */
.rotate { position: fixed; inset: 0; z-index: 9000; background: var(--ink); color: #F3F1E8; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px; text-align: center; font-family: var(--font); }
.rotate p { margin: 0; font-size: 20px; line-height: 28px; max-width: 320px; }
.rotate svg { width: 72px; height: 72px; color: var(--lime); }
.rotate button { height: 48px; padding: 0 20px; border: 0; background: var(--lime); color: var(--ink); font-size: 17px; font-weight: 700; }
html.is-portrait .rotate { display: flex; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
