/* arka-tile.css — tuile de démo autonome (composant iframe) pour la landing.
   Fenêtre d'app (chrome macOS discret) + mini-shell (rail · fil · contexte) sur le
   backdrop « espace derrière le verre » de la marque. Le fil rejoue en boucle un
   scénario réel (solo / équipe / hero) piloté par arka-tile.js.
   Charge APRÈS arka-live.css (tokens, .ark-ava, keyframes), arka-production.css
   (cards pk-*), arka-solo.css (overrides solo), arka-hero.css (rotateur hero). */

html, body { height: 100%; margin: 0; }
body { overflow: hidden; background: #171718; }
body.theme-light { background: #faf7f4; }
/* embarqué dans la landing : l'animation vit à même la section, aucun cadre/rectangle */
html.embed body, html.embed body.theme-light { background: transparent; }

/* ══════════ fenêtre (l'animation vit à même la page, sans cadre) ══════════ */
.tw { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: transparent; }
.tw-bar { height: 46px; flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; background: transparent; position: relative; z-index: 3; }
.tw-bar.hero { justify-content: flex-end; }
.tw-bar:not(.hero) { padding-left: 0; padding-right: 216px; }
.tw-topr { display: inline-flex; align-items: center; gap: 12px; }
.tw-bar:not(.hero) .tw-topr { width: 100%; max-width: 470px; justify-content: flex-end; }
.tw-theme { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--content-subtle); border: 0; background: none; padding: 0; cursor: pointer; }
.tw-theme:hover { background: var(--surface-hover); color: var(--content); }
.tw-theme svg { width: 15px; height: 15px; }
.tw-av { width: 28px; height: 28px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: var(--arka-red); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }

/* ══════════ corps : sidebar · fil · contexte ══════════ */
.tw-body { flex: 1; min-height: 0; display: flex; position: relative; overflow: hidden; }

/* sidebar gauche — le menu réel de l'app */
.tw-side { width: 210px; flex: none; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; background: transparent; overflow: hidden; }
.tw-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.tw-side-brand .bm { width: 26px; height: 26px; border-radius: 8px; background: var(--arka-red); flex: none; }
.tw-side-brand .wm { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--content); line-height: 1; }
.tw-side-brand .wm .d { color: var(--arka-red); }
.tw-side-brand .sub { font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--content-subtle); margin-top: 3px; }
.tw-nav-lab { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--content-subtle); padding: 14px 8px 6px; }
.tw-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; font-size: 13px; color: var(--content-muted); }
.tw-nav-item svg { width: 16px; height: 16px; flex: none; }
.tw-nav-item.on { background: var(--surface-hover); color: var(--content); position: relative; }
.tw-nav-item.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--arka-red); }
.tw-session { margin: 4px 2px 2px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--app-border); background: var(--surface-card); }
body:not(.theme-light) .tw-session { background: rgba(255,255,255,.03); }
.tw-session .sh { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--content); }
.tw-session .sh .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--arka-green); box-shadow: 0 0 7px rgba(0,210,135,.6); flex: none; }
.tw-session .sh .id { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--content-subtle); }
.tw-session .sm { font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--content-subtle); margin-top: 4px; }
.tw-side .sp { flex: 1; }

/* zone principale (hero) */
.tw-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; z-index: 1; }

/* colonne fil (scroll auto, sans barre) */
.tw-fil { flex: 1; min-width: 0; z-index: 1; overflow-y: auto; padding: 22px 20px 26px; display: flex; justify-content: center; scrollbar-width: none; }
.tw-fil::-webkit-scrollbar { display: none; }
.tw-col { width: 100%; max-width: 470px; display: flex; flex-direction: column; gap: 15px; margin: auto 0; }

