/* =====================================================================
   Sprint Studio — shared site chrome
   Used by every page. Page-specific styles (heroes,
   capability cards, pricing tiers etc.) stay inline on each page.

   Palette: near-black surface + electric blue accent. Single hot accent
   (--accent) on a pure-black background. Code/terminal accents in mono.
   ===================================================================== */

/* -------------------- Self-hosted Google Sans ----------------------- */
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Variable.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  /* Dark-first palette. Page sits on near-black; --ink is the high-contrast
     foreground used for both text on dark and button backgrounds. --paper is
     the page background, used as text-on-accent and as button text when the
     button bg is --ink (white). */
  --ink:        #FFFFFF;
  --ink-2:      rgba(255,255,255,0.78);
  --muted:      rgba(255,255,255,0.55);
  --muted-2:    rgba(255,255,255,0.38);
  --paper:      #000000;
  --paper-2:    #0B0B0F;     /* elevated surface, ~1 step up from page */
  --paper-3:    #14141A;     /* further elevated */
  --line:       rgba(255,255,255,0.12);
  --line-2:     rgba(255,255,255,0.07);

  /* Brand accent — single electric-blue tone. --accent-deep is the lighter
     "more emphasis" variant for hovers on dark; accent-on-paper text is
     always --paper (black) for contrast. */
  --accent:      #4D8FFF;
  --accent-deep: #7AABFF;
  --accent-soft: rgba(77,143,255,0.16);
  --accent-glow: rgba(77,143,255,0.55);

  --graphite:       #050507;     /* deeper-than-page band, for "dark moments" */
  --graphite-deep:  #000000;
  --graphite-line:  rgba(255,255,255,0.08);

  --green:      #5FDC8D;

  --radius:     28px;
  --radius-sm:  16px;
  --sans:       'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:       ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ===================================================================
   Top bar + mega nav
   =================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line-2); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 14px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-link img.wordmark { height: 40px; width: auto; display: block; }
/* Inline-SVG variant (injected by nav.js for the topbar) — keep the same
   rendered size, but allow the dot animation to paint outside the SVG box
   so the ball can drop visibly from the top of the page. */
.brand-link svg.wordmark { height: 40px; width: auto; display: block; overflow: visible; }

/* Thin vertical separator between the Sprint Studio wordmark and the
   group lockup. Sits inline as part of .brand, no margins of its own.
   Height tuned to span the cap-height of the heavy Sprint. wordmark. */
.brand-sep {
  display: inline-block;
  width: 1px; height: 34px;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

/* "Part of Clicky Group" lockup in the topbar — secondary to the
   Sprint Studio wordmark. Dark source asset is forced to white via
   `filter` and dimmed to ~62%; lifts to full opacity on hover. */
.brand-group {
  display: inline-flex; align-items: center;
  opacity: 0.62;
  flex: 0 0 auto;
  transition: opacity 200ms ease;
}
.brand-group:hover { opacity: 1; }
.brand-group img {
  height: 30px; width: auto; display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  .brand-link img.wordmark { height: 30px; }
  .brand-link svg.wordmark { height: 30px; }
  .brand-sep { height: 26px; }
  .brand-group img { height: 22px; }
}
/* Drop the group lockup on very tight viewports so the brand area
   doesn't collide with the hamburger. */
@media (max-width: 380px) {
  .brand-sep, .brand-group { display: none; }
}

.nav-links {
  display: flex; gap: 4px; align-items: center;
  flex: 0 0 auto;
}
.nav-link,
.nav-links > a:not(.nav-cta):not(.nav-login) {
  color: var(--ink-2);
  font-size: 14.5px; font-weight: 500;
  letter-spacing: -0.005em;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover,
.nav-links > a:not(.nav-cta):not(.nav-login):hover {
  color: var(--ink);
  background: var(--paper-2);
}
.nav-link.is-active,
.nav-links > a.is-active:not(.nav-cta):not(.nav-login) {
  color: var(--ink);
  background: var(--accent-soft);
}
.nav-login {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 14.5px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.nav-login:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 22px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  margin-left: 8px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.6);
  transition: background 180ms ease, transform 80ms ease, box-shadow 200ms ease, color 180ms ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 10px 28px -8px var(--accent-glow);
}
.nav-cta:active { transform: scale(0.98); }

/* Hamburger — hidden on desktop, shown at ≤880px */
.mob-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  flex: 0 0 auto;
  transition: background 160ms ease, border-color 160ms ease;
}
.mob-btn:hover { background: var(--paper-2); border-color: var(--ink); }
.mob-btn__icon { display: block; }
.mob-btn__icon--close { display: none; }
.mob-btn.is-open .mob-btn__icon--menu { display: none; }
.mob-btn.is-open .mob-btn__icon--close { display: block; }

