/* HOME PAGE — SCREENSHOT FRAMES.
   An app window (its title bar is drawn here, not baked into the pictures), a phone, the "stack" that overlaps a
   second picture on the first, and the tab switcher of the Planning band. Every <img> carries width/height, so the
   frames hold their size before the pictures arrive. */

.lp-frame { position: relative; margin: 0; overflow: hidden; background: #fff; border: var(--border);
  border-radius: 16px; box-shadow: 8px 8px 0 rgba(61, 61, 74, .16); }
.lp-frame::before { content: ""; display: block; height: 28px; border-bottom: var(--border-sm);
  background:
    radial-gradient(circle at 18px 50%, var(--pink) 0 4.5px, var(--ink) 5px 6px, transparent 6.5px),
    radial-gradient(circle at 36px 50%, var(--yellow) 0 4.5px, var(--ink) 5px 6px, transparent 6.5px),
    radial-gradient(circle at 54px 50%, var(--lime) 0 4.5px, var(--ink) 5px 6px, transparent 6.5px),
    #F4F7FB; }
.lp-frame--bare::before { display: none; }
.lp-frame img, .lp-phone img { display: block; width: 100%; height: auto; background: #F6F8FB; cursor: zoom-in; }
.lp-frame figcaption { padding: 10px 16px 12px; border-top: var(--border-sm); background: #fff;
  font-size: .9rem; font-weight: 800; }

/* A phone: the ink bezel is the outline, the screen keeps its own rounded corners. */
.lp-phone { position: relative; width: 100%; max-width: 260px; margin: 0; padding: 9px; border-radius: 34px;
  background: var(--ink-strong); box-shadow: 8px 8px 0 rgba(61, 61, 74, .16); }
.lp-phone img { border-radius: 26px; }
.lp-phone figcaption { padding: 9px 4px 3px; color: #fff; text-align: center; font-size: .88rem; font-weight: 900; }

/* ── A stack: a main picture and a smaller one overlapping its lower corner ──
   The container says which corner (--left / --right); the main frame steps aside on that side so the overlap
   covers its edge, not its middle. The stack's own caption sits under the whole composition. */
.lp-stack { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.lp-stack > * { grid-column: 1; }
.lp-stack > .lp-frame:first-child, .lp-stack-sub, .lp-stack-phone { grid-row: 1; }
.lp-stack-sub, .lp-stack-phone { z-index: 2; align-self: end; margin-bottom: -14%; }
.lp-stack-sub { width: 56%; }
.lp-stack-phone { width: 30%; max-width: 200px; }
.lp-stack--left > .lp-frame:first-child { margin-left: 10%; }
.lp-stack--right > .lp-frame:first-child { margin-right: 10%; }
.lp-stack--left .lp-stack-sub, .lp-stack--left .lp-stack-phone { justify-self: start; transform: rotate(-2deg); }
.lp-stack--right .lp-stack-sub, .lp-stack--right .lp-stack-phone { justify-self: end; transform: rotate(2deg); }
.lp-stack-cap { grid-row: 2; margin-top: calc(14% + 18px); font-size: .9rem; font-weight: 800; text-align: center; }

/* ── Tabs (Planning) ──────────────────────────────────────────────────────── */
.lp-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%;
  margin: 0 auto 22px; padding: 6px; background: #fff; border: var(--border); border-radius: 22px;
  box-shadow: var(--shadow-sm); }
.lp-tablist [role="tab"] { padding: 8px 16px; border: 2px solid transparent; border-radius: 999px; background: none;
  color: var(--ink); font: inherit; font-size: .95rem; font-weight: 900; cursor: pointer; }
.lp-tablist [role="tab"]:hover { background: #F4F7FB; }
.lp-tablist [role="tab"][aria-selected="true"] { background: var(--yellow); border-color: var(--ink); }
.lp-tablist[hidden] ~ .lp-tabpanel + .lp-tabpanel { margin-top: 22px; }   /* no JS: the views stacked */
.lp-frame--wide { max-width: 1100px; margin-inline: auto; }

@media (max-width: 560px) {
  .lp-stack-sub { width: 64%; }
  .lp-stack-phone { width: 36%; }
}
