/* The site-wide top bar, Solutions menu, phone menu and footer on direction G, the
   same on every page and in every language so nothing moves between pages.
   Self-contained: the G Midnight values are set on the chrome itself, so it renders
   the same on pages still on the older stylesheets. Classes are gc- prefixed so the
   older header and footer rules cannot reach it. Top bar after linear.app; menu after
   linear.app and stripe.com. */

.gc-header, .gc-footer {
  --gc-surface: #121a2b; --gc-raised: #1b2540; --gc-hairline: #2a3553; --gc-ink: #f5f6f8;
  --gc-muted: #aab4c4; --gc-steel: #8aa4c4; --gc-steel-deep: #4a6890; --gc-rose: #e6a3a3;
  --gc-on-rose: #121a2b; --gc-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gc-name: "Newsreader", Georgia, serif;
  font-family: var(--gc-sans); color: var(--gc-ink); -webkit-font-smoothing: antialiased;
}
.gc-header *, .gc-footer * { box-sizing: border-box; }
.gc-wrap { width: 100%; max-width: calc(1180px + 32px); margin: 0 auto; padding: 0 16px; }
html { scroll-padding-top: 88px; }

/* Top bar */
.gc-header { position: sticky; top: 0; z-index: 50; margin: 0; padding: 0; background: color-mix(in srgb, var(--gc-surface) 72%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 0; border-bottom: 1px solid rgba(201,214,230,.08); }
.gc-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 72px; }
.gc-wordmark { display: inline-flex; align-items: center; gap: .42em; font: 400 22px/1 var(--gc-name); letter-spacing: .14em; color: var(--gc-ink); text-decoration: none; }
.gc-wordmark svg { width: .72em; height: .9em; color: var(--gc-rose); flex: none; }
/* The letters are drawn as an outline of Newsreader, not typed, so the logo is the
   same shape from the first frame of every page instead of swapping fonts. */
.gc-wordmark svg.gc-word { width: 3.24em; height: 1em; color: var(--gc-ink); }
.gc-nav, .gc-end { display: flex; align-items: center; gap: 2px; }
.gc-nav { margin-left: auto; }
.gc-end { gap: 8px; padding-left: 14px; margin-left: 8px; border-left: 1px solid rgba(201,214,230,.12); }
.gc-nav > a, .gc-header summary { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font: 400 14px/1 var(--gc-sans); color: var(--gc-muted); text-decoration: none; cursor: pointer; list-style: none; transition: background-color .15s ease, color .15s ease; }
.gc-header summary::-webkit-details-marker { display: none; }
.gc-nav > a:hover, .gc-nav > a[aria-current="page"], .gc-header summary:hover, .gc-header details[open] > summary { color: var(--gc-ink); background: rgba(201,214,230,.08); }
.gc-chev { width: 14px; height: 14px; transition: transform .2s; }
.gc-header details[open] > summary .gc-chev { transform: rotate(180deg); }
.gc-cta { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 6px; background: var(--gc-rose); color: var(--gc-on-rose); font: 500 13px/1 var(--gc-sans); text-decoration: none; white-space: nowrap; transition: background-color .15s cubic-bezier(.2,.7,.2,1); }
.gc-cta:hover { background-image: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)); }
.gc-cta:active { background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)); }
/* Book a demo carries Francois's photo: the call is booked with him. */
.gc-cta:has(.gc-cta-face) { gap: 8px; padding-left: 4px; }
.gc-cta-face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--gc-on-rose) 22%, transparent); }
.gc-header :focus-visible, .gc-footer :focus-visible { outline: 2px solid var(--gc-rose); outline-offset: 3px; }

/* Language menu */
.gc-lang { position: relative; }
.gc-lang ul { position: absolute; right: 0; top: calc(100% + 19px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--gc-raised); border: 1px solid var(--gc-hairline); border-radius: 8px; box-shadow: 0 24px 48px -24px rgba(5,7,12,.6); }
.gc-lang a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--gc-ink); text-decoration: none; }
.gc-lang a:hover { background: rgba(201,214,230,.06); color: var(--gc-rose); }

