/* The landing page always wears Blueprint. bench/themes/blueprint.css gives it ink, paper and shadow;
   these are the other brand colours its scenes paint with. */
:root {
  --blueprint-deep: #143a6e;
  --yellow: #ffd166;
  --yellow-light: #ffe29a;
  --mat: #1e5a5e;
  --orange: #e38b4f;
  --red: #c4432b;
}

/* Vibotarium landing page: a scroll story in pinned scenes.
   Scene state comes from --p (0 to 1), set by landing.js. Without JS, or with reduced motion,
   --p stays 1: each scene shows its final state in normal flow. */

.lp { overflow-x: clip; }

/* Header and hero */
.lp-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.lp-top__login { padding: 6px 14px; white-space: nowrap; border: 1.5px solid var(--yellow); border-radius: 8px; font-size: 15px; text-decoration: none; }
.lp-top__actions { display: flex; align-items: center; gap: 12px; }
.lp-top__login:hover { color: var(--yellow-light); border-color: var(--yellow-light); }
.lp-top .lp-button--small { padding: 6px 14px; border-width: 1.5px; font-size: 15px; white-space: nowrap; }
.lp-short { display: none; }
.lp-hero {
  min-height: 100vh; min-height: 100svh; padding: 96px 16px 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center;
}
.lp-hero h1 { margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 6vw, 60px); line-height: 1.1; }
.lp-hero p { margin: 0; max-width: 36em; font-size: clamp(15px, 2vw, 19px); line-height: 1.5; }
.lp-hero__hint { margin-top: 32px; color: var(--yellow); letter-spacing: 2px; }

/* Scenes: static layout, the fallback for no JS and reduced motion */
.lp-scene { --p: 1; }
.lp-stage { display: flex; flex-direction: column; gap: 24px; padding: 72px 16px 24px; }
.lp-captions {
  display: flex; flex-direction: column; gap: .6em;
  font-family: var(--font-display); font-size: clamp(18px, 3.2vw, 32px); line-height: 1.25; text-align: center;
}
.lp-caption { margin: 0 auto; max-width: 24ch; font: inherit; }
.lp-visual { position: relative; min-height: 540px; overflow: clip; }

/* Pinned scenes, only when landing.js runs: the stage sticks while the scene's tall wrapper scrolls by. */
.lp-scene { --len: 3; }
.lp.js .lp-scene { height: calc(var(--len) * 100vh); height: calc(var(--len) * 100svh); }
.lp.js .lp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lp.js .lp-captions { position: relative; flex-shrink: 0; height: 2.6em; }
.lp.js .lp-caption {
  position: absolute; left: 0; right: 0; opacity: 0; translate: 0 .4em;
  transition: opacity .35s ease, translate .35s ease;
}
.lp.js .lp-caption.is-on { opacity: 1; translate: 0 0; }
.lp.js .lp-visual { flex: 1; min-height: 0; }

/* Scene 1: the pile. Folder i fades in once --p × --rate passes i; from --p .68 they spill out into a heap. */
@property --apps { syntax: "<integer>"; inherits: false; initial-value: 0; }
.lp-pile { --len: 2.5; --rate: 46; --total: 30; --spread: 1; }
.lp-pile .lp-visual { --spill: clamp(0, (var(--p) - .68) / .27, 1); }

