/* The section dock: a small menu at the foot of the window, in the
   bottom-left corner, that names the part of the page in view, changes as
   the page scrolls, and opens upward into the list of them all; a tap takes
   you to a part (section-dock.js builds it from the page's [data-dock]
   parts).

   It began on the home page on 18 Nov 2026, after the one on
   wealthsimple.com's pages, which the user showed. On 19 Nov the user set
   the rule for the whole site: "when there is a index page feature page
   make it like on side, when page like faq make at bottom bar". So pages
   that tell the product (the home page, Features, Apricity's page) have
   this dock at the side, in place of a bar of sets pinned under the top
   bar; pages that are lists to look things up in (FAQ, Help & Support) have
   their topics in a bar along the foot (faq.css .faq-pills). */

/* It wears the top bar's own clear glass, as the user asked ("we already
   use glass menu on top bar compare, use that way"): the oval is the bar's
   glass, and the list is the Compare menu's (navigation.js), a little more
   frosted so its words read over what passes under it, with the same
   links: ink on olive under the pointer, a terracotta dot by the part in
   view. Each piece fades itself; the holder never does, since a part-faded
   holder would cut the glass off from what's behind it. */
.section-dock {
  position: fixed;
  left: max(16px, calc(env(safe-area-inset-left) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 45;
  visibility: hidden;
  transition: visibility 0s linear .35s;
}

.section-dock.is-on {
  visibility: visible;
  transition: visibility 0s;
}

.section-dock__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 128px;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px 8px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .05), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .14), 0 12px 32px -22px rgba(11, 11, 11, .3);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  backdrop-filter: blur(14px) saturate(1.7);
  color: var(--ink, #191714);
  font-family: var(--font-sans, var(--sans));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}

.section-dock.is-on .section-dock__pill {
  opacity: 1;
  transform: none;
}

.section-dock.is-on .section-dock__pill:active {
  transform: scale(.98);
}

html[data-theme="dark"] .section-dock__pill {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(28, 28, 30, .26);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 32px -22px rgba(0, 0, 0, .6);
}

.section-dock__name {
  flex: 1 1 auto;
  white-space: nowrap;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}

/* (The name slips out upward as the next one comes in from below.) */
.section-dock__name.is-leaving {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
}

.section-dock__name.is-coming {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: none;
}

.section-dock :is(.section-dock__pill, .section-dock__close) svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The list opens from the oval's own corner, over it: the Compare menu's
   glass. */
.section-dock__panel {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 216px;
  max-height: calc(100vh - 140px);
  max-height: calc(100svh - 140px);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 20px;
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .05), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .14), 0 18px 40px -24px rgba(11, 11, 11, .32);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0) scale(.96);
  transform-origin: 0 100%;
  transition: opacity .2s ease, transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .2s;
}

html[data-theme="dark"] .section-dock__panel {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(28, 28, 30, .34);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 44px -20px rgba(0, 0, 0, .6);
}

.section-dock.is-open .section-dock__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
}

.section-dock.is-open .section-dock__pill {
  opacity: 0;
  pointer-events: none;
}

.section-dock__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 4px 12px 4px;
  border: 0;
  background: none;
  color: var(--ink-2, #4c4740);
  cursor: pointer;
}

.section-dock__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-dock__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 13px;
  color: var(--ink-2, #4c4740);
  font-family: var(--font-sans, var(--sans));
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

/* (The dot the top bar's menu puts by the page you're on.) */
.section-dock__list a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.section-dock__list a:hover,
.section-dock__list a:focus-visible {
  background: rgba(115, 124, 71, .1);
  color: var(--ink, #191714);
}

html[data-theme="dark"] .section-dock__list a:hover,
html[data-theme="dark"] .section-dock__list a:focus-visible {
  background: rgba(255, 255, 255, .08);
}

.section-dock__list a.on {
  color: var(--ink, #191714);
}

.section-dock__list a.on::after {
  background: var(--clay, var(--accent-terracotta, #BD6038));
}

.section-dock :is(button, a):focus-visible {
  outline: 2px solid var(--accent-olive, #737C47);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .section-dock__pill,
  .section-dock.is-on .section-dock__pill,
  .section-dock__panel,
  .section-dock.is-open .section-dock__panel,
  .section-dock__name {
    transform: none;
    transition: opacity .2s ease, visibility 0s;
  }
}

/* A jump to a part lands clear of the top bar. */
[data-dock] {
  scroll-margin-top: 112px;
}