/* Solutions menu */
.gc-menu { position: absolute; top: calc(100% - 4px); right: 0; display: grid; grid-template-columns: minmax(0, 1fr) 248px; width: 760px; overflow: hidden; background: var(--gc-raised); border: 1px solid var(--gc-hairline); border-radius: 8px; box-shadow: 0 24px 48px -24px rgba(5,7,12,.6); }
.gc-menu-main { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; padding: 22px; }
.gc-menu-col, .gc-menu-side { display: flex; flex-direction: column; }
.gc-menu-head { margin: 0 0 8px; padding: 0 10px 8px; border-bottom: 1px solid var(--gc-hairline); font: 500 13px/1.3 var(--gc-sans); color: var(--gc-muted); }
.gc-item, .gc-link { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; transition: background-color .15s ease; }
.gc-item strong { display: block; font: 500 14px/1.3 var(--gc-sans); color: var(--gc-ink); transition: color .15s ease; }
.gc-item span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--gc-muted); }
.gc-link { font-size: 14px; line-height: 1.4; color: var(--gc-ink); }
.gc-item:hover, .gc-link:hover { background: rgba(201,214,230,.06); }
.gc-item:hover strong, .gc-link:hover { color: var(--gc-rose); }
.gc-menu-side { padding: 22px 22px 22px 0; }

/* Phone menu */
.gc-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--gc-hairline); border-radius: 6px; cursor: pointer; }
.gc-toggle span { width: 16px; height: 1.5px; background: var(--gc-ink); }
.gc-mobile { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 96px); overflow-y: auto; margin: 0 0 14px; padding: 22px; background: var(--gc-raised); border: 1px solid var(--gc-hairline); border-radius: 8px; }
.gc-mobile[hidden] { display: none; }
.gc-mobile p { margin: 14px 0 2px; font: 600 12px/1.4 var(--gc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gc-steel); }
.gc-mobile p:first-child { margin-top: 0; }
.gc-mobile a { padding: 8px 0; color: var(--gc-ink); text-decoration: none; font-size: 15px; }

/* Footer */
.gc-footer { margin: 0; padding: 64px 0; background: var(--gc-surface); border: 0; border-top: 1px solid rgba(201,214,230,.08); }
.gc-footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 44px; }
.gc-footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 64px; }
.gc-footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.gc-footer-cols p { margin: 0 0 4px; font: 600 12px/1.4 var(--gc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gc-steel); }
.gc-footer-cols a { font-size: 14px; color: var(--gc-muted); text-decoration: none; }
.gc-footer-cols a:hover { color: var(--gc-ink); }

@media (max-width: 960px) {
  .gc-nav, .gc-end .gc-lang { display: none; }
  .gc-toggle { display: inline-flex; }
  .gc-end { border-left: 0; padding-left: 0; margin-left: auto; }
  .gc-footer-row { flex-direction: column; }
  .gc-footer-cols { grid-template-columns: repeat(2, auto); gap: 44px; }
}
@media (max-width: 640px) {
  .gc-cta { padding: 0 12px; }
  .gc-footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

/* Skip link: off screen until a keyboard user tabs to it, then a small pill top left */
.skip { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 8px 14px; border-radius: var(--radius, 6px);
  background: var(--surface, #f5f6f8); color: var(--ink, #121a2b); font: 500 14px/1.2 var(--font-sans); text-decoration: none; transition: top .15s ease; }
.skip:focus, .skip:focus-visible { top: 12px; outline: 2px solid var(--focus, #4a6890); outline-offset: 2px; }

/* Page to page: the browser keeps the old page until the new one has drawn, then
   cross-fades the content while the top bar stays put, so moving between pages
   does not flash. The dark html background covers the moment before styles load. */
html { background: #121a2b; }
@view-transition { navigation: auto; }
.gc-header { view-transition-name: gc-header; }
::view-transition-old(gc-header) { display: none; }
::view-transition-new(gc-header) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
