/* Cheesebrd home — the pieces only the main page has: the live board on the
   first screen, the shared-board pair, the team card, the VR visual, preset
   rows, tool cards and plan notes. Tokens, header, buttons, FAQ and the
   download note are shared and live in site.css. */

/* ---------- first screen ---------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(44px, 6vw, 88px) clamp(56px, 7vw, 100px);
}
.home-hero h1 { font-size: clamp(31px, 3.5vw, 50px); font-weight: 800; line-height: 1.3; text-wrap: balance; }
/* The English line is about twice as long; keep it to three or four lines. */
html[lang="en"] .home-hero h1 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.22; }
.home-lead { margin-top: 18px; max-width: 34em; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.75; color: var(--ink-m2); text-wrap: pretty; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-actions.is-center { justify-content: center; margin-top: 36px; }

/* ---------- board demo ---------- */

.hb-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-m);
  border-radius: 16px;
  background-color: var(--panel);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.25px);
  background-size: 18px 18px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  container-type: inline-size;
}
.hb-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  opacity: var(--op, 1);
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: 50% 40%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hb-card:active { cursor: grabbing; }
.hb-card.is-lift { box-shadow: var(--shadow-lift); }
.hb-photo { background: #FFFFFF; padding: .6cqw .6cqw 0; border-radius: 2px; box-shadow: var(--shadow-m); }
.hb-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.hb-photo::before { content: ""; position: absolute; top: -1cqw; left: 50%; width: 34%; height: 1.9cqw; margin-left: -17%; background: var(--tape); transform: rotate(-4deg); }
.hb-result::before { display: none; }
.hb-cap { display: block; padding: .5cqw .3cqw .7cqw; font-family: var(--font-hand); font-weight: 700; font-size: clamp(10px, 1.6cqw, 16px); line-height: 1.2; color: var(--note-ink-2); }
.hb-sticky {
  aspect-ratio: 1 / 1;
  padding: 1.3cqw;
  border-radius: 2px;
  background: var(--st-yellow);
  box-shadow: var(--shadow-m);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(11px, 2cqw, 22px);
  line-height: 1.2;
  color: var(--note-ink);
}
.hb-sticky.is-pink { background: var(--st-pink); }
.hb-sticky p { white-space: pre-line; }
.hb-frame {
  position: absolute;
  z-index: 1;
  border: 2px dashed var(--ink-m3);
  border-radius: 10px;
  background: rgba(179, 217, 255, .16);
  transition: border-color .3s, background-color .3s;
}
.hb-frame.is-hit { border-color: #E0A100; background: rgba(255, 229, 102, .26); }
.hb-flabel { position: absolute; top: -1.8cqw; left: 1cqw; padding: 0 .6cqw; border-radius: 4px; background: var(--panel); font-family: var(--font-hand); font-weight: 700; font-size: clamp(11px, 1.6cqw, 15px); line-height: 1.4; color: var(--ink-m2); }
.hb-ghost {
  position: absolute;
  left: .6cqw;
  right: .6cqw;
  top: .6cqw;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(100deg, #EFE8D8 20%, #FFFBF1 45%, #EFE8D8 70%);
  background-size: 220% 100%;
  font-size: clamp(10px, 1.4cqw, 15px);
  font-weight: 700;
  color: #6B6557;
  opacity: var(--ghost, 0);
  animation: hbShimmer 1.2s linear infinite;
}
.hb-result img { opacity: var(--img, 1); }
@keyframes hbShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hb-board.is-paused *,
.hb-board.is-paused *::before { animation-play-state: paused !important; }
.hb-ov { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.hb-pen { fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hb-link { fill: none; stroke: var(--ink-m3); stroke-width: 1.6; stroke-dasharray: 5 5; }
.hb-knob { fill: var(--panel); stroke: var(--ink-m3); stroke-width: 1.4; }
.hb-cur { position: absolute; left: 0; top: 0; z-index: 40; display: flex; align-items: flex-start; opacity: var(--op, 0); pointer-events: none; }
.hb-cur svg { width: clamp(14px, 2cqw, 22px); height: auto; color: var(--cc); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.hb-cur span { margin-top: clamp(10px, 1.7cqw, 19px); margin-left: -2px; padding: 0 8px; border-radius: 999px; background: var(--cc); font-family: var(--font-hand); font-weight: 700; font-size: clamp(11px, 1.6cqw, 15px); line-height: 1.35; color: #1A1710; white-space: nowrap; }
.hb-cur.is-a { --cc: var(--cur-a); }
.hb-cur.is-b { --cc: var(--cur-b); }
.hb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--ink-m3); }
.hb-pause { border: 1.5px solid var(--ink-m3); border-radius: 999px; background: var(--panel); padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink-m2); cursor: pointer; }
.hb-pause:hover { border-color: var(--ink-m); color: var(--ink-m); }

/* ---------- sections ---------- */

.home-sec { padding-block: clamp(64px, 8vw, 116px); }
.home-sec + .home-sec { padding-top: clamp(24px, 4vw, 56px); }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 76px); }
.home-split.reverse > :first-child { order: 2; }
.home-text h2 { font-size: clamp(29px, 3.1vw, 42px); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.home-text p { margin-top: 14px; max-width: 34em; font-size: 16.5px; line-height: 1.8; color: var(--ink-m2); text-wrap: pretty; }
.home-text .subhead { margin-top: 6px; font-size: 18.5px; font-weight: 700; color: var(--ink-m); }
.home-text .fine,
.page-home p.fine { font-size: 14px; line-height: 1.7; color: var(--ink-m3); }
.home-text.is-center { max-width: 760px; margin-inline: auto; text-align: center; }
.home-text.is-center p { margin-inline: auto; text-wrap: balance; }
.page-home p.fine.is-center { margin-top: 26px; text-align: center; }

.fact-list { display: grid; gap: 9px; margin-top: 18px; }
.fact-list li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.6; color: var(--ink-m); }
.fact-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 11px; border-radius: 2px; background: var(--st-yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transform: rotate(-8deg); }

.stick-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stick-chips li {
  padding: 5px 12px 6px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: var(--shadow-m);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--note-ink);
  transform: rotate(var(--rot, 0deg));
}

.taped { position: relative; margin: 0; padding: 10px 10px 40px; border-radius: 3px; background: #FFFFFF; box-shadow: var(--shadow-lift); transform: rotate(-1.2deg); }
.taped::before { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: var(--tape); transform: rotate(-3deg); }
.board-video { display: block; width: 100%; height: auto; aspect-ratio: 1700 / 1080; border-radius: 2px; background: var(--paper-2); object-fit: cover; object-position: top left; }
.board-shot .hand-note { position: absolute; left: 18px; bottom: 7px; }
.hand-arrow { position: absolute; left: -64px; bottom: 18px; width: 120px; height: 70px; overflow: visible; }
.hand-arrow path { fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 190; stroke-dashoffset: 0; }

/* ---------- board tools (calendar, timeline, pages, markup) ---------- */

.btool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 68px) clamp(28px, 4vw, 56px); max-width: 1120px; margin: clamp(34px, 4vw, 52px) auto 0; }
.btool { padding-bottom: 16px; transform: rotate(var(--rot, 0deg)); }
.btool-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 2px; background: var(--paper-2); object-fit: cover; }
.btool figcaption { display: grid; gap: 3px; padding: 12px 8px 0; }
.btool figcaption span { font-size: 15px; line-height: 1.6; color: var(--ink-m2); }