.lp-f { width: 84px; height: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; }
.lp-f::before {
  content: ""; width: 44px; height: 32px; flex-shrink: 0;
  border: 2px solid var(--paper); border-radius: 3px 6px 6px 6px;
  background: linear-gradient(var(--paper), var(--paper)) 0 0 / 18px 5px no-repeat, rgba(244,247,246,.18);
}
.lp-f span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-window {
  position: absolute; left: 50%; top: 4%; width: 540px; translate: -50% 0; rotate: calc(-4deg * var(--spill));
  background: rgba(20,58,110,.92); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--shadow);
}
.lp-window__bar {
  position: relative; height: 32px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1.5px solid rgba(234,242,255,.5); font-size: 14px;
}
.lp-window__dots { position: absolute; left: 12px; display: flex; gap: 6px; }
.lp-window__dots i { width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; }
.lp-window__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); align-content: start; gap: 4px;
  min-height: 340px; margin: 0; padding: 12px; list-style: none;
}
.lp-window__status {
  height: 28px; display: flex; align-items: center; justify-content: center; gap: .5ch;
  border-top: 1.5px solid rgba(234,242,255,.5); font-size: 12px; opacity: .85;
}
.lp-count { --apps: min(var(--total), var(--p) * var(--rate)); counter-reset: apps var(--apps); }
.lp-count::before { content: counter(apps); }
.lp-folder {
  --show: clamp(0, var(--p) * var(--rate) - var(--i), 1);
  width: auto; min-width: 0; /* fill the window's grid cell, which is narrower than 84px on phones */
  opacity: var(--show);
  transform:
    translate(calc(var(--dx) * var(--spread) * var(--spill)), calc(var(--dy) * var(--spill)))
    rotate(calc(var(--r) * var(--spill)))
    scale(calc(.6 + .4 * var(--show)));
}

/* Scene 2: intake. Each heap folder flies to the tray (--tx, --ty) between its --from and --at,
   then its app icon pops onto the bench. */
.lp-intake { --len: 2.5; --tx: 14%; --ty: 78%; }

.lp-heap__folder {
  --fly: clamp(0, (var(--p) - var(--from)) / (var(--at) - var(--from)), 1);
  --gone: clamp(0, (var(--p) - var(--at)) / .02, 1);
  position: absolute; z-index: 2;
  left: calc(var(--x) + (var(--tx) - var(--x)) * var(--fly));
  top: calc(var(--y) + (var(--ty) - var(--y)) * var(--fly));
  opacity: calc(1 - var(--gone));
  scale: calc(1 - .45 * var(--fly));
}
.lp-cursor { position: absolute; right: -6px; bottom: 10px; }
.lp-cursor path { fill: var(--paper); stroke: var(--blueprint-deep); stroke-width: 1.5; stroke-linejoin: round; }

.lp-tray {
  --glow: calc(clamp(0, (var(--p) - .3) / .05, 1) * (1 - clamp(0, (var(--p) - .92) / .04, 1)));
  position: absolute; left: 4%; bottom: 4%; width: min(340px, 100%);
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 2.5px dashed var(--yellow); border-radius: 18px;
  background: color-mix(in srgb, var(--yellow) calc(var(--glow) * 22%), var(--blueprint-deep));
  box-shadow: 0 0 calc(var(--glow) * 36px) rgba(255,209,102,.55);
}
.lp-tray svg { flex-shrink: 0; }
.lp-tray__hint { margin-top: 6px; font-size: 12px; opacity: .85; }

.lp-benchwrap { position: absolute; left: 46%; top: 2%; right: 2%; }
.lp-bench { display: grid; grid-template-columns: repeat(3, 110px); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.lp-app {
  --show: clamp(0, (var(--p) - var(--at)) / .04, 1);
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: var(--show);
  transform:
    translateY(calc((1 - var(--show)) * -70px))
    rotate(calc(-18deg * (1 - var(--show)) + var(--tilt) * var(--show)))
    scale(calc(.5 + .5 * var(--show)));
}
.lp-app b {
  width: 72px; height: 72px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--paper);
  background: var(--bg); border: 2px solid var(--paper); border-radius: 18px; box-shadow: 4px 4px 0 rgba(8,24,48,.45);
}
.lp-app span {
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 8px; font-size: 12px; color: var(--ink-dark); background: var(--ink); border-radius: 4px;
}

/* Scene 5: sharing. In plant-waterer's panel the toggle flips to Public and the address is copied;
   then the window steps back and the drawing inks itself in: the link has reached friends. */
