/* fanout's own page. Loaded after style.css (tokens, buttons, the flyer, the fanout cartoon) and
   product.css (the hero, pinned screenshots, chapters, honest cards, the download panel and the
   Windows warning). fanout's paper is kraft, as on the home page; yellow is the highlighter of a
   file posted everywhere, so it marks the pitch and nothing loud. */

/* ------------------------------------------------------------------ hero, on kraft */
.fop .hero { background: repeating-linear-gradient(90deg, rgb(7 7 5 / .035) 0 2px, transparent 2px 9px), var(--kraft) var(--grain); color: var(--ink); }
.fop .hero .product__no { background: var(--ink); color: var(--yellow); }
.fop .hero__pitch { color: var(--ink); }
.fop .hero__pitch .swipe { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .12em; margin: 0 -.12em; }
.fop .hero__go .btn { box-shadow: .3rem .3rem 0 var(--ink); }
.fop .hero__go .btn:hover { box-shadow: .45rem .45rem 0 var(--ink); }
.fop .hero__go .btn:active { box-shadow: .05rem .05rem 0 var(--ink); }
.fop .hero__more { border-bottom-color: var(--ink); }
.fop .hero__more:hover { color: var(--paper-hi); }
.fop .hero__fine { color: rgb(7 7 5 / .78); }
/* the whole picture stays in view: its right side is fanout's own folder and posted marks */
.fop .hero { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); padding-right: max(1.25rem, calc((100vw - 82rem) / 2)); }
.fop .shot--hero { margin-right: 0; }
.fop .shot--hero img { box-shadow: .7rem .8rem 0 var(--ink); outline-color: rgb(7 7 5 / .6); }

/* ------------------------------------------------------------------ forty tabs */
.tabs-sec { padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem); }
.tabs-sec .shout { max-width: 22ch; }
.tabs-sec__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5.5rem); margin-top: clamp(2rem, 5vw, 3.25rem); align-items: start; }
.tabs-sec__note { margin-top: 2rem; font-size: 1.2rem; rotate: -2deg; width: max-content; max-width: 100%; }
.tabs-sec__why { align-self: start; }

/* ------------------------------------------------------------------ memory, measured (on ink) */
/* three totals from fanout's docs/memory.md as bars of one hue, the asleep one in the highlighter;
   the table is the chart's own table view. A bar is at most 24px thick, square at its base,
   rounded at its end; its value sits at its tip in text colour. */
.mem { margin: clamp(2.25rem, 4.5vw, 3.25rem) 0 0; min-width: 0; max-width: 62rem; }
.mem__bars { width: 100%; border-collapse: collapse; }
.mem__bars caption { text-align: left; padding-bottom: 1rem; font: 400 1.15rem/1.2 var(--hand); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.mem__bars th { width: 30%; padding: .85rem 1.2rem .85rem 0; text-align: left; vertical-align: middle; font-weight: 700; font-size: 1.1rem; color: rgb(247 241 228 / .86); }
.mem__bars td { padding: .85rem 0; }
.mem__bars tr + tr th, .mem__bars tr + tr td { border-top: 1px solid rgb(247 241 228 / .14); }
.mem__row { display: flex; align-items: center; gap: .8rem; }
.mem__bar { flex: none; height: 24px; width: calc(var(--v) / 2724 * (100% - var(--valw, 8.5rem))); background: var(--paper-hi); border-radius: 0 4px 4px 0; }
.mem__bars .is-asleep .mem__bar { background: var(--yellow); }
.mem__bars .is-asleep th { color: var(--paper-hi); }
.mem__val { flex: none; font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); letter-spacing: .01em; color: var(--paper-hi); font-variant-numeric: tabular-nums; }
.mem figcaption { margin-top: 1.1rem; font-size: .95rem; color: rgb(247 241 228 / .68); max-width: 62ch; }
.mem figcaption code { font-size: .82rem; }
.mem-does { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.mem__honest { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 62ch; padding-left: 1.1rem; border-left: .45rem solid var(--yellow); color: var(--paper-hi); font-size: 1.1rem; }

/* ------------------------------------------------------------------ the board, on kraft (fanout's paper) */
.chap--kraft { position: relative; background: repeating-linear-gradient(90deg, rgb(7 7 5 / .035) 0 2px, transparent 2px 9px), var(--kraft) var(--grain); color: var(--ink); padding-block: clamp(4.5rem, 8vw, 6.5rem); }
.chap--kraft::before { content: ""; position: absolute; left: -2%; right: -2%; top: -1.1rem; height: 2.2rem; background: var(--paper) var(--grain); filter: url(#tear); }
.fop .ideas__note { color: var(--ink); }
.fop .ideas__asleep a { font-weight: 700; }

/* ------------------------------------------------------------------ the get-it panel, on ink */
.dl__wait { margin-top: 1.8rem; max-width: 60ch; color: var(--paper-hi); font-size: 1.1rem; }
.dl__self { margin-top: 1.8rem; max-width: 60ch; color: rgb(247 241 228 / .82); }
.dl__wait + .dl__self { margin-top: .9rem; }
.dl__self a { color: var(--paper-hi); font-weight: 700; text-underline-offset: .18em; }

@media (max-width: 60rem) {
  .mem__bars th { width: 36%; font-size: 1rem; }
  /* one column, as product.css has it: .fop .hero above would otherwise keep two and squeeze the picture to nothing */
  .fop .hero { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .tabs-sec__cols { grid-template-columns: 1fr; }
}
@media (max-width: 47.5rem) {
  .mem { --valw: 5.6rem; }
  .mem__bars th { width: 38%; padding-right: .7rem; font-size: .92rem; }
  .mem__val { font-size: 1.3rem; }
  .fop .shot--hero img { box-shadow: .35rem .4rem 0 var(--ink); }
}