/* ---------- shared board ---------- */

.share-demo { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 34px; }
.share-between { position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; }
.screen { overflow: hidden; border: 1px solid var(--line-m); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-m); }
.screen-label { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line-m); background: var(--paper-2); font-size: 12.5px; font-weight: 700; color: var(--ink-m2); }
.mini-board { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px); background-size: 14px 14px; container-type: inline-size; }
.m-frame { position: absolute; left: 48%; top: 14%; width: 45%; height: 58%; border: 2px dashed var(--ink-m3); border-radius: 8px; }
.m-frame span { position: absolute; top: -1.3em; left: 6px; padding: 0 4px; background: var(--panel); font-family: var(--font-hand); font-weight: 700; font-size: clamp(11px, 4cqw, 15px); color: var(--ink-m2); }
.m-sticky { position: absolute; left: 6%; top: 9%; width: 31%; aspect-ratio: 1; padding: 4%; background: var(--st-yellow); box-shadow: var(--shadow-m); font-family: var(--font-hand); font-weight: 700; font-size: clamp(10px, 4.2cqw, 16px); line-height: 1.2; white-space: pre-line; color: var(--note-ink); transform: rotate(-3deg); }
.m-photo { position: absolute; left: 8%; top: 56%; width: 34%; padding: 2% 2% 6%; background: #FFFFFF; box-shadow: var(--shadow-m); transform: rotate(3deg); transition: left 1s var(--eo), top 1s var(--eo), transform 1s var(--eo), opacity .4s ease; }
.m-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.m-pink { position: absolute; left: 55%; top: 72%; width: 27%; padding: 3% 4%; background: var(--st-pink); box-shadow: var(--shadow-m); font-family: var(--font-hand); font-weight: 700; font-size: clamp(10px, 4cqw, 15px); line-height: 1.2; color: var(--note-ink); opacity: 0; transform: rotate(3deg) scale(.4); transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.m-cur { position: absolute; left: 30%; top: 108%; z-index: 5; display: flex; align-items: flex-start; pointer-events: none; transition: left .9s var(--eo), top .9s var(--eo), opacity .4s ease; }
.m-cur svg { width: clamp(12px, 5cqw, 18px); height: auto; color: var(--cc); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.m-cur span { margin-top: clamp(9px, 4cqw, 15px); margin-left: -2px; padding: 0 6px; border-radius: 999px; background: var(--cc); font-family: var(--font-hand); font-weight: 700; font-size: clamp(10px, 3.8cqw, 14px); line-height: 1.3; color: #1A1710; white-space: nowrap; }
.m-cur.is-a { --cc: var(--cur-a); }
.m-cur.is-b { --cc: var(--cur-b); left: 88%; }
/* The step classes sit on #shareDemo; order matters — later steps win. */
.s-a1 .m-cur.is-a { left: 22%; top: 66%; }
.s-moved .m-photo { left: 53%; top: 24%; transform: rotate(0deg); }
.s-moved .m-cur.is-a { left: 68%; top: 36%; }
.s-b1 .m-cur.is-b { left: 66%; top: 80%; }
.s-pinked .m-pink { opacity: 1; transform: rotate(3deg) scale(1); }
.s-rest .m-cur.is-a { left: 38%; top: 86%; }
.s-rest .m-cur.is-b { left: 84%; top: 58%; }
.s-fade .m-photo,
.s-fade .m-pink,
.s-fade .m-cur { opacity: 0; }
/* Each person's change reaches the other screen a moment later. */
.screen[data-screen="b"] .m-photo,
.screen[data-screen="b"] .m-cur.is-a,
.screen[data-screen="a"] .m-pink,
.screen[data-screen="a"] .m-cur.is-b { transition-delay: .35s; }
.share-demo.no-anim * { transition: none !important; }

/* ---------- team ---------- */

.team-card { position: relative; justify-self: center; width: 100%; max-width: 460px; padding: 24px 22px 20px; border: 1px solid var(--line-m); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-lift); transform: rotate(.6deg); }
.team-card::before { content: ""; position: absolute; top: -12px; left: 40px; width: 90px; height: 24px; background: var(--tape); transform: rotate(-4deg); }
.team-card-head { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.team-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--st-yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.team-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 14px; color: var(--ink-m2); }
.team-row .v { font-weight: 800; color: var(--ink-m); font-variant-numeric: tabular-nums; }
.avatars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--panel), var(--shadow-m); font-size: 14px; font-weight: 800; color: var(--note-ink); }
.seat { width: 13px; height: 13px; margin-inline: 1px; border: 1.5px dashed var(--ink-m3); border-radius: 50%; }
.meter { height: 10px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.meter i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--st-yellow), #F5C84E); }
.usage { display: grid; gap: 6px; margin-top: 8px; }
.usage li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-m); border-radius: 8px; background: var(--paper); font-size: 14px; }
.usage .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cur-b); }
.usage .dot.is-refund { background: var(--pen); }