.mob-actions {
  display: none;
  align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.mob-login {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 160ms ease, border-color 160ms ease;
}
.mob-login:hover, .mob-login:active { background: var(--paper-2); border-color: var(--ink); }
@media (max-width: 880px) {
  .mob-actions { display: inline-flex; }
}
@media (max-width: 380px) {
  .mob-login { padding: 0 12px; font-size: 13.5px; }
}

/* Mobile drawer */
.mob-nav {
  position: fixed;
  top: 88px; left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: var(--paper);
  border-top: 1px solid var(--line-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.21,0.61,0.35,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
body.mob-open { overflow: hidden; }

.mob-nav__scroll { padding: 8px 0 40px; }
.mob-nav__section { border-bottom: 1px solid var(--line-2); padding: 0 20px; }
.mob-nav__acc-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  font-family: var(--sans);
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0; padding: 18px 0;
  cursor: pointer;
  min-height: 56px;
}
.mob-nav__acc-caret { flex: 0 0 auto; transition: transform 220ms ease; }
.mob-nav__acc-btn.is-open .mob-nav__acc-caret { transform: rotate(180deg); }

.mob-nav__channels { display: none; padding-bottom: 12px; }
.mob-nav__channels[aria-hidden="false"] { display: block; }
.mob-nav__channel {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  min-height: 56px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  transition: color 160ms ease;
}
.mob-nav__channel:last-child { border-bottom: 0; }
.mob-nav__channel:hover { color: var(--ink-2); }
.mob-nav__channel .mega-card-mark { flex: 0 0 auto; width: 32px; height: 32px; }
.mob-nav__channel-text { display: flex; flex-direction: column; gap: 1px; }
.mob-nav__channel-name { font-size: 15px; font-weight: 500; }
.mob-nav__channel-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.mob-nav__links { display: flex; flex-direction: column; padding: 0 20px; }
.mob-nav__link {
  font-size: 17px; font-weight: 500; color: var(--ink-2);
  padding: 18px 0; min-height: 56px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line-2);
  transition: color 160ms ease;
}
.mob-nav__link:hover { color: var(--ink); }

.mob-nav__foot {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 0;
}
.mob-nav__login {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 500; font-size: 15px;
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease;
}
.mob-nav__login:hover { background: var(--paper-2); border-color: var(--ink); }
.mob-nav__cta {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 999px;
  background: var(--ink);
  font-family: var(--sans);
  font-weight: 500; font-size: 15px;
  color: var(--paper);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.5);
  transition: background 180ms ease, color 180ms ease;
}
.mob-nav__cta:hover { background: var(--accent); color: var(--paper); }

@media (max-width: 880px) {
  .nav-links { gap: 18px; }
  .nav-links > .nav-mega-trigger,
  .nav-links > .nav-more-trigger,
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links > .nav-login { display: none; }
  .nav-links > .nav-cta { display: none; }
  .mob-btn { display: flex; }
}
@media (min-width: 881px) {
  .mob-nav { display: none; }
}

