/* The shared shell for the small, independent product pages. */
html { scrollbar-gutter: stable; }
body[data-page] { min-height: 100svh; display: flex; flex-direction: column; }
body[data-page] > main { flex: 1; }
body[data-page] > .mast { min-height: 104px; }
body[data-page] > footer { margin-top: 64px; padding-block: 26px; border-top: 1px solid #ffffff12; }
.menu-toggle,
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid #ffffff28;
  border-radius: 999px;
  background: #ffffff05;
  color: var(--ink);
  font: 600 13px/1.4 Manrope, sans-serif;
  transition: background .2s, border-color .2s;
}
.menu-toggle:hover,
.menu-close:hover { background: #ffffff10; border-color: #ffffff55; }
.menu-lines { width: 20px; display: grid; gap: 6px; }
.menu-lines i { width: 20px; height: 1px; background: currentColor; transition: transform .2s; }
.menu-toggle:hover .menu-lines i:first-child { transform: translateX(2px); }
.menu-toggle:hover .menu-lines i:last-child { transform: translateX(-2px); }
.menu-is-open { overflow: hidden; }
.site-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101115;
  color: var(--ink);
  overscroll-behavior: contain;
}
.site-menu::backdrop { background: #101115; }
.site-menu[open] { animation: menu-appear .28s ease-out both; }
.menu-shell {
  width: min(calc(100% - 6rem), 1512px);
  min-height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: 104px 1fr 70px;
}
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.menu-cross { position: relative; width: 18px; height: 18px; }
.menu-cross::before,
.menu-cross::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu-cross::after { transform: rotate(-45deg); }
.menu-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding-block: 28px 44px;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(16px, 3vh, 32px);
  border-bottom: 1px solid #ffffff17;
  color: #a6a5b0;
  font-size: clamp(38px, 5.1vw, 78px);
  font-weight: 450;
  line-height: 1.16;
  letter-spacing: -.055em;
  transition: color .2s, padding-left .25s;
}
.menu-links > a:first-child { border-top: 1px solid #ffffff17; }
.menu-links > a:hover,
.menu-links > a:focus-visible { color: #fff; padding-left: 10px; }
.menu-links > a[aria-current="page"] { color: #e6d6ef; }
.menu-arrow { font-size: .52em; font-weight: 400; color: #777580; transform: translate(-5px, 5px); transition: transform .25s, color .25s; }
.menu-links > a:hover .menu-arrow,
.menu-links > a:focus-visible .menu-arrow { transform: translate(0, 0); color: #e6d6ef; }
.menu-landscape {
  align-self: stretch;
  max-height: 640px;
  min-height: 240px;
  border-radius: 24px;
  background: linear-gradient(180deg, #10111508, #10111515), url('./assets/alpine-lake.webp') 63% 50% / cover;
  opacity: .85;
}
.menu-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; border-top: 1px solid #ffffff17; color: var(--muted); font-size: 13px; }
.menu-bottom a { display: inline-flex; align-items: center; min-height: 40px; gap: 8px; }
.page-heading { padding-block: clamp(28px, 5vh, 70px) 32px; }
.page-heading h1 { font-size: clamp(36px, 4.8vw, 70px); line-height: 1.08; letter-spacing: -.055em; font-weight: 550; }
.page-heading p { max-width: 50ch; margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.25vw, 19px); }
body[data-page="home"] .hero { min-height: min(690px, calc(100svh - 178px)); }
body[data-page="home"] .hero-text { max-width: 78%; }
body[data-page="home"] .hero h1 { font-size: clamp(46px, 5.5vw, 86px); line-height: 1.06; }
body[data-page="home"] .hero-text > p { max-width: 35ch; font-size: clamp(15px, 1.4vw, 19px); }
.site-footer { align-items: center; }
.footer-products { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 14px; }
.footer-products a { display: inline-flex; align-items: center; gap: 10px; }
.footer-products img { width: 20px; height: 20px; object-fit: contain; }
body[data-page="demo"] .workspace { padding-top: 0; }
body[data-page="demo"] .lab-head { margin-bottom: 24px; }
body[data-page="demo"] .lab-copy p { font-size: 15px; max-width: 28ch; }
body[data-page="products"] .products { margin-block: 8px 0; padding-top: 0; }
body[data-page="products"] .product { padding: clamp(26px, 4vw, 58px); flex-direction: column; gap: 32px; min-height: 320px; border: 1px solid #ffffff15; border-radius: 24px; background: linear-gradient(145deg,#ffffff05,transparent); }
body[data-page="products"] .product h2 { font-size: clamp(27px, 3vw, 44px); }
body[data-page="products"] .product p { max-width: 39ch; font-size: 16px; }
body[data-page="products"] .product > div { width: 100%; }
body[data-page="products"] .product-downloads { margin-top: 32px; }
body[data-page="products"] .downloads-card { margin-top: 24px; }
body[data-page="setup"] .getting-started { display: block; padding-block: 0 24px; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; counter-reset: setup; }
.setup-step { padding: 28px; border: 1px solid #ffffff18; border-radius: 20px; min-width: 0; counter-increment: setup; }
.setup-step::before { content: '0' counter(setup); display: block; color: #b7a7c2; font-size: 13px; margin-bottom: 48px; }
.getting-started .setup-step h2 { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; margin-bottom: 18px; }
.getting-started .setup-step p { font-size: 15px; }
.setup-step .profile-switch { margin-block: 0; }
.setup-step .profile-tabs { flex-wrap: wrap; }
.setup-step .button { max-width: 100%; white-space: normal; }
.setup-step #prompt-text { overflow-wrap: anywhere; }
body[data-page="setup"] .faq { padding-top: 44px; }
@keyframes menu-appear { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 880px) {
  .menu-shell { width: calc(100% - 3rem); }
  .menu-body { grid-template-columns: 1fr .55fr; gap: 28px; }
  .menu-links > a { font-size: clamp(34px, 6.5vw, 55px); }
  .setup-steps { grid-template-columns: 1fr; gap: 16px; }
  .setup-step::before { margin-bottom: 22px; }
}
@media (max-width: 680px) {
  body[data-page] > .mast { min-height: 82px; }
  .menu-toggle { padding: 9px 15px; gap: 13px; min-height: 42px; }
  .menu-shell { width: calc(100% - 2rem); grid-template-rows: 82px 1fr 60px; }
  .menu-close { padding: 11px; min-height: 42px; width: 42px; }
  .menu-close > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-body { grid-template-columns: 1fr; align-content: center; padding-block: 24px 50px; }
  .menu-landscape { display: none; }
  .menu-links > a { font-size: clamp(32px, 9.7vw, 56px); padding-block: 24px; }
  .menu-brand { font-size: 15px; }
  .menu-brand img { width: 22px; height: 22px; }
  body[data-page="home"] .hero { min-height: min(660px, calc(100svh - 110px)); }
  body[data-page="home"] .hero-text { max-width: 100%; padding: 38px 24px 86px; }
  body[data-page="home"] .hero h1 { font-size: clamp(37px, 9.8vw, 62px); }
  body[data-page="home"] .hero-image { object-position: 59% center; }
  body[data-page="home"] .hero-text > p { font-size: 15px; }
  .site-footer { align-items: flex-start; gap: 24px; }
  .footer-products { gap: 20px; }
  body[data-page] > footer { margin-top: 34px; }
  .page-heading { padding-block: 24px 26px; }
  .page-heading p { margin-top: 12px; }
}
@media (max-width: 365px) {
  .mast .brand { font-size: 14px; }
  .mast .brand img { width: 21px; }
  .menu-toggle { gap: 9px; padding: 9px 12px; }
  .menu-links > a { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu[open] { animation: none; }
  .menu-links > a, .menu-arrow, .menu-lines i { transition: none; }
}

@media (max-width: 480px) {
  .menu-shell { grid-template-rows: 76px 1fr auto; }
  .menu-bottom { padding-block: 10px; }
}