/* ---------- VR ---------- */

.vr-visual { position: relative; padding-top: 30px; padding-bottom: 90px; }
.vr-caption { position: absolute; top: 0; left: 4px; font-size: 20px; color: var(--ink-m3); }
.vr-shot { margin: 0; padding: 8px; border-radius: 4px; background: #FFFFFF; box-shadow: var(--shadow-lift); transform: rotate(-1deg); }
.vr-shot img,
.vr-shot video { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--paper-2); }
.vr-phone { position: absolute; right: -6px; bottom: 26px; width: 30%; min-width: 150px; aspect-ratio: 9 / 18; margin: 0; padding: 8px; border-radius: 24px; background: #1B1A17; box-shadow: var(--shadow-lift); transform: rotate(3deg); }
.vr-pano { position: absolute; inset: 8px; border-radius: 17px; background-size: auto 100%; background-position: 0% 50%; animation: vrLook 24s ease-in-out infinite alternate; }
@keyframes vrLook { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hot { position: absolute; z-index: 2; display: flex; align-items: center; gap: 5px; }
.hot i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .92); animation: hotPulse 1.8s ease-out infinite; }
.hot b { font-family: var(--font-hand); font-size: 15px; color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.hot.is-1 { left: 18%; top: 36%; }
.hot.is-2 { left: 52%; top: 55%; }
@keyframes hotPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
.vr-fab { position: absolute; right: 16px; bottom: 18px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: var(--st-yellow); box-shadow: var(--shadow-m); font-size: 11px; font-weight: 800; color: var(--note-ink); }
.vr-phone figcaption { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font-size: 18px; color: var(--ink-m2); white-space: nowrap; }
.vr-stats { position: absolute; left: 3%; bottom: 0; width: 50%; padding: 12px 14px; border: 1px solid var(--line-m); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-m); transform: rotate(-1.5deg); }
.vr-stats b { display: block; margin-bottom: 4px; font-size: 13px; }
.vr-stats .bar { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--ink-m2); }
.vr-stats .bar i { display: block; width: var(--w); height: 8px; border-radius: 999px; background: var(--st-mint); }

