/* ==========================================================================
   Glass light (js/glass-light.js), the app's technical round 17 on the site:
   the light on the rims of the glass surfaces, seen through a ring just inside
   each edge; a fainter glint on the far side; white glass also gets a soft
   darker edge and a shade away from the light, under its content.
   Strips move with transform only; the gradients are the app's tokens.
   ========================================================================== */
:root {
  --gl-rim: 1.5px; --gl-inset: 1px;
  --gl-glint: linear-gradient(rgb(255 255 255 / 1), rgb(255 255 255 / .92) 6%, rgb(255 255 255 / .62) 15%, rgb(255 255 255 / .32) 30%, rgb(255 255 255 / .14) 50%, rgb(255 255 255 / .04) 75%, rgb(255 255 255 / 0));
  --gl-opp: linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .32) 6%, rgb(255 255 255 / .22) 15%, rgb(255 255 255 / .11) 30%, rgb(255 255 255 / .05) 50%, rgb(255 255 255 / .01) 75%, rgb(255 255 255 / 0));
  --gl-glint-ink: linear-gradient(rgb(255 255 255 / .95), rgb(255 255 255 / .87) 6%, rgb(255 255 255 / .59) 15%, rgb(255 255 255 / .3) 30%, rgb(255 255 255 / .13) 50%, rgb(255 255 255 / .04) 75%, rgb(255 255 255 / 0));
  --gl-opp-ink: linear-gradient(rgb(255 255 255 / .4), rgb(255 255 255 / .37) 6%, rgb(255 255 255 / .25) 15%, rgb(255 255 255 / .13) 30%, rgb(255 255 255 / .06) 50%, rgb(255 255 255 / .02) 75%, rgb(255 255 255 / 0));
  --gl-shade: linear-gradient(rgb(21 21 20 / .13), rgb(21 21 20 / .12) 6%, rgb(21 21 20 / .08) 15%, rgb(21 21 20 / .04) 30%, rgb(21 21 20 / .02) 50%, rgb(21 21 20 / .01) 75%, rgb(21 21 20 / 0));
  --gl-edge: inset 0 0 0 1px rgb(21 21 20 / .07), inset 0 0 7px 1px rgb(21 21 20 / .05);
}
:root[data-theme="dark"] {
  --gl-inset: .5px;
  --gl-opp: linear-gradient(rgb(255 255 255 / .45), rgb(255 255 255 / .41) 6%, rgb(255 255 255 / .28) 15%, rgb(255 255 255 / .14) 30%, rgb(255 255 255 / .06) 50%, rgb(255 255 255 / .02) 75%, rgb(255 255 255 / 0));
  --gl-glint-ink: var(--gl-glint); --gl-opp-ink: var(--gl-opp);
}
.gl-host { isolation: isolate; }
.gl-ring { position: absolute; inset: var(--gl-inset); z-index: 6; border-radius: inherit; padding: var(--gl-rim); pointer-events: none; contain: strict;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.gl-depth { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; contain: strict; }
.gl-depth::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--gl-edge); }
.gl-glint, .gl-shade { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; will-change: transform; }
.gl-glint { background: var(--gl-glint); }
.gl-opp { background: var(--gl-opp); }
.gl-shade { background: var(--gl-shade); }
.gl-dark .gl-glint, .gl-metal .gl-glint { background: var(--gl-glint-ink); }
.gl-dark .gl-opp, .gl-metal .gl-opp { background: var(--gl-opp-ink); }
:root[data-theme="dark"] .gl-depth { display: none; }
/* The phone's frame: the light runs on the metal band itself. */
.gl-metal { inset: calc(var(--metal, 3px) * -1); padding: var(--metal, 3px); z-index: 7; mix-blend-mode: screen; opacity: .9; }
/* The nav capsule's glass is its ::before: the ring follows the capsule's own radius. */
.nav-bar > .gl-ring { border-radius: 999px; opacity: 0; transition: opacity .45s ease; }
.nav.is-condensed .nav-bar > .gl-ring { opacity: 1; }
:root.gl-off :is(.gl-ring, .gl-depth) { display: none; }
@media (prefers-reduced-transparency: reduce) { :is(.gl-ring, .gl-depth) { display: none; } }
/* White glass that carries the light drops its white inner lines (they would hide a white light), as the app's head
   does; it keeps its outer shadow. */
:root:not([data-theme="dark"]) .gl-host:has(> .gl-depth):not(.plan-pro) { box-shadow: 0 1px 2px rgb(21 21 20 / .05), 0 18px 36px -24px rgb(21 21 20 / .3); }
