/* Shared by every app page (/drop, /pane) and their releases pages: the app bar, hero, screenshot, features.
   Colours, type, the button and the actions row come from /styles.css. A page's own CSS file holds only what is
   different about that page, so the app pages keep one look. */

.product-hero { padding: 40px 0 40px; }
.product-title { display: flex; align-items: center; gap: 12px; }
/* The Mac icon carries Apple's transparent margin, so its box is larger than the tile it shows. */
.product-title img { width: 84px; height: 84px; flex-shrink: 0; margin-left: -8px; }
.product-title h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.kind { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tagline { margin: 24px 0 0; font-size: clamp(22px, 5vw, 26px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.product-hero .sub { margin: 16px 0 0; color: var(--muted); }

.fineprint { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.shot {
  margin: 0;
  padding: 36px 20px;
  display: flex;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
}
.shot img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 16px 40px rgb(0 0 0 / 0.16));
}

.features {
  padding: 56px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
.features h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* A titled block of prose under the features: "Private by design", setup notes. */
.private { padding: 24px 0 64px; }
.note { padding: 24px 0 0; }
.private h2, .note h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.private p, .note p, .note li { color: var(--muted); }
.private p { margin: 0; }
.note p { margin: 0 0 10px; }
.note ul { margin: 0 0 10px; padding-left: 22px; }
.note li { margin: 6px 0; }
.note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* The app bar on an app's pages (/drop, /pane and their releases pages): the global header scrolls away and the bar
   sticks to the top. CSS only: sticky positioning, and on phones a popover menu (popovertarget, no script).
   Approved on the website navigation board, 2026-11-18. */
:root { --bar: 56px; } /* 44 px targets plus 6 px above and below */

/* The sticky bar never covers a link target or a focused element (WCAG 2.2, 2.4.11). */
html { scroll-padding-top: calc(var(--bar) + 1px); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 3;
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 14px;
  background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; border-radius: var(--control-radius);
}
.skip:focus-visible { top: 12px; }

.appbar { position: sticky; top: 0; z-index: 2; background: var(--ground); border-bottom: 1px solid var(--rule); }
.appbar-inner { max-width: 760px; margin: 0 auto; padding: 0 20px; min-height: var(--bar); display: flex; align-items: center; gap: 8px; }
.app-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.app-icon { width: 24px; height: 24px; }
/* A Mac icon carries Apple's transparent margin: draw it larger and pull it back into the same box. */
.app-icon.mac-icon { width: 28px; height: 28px; margin: -2px; }
.app-links { display: flex; align-items: center; gap: 0 2px; margin-left: auto; font-size: 15px; font-weight: 600; }
.app-links a {
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 10px;
  color: var(--muted); text-decoration: none; border-radius: var(--control-radius); white-space: nowrap;
}
.app-links a:hover, .app-links a[aria-current="page"] { color: var(--text); }
.button.button-small { position: relative; min-height: 32px; padding: 0 14px; margin-left: 6px; font-size: 14px; }
/* The small button keeps a 44 px target around its 32 px pill. */
.button.button-small::after { content: ""; position: absolute; inset: -6px 0; }

/* Phones (600 px and narrower): the links and Download fold into one menu button, labelled with the current page. */
.app-menu { display: none; margin-left: auto; }
.app-menu-btn {
  appearance: none; border: 0; background: none; font: inherit;
  display: inline-flex; align-items: center; gap: 4px; min-height: var(--hit); padding: 0 8px;
  font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; border-radius: var(--control-radius); white-space: nowrap;
  anchor-name: --app-pages;
}
.app-menu-btn:hover { color: var(--moss); }
.app-menu-btn:has(+ :popover-open) .menu-chevron { transform: rotate(180deg); }
.app-menu-panel {
  min-width: 200px; padding: 6px; white-space: nowrap;
  flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--rule);
  border-radius: 14px; /* radius.card */
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}
/* The panel lives in the top layer; it sits 4 px under its button, right edges aligned. */
.app-menu-panel:popover-open { display: flex; }
.app-menu-panel[popover] { position: fixed; inset: auto; margin: 4px 0 0; position-anchor: --app-pages; top: anchor(bottom); right: anchor(right); }
@supports not (anchor-name: --a) {
  /* Without anchor positioning: under the stuck bar, at the right edge. */
  .app-menu-panel[popover] { top: calc(var(--bar) + 4px); right: 12px; }
}
.app-menu-panel a { display: flex; align-items: center; min-height: var(--hit); padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: var(--control-radius); }
.app-menu-panel a:hover { background: var(--ground); }
.app-menu-panel a[aria-current="page"] { color: var(--moss); }
.app-menu-panel .menu-download { color: var(--link); }
.app-menu-panel hr { margin: 6px 0; border: 0; border-top: 1px solid var(--rule); }
@media (max-width: 600px) {
  .appbar .app-links, .appbar .button-small { display: none; }
  .app-menu { display: block; }
}

/* Text for screen readers only: the menu button reads "Drop pages, Release notes". */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