/* ---------- library and presets ---------- */

.preset-rows { margin: 34px calc(-1 * var(--gutter)) 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 12px; width: max-content; padding: 12px 0; animation: presetRow 80s linear infinite; }
.track.is-rev { animation-direction: reverse; animation-duration: 64s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes presetRow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chipcard { flex: none; padding: 8px 14px 9px; border-radius: 3px; background: var(--c); box-shadow: var(--shadow-m); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--note-ink); transform: rotate(var(--rot, 0deg)); }
.chipcard small { display: block; font-family: var(--font-hand); font-size: 14px; font-weight: 700; color: var(--note-ink-2); }
.library-split { margin-top: 44px; }
.lib-list { display: grid; gap: 14px; }
.lib-list li { padding: 14px 16px; border: 1px solid var(--line-m); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-m); font-size: 15px; line-height: 1.65; color: var(--ink-m2); }
.lib-list b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink-m); }
.library-frame { padding: 8px; border-radius: 6px; background: #FFFFFF; box-shadow: var(--shadow-lift); transform: rotate(.8deg); }
.library-frame video { display: block; width: 100%; height: auto; border-radius: 3px; background: var(--paper-2); }
.page-home .library-slider { margin-top: 0; border-radius: 3px; }
/* The slide count comes from --n on the track (site.css assumes 3). */
.page-home .library-track { width: calc(var(--n, 3) * 100%); }
.page-home .library-track > div { width: calc(100% / var(--n, 3)); }

/* ---------- AI tools: one player for real screen recordings ---------- */

.tool-show { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); align-items: start; gap: clamp(22px, 3.4vw, 48px); margin-top: 44px; }
.tool-list { display: flex; flex-direction: column; gap: 4px; }
.tool-group {
  align-self: flex-start;
  margin: 16px 0 6px;
  padding: 0 10px 1px;
  border-radius: 3px;
  background: var(--c, var(--st-yellow));
  box-shadow: var(--shadow-m);
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--note-ink);
  transform: rotate(-2deg);
}
.tool-group:first-child { margin-top: 0; }
.tool-tab {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 10px 14px 13px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-m2);
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--eo), border-color .2s var(--eo), color .2s var(--eo), box-shadow .2s var(--eo);
}
.tool-tab[aria-pressed="true"] { border-color: var(--ink); background: var(--panel); box-shadow: var(--shadow-m); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .tool-tab:not([aria-pressed="true"]):hover { background: rgba(42, 40, 35, .05); color: var(--ink); }
}
/* How long until the next tool — only while the player is moving on its own. */
.tt-bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 999px; background: rgba(42, 40, 35, .08); opacity: 0; }
.tt-bar i { display: block; width: calc(var(--p, 0) * 100%); height: 100%; border-radius: inherit; background: var(--pen); }
.tool-tab[aria-pressed="true"] .tt-bar { opacity: 1; }
.tool-show.is-manual .tt-bar { opacity: 0; }