.lp-show { --len: 2.5; }
.lp-show .lp-visual {
  --flip: clamp(0, (var(--p) - .1) / .06, 1);
  --copied: clamp(0, (var(--p) - .26) / .04, 1);
  --away: clamp(0, (var(--p) - .38) / .08, 1);
  display: flex; align-items: center; justify-content: center;
}
.lp-show__win {
  --wx: calc(50% - min(260px, 50%)); --wy: 4%; --ww: min(520px, 100%); --wh: min(340px, 52vh);
  --slide: 1; --swap: var(--flip);
  opacity: calc(1 - var(--away)); scale: calc(1 - .2 * var(--away));
}
.lp-show__win .copy { --swap: var(--copied); }
.lp .lp-show__win .segmented .lp-seg__private {
  background: color-mix(in srgb, var(--paper) calc((1 - var(--flip)) * 100%), transparent);
  color: color-mix(in srgb, var(--panel) calc((1 - var(--flip)) * 100%), var(--paper));
}
.lp .lp-show__win .segmented .lp-seg__public {
  background: color-mix(in srgb, var(--paper) calc(var(--flip) * 100%), transparent);
  color: color-mix(in srgb, var(--panel) calc(var(--flip) * 100%), var(--paper));
}
.lp-drawing { --draw: clamp(0, (var(--p) - .4) / .3, 1); position: relative; width: min(600px, 100%); }
.lp-drawing .lp-dot--mat { fill: var(--mat); stroke: var(--paper); stroke-width: 1.5; }
.lp-drawing .lp-leaf { fill: var(--paper); stroke: none; opacity: var(--draw); }
.lp-drawing svg {
  display: block; width: 100%; height: auto;
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.lp-drawing [pathLength] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.lp-drawing .lp-spark { stroke: var(--yellow); }
.lp-dot { fill: var(--ink); stroke: none; opacity: var(--draw); }
.lp-bubble {
  --show: clamp(0, (var(--p) - var(--at)) / .05, 1);
  position: absolute; max-width: 14em; margin: 0; padding: 10px 14px;
  font-size: 15px; color: var(--ink-dark); background: var(--paper); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow);
  opacity: var(--show); scale: calc(.6 + .4 * var(--show));
}
.lp-bubble::after {
  content: ""; position: absolute; bottom: -9px;
  border: 9px solid transparent; border-top-color: var(--paper); border-bottom: 0;
}
.lp-bubble--left { left: 0; top: 4%; transform-origin: 30% 100%; }
.lp-bubble--left::after { left: 28%; }
.lp-bubble--right { right: 0; top: 0; transform-origin: 70% 100%; }
.lp-bubble--right::after { right: 28%; }

/* Staged bench windows: the bench's real .window chrome from bench.css, placed inside a scene.
   bench.css pins .window to the viewport and, on phones, makes it full-screen with !important,
   hides the preview and makes the panel static; inside .lp all of that is undone. */
