/* ==========================================================================
   MAGU · home.css — home (bento estilo keynote) e landing do MAGU fluxOS
   Mobile-first: 1 coluna → 2 colunas (≥ 641px) → 4 colunas (≥ 1081px).
   Regras: cada bloco = um visual + uma frase. Sem link dentro de link.
   Superfícies dos mockups usam color-mix com --text/--bg: funcionam nos dois temas.
   ========================================================================== */
.wrap--wide { max-width: 1200px; }
.bt, .dock, .who { --m1: color-mix(in srgb, var(--text) 6%, transparent); --m2: color-mix(in srgb, var(--text) 10%, transparent);
  --m3: color-mix(in srgb, var(--text) 16%, transparent); --sh: color-mix(in srgb, var(--bg) 45%, transparent); }

/* ícones de app (assets/img/apps/*.svg) */
.app-ic { display: block; flex: none; border-radius: 23%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
:root[data-theme="light"] .app-ic { filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.app-ic--hero { width: clamp(84px, 18vw, 112px); height: auto; margin: 0 auto 6px; }

/* ── dock de produtos ────────────────────────────────────────────────── */
.dock { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 14px 8px; margin: clamp(36px, 6vw, 56px) auto 0; max-width: 1100px; border-radius: 24px; }
.dock .dk { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; padding: 6px 2px; color: var(--text-2); font-size: 12.5px; text-decoration: none; }
.dock .dk:hover { color: var(--text); text-decoration: none; }
.dock .dk .app-ic { width: 48px; height: 48px; }
@media (min-width: 641px) { .dock .dk .app-ic { width: 52px; height: 52px; } .dock { gap: 4px; padding: 18px 12px; } }

/* ── bento ─────────────────────────────────────────────────────────────── */
.bento2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bt { position: relative; display: flex; flex-direction: column; min-height: 212px; overflow: hidden; border-radius: 22px; color: var(--text); text-decoration: none;
  background: var(--glass-strong); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
/* sem backdrop-filter nos blocos: com os feixes animados por baixo, o desfoque seria
   recalculado a cada quadro em dezenas de blocos (era a causa do travamento no Safari). */
.bt:hover { text-decoration: none; color: var(--text); }
.bt:focus-visible { outline: 2px solid var(--core); outline-offset: 3px; }
.bt-vis { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 0; min-width: 0; }
.bt-foot { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 20px; margin-top: auto; }
.bt-l { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--text); text-wrap: balance; }
.bt-s { font-size: 14px; line-height: 1.4; color: var(--text-2); }
.bt-m { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--core); }
.bt .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted-s { font-size: 13px; color: var(--text-2); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--m2); color: var(--text); }
.chip-blue { background: rgba(46,168,255,.18); color: #9fd5ff; } .chip-violet { background: rgba(184,139,255,.18); color: #d6bfff; }
.chip-green { background: rgba(63,214,138,.16); color: #9ff0c6; } .chip-warn { background: rgba(255,193,90,.16); color: #ffd58a; align-self: flex-start; }
.chip-red { background: rgba(255,77,94,.16); color: #ffb3bb; }
:root[data-theme="light"] .chip-blue { color: #0b5ea8; } :root[data-theme="light"] .chip-violet { color: #6131c9; }
:root[data-theme="light"] .chip-green { color: #0f7a4c; } :root[data-theme="light"] .chip-warn { color: #8a5106; } :root[data-theme="light"] .chip-red { color: #b4232f; }
.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }

/* fluxOS: kanban */
.kan { flex-direction: row; gap: 6px; padding: 18px 12px 0; }
.kcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 6px; border-radius: 12px; background: var(--sh); }
.kcol-h { font-size: 11px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 7px 6px; border-radius: 9px; background: var(--m2); border: 1px solid var(--m1); }
.kc-t { font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-f { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pr { width: 18px; height: 5px; border-radius: 3px; } .pr-hi { background: #ffb36b; } .pr-md { background: #ffd86b; } .pr-lo { background: #9fd36a; }
.av { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; }
.av-a { background: #5b6cff; } .av-b { background: #d9578d; } .av-c { background: #16866a; } .av-d { background: #c2307a; }
.col-own .av { width: 22px; height: 22px; font-size: 9.5px; }

/* fluxOS: bloco central com a textura antiga (vem primeiro no celular e no tablet) */
.bento-flux .hero { order: -1; }
.bt.wall { min-height: 300px; border-color: color-mix(in srgb, var(--text) 14%, transparent);
  background: linear-gradient(180deg, rgba(11,12,17,.05), rgba(11,12,17,.55)), url(/assets/img/bg/magu-bg-dark.webp) 50% 70% / cover no-repeat; }
:root[data-theme="light"] .bt.wall { background: linear-gradient(180deg, rgba(236,234,230,.05), rgba(236,234,230,.45)), url(/assets/img/bg/magu-bg-light.webp) 50% 70% / cover no-repeat; }
.wall-in { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px 20px; text-align: center; }
.app-ic--xl { width: 64px; height: 64px; }
.flux-word { font-size: 78px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.flux-by { font-family: var(--f-brand); font-size: 12px; letter-spacing: .32em; padding-left: .32em; color: var(--text-2); }

.notif { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; border-radius: 18px; background: var(--m2); border: 1px solid var(--m2); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.notif .app-ic { width: 36px; height: 36px; filter: none; }
.notif-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.n-a { font-size: 11px; color: var(--text-3); } .n-b { font-size: 13px; font-weight: 600; } .n-c { font-size: 12px; color: var(--text-2); }
.co-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--sh); }
.co-n { font-size: 14px; font-weight: 600; } .co-r { display: flex; align-items: center; gap: 8px; } .co-bell { color: #ffc15a; display: inline-flex; }
.sla { flex-direction: row; align-items: center; gap: 16px; }
.ring { width: 84px; height: 84px; flex: none; }
.ring circle { fill: none; stroke: var(--m2); stroke-width: 9; }
.ring .on { stroke: var(--core); stroke-linecap: round; stroke-dasharray: 160 214; transform: rotate(-90deg); transform-origin: 42px 42px; }
.sla-n { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-2); }
.sla-n b { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.logs { gap: 7px; }
.log-lock { color: #3fd68a; display: inline-flex; margin-bottom: 4px; } .log-lock .i { width: 22px; height: 22px; }
.log { display: flex; gap: 10px; font: 11.5px/1.4 var(--f-mono); color: var(--text-2); } .log-h { color: var(--text-3); }
.md { gap: 6px; } .md-h { font-size: 15px; font-weight: 700; } .md-li { font-size: 12.5px; color: var(--text-2); }
.md-file { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 9px; border-radius: 8px; background: var(--m1); font-size: 11.5px; color: var(--text-2); }
.md-file .i { width: 14px; height: 14px; }
.pjs { gap: 7px; max-width: 440px; }
.pj { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 11px; background: var(--m1); font-size: 13px; color: var(--text-3); }
.pj-on { background: rgba(46,168,255,.16); color: var(--text); }
.kbg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.kbi { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--m1); font-size: 13px; }
.kbi::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kbi-violet::before { background: #b88bff; } .kbi-blue::before { background: #4fb6ff; } .kbi-pink::before { background: #ff7aa8; } .kbi-green::before { background: #3fd68a; }
.keys { flex-direction: row; flex-wrap: wrap; gap: 8px; padding-top: 26px; }
.keys kbd { min-width: 46px; height: 46px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font: 600 17px/1 var(--f-text); color: var(--text);
  background: linear-gradient(180deg, var(--m3), var(--m1)); box-shadow: inset 0 0 0 1px var(--m2), 0 3px 0 rgba(0,0,0,.45); }
.keys kbd.w { min-width: 64px; }
.flux-cta { margin-top: 28px; }

/* universo */
.bt.priv { background: radial-gradient(120% 90% at 50% 20%, rgba(46,120,255,.22), transparent 60%), var(--glass); }
.priv-v { align-items: center; gap: 18px; padding-top: 28px; }
.big-lock { width: 48px !important; height: 48px !important; color: #9fd5ff; stroke-width: 1.4 !important; }
.file { display: flex; align-items: center; gap: 12px; width: 300px; max-width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--m2); border: 1px solid var(--m2); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); }
.file .app-ic { width: 40px; height: 40px; filter: none; }
.file-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .file-n { font-size: 14px; font-weight: 600; } .file-d { font-size: 12px; color: var(--text-2); }
.pis { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pi, .tg { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--text-2); }
.pi { min-width: 56px; } .pi .app-ic { width: 44px; height: 44px; }
.pi > span, .tg > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.tg .app-ic { width: 48px; height: 48px; }
.win { display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 12px; background: var(--sh); border: 1px solid var(--m1); }
.lights, .panes { display: flex; gap: 5px; } .lights i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; } .lights i + i { background: #febc2e; } .lights i + i + i { background: #28c840; }
.panes i { flex: 1 1 0; height: 64px; border-radius: 7px; border: 1px solid var(--m1); background: rgba(79,182,255,.30); }
.panes i:nth-child(2) { background: rgba(255,155,82,.28); } .panes i:nth-child(3) { background: rgba(63,214,138,.26); } .panes i:nth-child(4) { background: rgba(184,139,255,.30); }
.load { gap: 6px; } .ld-e { font-size: 12px; color: var(--text-2); }
.ld-n { font-size: 15px; color: var(--text-2); } .ld-n b { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #ff9b52; margin-right: 6px; }
.ld-sets { display: flex; gap: 4px; margin-top: 6px; } .ld-sets i { flex: 1 1 0; height: 6px; border-radius: 3px; background: #ff9b52; } .ld-sets i.off { background: var(--m2); }
.co-top { display: flex; align-items: center; gap: 10px; } .co-top .app-ic { width: 40px; height: 40px; filter: none; }
.co-w { font-size: 15px; font-weight: 600; }
.spark { width: 100%; height: 80px; } .spark .area { fill: rgba(127,220,106,.14); } .spark .ln { fill: none; stroke: #6ccf57; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bars { flex-direction: row; align-items: flex-end; gap: 8px; height: 112px; }
.bars i { width: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #c4a3ff, #6b3fd1); }
.bars i:nth-child(1) { height: 30px; } .bars i:nth-child(2) { height: 46px; } .bars i:nth-child(3) { height: 38px; } .bars i:nth-child(4) { height: 62px; } .bars i:nth-child(5) { height: 54px; } .bars i:nth-child(6) { height: 78px; }
.coco { flex-direction: row; align-items: center; gap: 12px; }
.coco-ph { width: 76px; height: 76px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, #f6efe3, #e3d3bb); }
.coco-ph .app-ic { width: 52px; height: 52px; filter: none; }
.coco-t { display: flex; flex-direction: column; gap: 5px; } .coco-n { font-size: 13px; font-weight: 600; } .coco-t i { width: 72px; height: 6px; border-radius: 3px; background: #5fd17a; }
.pf { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 8px 12px; font-size: 11.5px; color: var(--text-2); }
.pf-b { height: 6px; border-radius: 3px; background: var(--m2); } .pf-b i { display: block; height: 6px; border-radius: 3px; background: #e0508c; } .pf-b .w72 { width: 72%; } .pf-b .w48 { width: 48%; }
.center { flex: 1 1 auto; align-items: center; justify-content: center; } .center .app-ic { width: 72px; height: 72px; }
.bws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bw { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 8px; border-radius: 10px; background: var(--sh); border: 1px solid var(--m1); }
.bw-n { font-size: 10.5px; color: var(--text-2); }
.bw-v { height: 26px; border-radius: 5px; background: rgba(79,182,255,.30); }
.bw-shop .bw-v { background: linear-gradient(90deg, rgba(95,209,122,.32) 0 48%, transparent 48% 52%, rgba(255,155,82,.32) 52%); }
.bw-dash .bw-v { background: linear-gradient(0deg, rgba(184,139,255,.5) 0 40%, transparent 40%) 0 0 / 22% 100% no-repeat, linear-gradient(0deg, rgba(184,139,255,.5) 0 70%, transparent 70%) 33% 0 / 22% 100% no-repeat, linear-gradient(0deg, rgba(184,139,255,.5) 0 55%, transparent 55%) 66% 0 / 22% 100% no-repeat, linear-gradient(0deg, rgba(184,139,255,.5) 0 100%, transparent 100%) 100% 0 / 22% 100% no-repeat; }
.bw-auto .bw-v { background: radial-gradient(circle at 10px 50%, rgba(255,193,90,.7) 0 6px, transparent 7px), radial-gradient(circle at calc(100% - 10px) 50%, rgba(46,168,255,.7) 0 6px, transparent 7px), linear-gradient(var(--m3), var(--m3)) 50% 50% / calc(100% - 40px) 2px no-repeat; }
.bw i { height: 5px; width: 70%; border-radius: 3px; background: var(--m3); } .bw i.s { width: 45%; background: var(--m2); }

/* quem faz */
.whos { display: flex; flex-wrap: wrap; gap: 16px; max-width: 760px; margin: 0 auto; }
.who { flex: 1 1 280px; display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; border-radius: 20px; text-decoration: none; color: var(--text); }
.who:hover { text-decoration: none; color: var(--text); }
.who .avatar { width: 64px; height: 64px; flex: none; }
.who-t { display: flex; flex-direction: column; gap: 2px; } .who-t b { font-size: 17px; } .who-t span { font-size: 14px; color: var(--text-2); }

/* landing fluxOS */
.faqs { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq { padding: 4px 22px; border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--core); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq p { margin: 0 0 18px; color: var(--text-2); }
.price-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding: 22px 26px; border-radius: 22px; }

/* ── 2 colunas (tablet) ─────────────────────────────────────────────── */
@media (min-width: 641px) {
  .bento2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(212px, auto); gap: 16px; }
  .bento2 .c2, .bento2 .c4 { grid-column: 1 / -1; }
  .bento-flux .r2 { grid-row: span 2; }
  .bento-flux .hero { grid-row: auto; }
  .bt.wall { min-height: 340px; }
  .flux-word { font-size: 104px; }
  .tgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bws { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* ── 4 colunas (desktop) ────────────────────────────────────────────── */
@media (min-width: 1081px) {
  .bento2 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 212px; }
  .bento2 .c2 { grid-column: span 2; } .bento2 .c4 { grid-column: 1 / -1; } .bento2 .r2 { grid-row: span 2; }
  .bento-flux .hero { order: 0; grid-row: span 2; }
  .bt.wall { min-height: 0; }
  .flux-word { font-size: 124px; }
  .app-ic--xl { width: 76px; height: 76px; }
  .tgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 6px; }
}
