/* DEMO ONLY: "Play this week" stage + "How it updates" section. Uses the board's tokens (shell.css). */
html.wp-open, html.wp-open body { overflow: hidden; }
.wp-stage { position: fixed; inset: 0; z-index: 1000; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; font-family: var(--font-body); }
.wp-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px clamp(16px, 3vw, 40px); background: var(--ink); color: #fff; }
.wp-brand { margin: 0; font-size: 14px; letter-spacing: .02em; }
.wp-brand b { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0; }
.wp-brand span { color: #c4cee0; }
.wp-ctls { display: flex; gap: 8px; }
.wp-ctl { font: inherit; font-size: 13px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 8px 12px; min-height: 38px; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.wp-ctl:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.wp-ctl:focus-visible, .wp-cta:focus-visible, .wp-ghost:focus-visible { outline: 2px solid #9db8e8; outline-offset: 2px; }
.wp-prog { position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--bg-alt); }
.wp-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--red) 0 33%, var(--yellow) 33% 66%, var(--green) 66%); transform-origin: left center; transform: scaleX(0); }
.wp-rec .wp-ctls { visibility: hidden; }

.wp-body { position: relative; flex: 1; overflow: hidden; }
.wp-scene { position: absolute; inset: 0; max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vh, 48px) clamp(18px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.wp-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.wp-scene h1, .wp-scene h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.wp-scene h2 { font-size: clamp(28px, 4.6vh, 44px); line-height: 1.1; margin-bottom: 18px; }
.wp-lede { font-size: clamp(16px, 2.4vh, 21px); color: var(--ink-2); margin: 14px 0 0; max-width: 46em; }

/* intro */
.wp-intro h1 { font-size: clamp(48px, 11vh, 104px); line-height: 1; }
.wp-mask { display: block; overflow: hidden; padding: .08em 0 .3em; margin: -.08em 0 -.3em; }
.wp-line { display: block; }
.wp-dates { color: var(--accent); }
.wp-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(20px, 5vh, 44px); max-width: 820px; }
.wp-count { background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--c); padding: 14px 18px; box-shadow: var(--shadow); }
.wp-count b { display: block; font-family: var(--font-display); font-size: clamp(40px, 8vh, 72px); line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.wp-count span { font-size: 16px; font-weight: 600; color: var(--ink); }
.z-red { --c: var(--red); --cb: var(--red-bg); } .z-yellow { --c: var(--yellow); --cb: var(--yellow-bg); } .z-green { --c: var(--green); --cb: var(--green-bg); }
.z-none { --c: var(--muted); --cb: var(--bg-alt); } .z-ink { --c: var(--ink); --cb: var(--bg-alt); }

/* week strip */
.wp-week { justify-content: flex-start; padding-top: clamp(18px, 4vh, 40px); }
.wp-strip { display: flex; gap: 10px; align-items: stretch; }
.wp-carried { flex: 0 0 auto; width: 104px; background: var(--red-bg); border: 1px solid var(--red); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 8px; color: var(--red); }
.wp-carried span, .wp-carried em { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-style: normal; }
.wp-carried b { font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
.wp-cols { position: relative; flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wp-hi { position: absolute; top: -6px; bottom: -6px; left: 0; width: 0; border: 3px solid var(--ink); border-radius: var(--radius); pointer-events: none; z-index: 2; }
.wp-col { position: relative; background: var(--card); border: 1px solid var(--rule); padding: 10px 10px 12px; min-height: 118px; display: flex; flex-direction: column; }
.wp-col.wkend { background: var(--bg-alt); }
.wp-col-wd { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-col-n { font-family: var(--font-display); font-size: 38px; line-height: 1.05; font-weight: 600; }
.wp-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.wp-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); display: block; }
.wp-dots i.k-theirs { background: transparent; box-shadow: inset 0 0 0 3px var(--c); }
.wp-dots i.k-dead { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); position: relative; }
.wp-dots i.k-dead::after { content: ""; position: absolute; left: -2px; right: -2px; top: 7px; height: 2px; background: var(--muted); transform: rotate(-35deg); }
.wp-col-hol { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 4px; }
.wp-details { position: relative; flex: 1; margin-top: clamp(18px, 4vh, 34px); }
.wp-detail { position: absolute; inset: 0; }

/* rows */
.wp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wp-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); min-height: 64px; }
.wp-tab { align-self: stretch; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-num); font-size: 17px; font-weight: 700; }
.wp-row.k-theirs .wp-tab { background: var(--cb); color: var(--c); box-shadow: inset 0 0 0 3px var(--c); }
.wp-row.k-dead .wp-tab { background: var(--bg-alt); color: var(--muted); }
.wp-row-t { padding: 10px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wp-row-t b { font-size: clamp(17px, 2.6vh, 22px); font-weight: 600; color: var(--ink); line-height: 1.25; }
.wp-row-t b s { color: var(--muted); }
.wp-row-t span { font-size: clamp(14px, 2vh, 16px); color: var(--muted); }
.wp-kind { margin-right: 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--c); color: var(--c); background: var(--cb); white-space: nowrap; }
.wp-row.k-dead .wp-kind { --c: var(--muted); --cb: var(--bg-alt); }
.wp-days { margin-right: 20px; text-align: right; color: var(--c); line-height: 1; }
.wp-days b { display: block; font-family: var(--font-display); font-size: 38px; font-weight: 600; }
.wp-days em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wp-empty { font-size: clamp(19px, 3vh, 26px); color: var(--ink-2); margin: 0; }

