/*
 * SPARC header and footer — Figma "Home · Desktop 1440":
 * header = Group 1707481984 (sticky surface 135px, Nav (pill), SPARC sub-nav · slim)
 * footer = Footer (light).
 * Values are taken 1:1 from Figma (including the fractional sizes the frame uses).
 */
:root {
	--g-ink: #21211c;
	--g-mute: #6b6b66;
	--g-sand: #f6f5f4;
	--g-amber: #ffad1f;
	--g-orange: #ff610a;
	--g-blue: #008ae5;
	--g-line: rgba(33, 33, 28, .1);
	--g-rule: rgba(33, 33, 28, .25);
	--g-font: "Mona Sans", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--g-side: max(24px, 8.3334%);
	--header-h: 135px;
	--g-ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- Header: sticky surface ---------- */
.g-spacer { height: 135px; }
.g-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 135px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(7.54px); backdrop-filter: blur(7.54px); font-family: var(--g-font); color: var(--g-ink); transition: height .45s var(--g-ease), box-shadow .45s var(--g-ease); }
.admin-bar .g-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .g-header { top: 46px; } }
.g-header a { text-decoration: none; }

/* Top bar: logo · menu pill · button (Nav (pill): left/right 8.33%, top 18, height 51.517). */
.g-bar { position: absolute; top: 18px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 51.517px; width: calc(100% - 2 * var(--g-side)); max-width: 1200px; margin: 0 auto; transition: opacity .3s var(--g-ease), transform .45s var(--g-ease), visibility 0s linear 0s; }
.g-logo { display: block; flex: none; width: 126.22px; height: 39.359px; color: var(--g-ink); }
.g-logo__img { display: block; width: auto; height: 39.359px; max-width: 220px; }
.g-logo img[src$=".svg"] { width: 126.22px; }

