/* ==========================================================================
   WIZKET — month.css · "A month on your page" (Branding page, #month)
   A tall track with a sticky stage: calendar · phone · stats. js/month.js turns the scroll
   into days (1 → 30), fills the grid, flies DMs in, grows the numbers. The phone UI keeps
   app palettes; the brand colours come in as --b1/--b2/--b3 (from "Brand in 10 seconds").
   data-pf on the phone restyles it per platform. Prefix: mo-
   ========================================================================== */
.mo { --side: clamp(20px, 6vw, 110px); position: relative; background: var(--bg); }
.mo__track { position: relative; height: 320vh; }
.mo__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: calc(var(--nav-top) + var(--nav-h) + 8px) var(--side) 16px;
  background: radial-gradient(45% 55% at 50% 60%, var(--petrol) 0%, transparent 70%), var(--bg);
}
.mo__head { display: grid; justify-items: center; text-align: center; }
.mo__head .ws-eyebrow { justify-content: center; margin-bottom: 10px; }
.mo__title { margin: 0; font: 400 clamp(2.2rem, min(4.6vw, 8vh), 4.8rem)/0.9 var(--font-display); text-transform: uppercase; color: var(--text); }
.mo__sub { margin: 8px 0 0; font: 500 clamp(0.95rem, 1.1vw, 1.08rem)/1.4 var(--font-body); color: var(--muted); }

.mo__stage { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 70px); min-height: 0; }

