/* Site chrome shared by every page: the glass pill nav, mega menu, mobile drawer and footer.
   Prefixed sn- to stay out of page styles. */

/* One recipe for frosted glass, used by the pill, the panels and the drawer */
.sn-glass { background: rgba(255,255,255,0.420); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border: 1px solid rgba(20,18,16,0.132); box-shadow: inset 0 1px 0 rgba(20,18,16,0.154), inset 0 -1px 0 rgba(20,18,16,0.033), 0 8px 32px rgba(0,0,0,0.081); }

/* ——— Bar: logo left, glass pill centre, call to action right ——— */
.sn-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 80; pointer-events: none; }
.sn-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.sn-inner > * { pointer-events: auto; }
.sn-mark { justify-self: start; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 16px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; transition: opacity .3s, transform .3s; }
.sn-mark svg { width: 20px; height: 20px; }
/* Logotype (symbol + word as outlines, Satoshi Light): one height, width follows */
.sn-mark svg.logotype { width: auto; height: 21px; display: block; }
.sn-mark .slash { color: var(--orange); }
.sn-pill { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 15px; }
.sn-pill > a, .sn-top > a { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; font: 500 13.5px/1 var(--sans); letter-spacing: -.005em; color: rgba(20,18,16,0.902); white-space: nowrap; transition: color .2s, background .2s; }
.sn-caret::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .25s; }
.sn-pill > a:hover, .sn-top > a:hover, .sn-top:has(.sn-caret[aria-expanded="true"]) { color: #141210; background: rgba(20,18,16,0.077); }
.sn-pill > [aria-current="true"], .sn-top > [aria-current="true"] { color: #141210; }
.sn-caret[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.sn-pill > .sn-mini { display: none; padding: 9px 10px; }
.sn-pill > .sn-mini svg { width: 18px; height: 18px; }
.sn-pill > .sn-pill-cta { display: none; background: var(--orange); color: #141210; margin-left: 4px; }
.sn-pill > .sn-pill-cta:hover { background: var(--orange-2); }
.sn-pill button:focus-visible, .sn-top a:focus-visible, .sn-pill a:focus-visible, .sn-burger:focus-visible, .sn-close:focus-visible, .sn-cta:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 2px; }
.sn-actions { justify-self: end; display: flex; align-items: center; gap: 10px; transition: opacity .3s, transform .3s; }
.sn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--orange); color: #141210; font: 500 13.5px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 1px solid rgba(20,18,16,0.198); box-shadow: 0 6px 24px -6px rgba(20,18,16,0.196), inset 0 1px 0 rgba(20,18,16,0.275); transition: background .2s; }
.sn-cta:hover { background: var(--orange-2); }
.sn-burger { all: unset; cursor: pointer; display: none; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; font: 500 13.5px/1 var(--sans); color: var(--ink); }
.sn-burger i { display: grid; gap: 4px; width: 16px; }
.sn-burger i::before, .sn-burger i::after { content: ""; height: 1.5px; border-radius: 2px; background: currentColor; }

/* Scrolled: like Genesis, the logo and button step back and the pill carries the page */
.sn-bar.is-scrolled .sn-mark, .sn-bar.is-scrolled .sn-actions .sn-cta { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.sn-bar.is-scrolled .sn-pill > .sn-mini, .sn-bar.is-scrolled .sn-pill > .sn-pill-cta { display: inline-flex; }

@media (max-width: 1080px) {
  .sn-inner { grid-template-columns: 1fr auto; height: 68px; }
  .sn-pill { display: none; }
  .sn-burger { display: inline-flex; }
  .sn-bar.is-scrolled .sn-mark { opacity: 1; transform: none; pointer-events: auto; }
  .sn-bar.is-scrolled .sn-actions .sn-cta { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 520px) { .sn-actions .sn-cta { display: none; } }

/* ——— Mega panel: a glass sheet that drops from the pill ——— */
.sn-panel { position: absolute; left: 50%; top: 70px; width: min(1000px, calc(100vw - 32px)); translate: -50% 0; border-radius: 20px; color: var(--ink); display: none; pointer-events: auto; background: rgba(255,255,255,0.780); }
.sn-panel.open { display: block; animation: sn-drop .22s ease-out; }
@keyframes sn-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sn-panel-inner { display: grid; grid-template-columns: .9fr 2fr .95fr; gap: 28px; padding: 28px; }
.sn-fig { font: 400 10.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-light); }
.sn-intro h3 { margin: 10px 0 8px; font: 500 22px/1.15 var(--sans); letter-spacing: -.03em; }
.sn-intro p { margin: 0 0 16px; color: var(--ink-soft); font: 400 14px/1.55 var(--sans); }
.sn-all { font: 500 13.5px/1 var(--sans); color: var(--orange-light); text-decoration: none; }
.sn-all:hover { color: #141210; }
.sn-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; align-content: start; }
.sn-links a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.sn-links a:hover, .sn-links a:focus-visible { background: rgba(20,18,16,0.066); }
.sn-links b { display: block; font: 500 14.5px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.sn-links span { display: block; margin-top: 3px; font: 400 12.5px/1.45 var(--sans); color: var(--muted); }
.sn-links a[aria-current="true"] b { color: var(--orange-light); }
.sn-feature { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; text-decoration: none; background: linear-gradient(160deg, rgba(20,18,16,0.045), rgba(20,18,16,0.022) 60%); border: 1px solid rgba(20,18,16,0.078); transition: border-color .2s; overflow: hidden; }
.sn-feature:hover { border-color: rgba(20,18,16,0.168); }
.sn-feature b { font: 500 17px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.sn-feature span { font: 400 13.5px/1.5 var(--sans); color: var(--ink-soft); }
.sn-feature em { margin-top: auto; padding-top: 8px; font: 500 13px/1 var(--sans); font-style: normal; color: var(--orange-light); }

/* ——— Mobile drawer ——— */
.sn-drawer { position: fixed; inset: 10px; z-index: 120; border-radius: 22px; color: var(--ink); overflow-y: auto; display: none; background: rgba(255,255,255,0.970); }
.sn-drawer.open { display: block; animation: sn-drop .22s ease-out; }
.sn-drawer-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; background: rgba(255,255,255,0.920); border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
.sn-close { all: unset; cursor: pointer; font: 500 13.5px/1 var(--sans); padding: 10px 14px; border-radius: 999px; background: rgba(20,18,16,0.066); }
.sn-drawer-body { padding: 6px 20px 28px; }
.sn-drawer details { border-bottom: 1px solid var(--line); }
.sn-drawer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 500 21px/1.2 var(--sans); letter-spacing: -.025em; }
.sn-drawer summary::-webkit-details-marker { display: none; }
.sn-drawer .sn-dtoggle::after { content: "+"; font: 400 18px/1 var(--mono); color: var(--orange-light); transition: transform .25s; }
.sn-drawer details[open] .sn-dtoggle::after { transform: rotate(45deg); }
.sn-drawer ul { list-style: none; margin: 0 0 14px; padding: 0; }
.sn-drawer li a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font: 400 15px/1.4 var(--sans); color: var(--ink-soft); }
.sn-drawer li a:hover, .sn-drawer li a[aria-current="true"] { color: #141210; background: rgba(20,18,16,0.055); }
.sn-drawer .sn-direct { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 21px/1.2 var(--sans); letter-spacing: -.025em; text-decoration: none; }
.sn-drawer .sn-cta { display: flex; justify-content: center; margin-top: 24px; padding: 16px; font-size: 15px; }
.sn-drawer .sn-powered { margin-top: 20px; }
html.sn-lock, html.sn-lock body { overflow: hidden; }

/* ——— Footer ——— */
.sn-foot { position: relative; overflow: hidden; padding: 56px 0 30px; color: var(--ink); border-top: 1px solid var(--line); isolation: isolate; }
.sn-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.sn-foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.sn-foot-links a { font: 400 14px/1.4 var(--sans); color: var(--ink-soft); text-decoration: none; }
.sn-foot-links a:hover { color: #141210; }
.sn-foot-word { flex-basis: 100%; margin: 26px 0 4px; font: 600 clamp(64px, 17vw, 240px)/.85 var(--sans); letter-spacing: -.06em; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(20,18,16,0.154), rgba(20,18,16,0.022) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.sn-foot-word span { background: linear-gradient(180deg, rgba(20,18,16,0.220), rgba(20,18,16,0.014) 85%); -webkit-background-clip: text; background-clip: text; }
.sn-foot::after { content: ""; position: absolute; left: 50%; bottom: -220px; width: min(900px, 110vw); height: 420px; translate: -50% 0; background: radial-gradient(ellipse at center, rgba(20,18,16,0.050), transparent 65%); z-index: -1; pointer-events: none; }
.sn-foot-base { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sn-powered { display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.sn-powered i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(20,18,16,0.168); }
.sn-powered b { font-weight: 500; color: var(--orange-light); }

@media (prefers-reduced-motion: reduce) { .sn-panel.open, .sn-drawer.open { animation: none; } }

/* Top-level items: the label is a link to the hub, the chevron opens the menu */
.sn-top { display: inline-flex; align-items: center; border-radius: 10px; transition: background .2s; }
.sn-top > a { padding-right: 4px !important; }
.sn-top > a:hover { background: transparent; }
.sn-top:hover { background: rgba(20,18,16,0.077); }
.sn-top:hover > a { color: #141210; }
.sn-caret { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 22px; height: 30px; margin-right: 4px; border-radius: 8px; color: rgba(20,18,16,0.902); }
.sn-caret:hover { color: #141210; }
.sn-caret:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 1px; }
.sn-drawer summary > a { flex: 1; text-decoration: none; color: inherit; }
.sn-drawer .sn-dtoggle { display: grid; place-items: center; width: 44px; height: 44px; margin: -12px -10px -12px 0; }

/* Footer word: the logotype's word as an svg, very light */
.sn-foot-word { line-height: 0; }
.sn-foot-word svg { display: block; width: min(100%, 1080px); height: auto; margin: 0 auto; color: rgba(20,18,16,0.085); }
