/* Desktop shell: the existing home/blog 56px pill, shared across all page types. */
.site-header-shell { display: none; }
@media (min-width: 1024px) {
  [data-site-legacy], body[data-site-page] > .product-nav { display: none !important; }
  body[data-site-page="home"] .hero-home { display: none; }
  .site-header-shell { display: block; position: relative; height: 96px; z-index: 100; }
  body[data-site-page="home"] .site-header-shell { height: 0; }
  .site-header {
    box-sizing: border-box;
    position: fixed; inset: 12px 0 auto;
    display: flex; align-items: center; gap: 24px;
    width: min(960px, calc(100% - 2 * clamp(24px, 6.25vw, 96px)));
    height: 56px; margin: 0 auto; padding: 0 8px 0 24px;
    border: 0; border-radius: 999px;
    color: #121716; background: rgba(247, 250, 249, .94);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-family: "Inter", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
    font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  }
  .site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; line-height: 1.2 !important; }
  .site-header a { text-decoration: none; color: inherit; }
  .site-header .site-logo { display: block; flex: none; width: 140px; height: 30px; }
  .site-logo img { display: block; width: 140px; height: 30px; }
  .site-header .site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; white-space: nowrap; }
  .site-nav > a, .site-overview > summary { display: flex; align-items: center; height: 44px; color: #646b69; }
  .site-nav > a:hover, .site-overview > summary:hover, .site-header [aria-current="page"], .site-nav > a[aria-current], .site-overview > summary[aria-current] { color: #121716; }   /* current page: darker text only, no bar */
  .site-header details { display: block; position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
  .site-header details:first-of-type { border: 0; }
  .site-header summary { list-style: none; margin: 0; padding: 0; font: inherit; cursor: pointer; }
  .site-header summary::-webkit-details-marker { display: none; }
  .site-overview > summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-2px) rotate(45deg); }
  .site-header .site-actions { display: flex; align-items: center; gap: 8px; flex: none; }
  .site-language > summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: #fff; font-size: 13px; }
  .site-language > summary svg { width: 16px; height: 16px; }
  .site-language[open] > summary { border-color: #121716; }
  .site-header .site-demo { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 999px; background: #121716; color: #fff; white-space: nowrap; }
  .site-header .site-demo:hover { background: #252b2a; }
  .site-header .site-dropdown { position: absolute; top: calc(100% + 8px); left: -12px; min-width: 208px; margin: 0; padding: 8px; list-style: none; border: 1px solid rgba(18,23,22,.08); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 40px -16px rgba(0,0,0,.28); }
  .site-language > .site-dropdown { left: auto; right: 0; }
  .site-dropdown li { list-style: none; margin: 0; padding: 0; }
  .site-header .site-dropdown a { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
  .site-dropdown a:hover { background: rgba(18,23,22,.06); }
  .site-dropdown small { margin-left: auto; color: #646b69; font-size: 12px; }
  .site-dropdown a > span { width: 16px; }
  .site-header :focus-visible { outline: 2px solid #121716; outline-offset: 3px; }
  .site-header .site-demo:focus-visible { outline-offset: 4px; }
  html { scroll-padding-top: 96px; }
  .skip:focus { z-index: 101; }
}

/* Mobile and tablet (< 1024px), marketing, legal and blog pages: the home's mobile header style.
   Logo, language pill and ☰ in a 56px translucent pill; ☰ opens a full-screen menu like the home drawer.
   Home keeps its own header and drawer. */
.site-burger, .site-drawer { display: none; }
@media (max-width: 1023px) {
  body:is([data-site-page="applications"], [data-site-page="developers"], [data-site-page="demo"], [data-site-page="privacy"], [data-site-page="terms"], [data-site-page="blog"]) {
    & [data-site-legacy], & > .product-nav { display: none !important; }
    & .site-header-shell { display: block; position: relative; height: 80px; z-index: 100; }
    & .site-header {
      box-sizing: border-box; position: fixed; inset: 12px 12px auto; z-index: 2;
      display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 20px;
      border-radius: 999px; color: #121716; background: rgba(247, 250, 249, .5);
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      font-family: "Inter", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif; font-size: 16px; font-weight: 500;
    }
    & .site-header *, & .site-drawer * { box-sizing: border-box; }
    & .site-header a { text-decoration: none; color: inherit; }
    & .site-logo { display: block; flex: none; width: 112px; height: 24px; }
    & .site-logo img { display: block; width: 112px; height: 24px; }
    & .site-nav, & .site-demo { display: none; }
    & .site-actions { display: flex; align-items: center; margin-left: auto; }
    & .site-header details { position: relative; margin: 0; padding: 0; border: 0; }
    & .site-header summary { list-style: none; cursor: pointer; }
    & .site-header summary::-webkit-details-marker { display: none; }
    & .site-language > summary { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; font-size: 13px; line-height: 1; }
    & .site-language > summary svg { width: 16px; height: 16px; }
    & .site-language > .site-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 208px; margin: 0; padding: 8px; list-style: none; border: 1px solid rgba(18,23,22,.08); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 40px -16px rgba(0,0,0,.28); }
    & .site-dropdown li { margin: 0; padding: 0; list-style: none; }
    & .site-dropdown a { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; }
    & .site-dropdown small { margin-left: auto; color: #646b69; font-size: 12px; }
    & .site-dropdown a > span { width: 16px; }
    & .site-burger { display: block; flex: none; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: 24px; line-height: 1.2; cursor: pointer; }
    & .site-burger:focus-visible, & .site-header :focus-visible, & .site-drawer a:focus-visible { outline: 2px solid #121716; outline-offset: 3px; }
    & .site-drawer {
      display: block; position: fixed; inset: 0; z-index: 1; overflow-y: auto;
      padding: calc(112px + env(safe-area-inset-top, 0px)) clamp(24px, 6.25vw, 96px) max(32px, env(safe-area-inset-bottom));
      background: #f7faf9; color: #121716; opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity .3s cubic-bezier(.2,0,0,1), visibility 0s .3s;
    }
    & .site-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s cubic-bezier(.2,0,0,1); }
    & .site-drawer a { display: block; padding: 16px 0; border-bottom: 1px solid #c1c7c5; color: inherit; text-decoration: none;
      font-family: "Inter", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
      opacity: 0; transform: translateY(12px); transition: opacity .3s cubic-bezier(.2,0,0,1), transform .3s cubic-bezier(.2,0,0,1); }
    & .site-drawer.open a { opacity: 1; transform: none; transition-delay: .08s; }
    & .site-drawer a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
    & .site-drawer a.site-drawer-cta { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 32px; padding: 0 24px; border: 1px solid #121716; background: #121716; color: #fff; font-size: 15px; font-weight: 500; }
    & .site-drawer a.site-drawer-watch { background: transparent; color: #121716; }
    & .site-drawer a.site-drawer-watch + .site-drawer-cta { margin-top: 12px; }
  }
  html:has(body:is([data-site-page="applications"], [data-site-page="developers"], [data-site-page="demo"], [data-site-page="privacy"], [data-site-page="terms"], [data-site-page="blog"])) { scroll-padding-top: 80px; }
  html:has(body.site-drawer-open) { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .site-drawer, .site-drawer a { transition: none !important; transform: none !important; } }

/* Closing block of every page except the home: a copy of the home's Contact block and footer (tools/site_chrome.py site_end),
   with the home's values and motion — the lime surface fills in as it rises (--cin), its text and the footer columns appear once (.rv),
   and the footer waits behind the rounded end of the block and is uncovered as the block scrolls away (sticky inside .site-end). */
body:not([data-site-page="home"]) > footer.foot, body[data-site-page="blog"] main > .contact { display: none; }   /* the pages' older endings */
.site-end { position: relative; clear: both; background: #121716; --site-gutter: clamp(24px, 6.25vw, 96px); color: #121716; font-family: "Inter", -apple-system, "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.6; text-align: left; word-break: keep-all; -webkit-font-smoothing: antialiased; }
.site-end, .site-end *, .site-end *::before, .site-end *::after { box-sizing: border-box; }
.site-end * { margin: 0; padding: 0; }
.site-end a { color: inherit; text-decoration: none; }
.site-end .wrap { max-width: none; margin: 0 auto; padding: 0 var(--site-gutter); }
.site-end .site-cta { position: relative; z-index: 1; display: block; min-height: 0; max-width: none; margin: 0; padding: 168px 0; border: 0; border-radius: 0 0 24px 24px; background: #f7faf9; }
.site-end .site-cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #abff4f; opacity: var(--cin, 1); }
.site-end .site-cta .bg { display: none; }
.site-end .site-cta .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.site-end .site-cta h2.en { grid-column: 1 / -1; max-width: none; margin: 0 0 32px; padding: 0; border: 0; color: #121716; font-size: clamp(44px, 5.6vw, 84px); font-weight: 300; line-height: .92; letter-spacing: -.05em; text-wrap: initial; }
.site-end .site-cta .big { max-width: none; margin: 0; padding: 24px 0 0; border-top: 1px solid rgb(0 0 0 / .25); color: #121716; font-size: clamp(30px, 3.4vw, 36px); font-weight: 500; line-height: 1.4; letter-spacing: -.045em; }
.site-end .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.site-end .btn { display: inline-flex; align-items: center; justify-content: center; width: auto; height: 48px; min-height: 0; padding: 0 24px; border: 1px solid #121716; border-radius: 0; background: transparent; color: #121716; font-size: 15px; font-weight: 500; line-height: 1.6; }
.site-end .btn.solid { background: #121716; color: #fff; }
.site-end .site-footer { display: block; width: 100%; max-width: none; margin: 0; padding: 80px 0 16px; border: 0; color: #a2a8a7; background: #121716; font-size: 15px; line-height: 1.6; }
/* Layered, once site-chrome.js knows the footer's height: the footer rests at the bottom of the window behind the block, as the home's fixed footer does.
   Its track reaches one window above the block so it can already rest there while the block is still entering; the wrapper clips whatever lies outside the block. */
.site-end.is-layered { padding-bottom: var(--site-ft-h); overflow: hidden; overflow: clip; }
.site-end.is-layered .site-foot-track { position: absolute; z-index: 0; top: -100svh; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; pointer-events: none; }
.site-end.is-layered .site-footer { position: sticky; bottom: min(0px, calc(100svh - var(--site-ft-h))); pointer-events: auto; }
.site-end .ft { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px 80px; max-width: none; }
.site-end .ft-brand b { display: block; color: #f7faf9; font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.site-end .ft-brand p { max-width: 32ch; margin-top: 4px; }
.site-end .ft-soc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.site-end .ft-soc a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; }
.site-end .ft-soc a:first-child { margin-left: -10px; }   /* the first icon lines up with the text edge, as on the home */
.site-end .ft-soc svg { width: 20px; height: 20px; }
.site-end .ft-legal { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.site-end .ft-col { display: flex; flex-direction: column; gap: 8px; }
.site-end .ft-col .ft-title { margin-bottom: 4px; color: #f7faf9; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.site-end .site-footer a:hover { color: #fff; }
.site-end .ft-mark { width: 100%; margin-top: 64px; padding: 0 16px; }
.site-end .ft-mark svg { display: block; width: 100%; height: auto; }
.site-end .ft-mark svg [fill="#fff"] { fill: #252b2a; }
.site-end .ft-mark svg :is(path, polygon):not([fill]) { fill: #121716; }
.site-end :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-end .rv { opacity: 0; transform: translateY(24px); transition: opacity .5s cubic-bezier(.33,1,.68,1) var(--d, 0s), transform .5s cubic-bezier(.33,1,.68,1) var(--d, 0s); }
.site-end .rv.in { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .site-end { --site-gutter: 24px; }
  .site-end .site-cta { padding: 120px 0 96px; }   /* 80px menu bar + 40px, as on the home */
  .site-end .site-cta .inner { grid-template-columns: minmax(0, 1fr); padding: 0 20px; }
  .site-end .site-cta h2.en { font-size: min(12vw, 52px); }
  .site-end .site-cta .big { font-size: 28px; }
  .site-end .btn { width: 100%; }
  .site-end .ft { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-end .ft-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .site-end .rv { opacity: 1; transform: none; transition: none; } }

body[data-site-page="blog"] .site-end { margin-top: var(--section-top, 96px); }   /* the blog pages kept this distance before their older Contact block */
