/* sunsprout.app home page controls (23 November 2026, the owner: "theres no scroll button on some dots and its hidden?").
   Loaded after the board's styles and the layers; scripts/home-controls.js and the film's own script drive them. */

/* 1. The bar. Its six section links, About and the two buttons need about 1,060 px on one line. Below 821 px the board
   hid the links with nothing in their place; from 821 to about 1,060 px they wrapped onto two lines, and up to 854 px
   Try it free was cut off at the edge. Up to 1,100 px they fold into the Menu (styles/site-menu.css), which lists
   every one of them, and above it they stay on one line. */
@media (max-width: 1100px) {
  .top .wrap > nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .top .menu:not([hidden]) { display: block; }
}
.top .wrap > nav a { white-space: nowrap; }

/* 2. The film's dots sit on a small tab of paper, so they read over the iMac's screen and over the trees of the last
   dot, where they disappeared before. Each dot is a 28 px target; they keep their spacing and their colours. */
#film .rail { gap: 0; padding: 4px 0; border-radius: 999px; background: rgba(20,16,12,.42); }
#film .lt .rail { background: rgba(250,248,244,.86); box-shadow: 0 1px 6px rgba(28,23,18,.12); }
#film .rail button { width: 18px; height: 28px; justify-content: center; }
#film .lt .rail i { background: rgba(28,23,18,.32); }

/* 3. Scroll is a button now. It shows on every dot as soon as that dot's words are in, the last dot included, and one
   press goes one dot on; after the last dot it lands Compare, as a swipe does. On a wide screen it sits right under
   the dots, on their centre line, instead of alone in the corner. */
#film .next { margin: 0; padding: 7px 5px 6px; border: 0; border-radius: 14px; background: rgba(20,16,12,.42); color: #F6EEE2; font: inherit;
  font-size: 12.5px; line-height: 1.2; cursor: pointer; visibility: hidden; transition: opacity .6s, visibility 0s linear .6s;
  -webkit-tap-highlight-color: transparent; }
/* On its own paper tab, like the dots, so it reads over the trees of the last dot and the pixels of the second. */
#film .lt .next { background: rgba(250,248,244,.86); box-shadow: 0 1px 6px rgba(28,23,18,.12); }
#film .next.on { visibility: visible; pointer-events: auto; transition: opacity .6s; }
#film .next:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 10px; }
@media (min-width: 760px) {
  #film .next { top: calc(50% + 88px); bottom: auto; right: calc(clamp(12px, 2vw, 28px) + 9px); transform: translateX(50%); }
}

/* 4. Help topics. On a narrow screen the strip still scrolls sideways, and now it shows it: the side with more topics
   fades out under a round arrow that brings the next ones in (scripts/home-controls.js shows each arrow only while
   there is more that way). The sticky bar is the strip's new frame, so the arrows stay put while the chips move. */
.toc2-bar { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 5; margin-block: -12px; background: var(--card2); }
.toc2-bar > .toc2 { position: static; margin-block: 0; }
.toc2-go { position: absolute; top: 0; bottom: 0; z-index: 1; width: 64px; display: flex; align-items: center; padding: 0; border: 0; background: none;
  color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.toc2-go[hidden] { display: none; }
.toc2-go.next { right: 0; justify-content: flex-end; background: linear-gradient(90deg, transparent, var(--card2) 50%); }
.toc2-go.prev { left: 0; justify-content: flex-start; background: linear-gradient(270deg, transparent, var(--card2) 50%); }
.toc2-go svg { width: 36px; height: 36px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line2); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.toc2-go:hover svg { box-shadow: inset 0 0 0 1px var(--ink3); }
.toc2-go:focus-visible { outline: none; }
.toc2-go:focus-visible svg { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 5. The fourth dot's UnPink offer was wider than a phone: its Get UnPink key ran off the right edge, cut by the film's
   frame. On a phone the offer wraps its words and puts Get UnPink on a line of its own, the full width of the offer. */
@media (max-width: 520px) {
  #film .offer { flex-wrap: wrap; max-width: 100%; border-radius: 24px; row-gap: 8px; }
  #film .offer .otx { flex: 1 1 0; min-width: 0; }
  #film .offer .otx b, #film .offer .otx small { white-space: normal; }
  #film .offer .go { flex: 1 0 100%; justify-content: center; }
}