/* panneau contexte droit (équipe en cours / suivi de tâche) */
.tw-ctx { width: 216px; flex: none; z-index: 2; padding: 16px 15px; overflow-y: auto; background: transparent; scrollbar-width: none; }
body.theme-light .tw-ctx { background: transparent; }
.tw-ctx::-webkit-scrollbar { display: none; }
.tw-ctx-h { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--content-subtle); margin-bottom: 12px; }
.tw-ctx-h .n { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-hover); color: var(--content-muted); font-size: 9px; }
.tw-ctx + .tw-ctx { margin-top: 0; }
.tw-ctx-sec { margin-top: 20px; }
.tw-ctx-empty { font-size: 11px; line-height: 1.5; color: var(--content-subtle); padding: 4px 0; }

/* pied : ligne de statut vivante — alignée sur la colonne du fil */
.tw-foot { height: 30px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0 236px 0 20px; background: transparent; font-size: 11px; color: var(--content-muted); z-index: 3; overflow: hidden; white-space: nowrap; }
.tw-foot-in { flex: 0 1 470px; max-width: 470px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.tw-foot .bl { color: var(--arka-red); font-weight: 700; animation: ark-blink 1s infinite; }
.tw-foot #ark-status { overflow: hidden; text-overflow: ellipsis; }

/* ══════════ curseur synthétique (résout les décisions tout seul) ══════════ */
.tw-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; z-index: 60; opacity: 0; pointer-events: none;
  transition: left .85s cubic-bezier(.5,.02,.2,1), top .85s cubic-bezier(.5,.02,.2,1), opacity .3s ease, transform .14s ease;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.tw-cursor.show { opacity: 1; }
.tw-cursor.press { transform: scale(.82); }
.tw-cursor svg { width: 24px; height: 24px; display: block; }
.tw-ripple { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 99px; z-index: 55; pointer-events: none; transform: translate(-50%, -50%) scale(0); opacity: 0; border: 2px solid var(--arka-red); }
.tw-ripple.go { animation: tw-ripple .55s ease-out; }
@keyframes tw-ripple { 0% { transform: translate(-50%,-50%) scale(.2); opacity: .8; } 100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; } }

/* ══════════ hero (home rotatif) ══════════ */
.tw-body.hero { align-items: stretch; justify-content: flex-start; }
.tw-home { position: relative; z-index: 1; width: 100%; max-width: 640px; text-align: center; }
.tw-home .ark-eyebrow { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--content-subtle); margin-bottom: 20px; }
.tw-home .ark-h1 { font-family: var(--font-display); font-size: clamp(32px, 3.7vw, 47px); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; margin: 0 0 18px; color: var(--content); }
.tw-home .ark-h1 .hl { color: var(--arka-red); }
.tw-home .ark-sub { font-size: 15.5px; line-height: 1.62; color: var(--content-muted); max-width: 510px; margin: 0 auto 26px; text-wrap: pretty; }
.tw-ask { display: flex; align-items: center; gap: 10px; max-width: 460px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--app-border); background: var(--surface-card); text-align: left; }
body:not(.theme-light) .tw-ask { background: rgba(255,255,255,.03); }
.tw-ask .ph { flex: 1; min-width: 0; font-size: 13.5px; color: var(--content-subtle); overflow: hidden; white-space: nowrap; }
.tw-ask .ph .car { display: inline-block; width: 2px; height: 15px; background: var(--arka-red); vertical-align: -3px; margin-left: 1px; animation: ark-blink 1s steps(2,start) infinite; }
.tw-ask .go { width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--content); color: var(--surface); }
.tw-ask .go svg { width: 16px; height: 16px; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.tw-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--app-border); background: var(--surface-card); font-size: 11.5px; color: var(--content-muted); }
body:not(.theme-light) .tw-chip { background: rgba(255,255,255,.025); }
.tw-chip .k { width: 5px; height: 5px; border-radius: 99px; background: var(--k, var(--content-subtle)); flex: none; }


@media (max-width: 720px) { .tw-ctx { display: none; } .tw-foot { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) {
  .tw-cursor { transition: opacity .2s; }
  .tw-foot .bl, .tw-ask .ph .car { animation: none; }
}
 .bl, .tw-ask .ph .car { animation: none; }
}
