/* The header menus (Features, Blog), shared by the home page, the blog, the policies and the 404.
   Each of those has its own stylesheet and not all of them define every token, so the ones the menu
   needs are given here, with the values the site already uses. */
:root{--hint:#A29993;--r:14px;--r-sm:9px;--r-xs:5px;--mono:'IBM Plex Mono',ui-monospace,monospace}
/* ── header menus: Features, Blog ── */
.mn{display:flex;align-items:center;gap:2px;margin-left:18px}
.mn-item{position:relative}
.mn-btn{display:inline-flex;align-items:center;gap:5px;background:none;border:0;cursor:pointer;
  font:500 14.5px var(--body);color:var(--ink2);padding:12px 12px;border-radius:var(--r-sm);min-height:44px}
.mn-btn:hover,.mn-item.open .mn-btn{color:var(--orange-deep);background:var(--orange-wash)}
.mn-btn .chev{width:14px;height:14px;transition:transform .15s ease}
.mn-item.open .chev{transform:rotate(180deg)}
.mn-panel{display:none;position:absolute;top:calc(100% + 10px);left:0;z-index:60;min-width:300px;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px 14px;
  box-shadow:0 22px 48px -18px rgba(22,18,15,.35)}
.mn-item.open .mn-panel{display:block}
.mn-wide{min-width:0;width:min(760px,calc(100vw - 48px));padding:22px 24px}
.mn-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 28px}
.mn-h{font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--hint);margin-bottom:6px}
.mn-link{display:block;padding:8px 8px;margin:0 -8px;border-radius:var(--r-xs);font-size:14.5px;
  color:var(--ink);text-decoration:none;line-height:1.35}
.mn-link:hover{background:var(--orange-wash);color:var(--orange-deep)}
.mn-promo{display:block;margin-top:16px;padding:14px 16px;border-radius:var(--r-sm);background:var(--wash);
  text-decoration:none;color:var(--ink2);font-size:13.5px}
.mn-promo strong{display:block;color:var(--ink);font-size:14.5px;margin-bottom:2px}
.mn-promo:hover{background:var(--orange-wash)}
.mn-all{display:block;margin-top:8px;padding-top:12px;border-top:1px solid var(--line);font-size:14px;
  font-weight:600;color:var(--orange-deep);text-decoration:none}
.mn-burger{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:var(--r-sm);
  background:var(--paper);color:var(--ink);cursor:pointer;align-items:center;justify-content:center}
.mn-burger svg{width:22px;height:22px}
.ben-i[id^="feature-"]{cursor:pointer;scroll-margin-top:96px}
.ben-i[id^="feature-"]:hover h4{color:var(--orange-deep)}

/* the feature details sheet */
.fd{margin:auto;border:0;padding:0;border-radius:var(--r);width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 48px);
  background:var(--paper);color:var(--ink);box-shadow:0 30px 70px -20px rgba(22,18,15,.5);overflow:auto}
.fd::backdrop{background:rgba(22,18,15,.5)}
.fd-in{position:relative;padding:28px 28px 24px}
.fd-x{position:absolute;top:10px;right:12px;width:44px;height:44px;border:0;background:none;font-size:28px;
  line-height:1;color:var(--muted);cursor:pointer;border-radius:var(--r-sm)}
.fd-x:hover{background:var(--wash);color:var(--ink)}
.fd-ic{width:44px;height:44px;border-radius:var(--r-sm);background:var(--orange-wash);color:var(--orange-deep);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.fd-ic svg{width:24px;height:24px}
.fd h2{font-family:var(--disp);font-weight:600;font-size:22px;letter-spacing:-.015em;line-height:1.25;padding-right:36px}
.fd-lead{margin-top:8px;color:var(--ink2);font-size:15px}
.fd-list{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.fd-list li{position:relative;padding-left:22px;font-size:14.5px;color:var(--ink2);line-height:1.5}
.fd-list li::before{content:"";position:absolute;left:3px;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--orange)}
.fd-foot{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}

@media (max-width:860px){
  .mn-burger{display:inline-flex}
  .mn{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;
    margin:0;padding:8px 16px 16px;background:var(--paper);border-bottom:1px solid var(--line);
    max-height:calc(100vh - 68px);overflow:auto;box-shadow:0 20px 30px -20px rgba(22,18,15,.3)}
  .mn.show{display:flex}
  .mn-btn{width:100%;justify-content:space-between;font-size:16px;padding:14px 8px;border-radius:0;
    border-bottom:1px solid var(--line)}
  .mn-btn .chev{width:18px;height:18px}
  .mn-panel,.mn-wide{position:static;min-width:0;width:auto;border:0;box-shadow:none;padding:6px 0 10px}
  .mn-cols{grid-template-columns:1fr;gap:12px}
  .mn-link{padding:12px 8px;font-size:15.5px}
  .mn-promo{margin-top:10px}
  /* on a phone the sheet rises from the bottom, thumb-reachable */
  .fd{margin:auto 0 0;width:100vw;max-width:100vw;border-radius:var(--r) var(--r) 0 0;max-height:88vh}
  .fd-in{padding:24px 20px 20px}
  .fd-foot .btn{flex:1 1 100%;min-height:48px}
}
@media (max-width:600px){
  .hd-in .btn-sm{padding:10px 12px}
}
@media (prefers-reduced-motion:reduce){.mn-btn .chev{transition:none}}