/* ---- calendar ---- */
.mo-cal { justify-self: end; display: grid; gap: 22px; }
.mo-day { margin: 0; display: grid; grid-template-columns: auto auto; align-items: end; gap: 0 10px; }
.mo-day em { grid-column: 1 / -1; font: 700 11px/1 var(--font-body); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.mo-day b { font: 400 clamp(5rem, 9vw, 8.5rem)/0.85 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.mo-day b.is-flip { animation: mo-flip 0.35s var(--ease-out); }
@keyframes mo-flip { from { transform: perspective(400px) rotateX(-70deg); opacity: 0.3; } }
.mo-day span { padding-bottom: 12px; font: 400 22px/1 var(--font-display); color: var(--muted); }
.mo-weeks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mo-weeks li { position: relative; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--line2); font: 500 13px/1.3 var(--font-body); color: var(--muted); transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.mo-weeks li b { display: block; margin-bottom: 3px; font: 700 10.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.mo-weeks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--line2); }
.mo-weeks li.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.mo-weeks li.is-on::before { border-color: var(--accent); }
.mo-weeks li.is-done { color: var(--text); }
.mo-weeks li.is-done::before { content: "\2713"; display: grid; place-items: center; border-color: #22c55e; background: #22c55e; font-size: 10px; color: #fff; }

/* ---- the phone ---- */
.mo-phone-wrap { position: relative; display: grid; justify-items: center; gap: 12px; }
.mo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 420px; }
.mo-tabs button { padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line2); font: 600 11.5px/1 var(--font-body); color: var(--muted); transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.mo-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.mo-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mo-phone {
  --b1: #1f4d3a; --b2: #f3ead7; --b3: #fd5f07; --brad: 48%;
  --ph: clamp(380px, 53vh, 540px);
  position: relative;
  width: calc(var(--ph) / 2.05);
  height: var(--ph);
  padding: 34px 12px 12px;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
  border: 10px solid #0d1114;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  color: #15191c;
  font-family: var(--font-body);
}
.mo-phone::before { content: ""; position: absolute; left: 50%; top: 8px; width: 80px; height: 18px; translate: -50% 0; border-radius: 10px; background: #0d1114; }
.mo-phone p { margin: 0; }
.mo-prof { display: flex; align-items: center; gap: 14px; }
.mo-av { position: relative; flex: none; width: 62px; height: 62px; padding: 3px; border-radius: 50%; background: #dfe3e6; }
.mo-av.is-story { background: conic-gradient(var(--b3), #ffcf3f, var(--b3)); animation: mo-ring 0.8s ease-out; }
@keyframes mo-ring { from { transform: scale(0.9); } }
.mo-av__mark, .mo-drop { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--b1); box-shadow: 0 0 0 3px #fff; font: 400 26px/1 var(--font-display); color: var(--b2); }
.mo-av__mark b { font: inherit; }
.mo-drop { position: absolute; z-index: 6; left: 15px; top: 37px; width: 56px; height: 56px; pointer-events: none; opacity: 0; visibility: hidden; }
.mo-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.mo-stats span { display: grid; gap: 2px; font: 500 10.5px/1.1 var(--font-body); color: #66727a; }
.mo-stats b { font: 700 14px/1 var(--font-body); color: #15191c; font-variant-numeric: tabular-nums; }
.mo-stats i { font-style: normal; }
.mo-name { display: grid; gap: 2px; margin-top: 10px !important; font: 400 12px/1.3 var(--font-body); }
.mo-name b { font-weight: 700; }
.mo-hl { display: flex; gap: 10px; margin: 10px 0 !important; }
.mo-hl i { width: 34px; height: 34px; border-radius: 50%; background: var(--b2); box-shadow: 0 0 0 1.5px #dfe3e6; }
.mo-hl i:nth-child(2) { background: var(--b1); } .mo-hl i:nth-child(3) { background: var(--b3); }
.mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -12px; }

.mo-t { position: relative; aspect-ratio: 1; display: grid; place-items: end start; padding: 6px; overflow: hidden; background: var(--b1); }
.mo-t em { font: 700 9px/1.15 var(--font-body); font-style: normal; color: var(--b2); }
.mo-t.mo-v1 { background: var(--b2); } .mo-t.mo-v1 em { color: var(--b1); }
.mo-t.mo-v2 { background: linear-gradient(135deg, var(--b3), var(--b1)); }
.mo-t.mo-v3 { background: radial-gradient(circle at 30% 30%, var(--b3) 0 18%, transparent 19%), var(--b1); }
.mo-t__ico { position: absolute; right: 5px; top: 5px; font-size: 10px; line-height: 1; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.mo-t--reel .mo-t__ico::after { content: "\25B6"; }
.mo-t--carousel .mo-t__ico::after { content: "\2750"; }
.mo-t.is-new { animation: mo-new 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes mo-new { from { transform: scale(0.3); opacity: 0; } }

/* platforms */
.mo-phone[data-pf="youtube"] .mo-t { aspect-ratio: 9 / 16; }
.mo-phone[data-pf="youtube"] .mo-av.is-story { background: #e53935; }
.mo-phone[data-pf="pinterest"] .mo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0; }
.mo-phone[data-pf="pinterest"] .mo-t { aspect-ratio: 3 / 4; border-radius: 12px; }
.mo-phone[data-pf="pinterest"] .mo-t:nth-child(4n + 2), .mo-phone[data-pf="pinterest"] .mo-t:nth-child(4n + 3) { aspect-ratio: 3 / 5; }
.mo-phone[data-pf="facebook"] .mo-grid, .mo-phone[data-pf="linkedin"] .mo-grid, .mo-phone[data-pf="x"] .mo-grid { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.mo-t--feed { aspect-ratio: auto; display: grid; place-items: stretch; gap: 6px; padding: 10px; border-radius: 10px; background: #f3f5f6 !important; color: #15191c; }
.mo-t--feed .mo-t__ico { display: none; }
.mo-t__who { display: flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--font-body); }
.mo-t__who i { width: 18px; height: 18px; border-radius: 50%; background: var(--b1); }
.mo-t__who span { margin-left: auto; font-weight: 500; color: #8a959b; }
.mo-t__cap { font: 500 10.5px/1.3 var(--font-body); }
.mo-t__cap:empty { display: none; }
.mo-t__img { display: block; aspect-ratio: 16 / 7; border-radius: 6px; background: linear-gradient(135deg, var(--b3), var(--b1)); }
.mo-t__bar { font: 600 9.5px/1 var(--font-body); color: #66727a; }
.mo-phone[data-pf="linkedin"] .mo-t--feed { background: #eef3f8 !important; }
.mo-phone[data-pf="x"] .mo-t--feed { background: #fff !important; border-bottom: 1px solid #eceff1; border-radius: 0; }

.mo-report { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 7px; padding: 14px; border-radius: 16px; background: #15191c; color: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4); transform: translateY(115%); transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.mo-report.is-on { transform: none; }
.mo-report p { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.3 var(--font-body); }
.mo-report em { font-style: normal; color: rgba(255, 255, 255, 0.6); }
.mo-report b { text-align: right; }
.mo-report__k { font: 700 10px/1 var(--font-body) !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

.mo-bubbles { position: absolute; inset: 40px 0 0; pointer-events: none; }
.mo-dm { position: absolute; left: calc(50% + var(--x)); top: var(--y); translate: -50% 0; padding: 7px 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); font: 600 12px/1 var(--font-body); white-space: nowrap; color: var(--text); animation: mo-dm 2.2s ease-in-out forwards; }
.mo-dm.is-replied::after { content: "  \2713 Replied"; color: #22c55e; }
@keyframes mo-dm { 0% { opacity: 0; transform: translateY(12px) scale(0.9); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-16px); } }

/* ---- stats ---- */
.mo-kpis { justify-self: start; display: grid; gap: 14px; }
.mo-kpis p { margin: 0; display: grid; grid-template-columns: auto 90px; align-items: end; gap: 2px 14px; }
.mo-kpis em { grid-column: 1 / -1; font: 700 10.5px/1 var(--font-body); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mo-kpis b { min-width: 3.6em; font: 400 clamp(1.9rem, 2.8vw, 2.6rem)/0.9 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.mo-kpis p:first-child b { color: var(--accent); }
.mo-kpis svg { width: 90px; height: 30px; overflow: visible; }
.mo-kpis polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mo-kpis small { font: 500 11px/1 var(--font-body); color: var(--muted); }

/* ---- what we do (after the time-lapse) ---- */
.mo-list { width: min(1180px, calc(100% - 2 * var(--side))); margin: 0 auto; padding: clamp(40px, 7vh, 70px) 0 clamp(70px, 11vh, 120px); }
.mo-list__t { margin: 0 0 22px; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; color: var(--text); }
.mo-list ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mo-list li { display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line2); font: 500 14px/1.45 var(--font-body); color: var(--muted); }
.mo-list li b { font: 400 22px/1 var(--font-display); text-transform: uppercase; color: var(--text); }

@media (max-width: 899px) {
  .mo__track { height: 300vh; }
  .mo__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; justify-items: center; gap: 10px; }
  .mo-cal { justify-self: center; grid-auto-flow: column; align-items: center; gap: 16px; }
  .mo-day b { font-size: 3.4rem; }
  .mo-day span { padding-bottom: 4px; font-size: 16px; }
  .mo-weeks { display: none; }
  .mo-phone { --ph: min(52svh, 470px); }
  .mo-tabs { max-width: 330px; }
  .mo-kpis { justify-self: center; grid-auto-flow: column; gap: 16px; }
  .mo-kpis p { grid-template-columns: auto; }
  .mo-kpis svg, .mo-kpis small { display: none; }
  .mo-kpis b { min-width: 0; font-size: 1.4rem; }
  .mo-kpis em { font-size: 8.5px; letter-spacing: 0.08em; }
  .mo-list ul { grid-template-columns: 1fr; }
  .mo__head .ws-eyebrow { display: none; }
  .mo-stats span:last-child { display: none; }
  .mo-av { width: 52px; height: 52px; }
  .mo-drop { left: 13px; top: 35px; width: 46px; height: 46px; }
  .mo-dm { left: calc(50% + var(--x) * 0.55); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
}