/* zones */
.wp-zone-h { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.wp-zone-h h2 { margin: 0; font-size: clamp(36px, 7vh, 64px); color: var(--c); }
.wp-zone-h .wp-eyebrow { color: var(--ink-2); }
.wp-swatch { width: 12px; align-self: stretch; background: var(--c); transform-origin: top center; }
.wp-zone-n { margin-left: auto; font-family: var(--font-display); font-size: clamp(56px, 11vh, 96px); line-height: 1; color: var(--c); }

/* summary */
.wp-sum-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.wp-big { background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--c); padding: 18px 22px 20px; box-shadow: var(--shadow); }
.wp-big b { display: block; font-family: var(--font-display); font-size: clamp(64px, 14vh, 120px); line-height: 1; color: var(--c); }
.wp-big span { display: block; font-size: clamp(18px, 3vh, 24px); font-weight: 600; margin-top: 6px; }
.wp-big em { display: block; font-style: normal; color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 1.2em; }

/* how it updates (stage + page) */
.wp-how-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wp-how-c { background: var(--card); border: 1px solid var(--rule); padding: 18px 22px 16px; box-shadow: var(--shadow); }
.wp-how-c.c-auto { border-top: 6px solid var(--accent); }
.wp-how-c.c-you { border-top: 6px solid var(--green); }
.wp-how-c h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3.4vh, 28px); margin: 0 0 10px; }
.wp-how-c ul { list-style: none; margin: 0; padding: 0; }
.wp-how-c li { position: relative; padding: 7px 0 7px 26px; font-size: clamp(16px, 2.5vh, 20px); border-top: 1px solid var(--bg-alt); line-height: 1.3; }
.wp-how-c li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 12px; height: 4px; background: var(--accent); }
.wp-how-c.c-you li::before { background: var(--green); }
.wp-keep { margin: 18px 0 0; font-size: clamp(17px, 2.7vh, 22px); font-weight: 600; color: var(--ink); border-left: 6px solid var(--ink); padding: 6px 0 6px 14px; }
.wp-how h2 { margin-bottom: 16px; }