.lp-win { z-index: 1; }
.lp .lp-win {
  position: absolute; right: auto; bottom: auto;
  left: var(--wx, 0); top: var(--wy, 0); width: var(--ww, 440px); height: var(--wh, 330px);
  border: 2px solid var(--paper); border-radius: var(--radius-window); box-shadow: 10px 12px 0 var(--shadow);
}
.lp .lp-win .window__bar { cursor: default; }
.lp .lp-win .window__preview { display: flex; }
.lp .lp-win .window__panel {
  position: absolute; top: 38px; right: 0; bottom: 0; width: min(220px, 70%);
  border-left: 2px solid var(--paper); box-shadow: -8px 0 0 var(--shadow);
  visibility: visible; transition: none;
  transform: translateX(calc((1 - var(--slide, 0)) * (100% + 8px)));
}
.lp .lp-win .panel-toggle { display: flex; }
.lp .lp-win .lp-seg__private { background: var(--paper); color: var(--panel); }
.lp-url { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.lp-url__text { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.lp-lock { flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.lp-swap { display: inline-grid; }
.lp-swap > * { grid-area: 1 / 1; }
.lp-swap__off { opacity: calc(1 - var(--swap, 0)); }
.lp-swap__on { opacity: var(--swap, 0); }

/* Mini-apps inside the staged windows */
.lp-mini {
  flex-grow: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ink-dark); background: var(--paper);
}
.lp-mini__button { padding: 6px 16px; font-size: 13px; font-weight: 700; color: var(--paper); background: var(--mat); border-radius: 8px; }
.lp-plant svg { fill: none; stroke: var(--mat); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-plant__gauge { width: 50%; height: 10px; border: 2px solid var(--blueprint-deep); border-radius: 5px; overflow: hidden; }
.lp-plant__gauge i { display: block; width: 70%; height: 100%; background: var(--blueprint-deep); }
.lp-pomo__ring {
  width: 110px; height: 110px; display: grid; place-items: center;
  border: 8px solid var(--red); border-right-color: color-mix(in srgb, var(--red) 25%, transparent); border-radius: 50%;
  font-family: var(--font-display); font-size: 20px;
}
.lp-pomo .lp-mini__button { background: var(--red); }

/* Scene 3: desktop. plant-waterer opens out of its icon, pomodoro opens over it and plant-waterer is
   dragged aside, then plant-waterer is clicked back to the front. */
.lp-desk { --len: 2.5; }
.lp-desk .lp-visual {
  --open: clamp(0, (var(--p) - .05) / .18, 1);
  --open2: clamp(0, (var(--p) - .3) / .1, 1);
  --drag: clamp(0, (var(--p) - .4) / .12, 1);
  --raise: clamp(0, (var(--p) - .58) / .01, 1);
}
.lp-desk__bench { position: absolute; left: 2%; top: 2%; }
.lp-desk__bench .lp-app { --show: 1; }
.lp-desk__plant {
  --wx: 36%; --wy: 6%; --ww: min(460px, 60%); --wh: min(340px, 52vh);
  z-index: calc(1 + 2 * var(--raise));
  transform-origin: -78% 6%; /* grows out of the plant-waterer icon, to the left */
  opacity: var(--open);
  scale: calc(.15 + .85 * var(--open));
  translate: calc(var(--drag) * -10%) calc(var(--drag) * 16%);
}
.lp-desk__pomo {
  --wx: 52%; --wy: 18%; --ww: min(380px, 50%); --wh: min(300px, 46vh);
  z-index: 2; transform-origin: -110% 30%; /* grows out of the pomodoro icon */
  opacity: var(--open2);
  scale: calc(.6 + .4 * var(--open2));
}
.lp-desk__cursor {
  position: absolute; z-index: 5; right: auto; bottom: auto;
  animation: lp-desk-cursor 1s linear paused both;
  animation-delay: calc(var(--p) * -1s);
}
@keyframes lp-desk-cursor {
  /* Icons are fixed-size and the windows are capped in px, so the heights mix % of the stage with px. */
  0%   { left: 70%; top: 70%; }
  12%  { left: 6%;  top: 10%; }                  /* on the plant-waterer icon */
  30%  { left: calc(2% + 185px); top: calc(2% + 165px); }     /* on the pomodoro icon */
  40%  { left: 44%; top: 10%; }                  /* grabs plant-waterer's title bar */
  52%  { left: 40%; top: calc(6% + 80px); }      /* drags it aside */
  58%  { left: 39%; top: calc(6% + 204px); }     /* clicks it to the front */
  100% { left: 39%; top: calc(6% + 204px); }
}

/* Scene 4: the address. Zoom into plant-waterer's address bar while it types itself out and the
   padlock closes; then a phone slides in, picks "Add to Home Screen" and gets the icon. */
.lp-addr { --len: 2; }
.lp-addr .lp-visual {
  --zoom: clamp(0, var(--p) / .12, 1) * (1 - clamp(0, (var(--p) - .42) / .08, 1));
  --type: clamp(0, (var(--p) - .08) / .26, 1);
  --lock: clamp(0, (var(--p) - .34) / .04, 1);
  --phone: clamp(0, (var(--p) - .45) / .1, 1);
  --sheet: clamp(0, (var(--p) - .58) / .08, 1) * (1 - clamp(0, (var(--p) - .8) / .05, 1));
  --pick: clamp(0, (var(--p) - .7) / .04, 1);
  --land: clamp(0, (var(--p) - .84) / .08, 1);
}
.lp-addr__win {
  --wx: 8%; --wy: 4%; --ww: min(520px, 56%); --wh: min(340px, 42vh);
  transform-origin: 30% 0;
  scale: calc(1 + var(--zmax, .5) * var(--zoom));
  translate: calc(var(--phone) * -2%) 0;
}
.lp-addr .lp-url__text { max-width: calc(var(--type) * 36ch); }
.lp-addr .lp-lock { opacity: clamp(.3, var(--lock), 1); }
.lp-lock__shackle { translate: 0 calc((1 - var(--lock, 1)) * -2.5px); }

.lp-phone {
  position: absolute; right: 6%; top: 4%; z-index: 2;
  width: min(190px, 40vw); aspect-ratio: 9 / 18; max-height: 62vh;
  padding: 10px; border: 2.5px solid var(--ink); border-radius: 28px; background: var(--blueprint-deep);
  box-shadow: 8px 8px 0 var(--shadow);
  opacity: var(--phone); translate: calc((1 - var(--phone)) * 60px) 0;
}
.lp-phone__screen {
  position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 10px 8px; border-radius: 20px; background: var(--page);
}
.lp-phone__address {
  padding: 4px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 9px; color: var(--ink-dark); background: var(--paper); border-radius: 999px;
}
.lp-phone__home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-phone__home li { aspect-ratio: 1; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--paper); }
.lp-phone__new {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; color: var(--paper);
  opacity: var(--land); scale: calc(.4 + .6 * var(--land));
}
.lp-phone__sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px; padding: 10px 8px;
  font-size: 10px; color: var(--ink-dark); background: var(--paper); border-radius: 14px 14px 0 0;
  translate: 0 calc((1 - var(--sheet)) * 105%);
}
.lp-phone__sheet span { padding: 6px 8px; border-radius: 6px; }
.lp-phone__pick { background: color-mix(in srgb, var(--yellow) calc(var(--pick) * 100%), transparent); font-weight: 700; }

/* Under the hood: short facts for the curious and for self-hosters. */
.lp-hood { padding: 96px 16px 0; text-align: center; }
.lp-hood h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 4vw, 36px); }
.lp-hood__sub { margin: 12px auto 40px; max-width: 36em; font-size: 15px; opacity: .85; }
.lp-hood__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px;
  max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; text-align: left;
}
.lp-hood__card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--blueprint-deep); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--shadow);
}
.lp-hood__card svg { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-hood__card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.3; color: var(--yellow); }
.lp-hood__card p { margin: 0; font-size: 14px; line-height: 1.5; }
.lp-hood__card code { padding: 0 4px; font-family: inherit; color: var(--ink-dark); background: var(--ink); border-radius: 3px; }

