/* Shared landing page layer: sticky header with phone menu, entrance and reveal motion, phone frame, questions.
   Colours come from the page: --lp-bg (header ground), --lp-ink, --lp-line, --lp-accent. */
html { scroll-behavior: smooth; }
main [id] { scroll-margin-top: 76px; }
.lp-sticky { position: sticky; top: 0; z-index: 30; background: var(--lp-bg, #fff); box-shadow: 0 0 0 100vmax var(--lp-bg, #fff); clip-path: inset(0 -100vmax); transition: filter .2s; }
.lp-sticky.is-stuck { clip-path: inset(0 -100vmax -1px); box-shadow: 0 0 0 100vmax var(--lp-bg, #fff), 0 1px 0 100vmax var(--lp-line, #dfe2e6); }
.lp-menu { display: none; }
@media (max-width: 900px) {
  .lp-js .lp-sticky { gap: 10px; }
  .lp-js .lp-menu { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--lp-line, #dfe2e6); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
  .lp-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .lp-menu .is-x, .menu-open .lp-menu .is-bars { display: none; }
  .menu-open .lp-menu .is-x { display: block; }
  .lp-sticky.menu-open, .lp-sticky.menu-open.is-stuck { clip-path: none; box-shadow: 0 1px 0 var(--lp-line, #dfe2e6); }
  .lp-sticky.menu-open > nav { display: grid; position: absolute; top: 100%; left: 12px; right: 12px; gap: 0; margin: 0; padding: 6px; border: 1px solid var(--lp-line, #dfe2e6); border-radius: 12px; background: var(--lp-bg, #fff); box-shadow: 0 24px 40px -20px rgba(15, 20, 28, .35); animation: lp-drop .18s ease-out; }
  .lp-sticky.menu-open > nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; }
}
@keyframes lp-drop { from { opacity: 0; transform: translateY(-6px); } }

/* Entrance on load and a single rise as each block first comes into view */
@media (prefers-reduced-motion: no-preference) {
  .lp-js main > section:first-child > * { animation: lp-rise .7s cubic-bezier(.22, 1, .36, 1) backwards; }
  .lp-js main > section:first-child > :nth-child(2) { animation-delay: .14s; }
  .lp-js main > section:first-child > :nth-child(3) { animation-delay: .26s; }
  .rv { opacity: 0; transform: translateY(22px); }
  .rv.in { opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s cubic-bezier(.22, 1, .36, 1); }
  .rv .xc-h .xc-area i { transform: scaleX(0); transform-origin: left; }
  .rv .xc-v .xc-colbar { transform: scaleY(0); transform-origin: bottom; }
  .rv.in .xc-h .xc-area i, .rv.in .xc-v .xc-colbar { transform: none; transition: transform .8s cubic-bezier(.22, 1, .36, 1) .25s; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } }
@media print { .rv { opacity: 1; transform: none; } }

/* Phone frame at real handset proportions. The picture inside is a 390 x 780 screenshot of the app.
   Set --dev-top and --dev-ink to match the top of the screenshot, --dev-foot to match its tab bar. */
.dev { position: relative; flex: none; width: min(280px, 100%); margin: 0 auto; padding: 9px; border-radius: 50px; background: #15181d; box-shadow: inset 0 0 0 1.5px #454b55, 0 34px 50px -30px rgba(15, 20, 28, .65), 0 10px 22px -14px rgba(15, 20, 28, .4); }
.dev::before, .dev::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: #2b3038; }
.dev::before { left: -3px; top: 108px; height: 96px; }
.dev::after { right: -3px; top: 148px; height: 64px; }
.dev-screen { overflow: hidden; border-radius: 42px; background: var(--dev-foot, #fff); }
.dev-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 2px 20px 0 27px; background: var(--dev-top, #fff); color: var(--dev-ink, #111418); font: 700 12.5px/1 system-ui, sans-serif; }
.dev-island { position: absolute; top: 8px; left: 50%; width: 31%; height: 21px; transform: translateX(-50%); border-radius: 99px; background: #000; }
.dev-sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.dev-sig i { width: 2.5px; border-radius: 1px; background: currentColor; }
.dev-sig i:nth-child(1) { height: 4px; } .dev-sig i:nth-child(2) { height: 6px; } .dev-sig i:nth-child(3) { height: 8px; } .dev-sig i:nth-child(4) { height: 10px; }
.dev-sig em { width: 21px; height: 10px; margin-left: 5px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) 2px 50% / 13px 5px no-repeat; }
.dev-shot { position: relative; aspect-ratio: 390 / 780; overflow: hidden; background: linear-gradient(90deg, #e9ecef 25%, #f6f7f8 50%, #e9ecef 75%) 0 0 / 200% 100%; }
.dev-shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.lp-js .dev-shot:not(.is-loaded) { animation: lp-shimmer 1s linear infinite; }
.lp-js .dev-shot img { opacity: 0; transition: opacity .45s ease-out; }
.lp-js .dev-shot.is-loaded img { opacity: 1; }
@keyframes lp-shimmer { to { background-position: -200% 0; } }
.dev-foot { height: 15px; }

/* Questions before a build */
.lp-qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 56px; align-items: start; }
.lp-qa > div > p { margin-top: 10px; }
.lp-qa details { border-top: 1px solid var(--lp-line, #dfe2e6); }
.lp-qa details:last-child { border-bottom: 1px solid var(--lp-line, #dfe2e6); }
.lp-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 8px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid var(--lp-accent, currentColor); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lp-qa details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lp-qa details p { max-width: 62ch; margin: 0; padding: 0 2px 18px; }
.lp-qa details[open] p { animation: lp-drop .22s ease-out; }
@media (max-width: 900px) { .lp-qa { grid-template-columns: minmax(0, 1fr); } }