/* end */
.wp-end { align-items: flex-start; }
.wp-rule { display: flex; gap: 6px; margin-bottom: 20px; }
.wp-rule i { display: block; width: 56px; height: 6px; } .wp-rule i:nth-child(1) { background: var(--red); } .wp-rule i:nth-child(2) { background: var(--yellow); } .wp-rule i:nth-child(3) { background: var(--green); }
.wp-end h2 { font-size: clamp(44px, 9vh, 84px); margin: 0; }
.wp-end-b { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.wp-cta, .wp-ghost { font: inherit; font-weight: 600; font-size: 16px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.wp-cta { background: var(--ink); color: #fff; border: 0; } .wp-cta:hover { background: var(--accent); }
.wp-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); } .wp-ghost:hover { background: var(--ink); color: #fff; }

/* the board's own "How it updates" section */
.wp-howsec { margin-top: 34px; }
.wp-howsec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.wp-howsec-h h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 4px 0 0; }
.wp-howsec .wp-how-c li { font-size: 15px; }
.wp-howsec .wp-how-c h3 { font-size: 20px; }
.wp-howsec .wp-keep { font-size: 15px; }
.wp-open-b { font-weight: 600; }
.wp-mplay { display: none; }
@media (max-width: 760px) {
  .top-meta .wp-open-b { display: none; }
  .wp-mplay { display: block; width: 100%; min-height: 48px; margin: 0 0 16px; font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: var(--ink); border: 0; border-radius: var(--radius); cursor: pointer; }
  .wp-mplay:active { background: var(--accent); }
}

/* reduced motion / no GSAP: one calm scrolling page with every scene */
.wp-static .wp-body { overflow-y: auto; }
.wp-static .wp-scene, .wp-static .wp-detail { position: static; inset: auto; }
.wp-static .wp-scene { padding-bottom: 8px; }
.wp-static .wp-details { display: grid; gap: 26px; }
.wp-static .wp-hi { display: none; }

@media (max-width: 760px) {
  .wp-top { padding: 10px 14px; }
  .wp-brand span { display: none; }
  .wp-ctl { padding: 6px 10px; min-height: 44px; }
  .wp-scene { padding: 18px 16px; justify-content: flex-start; padding-top: 28px; }
  .wp-week { padding-top: 16px; }
  .wp-counts, .wp-sum-row { grid-template-columns: 1fr; gap: 10px; }
  .wp-count { display: flex; align-items: baseline; gap: 14px; padding: 10px 14px; }
  .wp-count b { font-size: 44px; }
  .wp-big { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; }
  .wp-big b { font-size: 56px; grid-row: span 2; }
  .wp-big span { margin: 0; font-size: 18px; } .wp-big em { margin: 0; }
  .wp-strip { flex-direction: column; gap: 8px; }
  .wp-carried { width: auto; flex-direction: row; gap: 8px; padding: 6px 10px; justify-content: flex-start; }
  .wp-carried b { font-size: 24px; }
  .wp-cols { gap: 3px; }
  .wp-col { min-height: 84px; padding: 6px 4px 8px; align-items: center; text-align: center; }
  .wp-col-wd { font-size: 11px; letter-spacing: .04em; } .wp-col-n { font-size: 26px; }
  .wp-dots { justify-content: center; gap: 3px; } .wp-dots i { width: 11px; height: 11px; }
  .wp-dots i.k-dead::after { top: 4px; }
  .wp-col-hol { display: none; }
  .wp-row { grid-template-columns: 44px 1fr; min-height: 56px; }
  .wp-tab { font-size: 14px; }
  .wp-row-t { padding: 8px 12px; }
  .wp-kind, .wp-days { grid-column: 2; justify-self: start; margin: 0 12px 10px; }
  .wp-days { display: flex; align-items: baseline; gap: 6px; } .wp-days b { font-size: 24px; }
  .wp-zone-h { margin-bottom: 14px; gap: 12px; }
  .wp-intro h1 { font-size: clamp(40px, 12vw, 52px); }
  .wp-counts { margin-top: 22px; }
  .wp-zone-h h2 { font-size: 34px; } .wp-zone-n { font-size: 52px; }
  .wp-zone .wp-row-t b { font-size: 16px; } .wp-zone .wp-row-t span { font-size: 13px; }
  .wp-zone .wp-row-t { padding: 7px 12px 2px; }
  .wp-zone .wp-days { margin-bottom: 7px; }
  .wp-list { gap: 8px; }
  .wp-how-cols { grid-template-columns: 1fr; gap: 10px; }
  .wp-how-c { padding: 12px 14px 10px; }
  .wp-how-c li { padding: 5px 0 5px 22px; font-size: 15px; }
  .wp-keep { font-size: 15px; margin-top: 12px; }
  .wp-how h2 { font-size: 26px; margin-bottom: 10px; }
}

/* ---- DUE TODAY: MUST COMPLETE tier (demo only) ---- */
:root { --today: #8a0030; --today-bg: #fbe0e9; --today-hi: #ff2d6a; }
.z-today { --c: var(--today); --cb: var(--today-bg); }
.wp-counts { grid-template-columns: repeat(4, 1fr); max-width: 1040px; }
.wp-count.z-today { background: var(--today); border-color: var(--today); } .wp-count.z-today b, .wp-count.z-today span { color: #fff; }
.wp-prog i { background: linear-gradient(90deg, var(--today) 0 12%, var(--red) 12% 40%, var(--yellow) 40% 70%, var(--green) 70%); }
.wp-today h2 { display: flex; align-items: center; gap: 16px; letter-spacing: .01em; }
.wp-pulse { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--today-hi); animation: wp-due 1.4s ease-out infinite; }
@keyframes wp-due { 0% { box-shadow: 0 0 0 0 rgba(255,45,106,.65); } 70% { box-shadow: 0 0 0 16px rgba(255,45,106,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,106,0); } }
.wp-today .wp-row { border-left: 0; box-shadow: 0 0 0 2px var(--today), var(--shadow); }
.wp-today .wp-tab { background: var(--today); }
.wp-row.k-due .wp-kind { background: var(--today); color: #fff; }
.wp-today-note { margin: 18px 0 0; font-size: clamp(15px, 2.2vh, 18px); color: var(--ink-2); }
.wp-sum-row { grid-template-columns: repeat(4, 1fr); }
.wp-big.z-today { background: var(--today); border-color: var(--today); } .wp-big.z-today b, .wp-big.z-today span { color: #fff; } .wp-big.z-today em { color: #ffd2df; }
@media (max-width: 760px) { .wp-counts, .wp-sum-row { grid-template-columns: 1fr; } .wp-today h2 { font-size: 26px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .wp-pulse { animation: none; } }

/* ---- start screen ("Tap to play"): first thing on the plain demo URL ---- */
.wp-start { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #1d3157 0%, var(--ink) 60%); color: #fff; font-family: var(--font-body); padding: 24px; }
.wp-start-in { max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wp-start .wp-rule { display: flex; gap: 6px; margin-bottom: 22px; }
.wp-start .wp-rule i.r-today { background: var(--today-hi); }
.wp-start .wp-rule i:nth-child(2) { background: var(--red); } .wp-start .wp-rule i:nth-child(3) { background: var(--yellow); } .wp-start .wp-rule i:nth-child(4) { background: var(--green); }
.wp-start .wp-eyebrow { color: #9db8e8; }
.wp-start h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 0; color: #fff; }
.wp-start .wp-lede { color: #c9d3e6; margin: 18px auto 0; max-width: 34em; }
.wp-tap { margin-top: clamp(28px, 6vh, 48px); display: inline-flex; align-items: center; gap: 16px; font: inherit; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--ink); background: #fff; border: 0; border-radius: 999px; padding: 14px 34px 14px 16px; cursor: pointer; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: transform var(--dur) var(--ease); }
.wp-tap:hover { transform: translateY(-2px); }
.wp-tap:focus-visible { outline: 3px solid #9db8e8; outline-offset: 4px; }
.wp-tap-i { width: 58px; height: 58px; border-radius: 50%; background: var(--today); display: grid; place-items: center; animation: wp-due 1.6s ease-out infinite; }
.wp-tap-i i { width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.wp-start-note { margin: 16px 0 0; font-size: 14px; color: #9fb0cc; }
.wp-start-skip { margin-top: 26px; font: inherit; font-size: 15px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 10px 18px; min-height: 44px; cursor: pointer; }
.wp-start-skip:hover { border-color: #fff; background: rgba(255,255,255,.08); }
@media (prefers-reduced-motion: reduce) { .wp-tap-i { animation: none; } }
.wp-today .wp-zone-h h2 { font-size: clamp(32px, 5.6vh, 52px); }
/* Case Tracker port: firm-style file numbers (client over matter) on row tabs */
.wp-tab.wp-tab2 { align-content: center; gap: 1px; line-height: 1; font-size: 16px; }
.wp-tab.wp-tab2 small { font-size: 10px; font-weight: 600; opacity: .8; letter-spacing: .04em; }