/* Mega nav */
.nav-mega-trigger,
.nav-more-trigger {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-mega-trigger .nav-link .caret,
.nav-more-trigger .nav-link .caret {
  display: inline-block; margin-left: 4px;
  transition: transform 200ms ease;
}
.nav-mega-trigger.is-open .nav-link .caret,
.nav-more-trigger.is-open .nav-link .caret { transform: rotate(180deg); }
.more-panel {
  position: absolute; top: calc(100% + 14px); right: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(15,15,20,.04),
    0 24px 60px -28px rgba(15,15,20,.18);
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.21,0.61,0.35,1);
  z-index: 70;
}
.nav-more-trigger.is-open .more-panel {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.more-panel a {
  display: flex; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.more-panel a:hover { background: var(--paper-2); color: var(--ink); }

.mega-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(720px, calc(100vw - 64px));
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(15,15,20,0.04),
    0 24px 60px -28px rgba(15,15,20,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.21,0.61,0.35,1);
  z-index: 70;
}
.mega-panel::before {
  content: '';
  position: absolute; top: -10px; left: 50%;
  width: 18px; height: 18px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-right: 0; border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
  border-top-left-radius: 4px;
}
.nav-mega-trigger.is-open .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mega-card {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px;
  padding: 12px; border-radius: 14px;
  align-items: start;
  transition: background 160ms ease;
}
.mega-card:hover { background: var(--paper-2); }
.mega-card-mark {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px; font-weight: 600;
  flex: 0 0 auto;
}
.mega-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mega-card-title .arrow { opacity: 0; transform: translateX(-3px); transition: opacity 160ms ease, transform 160ms ease; }
.mega-card:hover .mega-card-title .arrow { opacity: 1; transform: translateX(0); }
.mega-card-desc {
  font-size: 12.5px; line-height: 1.55;
  color: var(--muted);
  margin-top: 2px;
}
.mega-card--lead {
  grid-template-columns: 56px 1fr;
  gap: 14px; padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line-2);
}
.mega-card--lead:hover {
  background: var(--paper-2);
  border-color: var(--line);
}
.mega-card--lead .mega-card-mark {
  width: 56px; height: 56px;
  font-size: 22px; border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
  border-color: transparent;
}
.mega-card-pill {
  display: inline-block;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.mega-card-pill--soon {
  background: rgba(15,15,20,0.06);
  color: var(--muted);
}
.mega-card-title--lead { font-size: 16px; font-weight: 700; }
.mega-section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding: 18px 12px 6px;
}
.mega-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  gap: 16px; flex-wrap: wrap;
}
.mega-foot a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 160ms ease;
}
.mega-foot a:hover { color: var(--ink); }
.mega-foot a .arrow { transition: transform 160ms ease; }
.mega-foot a:hover .arrow { transform: translateX(3px); }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform 80ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 200ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.6);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.btn-ghost {
  background: var(--paper); color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 200ms ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===================================================================
   Rainbow border flourish on every "Start a project" button — copied
   wholesale from clicky.co.uk's "Get started" pill (W_BookCallPill).
   Google brand-gradient (red → yellow → green → blue → purple) flows
   horizontally across a masked ring around the pill. On page load: a
   one-shot flourish (fade in, hold, fade out). On hover: the ring
   re-appears and keeps flowing for as long as the cursor is over the
   button. Applied via ::before so no extra markup.
   =================================================================== */
.gs-trigger,
.nav-cta,
.mob-nav__cta {
  position: relative;
  isolation: isolate;
  overflow: visible;  /* override .btn overflow:hidden so the outset ring renders */
}
.gs-trigger::before,
.nav-cta::before,
.mob-nav__cta::before {
  content: '';
  position: absolute; inset: -3px; border-radius: 999px;
  pointer-events: none;
  padding: 2.5px;
  background:
    linear-gradient(
      135deg,
      #ea4335 0%, #fbbc04 20%, #34a853 40%,
      #4285f4 60%, #9b72cb 80%, #ea4335 100%
    );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
          mask-composite: exclude;
  opacity: 0;
  animation: gs-rainbow-flow 2400ms linear 200ms forwards,
             gs-rainbow-fade 2400ms cubic-bezier(.2,.8,.2,1) 200ms forwards;
  will-change: background-position, opacity;
}
/* Hover: re-arm the ring. Swap the one-shot animations for a continuous
   flow + a quick fade-in so the rainbow returns whenever the cursor is
   over the button. */
.gs-trigger:hover::before,
.nav-cta:hover::before,
.mob-nav__cta:hover::before {
  animation: gs-rainbow-flow 2400ms linear infinite,
             gs-rainbow-fadein-hover 220ms ease forwards;
}
/* Keep the button solid white on hover — the rainbow border is the
   hover affordance, not a background colour change. The blue hover bg
   from the generic .btn-primary / .nav-cta rules is overridden here. */
.gs-trigger:hover,
.nav-cta:hover,
.mob-nav__cta:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}
@keyframes gs-rainbow-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes gs-rainbow-fade {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes gs-rainbow-fadein-hover {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-trigger::before,
  .nav-cta::before,
  .mob-nav__cta::before {
    animation: none !important; opacity: 0 !important;
  }
}

/* ===================================================================
   Section primitives
   =================================================================== */
.section { padding: 120px 0; position: relative; }
@media (max-width: 880px) { .section { padding: 80px 0; } }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 18px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: end; margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head h2 .accent {
  font-weight: 700;
  color: var(--ink);
}
.section-head .blurb {
  color: var(--muted); font-size: 17px; line-height: 1.6;
  max-width: 44ch; margin: 0;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

/* ===================================================================
   Hero — shared base (pages can override)
   =================================================================== */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-enter-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .accent    { animation: hero-rise 0.75s cubic-bezier(0.22,1,0.36,1) both 0ms; }
  .hero h1 .sub       { animation: hero-rise 0.75s cubic-bezier(0.22,1,0.36,1) both 80ms; }
  .hero .lede         { animation: hero-rise 0.75s cubic-bezier(0.22,1,0.36,1) both 180ms; }
  .hero .hero-actions { animation: hero-rise 0.75s cubic-bezier(0.22,1,0.36,1) both 300ms; }
}

.hero {
  background: var(--paper);
  color: var(--ink);
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { .hero { padding: 24px 0 48px; } }

/* "Live" eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow .live-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(95,220,141,0.6);
  animation: livePulse 2.2s ease-out infinite;
}
.eyebrow .sep { color: var(--line); }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95,220,141,0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(95,220,141,0); }
}

/* Hero aura — soft drift + pulse on the blue-tinted glows behind every
   hero (.hero--studio::before/::after on the home, .hero--page::before/::after
   on subpages). Two keyframes at different durations so ::before and ::after
   never sync up. transform-origin centred so scale reads as a breath rather
   than a slide. */
@keyframes hero-aura-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: 1; }
  50%      { transform: translate3d(-2.5%, 2%, 0) scale(1.08); opacity: 0.82; }
}
@keyframes hero-aura-drift-alt {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: 0.92; }
  50%      { transform: translate3d(3%, -2.5%, 0) scale(1.12); opacity: 0.74; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero--studio::before,
  .hero--page::before {
    transform-origin: 70% 30%;
    will-change: transform, opacity;
    animation: hero-aura-drift 14s ease-in-out infinite;
  }
  .hero--studio::after,
  .hero--page::after {
    transform-origin: 30% 70%;
    will-change: transform, opacity;
    animation: hero-aura-drift-alt 18s ease-in-out -6s infinite;
  }
}

