/* Landing polish layer, shared by every demo. Landing pages only; the app does not load it.
   Colour comes from the page's --accent. Everything here still reads correctly without polish.js. */
.pl { --pl-ease: cubic-bezier(.32, .72, 0, 1); --pl-accent: var(--accent, #333); }

/* Reading comfort */
.pl main h1, .pl main h2, .pl main h3 { text-wrap: balance; }
.pl main p, .pl main li { text-wrap: pretty; }
.pl main svg[viewBox="0 0 24 24"]:not([fill="currentColor"]) { stroke-width: 1.6; }

/* Floating bar: flat at the top of the page, a detached pill once the visitor scrolls */
.pl .lp-sticky { position: sticky !important; top: 0; z-index: 30; isolation: isolate; }
.pl .lp-sticky::before { content: ""; position: absolute; z-index: -1; inset: 7px var(--pl-r, 0px) 7px var(--pl-l, 0px); border-radius: 999px; opacity: 0; pointer-events: none; transform: scale(.985); transition: opacity .45s var(--pl-ease), transform .6s var(--pl-ease); }
.pl .lp-sticky.is-stuck:not(.menu-open) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; clip-path: none !important; }
.pl .lp-sticky.is-stuck:not(.menu-open)::before { opacity: 1; transform: none; background: color-mix(in srgb, var(--pl-bar, #fff) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pl-accent) 16%, transparent), 0 18px 36px -22px color-mix(in srgb, var(--pl-accent) 50%, rgba(18, 20, 28, .55)); }

/* Where am I: the menu marks the section on screen */
.pl [data-lp-header] nav a:not(.btn), .pl .nav__links .nav__link { border-radius: 999px; transition: background-color .35s var(--pl-ease), color .35s var(--pl-ease); }
@media (min-width: 901px) {
  .pl [data-lp-header] nav a:not(.btn) { position: relative; isolation: isolate; }
  .pl [data-lp-header] nav a:not(.btn)::after { content: ""; position: absolute; z-index: -1; inset: 50% -11px auto; height: 32px; margin-top: -16px; border-radius: 999px; background: color-mix(in srgb, var(--pl-accent) 11%, transparent); opacity: 0; transform: scale(.9); transition: opacity .35s var(--pl-ease), transform .45s var(--pl-ease); }
  .pl [data-lp-header] nav a:not(.btn):hover::after, .pl [data-lp-header] nav a[aria-current="true"]::after { opacity: 1; transform: none; }
}
.pl .nav__links .nav__link[aria-current="true"] { background: color-mix(in srgb, var(--pl-accent) 12%, transparent); }

/* Buttons: weight on press, and the arrow sits in its own disc */
.pl a.btn, .pl a.btn--primary, .pl a.btn--secondary { transition: transform .5s var(--pl-ease), background-color .35s var(--pl-ease), box-shadow .5s var(--pl-ease), border-color .35s var(--pl-ease); }
.pl a.btn:active, .pl a.btn--primary:active, .pl a.btn--secondary:active { transform: scale(.98); }
.pl a.pl-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px !important; padding-right: 7px !important; white-space: nowrap; }
.pl .pl-orb { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, currentColor 17%, transparent); transition: transform .55s var(--pl-ease); }
.pl .pl-orb svg { width: 15px !important; height: 15px !important; margin: 0 !important; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl [data-lp-header] a.pl-cta { gap: 9px; padding-right: 5px !important; }
.pl [data-lp-header] a.pl-cta .pl-orb { width: 26px; height: 26px; }
/* Narrow phones: the bar has no room for the disc */
@media (max-width: 480px) { .pl [data-lp-header] a.pl-cta, .pl .nav__actions a.pl-cta { padding-right: 14px !important; gap: 0; } .pl [data-lp-header] > a.pl-cta .pl-orb, .pl [data-lp-header] :not(nav) > a.pl-cta .pl-orb, .pl .nav__actions .pl-orb { display: none; } }
@media (hover: hover) { .pl a.pl-cta:hover .pl-orb { transform: translate(3px, -1px) scale(1.06); } }

/* Framed screenshots: an outer tray around the picture. Drawn with shadows, so nothing moves. */
.pl .pl-bezel { box-shadow: 0 0 0 7px color-mix(in srgb, var(--pl-accent) 8%, #fff), 0 0 0 8px color-mix(in srgb, var(--pl-accent) 20%, transparent), 0 46px 80px -44px color-mix(in srgb, var(--pl-accent) 55%, rgba(18, 20, 30, .6)) !important; }
.pl .pl-round { border-radius: 14px; }

/* Room to breathe on wide screens */
@media (min-width: 1000px) { .pl main > section.pl-air { padding-top: 108px; padding-bottom: 108px; } }

/* Menu button: two lines that fold into a cross */
.pl .lp-menu.pl-burger { position: relative; border-radius: 999px; }
.pl .pl-burger i { position: absolute; left: 50%; top: 50%; width: 19px; height: 1.8px; margin: -1px 0 0 -9.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--pl-ease); }
.pl .pl-burger i:nth-child(1) { transform: translateY(-4px); }
.pl .pl-burger i:nth-child(2) { transform: translateY(4px); }
.pl .menu-open .pl-burger i:nth-child(1) { transform: rotate(45deg); }
.pl .menu-open .pl-burger i:nth-child(2) { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .pl .lp-sticky.menu-open > nav { border-radius: 24px; padding: 10px; animation: pl-sheet .5s var(--pl-ease); }
  .pl .lp-sticky.menu-open > nav > a { animation: pl-up .55s var(--pl-ease) backwards; }
  .pl .lp-sticky.menu-open > nav > a:nth-child(1) { animation-delay: .05s; }
  .pl .lp-sticky.menu-open > nav > a:nth-child(2) { animation-delay: .09s; }
  .pl .lp-sticky.menu-open > nav > a:nth-child(3) { animation-delay: .13s; }
  .pl .lp-sticky.menu-open > nav > a:nth-child(4) { animation-delay: .17s; }
  .pl .lp-sticky.menu-open > nav > a:nth-child(5) { animation-delay: .21s; }
  .pl .lp-sticky.menu-open > nav > a:nth-child(n+6) { animation-delay: .25s; }
  .pl .lp-sticky.menu-open > nav > a.btn { justify-content: center; margin-top: 6px; }
}
@keyframes pl-sheet { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes pl-up { from { opacity: 0; transform: translateY(14px); } }

/* Questions open smoothly */
.pl main details[open] > :not(summary) { animation: pl-up .5s var(--pl-ease); }

/* Phones: the way into the demo stays within reach between the first and last screen */
.pl-dock { display: none; }
@media (max-width: 700px) {
  .pl-dock { display: flex; position: fixed; z-index: 25; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 7px 7px 7px 22px; border-radius: 999px; background: color-mix(in srgb, var(--pl-accent) 55%, #12141a); color: #fff; font-weight: 700; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 34px -16px rgba(12, 14, 22, .65); opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .45s var(--pl-ease), transform .55s var(--pl-ease), visibility 0s linear .55s; }
  .pl-dock.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--pl-ease), transform .55s var(--pl-ease); }
  .pl-dock .pl-orb { width: 40px; height: 40px; background: rgba(255, 255, 255, .16); }
}
.pl-dock:focus-visible { outline: 3px solid var(--pl-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .pl *, .pl *::before, .pl-dock { animation: none !important; transition: none !important; } }
@media print { .pl-dock { display: none !important; } }
@media (max-width: 380px) { .pl [data-lp-header] a.pl-cta { white-space: normal; text-align: center; padding-left: 12px; padding-right: 12px !important; } }
/* The older design kit draws its own arrow after a button: the disc replaces it */
html.pl a.btn.pl-cta::after { content: none !important; display: none !important; }