/* Two ways to get a bench */
.lp-ways { padding: 96px 16px; text-align: center; }
.lp-ways h2 { margin: 0 0 40px; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 4vw, 36px); }
.lp-ways__cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 420px));
  justify-content: center; gap: 24px;
}
.lp-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; text-align: left;
  background: var(--blueprint-deep); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--shadow);
}
.lp-card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--yellow); }
.lp-card p { flex-grow: 1; margin: 0; font-size: 15px; line-height: 1.5; }
.lp-button {
  display: inline-block; padding: 10px 18px; font-weight: 700; text-decoration: none;
  color: var(--ink-dark); background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px;
}
.lp-button:hover { color: var(--ink-dark); background: var(--yellow-light); }
.lp-top__login:focus-visible, .lp-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lp-footer { padding: 24px 16px 40px; border-top: 1.5px dashed rgba(234,242,255,.4); font-size: 13px; text-align: center; }

@keyframes lp-desk-cursor-phone {
  0%   { left: 70%; top: 70%; }
  12%  { left: 15%; top: 5%; }
  30%  { left: 50%; top: 20%; }
  40%  { left: 36%; top: 8%; }
  52%  { left: 40%; top: 23%; }
  58%  { left: 30%; top: 50%; }
  100% { left: 30%; top: 50%; }
}

/* Narrow desktops and tablets: keep both windows inside the stage (they overlap the icons, like on a desk). */
@media (min-width: 768px) and (max-width: 1023px) {
  .lp-desk__plant { --wx: 32%; --ww: 58%; }
  .lp-desk__pomo { --wx: 46%; --ww: 50%; }
}