/* ===================================================================
   Terminal typewriter — runs on the home hero eyebrow and on every
   subpage breadcrumb. The JS that drives it lives in nav.js; the CSS
   below just sizes & animates the cursor. Sizes are em-based so the
   same rules work whether the host is the 13px crumb or the larger
   hero eyebrow.
   =================================================================== */
.eyebrow-text { white-space: pre; }
.eyebrow-cursor {
  display: inline-block;
  width: 0.5em; height: 0.9em;
  background: var(--accent);
  vertical-align: -1px;
  margin-left: 0.22em;
  animation: eyebrow-blink 1.05s steps(1) infinite;
}
.eyebrow-cursor.is-done {
  animation:
    eyebrow-blink 1.05s steps(1) 3,
    eyebrow-cursor-fade 700ms 3.3s forwards;
}
@keyframes eyebrow-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes eyebrow-cursor-fade {
  to { opacity: 0; width: 0; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-cursor { display: none; }
}

/* ===================================================================
   Benefit cards — reusable on subpages
   =================================================================== */
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1040px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 280ms cubic-bezier(0.21,0.61,0.35,1),
              border-color 200ms ease, box-shadow 200ms ease;
  min-height: 220px;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 40px -20px rgba(15,15,20,0.15);
}
.benefit-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.benefit-card h3 {
  margin: 0;
  font-family: var(--sans); font-weight: 600;
  font-size: 20px; line-height: 1.25;
  letter-spacing: -0.015em;
}
.benefit-card p {
  margin: 0; font-size: 15px; line-height: 1.6;
  color: var(--muted);
}

