/* ================= header and menu ================= */
.page { align-items: stretch; }
.page > .hero, .page > .stats, .page > .motto { margin-left: auto; margin-right: auto; }
.site-header {
  position: relative; z-index: 20; flex-shrink: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  animation: slideDown 0.7s var(--ease) both;
}
.brand { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.brand img { height: clamp(20px, 1.9vw, 26px); width: auto; display: block; }

.menubar {
  display: flex; align-items: center; gap: 2px; height: 48px; padding: 4px; border-radius: 999px;
  background: #fff; box-shadow: var(--nav-shadow);
}
.menubar > button, .menubar > a {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: #0A0A0A; font: 500 14.5px var(--font-sans); letter-spacing: -0.01em; cursor: pointer;
  opacity: 0.62; transition: opacity 0.2s ease, background 0.2s ease;
}
.menubar > button:hover, .menubar > button[aria-expanded="true"], .menubar > a:hover { opacity: 1; background: #F1F1F1; }
.menubar svg.chev { width: 10px; height: 10px; transition: transform 0.25s var(--ease); }
.menubar > button[aria-expanded="true"] svg.chev { transform: rotate(180deg); }

.actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(10,10,10,0.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { font: 500 11px "Geist Mono", monospace; color: #C4C4C4; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 2px 6px; }
.signin { display: inline-flex; align-items: center; height: 44px; padding: 0 10px; font-weight: 500; font-size: 14.5px; color: #EDEDED; }
.signin:hover { color: #fff; }
.book { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: rgba(10,10,10,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.5); font-weight: 600; font-size: 14.5px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.25s var(--ease), background 0.25s ease; }
.book:hover { transform: translateY(-1px); background: rgba(255,255,255,0.14); }
.burger { display: none; }

/* the dropdown panel */
.panel-wrap { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); width: min(980px, calc(100vw - 32px)); }
.panel-wrap[hidden] { display: none; }
.panel {
  background: #fff; color: #0A0A0A; border-radius: 22px; padding: 14px; box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.06);
  display: grid; gap: 10px; transform-origin: top center; animation: panelIn 0.28s var(--ease);
}
.panel.switch { animation: panelSwitch 0.22s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes panelSwitch { from { opacity: 0.4; } to { opacity: 1; } }
.feature {
  background: #0A0A0A; color: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; overflow: hidden; position: relative;
}
.feature .fl { width: 86px; }
.feature h4 { font: 700 22px/1.1 "Swarm Sans", var(--font-sans); letter-spacing: -0.02em; margin-top: auto; }
.feature p { color: #A3A3A3; font-size: 14px; margin-top: 8px; }
.feature .go { margin-top: 14px; font: 500 12px "Geist Mono", monospace; color: #fff; }
.feature .field { position: absolute; right: -20px; top: -20px; width: 180px; height: 180px; opacity: 0.18; }
.group h5 { font: 500 11px "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #6A6A6A; padding: 8px 12px 6px; }
.items { display: grid; gap: 2px; }
.items.two { grid-template-columns: 1fr 1fr; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; transition: background 0.18s ease; }
.item:hover, .item:focus-visible { background: #F3F3F3; outline: none; }
.item .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #F3F3F3; display: grid; place-items: center; border: 1px solid #E8E8E8; }
.item:hover .ic { background: #0A0A0A; border-color: #0A0A0A; }
.item:hover .ic img { filter: invert(1); }
.item:hover .ic svg { color: #fff; }
.item .ic img { width: 26px; height: 26px; }
.item .ic svg { width: 18px; height: 18px; color: #0A0A0A; }
.item b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.item span.d { display: block; color: #6A6A6A; font-size: 13px; margin-top: 2px; line-height: 1.35; }
.tag { font: 500 10px "Geist Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; border: 1px solid #CFCFCF; color: #6A6A6A; }
.tag.live { background: #0A0A0A; border-color: #0A0A0A; color: #fff; }
.panel-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 4px; border-top: 1px solid #EEE; margin-top: 4px; font-size: 13px; color: #6A6A6A; }
.panel-foot a { color: #0A0A0A; font-weight: 600; }

/* hero additions */
.hero-flock { width: clamp(64px, 6vw, 88px); margin-bottom: clamp(14px, 2.4vh, 24px); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: clamp(20px, 3.2vh, 32px); }
.cta-row .cta { margin-top: 0; }
.cta.ghost { background: rgba(10,10,10,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.45); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cta.ghost:hover { background: rgba(255,255,255,0.12); box-shadow: 0 0 18px rgba(255,255,255,0.15); }
.hero .trust { margin-top: clamp(18px, 3vh, 30px); margin-bottom: 0; }
.dotmark { font: 700 calc(var(--trust-size) * 0.27) "Swarm Sans", var(--font-sans); font-style: normal; color: #fff !important; background: #0A0A0A !important; letter-spacing: -0.02em; }
.motto { text-align: center; margin-top: 10px; font: 500 13px "Geist Mono", monospace; letter-spacing: 0.01em; color: #8E8E8E; }

/* phone sheet */
.sheet { position: fixed; inset: 0; z-index: 30; background: #0A0A0A; color: #fff; overflow-y: auto; padding: 84px 20px 32px; animation: overlayIn 0.25s ease; }
.sheet[hidden] { display: none; }
.sheet .acc { border-bottom: 1px solid #262626; }
.sheet .acc > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; background: none; border: 0; color: #fff; font: 700 22px "Swarm Sans", var(--font-sans); letter-spacing: -0.02em; cursor: pointer; }
.sheet .acc > button svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.sheet .acc.open > button svg { transform: rotate(180deg); }
.sheet .acc .body { display: none; padding: 0 0 14px; }
.sheet .acc.open .body { display: block; }
.sheet .item { color: #fff; }
.sheet .item:hover { background: #161616; }
.sheet .item .ic { background: #161616; border-color: #262626; }
.sheet .item .ic img { filter: invert(1); }
.sheet .item .ic svg { color: #fff; }
.sheet .item span.d { color: #8F8F8F; }
.sheet .tag { border-color: #3a3a3a; color: #A3A3A3; }
.sheet .tag.live { background: #fff; color: #0A0A0A; border-color: #fff; }
.sheet .sheet-ctas { display: grid; gap: 10px; margin-top: 24px; }
.sheet .sheet-ctas a, .sheet .sheet-ctas button { height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.sheet .sheet-ctas .w { background: #fff; color: #0A0A0A; }
.sheet .sheet-ctas .o { border: 1px solid #3a3a3a; color: #fff; background: none; font-family: inherit; }

/* search palette */
.palette { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; animation: overlayIn 0.2s ease; }
.palette[hidden] { display: none; }
.pal-card { width: min(620px, calc(100vw - 28px)); background: #fff; color: #0A0A0A; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); animation: panelIn 0.24s var(--ease); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #EEE; }
.pal-input svg { width: 18px; height: 18px; color: #6A6A6A; }
.pal-input input { flex: 1; border: 0; outline: 0; font: 16px var(--font-sans); background: transparent; }
.pal-input kbd { font: 500 11px "Geist Mono", monospace; color: #6A6A6A; border: 1px solid #DDD; border-radius: 6px; padding: 2px 6px; }
.pal-list { list-style: none; max-height: 52vh; overflow-y: auto; padding: 8px; }
.pal-list li.h { font: 500 11px "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #6A6A6A; padding: 10px 12px 4px; }
.pal-list li.o { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.pal-list li.o.sel { background: #0A0A0A; color: #fff; }
.pal-list li.o.sel .ic { background: #222; border-color: #333; }
.pal-list li.o.sel .ic img { filter: invert(1); }
.pal-list li.o.sel .ic svg { color: #fff; }
.pal-list li.o.sel span.d { color: #A3A3A3; }
.pal-list .ic { width: 30px; height: 30px; border-radius: 8px; background: #F3F3F3; border: 1px solid #E8E8E8; display: grid; place-items: center; flex: none; }
.pal-list .ic img { width: 20px; height: 20px; } .pal-list .ic svg { width: 15px; height: 15px; }
.pal-list span.d { color: #6A6A6A; font-size: 13px; margin-left: auto; }
.pal-list li.none { padding: 18px 12px; color: #6A6A6A; }

@media (max-width: 1180px) { .signin { display: none; } .menubar > button, .menubar > a { padding: 0 12px; font-size: 14px; } }
@media (max-width: 980px) {
  .site-header { display: flex; justify-content: space-between; }
  .menubar, .book, .search-btn kbd { display: none; }
  .search-btn { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .burger { display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(10,10,10,0.6); cursor: pointer; position: relative; z-index: 35; }
  .burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 1px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  body.menu-open .brand, body.menu-open .search-btn { position: relative; z-index: 35; }
  body.menu-open { overflow: hidden; }
}
@media (max-height: 760px) and (min-width: 981px) { .hero-flock { width: 54px; margin-bottom: 10px; } .motto { display: none; } }
@media (max-width: 980px) { body.menu-open .site-header { z-index: 31; } }
