/* Uptika site chrome: promo bar, header with mega-menus, mobile sheet, theme + language switches, footer.
   ONE stylesheet for every public page: the built site (landing.css adds the content) and the free tools
   (lib/tools/render.mjs, tools.css adds the tool UI). The markup comes from public/landing/_src/build.mjs (header(),
   footer()); the tools read the same markup from _src/.chrome.json. Night in both themes; tokens below are the shared
   night ramp (the page stylesheets define the light/dark content tokens). */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root {
  --night: #0A1020; --night-2: #111a2c; --night-line: rgba(246, 250, 255, .09); --night-line-2: rgba(246, 250, 255, .16);
  --night-ink: #F6FAFF; --night-mute: #A6AFBC; --night-faint: #7E8796; --green: #3BEA9E;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; --wrap: 1180px; --gut: 24px;
  --shadow-night: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(246, 250, 255, .06);
}
:root { --promo-h: 36px; --bar-h: 64px; --mm-bg: #0C1324; --night-ink-2: #D2DBE7; }
.promo-off { --promo-h: 0px; }
.no-js { --promo-h: 36px; }


.top .btn, .foot .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 'Geist', sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.top .btn svg, .foot .btn svg { width: 16px; height: 16px; }
.top .btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.top .trx, .foot .trx { font: 500 10px/1 var(--mono); letter-spacing: .04em; padding: 2px 4px; border-radius: 4px; border: 1px solid currentColor; opacity: .7; vertical-align: 1px; }
.top .wrap, .foot .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.top img, .top svg, .foot img, .foot svg { display: block; max-width: 100%; }

/* ---------- language menu ---------- */
.langs { position: relative; }
.langs summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9px; cursor: pointer; font: 500 12.5px/1 var(--mono); color: var(--night-mute); user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--night-ink); background: rgba(246, 250, 255, .06); }
.langs summary svg { width: 15px; height: 15px; }
.langs summary .chev { width: 12px; height: 12px; opacity: .7; transition: transform .15s; }
.langs[open] summary .chev { transform: rotate(180deg); }
.langs .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 196px; padding: 6px; border-radius: 12px; background: #111a2c; border: 1px solid var(--night-line-2); box-shadow: var(--shadow-night); display: grid; }
.langs.up .menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.langs .menu a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--night-mute); text-decoration: none; }
.langs .menu a:hover { background: rgba(246, 250, 255, .06); color: var(--night-ink); }
.langs .menu a[aria-current] { color: var(--green); }


