/* Eixo Tech, landing v1.6.0 (PLN-0066): o capítulo "A Eixo faz com você" do filme da home.
   A agenda da reunião de metas, a chamada com o especialista da Eixo, a homologação e a virada.
   Usa as cores da janela do filme (film.css) e os tokens da página (--p-*, --s-*, --r-*). */

/* as telas do filme ocupam o mesmo lugar; só a da cena aparece */
.film__screens { position: relative; z-index: 1; display: grid; }
.film__screens > [data-screen] { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.film__screens > [data-screen].is-on { opacity: 1; visibility: visible; transition: opacity .45s; }
.film__stage > .film__screens .cc { position: relative; z-index: auto; }

.mt-win { --cc-ink: #1d1d1b; --cc-muted: #6f6c66; --cc-line: rgb(0 0 0 / .08); --cc-soft: #f5f4ef; --cc-ok: #1e8a4c; --cc-ok-bg: #e5f4ea;
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 14px; overflow: hidden; background: #fff; color: var(--cc-ink);
  font: 400 14px/1.5 var(--font-text); text-align: left; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .06); }
.mt-win .cc-web__bar { height: 42px; }
.film__screens .is-in { animation: ccIn .38s var(--ease, ease) both; }

/* o cursor que marca o horário, entra na reunião, aprova e homologa */
.mt-cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transition: transform .8s cubic-bezier(.45, .05, .25, 1), opacity .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8.2-6.1 1.3 3.6 6.8-2.6 1.4-3.6-6.9L5.6 18z' fill='%23232323' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .25)); }
.mt-cursor.is-on { opacity: 1; }
.mt-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; background: rgb(35 35 35 / .2); transform: scale(0); }
.mt-cursor.is-click::after { animation: mtTap .4s ease-out; }
@keyframes mtTap { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.film__screens .is-press { transform: scale(.96); }

/* ---------- 1. a agenda da Eixo ---------- */
.mt-cal__page { display: grid; align-content: start; gap: 16px; padding: clamp(16px, 2.4vw, 28px); background: #fbfaf7; overflow: hidden; }
.mt-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-cal__head .eixo-mini { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.mt-cal__head .eixo-mini svg { width: 20px; height: 20px; }
.mt-cal__head small { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--cc-muted); }
.mt-cal__title { display: grid; gap: 2px; }
.mt-cal__title b { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.mt-cal__title span { color: var(--cc-muted); font-size: 13.5px; }
.mt-week { display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); gap: 6px; }
.mt-week .hd, .mt-week .hr { font: 500 12px/1 var(--font-mono); color: var(--cc-muted); display: grid; place-items: center; height: 24px; }
.mt-week .hr { justify-items: start; height: 40px; }
.mt-slot { height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 12.5px; font-weight: 500; background: #e7eefc; color: #2652a8; transition: transform .12s, background .25s, color .25s; }
.mt-slot.is-busy { background: var(--cc-soft); color: #b3aea4; font-weight: 400; }
.mt-slot.is-pick { background: var(--cc-ink); color: #fff; }
.mt-ok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--cc-line); box-shadow: 0 10px 24px -18px rgb(0 0 0 / .35); }
.mt-ok[hidden] { display: none; }
.mt-ok__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--cc-ok-bg); color: #17663a; }
.mt-ok__ic svg, .mt-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-ok__t { display: grid; min-width: 0; gap: 1px; flex: 1; }
.mt-ok__t b { font-weight: 500; font-size: 14px; }
.mt-ok__t span { font-size: 12.5px; color: var(--cc-muted); }
.mt-ok__t code { font: 500 12px/1.4 var(--font-mono); color: #2652a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-ok__go { flex: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: var(--cc-ink); color: #fff; font-size: 13px; font-weight: 500; transition: transform .12s; }

/* ---------- 2. a reunião ---------- */
.mt-call { --cl-bg: #1c1d1f; --cl-tile: #2a2b2e; --cl-ink: #f2f2f0; --cl-muted: #a7a7a2;
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; padding: 12px; border-radius: 14px; overflow: hidden;
  background: var(--cl-bg); color: var(--cl-ink); font: 400 14px/1.5 var(--font-text); text-align: left; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); }
.mt-call__top { display: flex; align-items: center; gap: 10px; padding: 2px 4px; font-size: 13px; color: var(--cl-muted); }
.mt-call__top b { color: var(--cl-ink); font-weight: 500; }
.mt-call__top .sp { flex: 1; }
.mt-call__top code { font: 500 11.5px/1 var(--font-mono); }
.mt-rec { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); padding: 5px 8px; border-radius: 6px; background: rgb(255 255 255 / .07); }
.mt-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e0574a; }
.mt-call__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; transition: grid-template-columns .5s var(--ease, ease); }
.mt-call.has-plan .mt-call__grid { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.25fr); }
.mt-tile { position: relative; display: grid; place-items: center; border-radius: 12px; background: var(--cl-tile); min-height: 0; overflow: hidden; transition: box-shadow .25s; }
.mt-tile.is-talk { box-shadow: inset 0 0 0 2px #8ab0f6; }
.mt-av { width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 50%; display: grid; place-items: center; font: 500 clamp(20px, 2.2vw, 28px)/1 var(--font-text);
  background: #c9d7f5; color: #22365e; }
.mt-av.is-eixo { background: #a1ffcb; color: #14402a; }
.mt-name { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgb(0 0 0 / .45); font-size: 12.5px; }
.mt-wave { position: absolute; right: 10px; top: 10px; display: flex; gap: 2px; align-items: center; height: 18px; padding: 0 6px; border-radius: 99px; background: rgb(0 0 0 / .35); opacity: 0; transition: opacity .2s; }
.mt-wave i { width: 3px; height: 4px; border-radius: 2px; background: #8ab0f6; }
.mt-tile.is-talk .mt-wave { opacity: 1; }
.mt-tile.is-talk .mt-wave i { animation: mtWave .7s ease-in-out infinite; }
.mt-tile.is-talk .mt-wave i:nth-child(2) { animation-delay: .15s; } .mt-tile.is-talk .mt-wave i:nth-child(3) { animation-delay: .3s; }
@keyframes mtWave { 50% { height: 12px; } }

/* o plano que o especialista mostra na tela */
.mt-plan { --cc-ink: #1d1d1b; --cc-muted: #6f6c66; --cc-line: rgb(0 0 0 / .08); --cc-soft: #f5f4ef; --cc-ok-bg: #e5f4ea;
  display: grid; align-content: start; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--cc-ink); overflow: hidden; min-width: 0; font-size: 13px; }
.mt-plan[hidden], .mt-plan__row[hidden], .mt-plan .cc-acts[hidden] { display: none; }
.mt-plan__h { display: grid; gap: 1px; }
.mt-plan__h small { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--cc-muted); }
.mt-plan__h b { font-weight: 500; font-size: 15px; }
.mt-plan__row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--cc-soft); }
.mt-plan__row b { font-weight: 500; }
.mt-plan__row span { color: #5d5a54; font-size: 12.5px; line-height: 1.4; }
.mt-plan__row.is-size { background: #eef3ff; }
.mt-plan__row.is-size b { font: 500 14px/1.3 var(--font-mono); color: #2652a8; }

/* a legenda ao vivo da chamada */
.mt-cap { justify-self: center; max-width: min(760px, 100%); min-height: 44px; display: flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 10px;
  background: rgb(0 0 0 / .55); font-size: 14px; line-height: 1.45; opacity: 0; transition: opacity .25s; }
.mt-cap.is-on { opacity: 1; }
.mt-cap b { flex: none; font-weight: 500; color: #8ab0f6; }
.mt-call__ctrl { display: flex; justify-content: center; gap: 10px; }
.mt-call__ctrl i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); color: var(--cl-ink); }
.mt-call__ctrl i.is-end { width: 52px; border-radius: 99px; background: #d8483b; }
.mt-call__ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. a homologação ---------- */
.mt-web .cc-web__page { position: relative; }
.mt-web .cc-web__foot b { transition: transform .12s, background .25s, color .25s; }
.mt-web .cc-web__foot b.is-ok, .cc-acts .is-ok { background: var(--cc-ok-bg, #e5f4ea); color: #17663a; }
.mt-toast { position: absolute; z-index: 2; bottom: 14px; right: 14px; width: min(320px, calc(100% - 28px)); display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid rgb(0 0 0 / .08); box-shadow: 0 16px 32px -18px rgb(0 0 0 / .4); transition: opacity .4s, transform .4s; }
.mt-toast[hidden] { display: none; }
.mt-toast.is-out { opacity: 0; transform: translateY(8px); }
.mt-toast .mt-av { width: 32px; height: 32px; font-size: 12px; flex: none; }
.mt-toast div { display: grid; gap: 1px; min-width: 0; }
.mt-toast b { font-weight: 500; font-size: 13px; }
.mt-toast span { font-size: 12.5px; color: #5d5a54; line-height: 1.4; }

/* ---------- a virada ---------- */
.mt-chap { display: grid; place-content: center; justify-items: center; gap: var(--s-3); padding: var(--s-6); text-align: center; border-radius: 14px;
  background: rgb(255 255 255 / .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mt-chap small { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); }
.mt-chap b { font: 400 clamp(28px, 3.4vw, 46px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--p-ink); max-width: 24ch; text-wrap: balance; }
.mt-chap span { font-size: clamp(16px, 1.5vw, 20px); color: var(--p-muted); max-width: 40ch; }
.mt-chap.is-on > * { animation: capIn .6s var(--ease, ease) both; }
.mt-chap.is-on > :nth-child(2) { animation-delay: .1s; } .mt-chap.is-on > :nth-child(3) { animation-delay: 1.1s; }

/* ---------- a barra em dois capítulos e os botões dos capítulos ---------- */
.film--player .film__bar { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.film--player .film__bar i:nth-child(4) { margin-right: 6px; }
.film__chaps { display: flex; justify-content: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
.film__chaps button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 99px;
  font: 500 14px/1 var(--font-text); color: var(--p-ink); background: var(--p-surface); transition: background .2s, color .2s; }
.film__chaps button:hover { background: color-mix(in oklab, var(--p-accent) 35%, var(--p-surface)); }
.film__chaps button:focus-visible { outline: 2px solid var(--p-action); outline-offset: 2px; }
.film__chaps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--font-mono); background: var(--p-bg); }
.film__chaps button[aria-current="true"] { background: var(--p-action); color: var(--p-action-ink); }
.film__chaps button[aria-current="true"] .n { background: rgb(255 255 255 / .18); color: inherit; }

/* ---------- telas menores ---------- */
@media (max-width: 1023px) {
  .mt-call.has-plan .mt-call__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .mt-call.has-plan .mt-tile { min-height: 96px; }
  .mt-call.has-plan .mt-plan { grid-column: 1 / -1; }
  .mt-call.has-plan .mt-av { width: 48px; height: 48px; font-size: 16px; }
}
@media (max-width: 639px) {
  .mt-cal__page { gap: 12px; padding: 14px; }
  .mt-cal__head small { display: none; }
  .mt-week { grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .mt-slot { font-size: 0; height: 36px; }
  .mt-slot.is-pick { font-size: 11px; }
  .mt-ok { flex-wrap: wrap; }
  .mt-ok__go { width: 100%; justify-content: center; }
  .mt-call { padding: 8px; gap: 8px; }
  .mt-call__top code, .mt-rec { display: none; }
  .mt-call__grid { grid-template-columns: minmax(0, 1fr); }
  .mt-call.has-plan .mt-tile { min-height: 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px; }
  .mt-call.has-plan .mt-name { position: static; padding: 0; background: none; font-size: 11.5px; line-height: 1.25; }
  .mt-call.has-plan .mt-av { flex: none; width: 32px; height: 32px; font-size: 12px; }
  .mt-call.has-plan .mt-wave { top: 50%; transform: translateY(-50%); right: 6px; }
  .mt-cap { font-size: 13px; min-height: 0; padding: 6px 10px; flex-direction: column; gap: 0; }
  .mt-call__ctrl i { width: 32px; height: 32px; }
  .mt-plan { padding: 10px; gap: 6px; }
  .mt-plan__row { padding: 6px 8px; }
  .film__chaps button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .film__screens > [data-screen], .mt-call__grid, .mt-cursor, .mt-toast { transition: none; }
  .film__screens .is-in, .mt-chap.is-on > *, .mt-tile.is-talk .mt-wave i { animation: none; }
}