.tool-stage { min-width: 0; }
.ts-screen { position: relative; margin: 0; padding: 10px; border-radius: 6px; background: #FFFFFF; box-shadow: var(--shadow-lift); transform: rotate(-.6deg); }
.ts-screen::before { content: ""; position: absolute; top: -13px; left: 50%; z-index: 3; width: 130px; height: 26px; margin-left: -65px; background: var(--tape); transform: rotate(-3deg); }
.ts-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background-color: var(--paper-2);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.ts-video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--paper-2); object-fit: cover; object-position: top left; }
.ts-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.ts-empty-name { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ts-empty .hand-note { font-size: 20px; }
.ts-view.is-swapping .ts-video,
.ts-view.is-swapping .ts-empty { animation: tsIn .45s var(--eo); }
@keyframes tsIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.ts-trim { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 1px 9px 2px; border-radius: 3px; background: var(--st-yellow); box-shadow: var(--shadow-m); font-family: var(--font-hand); font-size: 15px; font-weight: 700; color: var(--note-ink); transform: rotate(-2deg); }
.ts-pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; border: 1.5px solid var(--ink-m3); border-radius: 999px; background: rgba(255, 253, 248, .92); padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink-m2); cursor: pointer; }
.ts-pause:hover { border-color: var(--ink); color: var(--ink); }
.ts-info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: 24px; }
.ts-cat { justify-self: start; padding: 1px 10px 2px; border-radius: 3px; background: var(--c, var(--st-yellow)); box-shadow: var(--shadow-m); font-family: var(--font-hand); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--note-ink); transform: rotate(-2deg); }
.ts-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ts-desc { grid-column: 1 / -1; max-width: 40em; font-size: 16px; line-height: 1.7; color: var(--ink-m2); }

@media (max-width: 900px) {
  .tool-show { grid-template-columns: minmax(0, 1fr); }
  /* The list becomes one scrolling row above the screen. */
  .tool-list { flex-direction: row; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
  .tool-list::-webkit-scrollbar { display: none; }
  .tool-group { display: none; }
  .tool-tab { flex: none; width: auto; border-color: var(--line-m); background: var(--panel); padding: 8px 13px 11px; font-size: 14px; white-space: nowrap; }
}

/* ---------- plans ---------- */

.plan-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.plan-note { position: relative; padding: 24px 18px 20px; border-radius: 3px; background: var(--c); box-shadow: var(--shadow-m); color: var(--note-ink); transform: rotate(var(--rot, 0deg)); }
.plan-note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: var(--tape); transform: rotate(-3deg); }
.plan-note b { font-size: 20px; }
.plan-note .amount { display: block; margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.plan-note .amount small { margin-left: 2px; font-size: 13px; font-weight: 600; }
.plan-note .usd { display: block; min-height: 1.4em; font-size: 13px; color: var(--note-ink-2); }
.plan-note p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #3A372F; }
.plan-note.is-team { box-shadow: var(--shadow-lift); }

/* ---------- FAQ on the open page (no panel around it) ---------- */

.page-home .faq-list { max-width: 860px; margin: 36px auto 0; }
.page-home .faq-list details { background: var(--panel); box-shadow: var(--shadow-m); }

/* ---------- motion on reveal ----------
   Only once site.js has stamped .js-reveal; without it everything is simply
   shown in its final state. Rises use `translate`, so they compose with the
   cards' own rotation instead of replacing it. */

.js-reveal .page-home .home-text .stick-chips li { opacity: 0; translate: 0 -16px; }
.js-reveal .page-home .home-text.is-in .stick-chips li { opacity: 1; translate: 0 0; transition: opacity .45s ease, translate .55s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 60ms + 350ms); }
.js-reveal .page-home .board-shot .hand-arrow path { stroke-dashoffset: 190; }
.js-reveal .page-home .board-shot.is-in .hand-arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease .6s; }
.js-reveal .page-home .team-card .av { opacity: 0; transform: scale(.4); }
.js-reveal .page-home .team-card.is-in .av { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 140ms + 350ms); }
.js-reveal .page-home .team-card .usage li { opacity: 0; translate: 18px 0; }
.js-reveal .page-home .team-card.is-in .usage li { opacity: 1; translate: 0 0; transition: opacity .4s ease, translate .5s var(--eo); transition-delay: calc(var(--i, 0) * 180ms + 1150ms); }
.js-reveal .page-home .team-card .meter i { width: 100%; }
.js-reveal .page-home .team-card.is-in .meter i { width: 72%; transition: width 1.2s var(--eo) 1s; }
.js-reveal .page-home .vr-visual .bar i { width: 0; }
.js-reveal .page-home .vr-visual.is-in .bar i { width: var(--w); transition: width 1.1s var(--eo) .6s; }