@media (max-width: 767px) {
  .lp-top { padding: 0 16px; }
  .lp-top .brand { font-size: 18px; }
  .lp-long { display: none; }
  .lp-short { display: inline; }
  .lp-top__actions { gap: 8px; }
  .lp-top .lp-button--small, .lp-top__login { padding: 6px 10px; font-size: 14px; }
  .lp.js .lp-captions { height: 3.9em; }
  .lp-pile { --len: 2; --rate: 19; --total: 12; --spread: .3; }
  .lp-window { width: min(320px, 100%); }
  .lp-window__grid { grid-template-columns: repeat(4, 1fr); min-height: 212px; }
  .lp-folder:nth-child(n+13) { display: none; }
  .lp-intake { --len: 2; --tx: 40%; --ty: 84%; }
  .lp-heap__folder {
    left: calc(var(--mx) + (var(--tx) - var(--mx)) * var(--fly));
    top: calc(var(--my) + (var(--ty) - var(--my)) * var(--fly));
  }
  .lp-tray { left: 0; right: 0; bottom: 0; width: auto; padding: 12px 16px; }
  .lp-tray svg { width: 40px; height: 40px; }
  .lp-benchwrap { left: 0; right: 0; top: 0; }
  .lp-bench { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .lp-app b { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
  .lp .lp-win { left: var(--wx, 0) !important; top: var(--wy, 0) !important; width: var(--ww) !important; height: var(--wh) !important; border: 2px solid var(--paper); border-radius: var(--radius-window); box-shadow: 6px 8px 0 var(--shadow); }
  .lp-desk { --len: 2; }
  .lp-desk__bench { left: 0; right: 0; }
  .lp-desk__plant { --wx: 0%; --wy: 4%; --ww: calc(100% - 8px); --wh: min(320px, 50vh); transform-origin: 15% 4%; translate: 0 calc(var(--drag) * 30%); }
  .lp-desk__pomo { --wx: 6%; --wy: 12%; --ww: 88%; --wh: min(280px, 44vh); transform-origin: 50% 20%; }
  .lp-desk__cursor { animation-name: lp-desk-cursor-phone; }
  .lp .lp-win .window__panel { width: 75%; }
  .lp-addr__win { --wx: 1%; --wy: 2%; --ww: 92%; --wh: min(260px, 40vh); --zmax: .06; /* 92% x 1.06 stays inside the stage; was 76% x 1.3 */  transform-origin: 0 0; opacity: calc(1 - var(--phone)); translate: none; }
  .lp-addr .lp-win .panel-toggle, .lp-addr .addressbar__led { display: none; } /* room for the whole address */
  .lp-addr .lp-url__text { font-size: 11px; }
  .lp-phone { left: 50%; right: auto; width: min(200px, 60vw); max-height: 58vh; translate: -50% calc((1 - var(--phone)) * 40px); }
  .lp-show { --len: 2; }
  .lp-show__win { --wx: 0%; --ww: calc(100% - 8px); --wh: min(300px, 46vh); }
  .lp-bubble { padding: 6px 10px; font-size: 12px; }
  .lp-bubble--left { top: -8%; }
  .lp-bubble--right { top: -14%; }
}

@media (max-width: 419px) {
  .lp-top { padding: 0 12px; }
  .lp-top .brand { font-size: 14px; gap: 8px; }
  .lp-top .brand svg { width: 26px; height: 26px; }
  .lp-top__actions { gap: 6px; }
  .lp-top .lp-button--small, .lp-top__login { padding: 5px 8px; font-size: 13px; }
}

.lp:not(.js) .lp-desk__cursor { display: none; }

.lp:not(.js) .lp-addr .lp-visual { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 24px; }
.lp:not(.js) .lp-addr__win, .lp:not(.js) .lp-phone { position: relative; left: auto; right: auto; top: auto; translate: none; scale: none; opacity: 1; }
.lp:not(.js) .lp-addr__win { left: auto !important; top: auto !important; width: min(520px, 100%) !important; height: 320px !important; }
.lp:not(.js) .lp-phone { height: 380px; }
.lp:not(.js) .lp-phone__sheet { display: none; }

.lp:not(.js) .lp-show .lp-visual { flex-direction: column; gap: 32px; }
.lp:not(.js) .lp-show__win { position: relative; left: auto; top: auto; opacity: 1; scale: none; width: min(520px, 100%) !important; height: 300px !important; }
.lp:not(.js) .lp-show .lp-drawing { margin-top: 28px; }