/* ---------- promo bar ---------- */
.promo { height: var(--promo-h); overflow: hidden; background: #060A15; border-bottom: 1px solid var(--night-line); font-size: 13px; color: var(--night-mute); }
.promo-off .promo { display: none; }
.promo .wrap { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.promo a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: calc(100% - 44px); text-decoration: none; color: var(--night-mute); white-space: nowrap; }
.promo a:hover { color: var(--night-ink); }
.promo .promo-t { color: var(--night-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.promo .promo-m { color: var(--night-mute); font-weight: 400; }
.promo a svg { width: 14px; height: 14px; flex: none; color: var(--green); }
.promo-x { position: absolute; right: calc(var(--gut) - 6px); top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--night-faint); cursor: pointer; }
.promo-x:hover { color: var(--night-ink); background: rgba(246, 250, 255, .06); }
.promo-x svg { width: 14px; height: 14px; }
.no-js .promo-x { display: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; color: var(--night-ink); }
.top > .bar { position: relative; background: rgba(10, 16, 32, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--night-line); transition: background .2s, border-color .2s; }
/* over the night hero: transparent at the very top (the radar runs behind), a blurred bar once the page moves */
.top.over { position: fixed; left: 0; right: 0; top: 0; }
.top.over .bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.top.over.scrolled .bar { background: rgba(10, 16, 32, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--night-line); }
.top.over:has(.mm:hover) .bar, .top.over:has(.mm:focus-within) .bar, .top.over:has(.mm.open) .bar { background: var(--mm-bg); border-bottom-color: var(--night-line); }
.top:has(.mnav[open]) .bar { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--night-line); }
.no-js .top.over { position: absolute; }
.top > .bar > .wrap { display: flex; align-items: center; height: var(--bar-h); gap: 20px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 32px; width: auto; margin-left: -8px; }
.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav > ul { list-style: none; display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; height: var(--bar-h); }
.nav > ul > li { display: flex; align-items: center; }
.mm { position: static; }
.mm-b, .nav-a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 500 14px/1 'Geist', sans-serif; color: var(--night-mute); text-decoration: none; cursor: pointer; white-space: nowrap; }
.mm-b .chev { width: 12px; height: 12px; opacity: .7; transition: transform .15s; }
.mm:hover .mm-b, .mm:focus-within .mm-b, .mm.open .mm-b, .nav-a:hover { color: var(--night-ink); }
.mm:hover .mm-b .chev, .mm.open .mm-b .chev { transform: rotate(180deg); }
.mm.shut .mm-b .chev { transform: none; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.login { font-size: 14px; color: var(--night-ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.login:hover { background: rgba(246, 250, 255, .06); }
.btn-out, .top .btn-out { color: var(--night-ink); border-color: rgba(246, 250, 255, .3); background: transparent; }
.btn-out:hover, .top .btn-out:hover { border-color: rgba(246, 250, 255, .6); background: rgba(246, 250, 255, .04); }
.btn-light, .top .btn-light, .foot .btn-light { background: #F6FAFF; color: #0A1020; }
.btn-light:hover, .top .btn-light:hover, .foot .btn-light:hover { background: #FFFFFF; }
.top-r .langs summary { height: 32px; border: 1px solid var(--night-line-2); border-radius: 999px; padding: 0 10px; }
/* theme: 3-way segmented control */
.tseg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--night-line-2); border-radius: 999px; }
.tseg button { width: 28px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--night-faint); cursor: pointer; }
.tseg button:hover { color: var(--night-ink); }
.tseg button[aria-pressed="true"] { background: rgba(246, 250, 255, .1); color: var(--night-ink); }
.tseg svg { width: 14px; height: 14px; }
.no-js .tseg { display: none; }

/* ---------- mega-menus: full-width panel under the bar; CSS opens it on hover/focus, landing.js adds click + Esc ---------- */
.mm-p { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; background: var(--mm-bg); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.mm:hover .mm-p, .mm:focus-within .mm-p, .mm.open .mm-p { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.mm.shut .mm-p { opacity: 0; visibility: hidden; }
.mm-g { display: grid; gap: 8px 24px; padding: 28px 0 6px; }
.mm-g.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm-g.c5 { grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr)); }
.mm-col { min-width: 0; display: flex; flex-direction: column; }
.mm-l { margin: 0 0 8px; padding: 0 10px; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-faint); }
.mm-feat { padding: 18px; margin-bottom: 18px; border: 1px solid var(--night-line); border-radius: 12px; background: rgba(246, 250, 255, .025); align-self: start; }
.mm-feat .mm-l { padding: 0; }
.mm-l2 { margin-top: 20px !important; }
.mm-t { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--night-ink); }
.mm-p-t { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--night-mute); }
.mm-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 16px; padding: 0 12px; border: 1px solid var(--night-line-2); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--night-ink); text-decoration: none; }
.mm-btn:hover { border-color: rgba(246, 250, 255, .4); }
.mm-btn svg { width: 14px; height: 14px; }
.mm-sc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-sc a { font-size: 13.5px; color: var(--night-mute); text-decoration: none; }
.mm-sc a:hover { color: var(--night-ink); }
.mi-a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; transition: background .12s; }
.mi-a b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--night-ink-2); }
.mi-a > span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--night-faint); }
.mi-a > span.m { font-family: var(--mono); font-size: 11.5px; }
.mi-a:hover, .mi-a:focus-visible { background: rgba(246, 250, 255, .05); }
.mi-a:hover b, .mi-a:focus-visible b { color: var(--night-ink); }
.mm-f { display: flex; justify-content: flex-end; margin-top: 10px; padding: 12px 0 16px; border-top: 1px solid var(--night-line); }
.mm-f a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--night-ink); text-decoration: none; }
.mm-f a svg { width: 14px; height: 14px; color: var(--green); }
.mm-f a:hover { color: var(--green); }
.mm .trx, .mnav .trx, .foot .trx { color: var(--night-faint); margin-left: 4px; }

/* ---------- mobile sheet ---------- */
.mnav { display: none; }
.mnav-b { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--night-line-2); border-radius: 10px; cursor: pointer; color: var(--night-ink); }
.mnav-b::-webkit-details-marker { display: none; }
.mnav-b svg { width: 18px; height: 18px; }
.mnav-b .m-close, .mnav[open] .mnav-b .m-open { display: none; }
.mnav[open] .mnav-b .m-close { display: block; }
.mnav-s { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--promo-h) + var(--bar-h)); z-index: 60; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gut) calc(28px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--night-line); }
.ma { border-bottom: 1px solid var(--night-line); }
.ma > summary, .ma-link { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 17px; font-weight: 500; color: var(--night-ink); text-decoration: none; cursor: pointer; }
.ma > summary::-webkit-details-marker { display: none; }
.ma > summary .chev { width: 16px; height: 16px; color: var(--night-faint); transition: transform .15s; }
.ma[open] > summary .chev { transform: rotate(180deg); }
.ma-link { border-bottom: 1px solid var(--night-line); }
.ma-link .go, .ma-c li a .go { width: 14px; height: 14px; transform: rotate(-90deg); color: var(--night-faint); flex: none; }
.ma-c { padding: 0 0 16px; }
.ma-c .mm-l { padding: 0; margin: 14px 0 4px; }
.ma-c ul { list-style: none; margin: 0; padding: 0; }
.ma-c li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--night-mute); text-decoration: none; }
.ma-c li a:hover { color: var(--night-ink); }
.ma-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--green); text-decoration: none; }
.ma-all svg { width: 14px; height: 14px; }
.mnav-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 16px; flex-wrap: wrap; }
.mlangs { display: flex; flex-wrap: wrap; gap: 6px; }
.mlangs a { font: 500 12px/1 var(--mono); padding: 8px 9px; border: 1px solid var(--night-line); border-radius: 8px; color: var(--night-mute); text-decoration: none; }
.mlangs a[aria-current] { color: var(--green); border-color: rgba(59, 234, 158, .4); }
.mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mnav-cta .btn { width: 100%; }
.menu-open, .menu-open body { overflow: hidden; }