/* ===================================================================
   FAQ accordion
   =================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.faq-item:hover { border-color: var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .toggle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  transition: transform 240ms ease, background 200ms ease, border-color 200ms ease;
  flex-shrink: 0;
}
.faq-item[open] summary .toggle {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: transparent;
  color: var(--paper);
}
.faq-item .a {
  margin: 14px 0 0;
  font-size: 15.5px; line-height: 1.65;
  color: var(--ink-2);
  max-width: 70ch;
}

/* ===================================================================
   CTA strip
   =================================================================== */
.cta-strip {
  background: var(--graphite);
  color: #fff;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 880px) { .cta-strip { padding: 80px 0 72px; } }
@media (max-width: 600px) { .cta-strip { padding: 56px 0 56px; } }
.cta-strip::before {
  content: '';
  position: absolute; inset: -10% -10% auto auto;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.35;
}
.cta-strip::after {
  content: '';
  position: absolute; inset: auto auto -20% -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(77,143,255,0.30), transparent 70%);
  pointer-events: none;
  opacity: 0.35;
}
.cta-strip .wrap { position: relative; z-index: 1; }
.cta-strip h3 {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 auto 32px;
  max-width: 24ch;
  color: #fff;
  text-wrap: balance;
}
.cta-strip h3 .accent {
  font-weight: 700;
  color: var(--accent);
}
.cta-strip .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-strip .btn-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 10px 28px -10px var(--accent-glow);
}
.cta-strip .btn-primary:hover {
  background: #fff;
  color: var(--paper);
  box-shadow: 0 14px 36px -10px rgba(255,255,255,0.35);
}
.cta-strip .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.cta-strip .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}
@media (max-width: 600px) {
  .cta-strip .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-strip .cta-actions .btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 15.5px; }
}

/* ===================================================================
   Footer
   =================================================================== */
footer {
  background: var(--paper);
  color: var(--muted);
  padding: 56px 0 28px;
  border-top: 1px solid var(--line-2);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
footer h4 {
  color: var(--ink); font-size: 13.5px;
  margin: 0 0 16px; font-weight: 500;
  letter-spacing: -0.005em;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--muted); font-size: 14.5px; transition: color 160ms ease; }
footer a:hover { color: var(--ink); }
.foot-brand .brand-link { gap: 10px; }
.foot-brand .brand-link img.wordmark { height: 40px; }
.foot-tag { color: var(--muted); font-size: 14.5px; max-width: 36ch; margin-top: 14px; line-height: 1.6; }

/* Part of Clicky Group — shared treatment */
.foot-group {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 8px 0 28px;
}
.foot-group__label {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.foot-group__link {
  display: inline-flex; align-items: center;
  opacity: 0.65;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(0.21,0.61,0.35,1);
}
.foot-group__link:hover { opacity: 1; transform: scale(1.04); }
.foot-group__link img { height: 30px; width: auto; display: block; }

.foot-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--muted-2); font-size: 13px;
  letter-spacing: -0.005em;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   Scroll reveals
   =================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 720ms cubic-bezier(0.21,0.61,0.35,1), transform 720ms cubic-bezier(0.21,0.61,0.35,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===================================================================
   "Get started" modal — shared chrome
   =================================================================== */
.gs-modal {
  position: fixed; inset: 0; z-index: 310;
  display: none;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(8px, 3vw, 32px);
  align-items: center; justify-content: center;
}
.gs-modal.is-open { display: flex; }

.gs-panel {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 92vh;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
  color: var(--ink);
}
.gs-panel--proposal {
  max-width: 800px; overflow: hidden;
  display: flex; flex-direction: row; align-items: stretch;
}
.gs-proposal-images {
  width: 220px; flex-shrink: 0;
  background: var(--paper-3);
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 20px 24px;
  gap: 18px;
}
.gs-prop-contents-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.gs-prop-contents ul { list-style: none; padding: 0; margin: 0; }
.gs-prop-contents li {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 12px; line-height: 1.4; color: var(--ink-2);
  padding: 4px 0; border-bottom: 1px solid var(--line-2);
}
.gs-prop-contents li::before {
  content: '✓'; color: var(--accent-deep); font-size: 11px; flex-shrink: 0;
}
.gs-proposal-right {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; max-height: 92vh;
  border-left: 1px solid var(--line-2);
}
@media (max-width: 640px) { .gs-proposal-images { display: none; } }

.gs-panel-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  gap: 12px;
  position: sticky; top: 0; background: var(--paper-2); z-index: 2;
}
.gs-panel-title { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; text-align: center; }
.gs-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  transition: color 140ms ease;
}
.gs-back:hover { color: var(--ink); }
.gs-close {
  width: 32px; height: 32px; padding: 0;
  background: var(--paper-2); border: none; border-radius: 50%;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 140ms ease, color 140ms ease;
}
.gs-close:hover { background: var(--line-2); color: var(--ink); }
#gs-choice > .gs-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
}

