/* Marktic · Social V2 · "Plan the work." steps E1 to E4 · polish v2
   One window per scene, homepage-tab tokens, official Marktic tile, graded Oakline photos.
   Desktop stage 640 x 480 (iframe 4:3); phone stage 400 x 540 (iframe 480px wide or less), as in Ivan's embed contract.
   Motion: claude/marktic-motion-rules-v1.md (body rules). */

@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(fonts/inter-400.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(fonts/inter-500.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(fonts/inter-600.woff2) format("woff2")}

html,body{margin:0;height:100%;background:transparent;overflow:hidden}
.stx{
  --ink:#252943; --ink2:#5F6377; --ink3:#6B7085; --line:#DEE6F7; --lav:#E6ECFA; --lav-ink:#3D4A7A; --soft:#F4F7FD;
  --btn:#111226; --mk:var(--mk-green,#34D399); --ok-bg:#D7F7E8; --ok-ink:#06603F; --grey-bg:#E9EDF5; --grey-ink:#5B6274;
  /* BACKGROUND: placeholder, same as the hero. The page colourway will change; it keeps white in the mix. */
  --bg-1:#9FDEE5; --bg-2:#D2FBEB; --bg-3:#FFFFFF; --bg-deep:#70B6D0;
  position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate;
  font:14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  background:linear-gradient(150deg,var(--bg-1),var(--bg-2) 45%,var(--bg-3) 72%,var(--bg-2));
}
.stx *,.stx *::before,.stx *::after{box-sizing:border-box}
:where(.stx) p{margin:0}
.stx-glow{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(55% 60% at 50% 52%,#ffffffd9 0%,#ffffff00 70%),radial-gradient(45% 55% at 100% 0%,color-mix(in oklab,var(--bg-deep) 45%,transparent),transparent 70%)}
.stx-grain{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.06;mix-blend-mode:multiply;background-size:180px 180px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E")}

/* stage: fixed coordinates, scaled to the frame and centred */
.stx-st{position:absolute;left:50%;top:50%;width:640px;height:480px;z-index:1;transform-origin:0 0}
.stx.is-phone .stx-st{width:400px;height:540px}

/* the one window */
.stx-win{position:absolute;left:40px;right:40px;top:50%;transform:translateY(-50%);background:#fff;border-radius:20px;
  box-shadow:0 26px 60px -30px #1d3f5a5c,0 8px 18px -12px #1d3f5a29}
.stx.is-phone .stx-win{left:20px;right:20px;border-radius:18px;top:calc(50% - 16px)}
.stx-hd{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px 0 14px;border-bottom:1px solid var(--line)}
.stx-mk{width:28px;height:28px;border-radius:8px;flex:none;display:inline-grid;place-items:center;background:var(--mk-logo-bg,#7EEFA9)}
.stx-mk svg{width:23.5px;height:23.5px;display:block}
.stx-ttl{font-size:14px;font-weight:600;white-space:nowrap}
.stx-bd{padding:16px}
.stx.is-phone .stx-bd{padding:14px}

.stx-lab{font-size:12px;color:var(--ink3);line-height:1.3}
.stx-tag{display:inline-grid;align-items:center;height:24px;padding:0 9px;border-radius:7px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--lav);color:var(--lav-ink);flex:none}
.stx-tag>span{grid-area:1/1;text-align:center}
.stx-hd .stx-tag{margin-left:auto}
.stx-tag.grey{background:var(--grey-bg);color:var(--grey-ink)}
.stx-tag.ok{background:var(--ok-bg);color:var(--ok-ink)}
.stx-tag .b{color:var(--ok-ink)}
.stx-ph{display:block;position:relative;overflow:hidden;border-radius:12px;background:#EEF2FA}
.stx-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.stx-chips{display:flex;flex-wrap:wrap;gap:6px}


/* typed text: a hidden ghost of the full line holds the space, so nothing reflows while it is written */
.tyw{display:inline-grid}
.tyw>*{grid-area:1/1}
.tyw .gh{visibility:hidden}
.caret{display:inline-block;width:1.5px;height:1.05em;margin-left:1px;vertical-align:-.15em;background:currentColor;opacity:0}
.ck{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--ok-bg);color:var(--ok-ink);opacity:0}
.ck svg{width:10px;height:10px;display:block}
.stx-lab.mt{margin-top:14px}


.stx-tag.sand{background:#F4EADB;color:#6C4D28}
.go,.t-btn{display:grid;place-items:center;height:38px;border-radius:10px;background:var(--btn);color:#fff;font-size:13px;font-weight:600;white-space:nowrap}
.go>span{grid-area:1/1}

/* ---------- E1 · Plan the work ---------- */
.e1 .wrap{display:grid;grid-template-columns:1fr 196px;gap:20px;align-items:start}
.e1 .rows{display:grid;gap:8px}
.e1 .row{display:grid;grid-template-columns:58px 1fr;align-items:center;height:46px;padding:0 12px;border-radius:12px;background:var(--soft)}
.e1 .row .stx-tag{justify-self:start;opacity:0}
.e1 .seg{position:relative;display:inline-flex;margin-top:6px;padding:3px;border-radius:10px;background:var(--soft)}
.e1 .seg span{position:relative;z-index:1;height:30px;padding:0 13px;display:grid;place-items:center;font-size:12.5px;font-weight:500;color:var(--ink2);white-space:nowrap}
.e1 .seg span:first-of-type{color:var(--ink)}
.e1 .seg i{position:absolute;left:0;top:3px;height:30px;width:84px;border-radius:8px;background:#fff;box-shadow:0 1px 3px #1d3f5a26;transform:translateX(3px)}
.e1 .go{margin-top:16px}
.e1 .pv{border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line),0 10px 24px -16px #1d3f5a59}
.e1 .ph-box{position:relative;height:196px;background:var(--soft)}
.e1 .dash{position:absolute;inset:8px;border-radius:9px;border:1.5px dashed #C9D2EA}
.e1 .strip{position:absolute;inset:0;overflow:hidden;opacity:0}
.e1 .slides{position:absolute;inset:0;width:200%;display:flex}
.e1 .slides img{width:50%;height:100%;object-fit:cover;display:block}
.e1 .th{position:absolute;left:9px;top:9px;opacity:0}
.e1 .th .stx-tag{background:#ffffffe6}
.e1 .meta{position:relative;padding:9px 11px 11px}
.e1 .meta b{display:block;font-size:13.5px;font-weight:600;opacity:0}
.e1 .meta small{display:block;font-size:12px;color:var(--ink3);margin-top:1px;opacity:0}
.e1 .dots{position:absolute;right:11px;top:14px;display:flex;gap:4px;opacity:0}
.e1 .dots i{width:6px;height:6px;border-radius:50%;background:#C9D2EA}.e1 .dots i:first-child{background:var(--ink)}
.stx.is-phone .e1 .wrap{grid-template-columns:1fr;gap:10px}
.stx.is-phone .e1 .lt{display:contents}
.stx.is-phone .e1 .rows{order:1;gap:6px}
.stx.is-phone .e1 .row{height:40px;grid-template-columns:54px 1fr}
.stx.is-phone .e1 .pv{order:2;display:grid;grid-template-columns:84px 1fr;align-items:center}
.stx.is-phone .e1 .ph-box{height:84px}
.stx.is-phone .e1 .dash{inset:6px}
.stx.is-phone .e1 .th{display:none}
.stx.is-phone .e1 .meta{padding:0 12px}
.stx.is-phone .e1 .dots{position:static;margin-top:7px}
.stx.is-phone .e1 .stx-lab.mt{display:none}
.stx.is-phone .e1 .seg{order:3;margin-top:0;justify-self:start}
.stx.is-phone .e1 .go{order:4;margin-top:0}

/* ---------- E2 · Create and refine ---------- */
.e2 .msg{display:flex;align-items:center;gap:10px;font-size:13.5px}
.e2 .msg .stx-mk{width:24px;height:24px;border-radius:7px}.e2 .msg .stx-mk svg{width:20px;height:20px}
.e2 .card{display:flex;align-items:center;gap:11px;margin:7px 0 0 34px;padding:8px;border-radius:12px;box-shadow:0 0 0 1px var(--line);max-width:430px;font-size:13px;line-height:1.5}
.e2 .card .stx-ph{width:58px;height:58px;flex:none;border-radius:9px}
.e2 .card p{flex:1}
.e2 .bub{width:max-content;max-width:330px;margin:10px 0 0 auto;padding:8px 12px;border-radius:14px 4px 14px 14px;background:#EEF2FA;font-size:13px;line-height:1.45}
.e2 .typing{display:flex;gap:4px;height:14px;align-items:center;margin:7px 0 0 34px;opacity:0}
.e2 .typing i{width:6px;height:6px;border-radius:50%;background:#9AA3B5;opacity:.35}
.e2 .m2{margin-top:6px}
.e2 .swap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.e2 .swap .new{clip-path:inset(0 0 0 100%)}
.e2 .cap .tyw{display:grid}
.e2 .inp{display:flex;align-items:center;gap:10px;margin-top:14px;height:44px;padding:0 6px 0 14px;border-radius:12px;box-shadow:0 0 0 1px var(--line);font-size:13px}
.e2 .field{flex:1;display:grid;min-width:0}
.e2 .field>*{grid-area:1/1;white-space:nowrap;overflow:hidden}
.e2 .field .ph{color:var(--ink3)}
.e2 .field .tyw .gh{display:none}
.e2 .send{width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--mk);color:var(--ink)}
.e2 .send svg{width:15px;height:15px}
.stx.is-phone .e2 .card{margin-left:0;max-width:none}
.stx.is-phone .e2 .card .stx-ph{width:52px;height:52px}
.stx.is-phone .e2 .bub{max-width:270px}
.stx.is-phone .e2 .typing{margin-left:34px}
.stx.is-phone .e2 .field .tyl{display:flex;justify-content:flex-end}
.stx.is-phone .e2 .msg{font-size:13px}

/* ---------- E3 · Review and approve ---------- */
.e3 .wrap{display:grid;grid-template-columns:214px 1fr;gap:18px;align-items:start}
.e3 .post{position:relative;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.e3 .post .stx-ph{height:188px;border-radius:0}
.e3 .post p{padding:9px 10px 10px;font-size:12.5px;line-height:1.45}
.e3 .ap{position:absolute;right:9px;top:9px;opacity:0;box-shadow:0 4px 12px -6px #1d3f5a66}
.e3 .chk{display:grid;gap:8px}
.e3 .chk>div{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-radius:10px;background:var(--soft);font-size:13.5px}
.e3 .chk b{font-weight:600}
.e3 .chk small{margin-left:auto;font-size:12px;color:var(--ink3);opacity:0;white-space:nowrap}
.e3 .tick{width:20px;height:20px;border-radius:50%;flex:none;display:grid;place-items:center;background:#E3E8EF;color:var(--ink)}
.e3 .tick svg{width:12px;height:12px;opacity:0}
.e3 .go{margin-top:12px;height:40px}
.e3 .go .b{display:inline-flex;align-items:center;gap:7px}
.e3 .go .b svg{width:14px;height:14px;color:var(--mk)}
.stx.is-phone .e3 .wrap{grid-template-columns:1fr;gap:10px}
.stx.is-phone .e3 .post{display:grid;grid-template-columns:110px 1fr;align-items:center}
.stx.is-phone .e3 .post .stx-ph{height:110px}
.stx.is-phone .e3 .post p{padding:8px 12px;font-size:12.5px}
.stx.is-phone .e3 .ap{left:9px;right:auto;top:9px}
.stx.is-phone .e3 .chk>div{height:38px}

/* ---------- E4 · Publish and learn ---------- */
.e4 .top{position:relative;display:flex;align-items:center;gap:11px;padding-bottom:12px}
.e4 .top .stx-ph{width:46px;height:46px;flex:none;border-radius:9px}
.e4 .top b{display:block;font-size:13.5px;font-weight:600}
.e4 .top small{display:block;font-size:12px;color:var(--ink3)}
.e4 .prog{position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:2px;background:#EEF1F7;overflow:hidden}
.e4 .prog i{display:block;height:100%;background:var(--mk);transform:scaleX(0);transform-origin:0 50%}
.e4 .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.e4 .kpi{padding:8px 12px;border-radius:12px;background:var(--soft)}
.e4 .kpi b{display:block;font-size:25px;font-weight:600;letter-spacing:-.02em;line-height:1.2;font-variant-numeric:tabular-nums}
.e4 .kpi small{font-size:12px;color:var(--ink3)}
.e4 .week{margin-top:10px;padding:10px 12px 9px;border-radius:12px;background:var(--soft)}
.e4 .wh{display:flex;justify-content:space-between;font-size:12.5px;font-weight:600}
.e4 .best{font-size:12px;color:var(--ok-ink);font-weight:600;opacity:0}
.e4 .bars{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end;margin-top:8px}
.e4 .bars div{display:flex;flex-direction:column;align-items:center;gap:4px}
.e4 .bars i{display:block;width:100%;max-width:40px;height:calc(var(--v)*78px);border-radius:6px 6px 3px 3px;background:#CDEFE0;transform-origin:50% 100%}
.e4 .bars i.hi{background:#34D399}
.e4 .bars small{font-size:11.5px;color:var(--ink3)}
.e4 .ins{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px 9px 9px 12px;border-radius:12px;background:var(--soft);font-size:13.5px;font-weight:500}
.e4 .ins .stx-mk{width:24px;height:24px;border-radius:7px}.e4 .ins .stx-mk svg{width:20px;height:20px}
.e4 .btn{margin-left:auto;height:32px;padding:0 14px;border-radius:9px;background:var(--btn);color:#fff;font-size:12.5px;font-weight:600;display:grid;place-items:center;white-space:nowrap}
.stx.is-phone .e4 .kpis{gap:7px}
.stx.is-phone .e4 .kpi{padding:7px 10px}
.stx.is-phone .e4 .kpi b{font-size:21px}
.stx.is-phone .e4 .bars{gap:6px}
.stx.is-phone .e4 .bars i{height:calc(var(--v)*64px)}

/* control */
.stx-ctl{position:absolute;right:12px;bottom:12px;z-index:4;width:30px;height:30px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;
  background:#ffffffd9;color:var(--ink);box-shadow:0 2px 8px #1d3f5a26;cursor:pointer}
.stx-ctl svg{width:11px;height:11px;display:block}
.stx-ctl .i-play,.stx-ctl .i-replay{display:none}
.stx.is-paused .stx-ctl .i-pause{display:none}.stx.is-paused .stx-ctl .i-play{display:block}
.stx.is-done .stx-ctl .i-pause,.stx.is-done .stx-ctl .i-play{display:none}.stx.is-done .stx-ctl .i-replay{display:block}


/* phone minimum: 12.5px in the stage, so text stays at least 10px rendered on a 320px screen */
.stx.is-phone .stx-lab,.stx.is-phone .stx-tag,.stx.is-phone .e1 .seg span,.stx.is-phone .e1 .meta small,.stx.is-phone .e3 .chk small,
.stx.is-phone .e4 .top small,.stx.is-phone .e4 .kpi small,.stx.is-phone .e4 .best,.stx.is-phone .e4 .bars small,.stx.is-phone .e4 .wh{font-size:12.5px}
.stx.is-phone .stx-ctl{width:26px;height:26px;right:8px;bottom:8px}