/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .home-hero,
  .home-split { grid-template-columns: minmax(0, 1fr); }
  .home-split.reverse > :first-child { order: 0; }
  .plan-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hand-arrow { display: none; }
}
@media (max-width: 640px) {
  .hb-board { aspect-ratio: 4 / 5; }
}
@media (max-width: 760px) {
  .btool-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .share-demo { grid-template-columns: minmax(0, 1fr); }
  .plan-notes { grid-template-columns: minmax(0, 1fr); }
  .vr-visual { padding-bottom: 0; }
  .vr-phone { position: relative; right: auto; bottom: auto; width: 62%; margin: 26px auto 0; }
  .vr-stats { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 50px; }
}

/* ---------- home v3 draft (PO 10/13): bigger pictures, fewer words ---------- */

.home-split { grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); }
.home-text h2 { font-size: clamp(26px, 2.5vw, 36px); }
.home-text p { font-size: 15.5px; line-height: 1.75; }
.home-text.is-center { max-width: 880px; }

/* Board tools: four large recordings */
.btool-grid { max-width: 1280px; }

/* Team: one section for shared boards and the Team plan */
.team-kinds { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.team-kinds li { padding: 8px 16px 9px; background: var(--c); box-shadow: var(--shadow-m); font-size: 14.5px; color: var(--note-ink); transform: rotate(var(--rot, 0deg)); }
.team-kinds b { margin-right: 8px; font-family: var(--font-hand); font-size: 19px; }
.team-stage { max-width: 1240px; margin: clamp(30px, 4vw, 48px) auto 0; gap: clamp(22px, 3vw, 40px); padding-top: 40px; }
.team-stage .screen-label { padding: 10px 14px; font-size: 14px; }
.team-stage .mini-board { aspect-ratio: 16 / 10; }

/* VR: the editor recording large, the viewer's phone beside it */
.vr-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .3fr); align-items: center; gap: clamp(22px, 3vw, 44px); max-width: 1280px; margin: clamp(30px, 4vw, 48px) auto 0; }
.vr-desk { position: relative; margin: 0; padding: 10px 10px 40px; background: #FFFFFF; box-shadow: var(--shadow-lift); transform: rotate(-.6deg); }
.vr-desk video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 2px; background: var(--paper-2); }
.vr-desk .hand-note { position: absolute; left: 16px; bottom: 6px; font-size: 20px; }
.vr-mobile { position: relative; margin: 0 0 34px; padding: 9px; border-radius: 30px; background: #1B1A17; box-shadow: var(--shadow-lift); transform: rotate(2deg); }
.vr-mobile-screen,
.vr-mobile-screen,
.vr-mobile video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; border-radius: 22px; background: #111; background-size: cover; background-position: center; object-fit: cover; }
.vr-mobile .hand-note { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-size: 19px; color: var(--ink-m2); white-space: nowrap; }

/* Library: small tab cards, the recording beside them */
.lib-show { display: grid; grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); align-items: center; gap: clamp(22px, 3vw, 44px); max-width: 1280px; margin: 40px auto 0; }
.lib-tabs { display: grid; gap: 10px; }
.lib-tab { padding: 11px 14px; border: 0; background: var(--c); box-shadow: var(--shadow-m); font: inherit; font-size: 15px; font-weight: 700; color: var(--note-ink); text-align: left; cursor: pointer; transform: rotate(-.8deg); transition: transform .2s var(--eo), box-shadow .2s var(--eo); }
.lib-tab:nth-child(even) { transform: rotate(.8deg); }
.lib-tab[aria-pressed="true"] { box-shadow: var(--shadow-lift); transform: translateX(10px) rotate(0deg); outline: 2px solid var(--ink); outline-offset: 2px; }
.lib-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lib-show .library-frame video { aspect-ratio: 16 / 9; }
.lib-stage { min-width: 0; }
.lib-descs { margin-top: 20px; text-align: center; }
.lib-desc { margin: 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--ink-m2); text-wrap: pretty; }
.lib-desc:not([hidden]) { animation: lib-desc-in .35s var(--eo) both; }
@keyframes lib-desc-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