/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-mute); border-top: 1px solid var(--night-line); font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--night-ink); }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 72px 0 56px; border-bottom: 1px solid var(--night-line); }
.fc-h { max-width: 760px; font-size: clamp(28px, 3.8vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; color: var(--night-ink); }
.fc-p { margin-top: 12px; max-width: 620px; font-size: 16px; color: var(--night-mute); }
.foot-cta .btn { height: 48px; padding: 0 22px; font-size: 15.5px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.foot-top img { height: 26px; width: auto; margin-left: -6px; }
.foot-sw { display: flex; align-items: center; gap: 10px; }
.foot-sw .langs summary { border: 1px solid var(--night-line-2); border-radius: 999px; height: 32px; }
.foot-def { margin-top: 16px; max-width: 620px; color: var(--night-mute); font-size: 14px; }
.fcols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 28px 20px; margin-top: 40px; }
.fcol { min-width: 0; }
.fcol > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-faint); pointer-events: none; }
.fcol > summary::-webkit-details-marker { display: none; }
.fcol > summary .chev { display: none; width: 14px; height: 14px; }
.fcol ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.fcol a { color: var(--night-mute); font-size: 13.5px; line-height: 1.35; }
.foot-note { margin-top: 24px; font-size: 13px; color: var(--night-faint); }
.foot-note a { text-decoration: underline; text-underline-offset: 2px; }
.foot-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ask > span { margin-right: 6px; font-size: 13.5px; color: var(--night-mute); }
.pillb { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--night-line-2); border-radius: 999px; font: 500 12.5px/1 var(--mono); color: var(--night-ink-2); }
.pillb:hover { border-color: rgba(246, 250, 255, .4); }
.pillb svg { width: 12px; height: 12px; color: var(--night-faint); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; }
.foot-legal span { color: var(--night-line-2); }
/* "Cookie settings": shown by /consent.js only when marketing tags are configured (it reopens the cookie banner) */
.foot-legal .foot-ck { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.foot-legal .foot-ck::before { content: '·'; color: var(--night-line-2); }
.foot-legal .foot-ck[hidden] { display: none; }
.foot-legal .foot-ck:hover { color: var(--night-ink); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 18px; padding: 18px 0 8px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--night-faint); }
.foot-bot a { color: var(--night-mute); }
.foot .wrap { padding-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .top-r .tseg, .top-r > .langs { display: none; }
  .fcols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .nav, .top-r .login { display: none; }
  .mnav { display: block; }
  .mnav .tseg { display: inline-flex; }
}
@media (max-width: 760px) {
  .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --bar-h: 58px; }
  .brand img { height: 28px; }
  .promo { font-size: 12.5px; }
  .promo .promo-m { display: none; }
  .top-r { gap: 6px; }
  .top-r .btn-out { padding: 0 11px; font-size: 13.5px; height: 36px; }
  .top-r .btn-out svg { display: none; }
  .foot-cta { padding: 56px 0 40px; }
  .foot-cta .btn { width: 100%; }
}
@media (max-width: 520px) {
  .fcols { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .fcol { border-bottom: 1px solid var(--night-line); }
  .fcol > summary { pointer-events: auto; cursor: pointer; padding: 15px 0; }
  .fcol > summary .chev { display: block; transition: transform .15s; }
  .fcol[open] > summary .chev { transform: rotate(180deg); }
  .fcol ul { margin: 0 0 16px; }
}
@media (max-width: 380px) {
  .brand img { height: 24px; }
  .top-r .btn-out { padding: 0 9px; font-size: 13px; }
}
@media (max-width: 600px) { :root { --gut: 16px; } }
.mi-a b .trx { display: inline-block; margin-left: 6px; vertical-align: 1px; }
.page .top > .bar { background: rgba(10, 16, 32, .97); }