/* Menu bar (pill). */
.g-menu { display: contents; }
.g-menu__list { position: relative; display: flex; align-items: center; gap: 15.08px; margin: 0; padding: 9.048px 18.096px; list-style: none; border-radius: 75.4px; background: rgba(255, 255, 255, .92); box-shadow: 0 6.032px 22.62px rgba(33, 32, 28, .06), inset 0 0 15.08px #fff; }
.g-menu__item { position: relative; margin: 0; }
.g-menu__link { display: flex; align-items: center; gap: 6.032px; padding: 9.048px 13.572px; border: 0; border-radius: 75.4px; background: none; font: 500 15.08px/1 var(--g-font); letter-spacing: .1508px; color: var(--g-ink); white-space: nowrap; cursor: pointer; transition: background-color .2s ease; }
.g-menu__link:hover, .g-menu__link:focus-visible, .g-menu__item.is-open > .g-menu__link { background: var(--g-sand); color: var(--g-ink); }
.g-menu__item.is-on > .g-menu__link { background: var(--g-sand); }
.g-chev { display: block; width: 9.048px; height: 9.048px; flex: none; transition: transform .2s ease; }
.g-menu__item.is-open .g-chev { transform: rotate(180deg); }
.g-split > .g-menu__link { padding: 0; gap: 0; }
.g-split > .g-menu__link > a { display: flex; align-items: center; gap: 6.032px; padding: 9.048px 0 9.048px 13.572px; color: var(--g-ink); }
.g-menu__chev { display: flex; align-items: center; padding: 9.048px 13.572px 9.048px 6.032px; border: 0; background: none; cursor: pointer; align-self: stretch; }
.g-badge { display: inline-flex; align-items: flex-start; padding: 3.016px 6.786px; border-radius: 75.4px; background: var(--g-blue); font: 500 9.048px/1 var(--g-font); letter-spacing: .5429px; text-transform: uppercase; color: #fff; }

/* Dropdowns (top bar and SPARC bar). */
.g-drop { position: absolute; left: 0; top: calc(100% + 12px); z-index: 5; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(33, 32, 28, .12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.g-has-drop.is-open > .g-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.g-drop a { display: block; padding: 10px 12px; border-radius: 10px; font: 500 15px/1.3 var(--g-font); color: var(--g-ink); white-space: nowrap; }
.g-drop a:hover, .g-drop a:focus-visible, .g-drop a[aria-current="page"] { background: var(--g-sand); }

/* Button · Book a demo (primary). */
.g-btn { display: inline-flex; align-items: center; gap: 7.54px; flex: none; padding: 9.802px 13.572px 9.802px 15.08px; border-radius: 10.556px; background: var(--g-amber); font: 600 12.818px/normal var(--g-font); color: var(--g-ink); white-space: nowrap; transition: filter .2s ease; }
.g-btn:hover { color: var(--g-ink); filter: brightness(.96); }
.g-btn--menu { display: none; }

/* SPARC sub-nav · slim: top 84, height 36, hairline under it; 15px of surface below. */
.g-sub { position: absolute; top: 84px; left: 0; right: 0; border-bottom: .754px solid var(--g-line); transition: transform .45s var(--g-ease), border-color .3s var(--g-ease); }
.g-sub__in { position: relative; display: flex; align-items: center; gap: 21.112px; height: 36px; width: calc(100% - 2 * var(--g-side)); max-width: 1200px; margin: 0 auto; }
.g-sub__logo { display: flex; align-items: center; gap: 4.143px; flex: none; color: var(--g-ink); }
.g-sub__mark { position: relative; display: block; width: 11.877px; height: 11.31px; }
.g-sub__mark img { position: absolute; top: -5.34%; left: -5.09%; display: block; width: 110.18%; height: 110.68%; max-width: none; }
.g-sub__word { font: 700 12.429px/16.571px "JetBrains Mono", "Geist Mono", ui-monospace, monospace; color: var(--g-ink); }
.g-sub__word i { font-style: normal; color: var(--g-orange); }
.g-sub__img { display: block; height: 17px; width: auto; }
.g-sub__div { flex: none; width: .754px; height: 13.572px; background: rgba(33, 33, 28, .15); }
.g-sub__nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.g-sub__list { position: relative; isolation: isolate; display: inline-flex; vertical-align: middle; align-items: center; gap: 21.112px; margin: 0; padding: 0; list-style: none; transition: transform .45s var(--g-ease); }
.g-sub__list::before { content: ""; position: absolute; inset: -7.5px -22px; z-index: -1; border-radius: 75.4px; background: rgba(255, 255, 255, .92); box-shadow: 0 6.032px 22.62px rgba(33, 32, 28, .06), inset 0 0 15.08px #fff; opacity: 0; transition: opacity .35s var(--g-ease); }
.g-sub__div { transition: opacity .3s var(--g-ease); }

/* Compact header after scrolling (wide screens): Glow bar out, SPARC bar up into its place. */
@media (min-width: 1100px) {
	.g-header.is-compact { height: 72px; box-shadow: 0 1px 0 var(--g-line); }
	.g-header.is-compact .g-bar { opacity: 0; visibility: hidden; transform: translateY(-14px); pointer-events: none; transition: opacity .25s var(--g-ease), transform .45s var(--g-ease), visibility 0s linear .45s; }
	.g-header.is-compact .g-sub { transform: translateY(-66px); border-bottom-color: transparent; }
	.g-header.is-compact .g-sub__list { transform: translateX(var(--g-nav-shift, 0)); }
	.g-header.is-compact .g-sub__list::before { opacity: 1; }
	.g-header.is-compact .g-sub__div { opacity: 0; }
	.g-sub__logo { transform-origin: left center; transition: transform .45s var(--g-ease); will-change: transform; }
	.g-header.is-compact .g-sub__logo { transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .g-header, .g-bar, .g-sub, .g-sub__list, .g-sub__list::before { transition: none !important; } }
.g-sub__list > li { position: relative; margin: 0; }
.g-sub__link { position: relative; display: flex; align-items: center; height: 36.192px; padding: 0; border: 0; background: none; font: 500 12.064px/normal var(--g-font); color: var(--g-mute); white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.g-sub__link:hover, .g-sub__link[aria-current="page"], .g-sub__link.is-on { color: var(--g-ink); }
.g-sub__link[aria-current="page"]::after, .g-sub__link.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.508px; background: var(--g-orange); }
.g-drop--sub { top: 100%; }
.g-sub__cta { flex: none; font: 600 12.064px/normal var(--g-font); color: var(--g-ink); white-space: nowrap; }
.g-sub__cta:hover { color: var(--g-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Burger (small screens). */
.g-burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 75px; background: #fff; box-shadow: 0 6.032px 22.62px rgba(33, 32, 28, .08); cursor: pointer; align-items: center; justify-content: center; }
.g-burger span { position: relative; width: 18px; height: 2px; background: var(--g-ink); border-radius: 2px; }
.g-burger span::before, .g-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--g-ink); border-radius: 2px; transition: transform .25s ease; }
.g-burger span::before { top: -6px; } .g-burger span::after { top: 6px; }
.g-burger[aria-expanded="true"] span { background: transparent; }
.g-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.g-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
	:root { --header-h: 107px; }
	.g-spacer, .g-header { height: 107px; }
	.g-bar { top: 14px; height: 44px; }
	.g-bar > .g-btn { display: none; }
	.g-burger { display: inline-flex; }
	.g-menu { display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 70; padding: 16px var(--g-side) 32px; background: #fff; overflow-y: auto; }
	.admin-bar .g-menu { top: calc(var(--header-h) + 46px); }
	.g-menu.is-open { display: block; }
	.g-menu__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
	.g-menu__link { width: 100%; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--g-line); border-radius: 0; font-size: 18px; }
	.g-menu__link > span:first-child { margin-right: auto; }
	.g-menu__link .g-badge { margin-right: 8px; }
	.g-menu__item.is-on > .g-menu__link, .g-menu__link:hover { background: none; }
	.g-drop { position: static; display: none; min-width: 0; padding: 4px 0 12px 12px; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.g-menu__item.is-open > .g-drop { display: block; }
	.g-drop a { font-size: 16px; }
	.g-btn--menu { display: inline-flex; margin-top: 24px; padding: 12px 18px; font-size: 15px; }
	.g-sub { top: 70px; }
	.g-split > .g-menu__link > a { padding: 0; font-size: 18px; }
	.g-menu__chev { padding: 0 4px 0 16px; }
	.g-sub__in { overflow-x: auto; scrollbar-width: none; }
	.g-sub__in::-webkit-scrollbar { display: none; }
	.g-sub__nav { flex: none; }
	.g-sub__cta { margin-left: auto; padding-left: 12px; }
	.g-drop--sub { position: fixed; top: auto; left: var(--g-side); }
	body.g-nav-open { overflow: hidden; }
	/* A backdrop filter would trap the fixed menu panel inside the header, so drop it while the menu is open. */
	body.g-nav-open .g-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}

/* ---------- Footer: same sizes as the Glow website footer (section_home-footer) ---------- */
.g-foot { padding: 0 25px 25px; background: #fff; font-family: var(--g-font); color: #21201c; }
.g-foot a { color: #21201c; text-decoration: none; }
.g-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.g-foot ul { margin: 0; padding: 0; list-style: none; }
.g-foot__panel { padding: 48px max(56px, calc((100% - 1280px) / 2)) 48px; border-radius: 40px; background: #f6f5f4; }
.g-foot__logo { display: block; width: 145px; height: 45.2px; }
.g-foot__logo .g-logo__img { height: 45.2px; width: auto; max-width: 260px; }
.g-foot__logo img[src$=".svg"] { width: 145px; }
.g-foot__logo:hover { text-decoration: none; }
.g-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 55.04px; }
.g-foot__col { display: flex; flex-direction: column; gap: 15.04px; padding-top: 15.04px; border-top: 2px solid rgba(33, 32, 28, .25); }
.g-foot__h { margin: 0; padding-bottom: 1.5px; font: 500 24.96px/33.696px var(--g-font); letter-spacing: normal; color: #21201c; }
.g-foot__list { display: flex; flex-direction: column; gap: 15.04px; }
.g-foot__list a { display: block; padding-bottom: 1.5px; font: 400 18.08px/25.312px var(--g-font); }
.g-foot__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-top: 152px; padding-top: 28px; border-top: 1px solid rgba(33, 32, 28, .25); }
.g-foot__bottom-l { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.g-foot__util, .g-foot__legal-l, .g-foot__legal-list { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.g-foot__util a { display: block; font: 500 18.08px/25.312px var(--g-font); }
.g-foot__legal-l, .g-foot__legal-l a { font: 500 18.08px/25.312px var(--g-font); color: #5f5e5a; }
.g-foot__social { display: flex; gap: 18px; flex: none; }
.g-foot__social a { display: block; font: 400 14.6px/20px var(--g-font); color: #5f5e5a; }

@media (max-width: 991px) {
	.g-foot__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
	.g-foot { padding: 0 16px 16px; }
	.g-foot__panel { padding: 32px 32px 18.08px; border-radius: 10px; }
	.g-foot__logo, .g-foot__logo img[src$=".svg"] { width: 128px; }
	.g-foot__logo, .g-foot__logo .g-logo__img { height: 39.9px; }
	.g-foot__cols { grid-template-columns: 1fr 1fr; margin-top: 36px; }
	.g-foot__h { font-size: 18.08px; line-height: 25.9px; padding-bottom: 0; }
	.g-foot__list a { font-size: 16px; line-height: 22.4px; }
	.g-foot__bottom { margin-top: 64px; padding-top: 18px; gap: 20px; }
	.g-foot__util a, .g-foot__legal-l, .g-foot__legal-l a { font-size: 14px; line-height: 20px; }
	.g-foot__util, .g-foot__legal-l, .g-foot__legal-list { gap: 8px 20px; }
}
@media print { .g-header, .g-foot { display: none !important; } }