/* Hero: a handwritten question above the title */
.home-kicker { display: inline-block; margin: 0 0 6px; font-size: clamp(24px, 2.1vw, 30px); color: var(--coral-ink); transform: rotate(-2deg); transform-origin: left center; }

/* Tools: the player is larger and has no pause button */
.tool-show { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); max-width: 1280px; margin-inline: auto; }

@media (max-width: 900px) {
  .vr-stage { grid-template-columns: minmax(0, 1fr) minmax(120px, .38fr); }
  .lib-show,
  .tool-show { grid-template-columns: minmax(0, 1fr); }
  .lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .lib-tab { padding: 7px 11px; font-size: 13.5px; }
  .lib-tab[aria-pressed="true"] { transform: none; }
}
@media (max-width: 560px) {
  .team-stage { grid-template-columns: minmax(0, 1fr); }
  .vr-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .vr-mobile { width: 55%; }
}
.home-hero { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }

/* Hero: three short lines; the play/pause icon sits on the board (PO 10/13) */
.home-hero h1 { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.22; word-break: keep-all; }
.home-hero-board { position: relative; }
.hb-pause { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(42, 40, 35, .32); color: #FFFFFF; backdrop-filter: blur(4px); cursor: pointer; opacity: .75; transition: opacity .2s ease, transform .2s var(--eo), background .2s ease; }
.hb-pause:hover { border: 0; background: rgba(42, 40, 35, .6); color: #FFFFFF; opacity: 1; transform: scale(1.08); }
.hb-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; opacity: 1; }
.hb-pause svg { width: 20px; height: 20px; fill: currentColor; }
.hb-pause .i-play,
.hb-pause.is-play .i-pause { display: none; }
.hb-pause.is-play .i-play { display: block; }

/* Board tools: the fifth card sits centred under the four */
.btool.is-wide { grid-column: 1 / -1; justify-self: center; width: min(100%, calc(50% - 28px)); }

/* ---------- interaction (PO 10/13: the page should answer the mouse) ---------- */

/* Pictures settle when the pointer comes near */
.board-shot, .btool, .vr-desk, .vr-mobile, .library-frame, .ts-screen, .team-stage .screen { transition: transform .45s var(--eo), box-shadow .45s var(--eo); }
@media (hover: hover) and (pointer: fine) {
  .board-shot:hover, .btool:hover, .vr-desk:hover, .library-frame:hover, .ts-screen:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 22px 48px rgba(60, 48, 20, .18); }
  .vr-mobile:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); }
  .team-stage .screen:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .stick-chips li, .team-kinds li { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
  .stick-chips li:hover, .team-kinds li:hover { transform: rotate(0deg) translateY(-4px) scale(1.06); }
  .lib-tab:hover { transform: translateX(6px) rotate(0deg); }
  .tool-tab { transition: transform .25s var(--eo), background .2s ease; }
  .tool-tab:hover { transform: translateX(5px); }
  .button { transition: transform .2s var(--eo), box-shadow .2s var(--eo), background .2s ease, color .2s ease; }
  .button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(42, 40, 35, .16); }
  .site-nav a { background: linear-gradient(var(--st-yellow), var(--st-yellow)) no-repeat 0 88% / 0 38%; transition: background-size .3s var(--eo), color .2s ease; }
  .site-nav a:hover { background-size: 100% 38%; color: var(--ink); }
  .logo img.logo-cheese { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
  .logo:hover img.logo-cheese { transform: rotate(-10deg) scale(1.1); }
}