.gs-choice-head { padding: 44px 36px 24px; text-align: center; }
@media (max-width: 560px) { .gs-choice-head { padding: 48px 22px 20px; } }
.gs-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 10px;
}
#gs-choice h2 {
  font-size: clamp(22px, 3.5vw, 30px); font-weight: 500; letter-spacing: -0.022em;
  margin: 0; color: var(--ink);
}
.gs-choice-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: 0 28px 32px;
}
@media (max-width: 520px) { .gs-choice-grid { padding: 0 16px 24px; } }
.gs-choice-card {
  display: flex; align-items: stretch;
  padding: 0;
  background: var(--paper-3); border: 1.5px solid var(--line-2);
  border-radius: 16px; cursor: pointer; text-align: left; overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 120ms ease;
  font-family: var(--sans);
}
.gs-choice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px -8px var(--accent-glow);
  transform: translateY(-2px);
  background: var(--paper-2);
}
.gs-choice-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 22px; flex: 1;
}
.gs-choice-label { font-size: 16px; font-weight: 600; color: var(--ink); }
.gs-choice-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); flex: 1; }
.gs-choice-cta { font-size: 13.5px; font-weight: 600; color: var(--accent-deep); margin-top: 4px; }

.gs-panel--cal { max-width: 960px; }
.gs-cal-wrap { padding: 0; }
.gs-cal-iframe { display: block; width: 100%; height: min(72vh, 740px); border: none; }
.gs-cal-foot { padding: 14px 24px; font-size: 13px; color: var(--muted); text-align: center; border-top: 1px solid var(--line-2); }
.gs-cal-foot a { color: var(--accent-deep); }

.gs-form-body { padding: 24px 28px 32px; }
@media (max-width: 560px) { .gs-form-body { padding: 20px 18px 28px; } }
.gs-form { display: flex; flex-direction: column; gap: 14px; }
.gs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .gs-row { grid-template-columns: 1fr; } }
.gs-field {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.gs-field em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.gs-field input, .gs-field select, .gs-field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--paper-3); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px 13px;
  outline: none; width: 100%;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  appearance: none; -webkit-appearance: none;
}
.gs-field input::placeholder, .gs-field textarea::placeholder { color: var(--muted-2); }
.gs-field input:focus, .gs-field select:focus, .gs-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gs-field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.gs-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffffaa' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.gs-checks { border: none; padding: 0; margin: 0; min-width: 0; width: 100%; }
.gs-checks legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: block; }
.gs-checks-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.gs-checks label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 400; color: var(--ink);
  padding: 9px 13px; border-radius: 10px;
  border: 1.5px solid var(--line-2); cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.gs-checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.gs-checks input[type="checkbox"] { width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0; accent-color: var(--accent); }
.gs-submit {
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper); border: none; border-radius: 999px;
  padding: 13px 28px; width: 100%;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  transition: background 180ms ease, color 180ms ease, transform 80ms ease;
}
.gs-submit:hover { background: var(--accent); color: var(--paper); }
.gs-submit:active { transform: scale(0.99); }

.gs-success {
  padding: 56px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.gs-success[hidden] { display: none; }
.gs-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent);
  color: var(--paper); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.gs-success h2 { font-size: 23px; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.gs-success p { color: var(--muted); margin: 0; font-size: 14.5px; max-width: 360px; }
.gs-success-close {
  margin-top: 8px; padding: 10px 26px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: background 140ms ease;
}
.gs-success-close:hover { background: var(--paper-2); }

body.bd-locked { overflow: hidden; }