/* Scrolling: sections arrive with a short lift and settle; grids come in one by one */
.js-reveal .page-home [data-reveal] { translate: 0 56px; scale: .97; }
.js-reveal .page-home [data-reveal].is-in { translate: 0 0; scale: 1; transition: opacity 900ms var(--eo), translate 900ms var(--eo), scale 900ms var(--eo); }
.js-reveal .page-home .btool-grid > [data-reveal]:nth-child(2) { transition-delay: 120ms; }
.js-reveal .page-home .btool-grid > [data-reveal]:nth-child(3) { transition-delay: 200ms; }
.js-reveal .page-home .btool-grid > [data-reveal]:nth-child(4) { transition-delay: 320ms; }
.js-reveal .page-home .btool-grid > [data-reveal]:nth-child(5) { transition-delay: 400ms; }
.js-reveal .page-home .vr-stage .vr-mobile { translate: 60px 0; opacity: 0; }
.js-reveal .page-home .vr-stage.is-in .vr-mobile { translate: 0 0; opacity: 1; transition: translate 1s var(--eo) .35s, opacity .8s ease .35s; }
.js-reveal .page-home .lib-tabs .lib-tab { opacity: 0; translate: -24px 0; }
.js-reveal .page-home .lib-show.is-in .lib-tab,
.js-reveal .page-home .lib-show:has(.is-in) .lib-tab { opacity: 1; translate: 0 0; transition: opacity .5s ease, translate .6s var(--eo); }
.js-reveal .page-home .lib-show .lib-tab:nth-child(2) { transition-delay: 80ms; }
.js-reveal .page-home .lib-show .lib-tab:nth-child(3) { transition-delay: 160ms; }
.js-reveal .page-home .lib-show .lib-tab:nth-child(4) { transition-delay: 240ms; }
.js-reveal .page-home .lib-show .lib-tab:nth-child(5) { transition-delay: 320ms; }
.js-reveal .page-home .team-kinds li { opacity: 0; translate: 0 -14px; }
.js-reveal .page-home .home-text.is-in .team-kinds li { opacity: 1; translate: 0 0; transition: opacity .4s ease .4s, translate .55s cubic-bezier(.34, 1.56, .64, 1) .4s; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .btool.is-wide { width: 100%; }
}

/* Teammates' cursors over the whole page */
.crowd { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.crowd.is-on { opacity: 1; }
.crowd-cur { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; will-change: transform; }
.crowd-cur svg { width: 20px; height: 22px; color: var(--cc); filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .28)); }
.crowd-cur span { margin: 15px 0 0 -3px; padding: 1px 9px 2px; border-radius: 999px; background: var(--cc); box-shadow: 0 2px 6px rgba(42, 40, 35, .16); font-family: var(--font-hand); font-size: 15px; font-weight: 700; line-height: 1.25; color: #1A1710; white-space: nowrap; }
.crowd-cur::before { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border: 2px solid var(--cc); border-radius: 50%; opacity: 0; transform: scale(.3); }
.crowd-cur.is-click::before { animation: crowdClick .55s ease-out; }
@keyframes crowdClick { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
@media (max-width: 700px) {
  .crowd-cur svg { width: 16px; height: 18px; }
  .crowd-cur span { margin-top: 12px; font-size: 13px; }
}

/* Team: one real recording of a shared board with three people on it */
.team-video { position: relative; max-width: 1180px; margin: clamp(30px, 4vw, 48px) auto 0; padding: 10px 10px 40px; background: #FFFFFF; box-shadow: var(--shadow-lift); transform: rotate(.5deg); }
.team-video video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 876; border-radius: 2px; background: var(--paper-2); }
.team-video .hand-note { position: absolute; left: 16px; bottom: 6px; font-size: 19px; }
@media (hover: hover) and (pointer: fine) { .team-video { transition: transform .45s var(--eo), box-shadow .45s var(--eo); } .team-video:hover { transform: rotate(0deg) translateY(-6px); } }

/* VR: switch the frame between the making-of clip and the live sample tour */
.vr-switch { position: absolute; top: -18px; right: 22px; z-index: 4; display: flex; gap: 8px; }
.vr-switch-btn { padding: 7px 14px 8px; border: 0; background: var(--panel); box-shadow: var(--shadow-m); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-m2); cursor: pointer; transform: rotate(-1.5deg); transition: transform .25s var(--eo), background .2s ease, color .2s ease; }
.vr-switch-btn + .vr-switch-btn { transform: rotate(1.2deg); }
.vr-switch-btn[aria-pressed="true"] { background: var(--st-yellow); color: var(--note-ink); }
.vr-switch-btn:hover { transform: rotate(0deg) translateY(-2px); }
.vr-switch-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vr-screen { position: relative; aspect-ratio: 1600 / 874; overflow: hidden; border-radius: 2px; background: #111; }
.vr-screen video, .vr-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vr-desk.is-sample { transform: rotate(0deg); }
.vr-desk.is-sample:hover { transform: none; box-shadow: var(--shadow-lift); }
.vr-open { position: absolute; right: 16px; bottom: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-m2); }
.vr-open:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) {
  .vr-desk { justify-self: stretch; width: 100%; }
  .vr-switch { right: 12px; }
}
