/* Base and shared site shell. Page styles load after this layer. */
:root {
  --growth-header-clearance: calc(var(--growth-layout-header) + var(--growth-space-4));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--growth-color-bg);
  color-scheme: dark;
  scroll-padding-block-start: var(--growth-header-clearance);
  accent-color: var(--growth-color-accent);
  text-size-adjust: 100%;
}

html:has(.growth-header > .bf-banner) { --growth-header-clearance: 10.5rem; }

body {
  min-block-size: 100vh;
  margin: 0;
  background: var(--growth-color-bg);
  color: var(--growth-color-text);
  font: var(--growth-font-size-body)/var(--growth-line-height-body) var(--growth-font-family-sans);
  letter-spacing: var(--growth-letter-spacing-body);
}

img { max-inline-size: 100%; }
a { color: inherit; }

:focus-visible {
  outline: var(--growth-focus-width) solid var(--growth-color-focus);
  outline-offset: var(--growth-focus-offset);
}

.wrap {
  width: min(var(--growth-layout-wrap), calc(100% - 2 * var(--growth-layout-gutter)));
  margin-inline: auto;
}

/* The promo follows the skip link in DOM order. The header row sits above it visually. */
.growth-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--growth-layer-header);
  display: flex;
  flex-direction: column;
  border-block-end: 1px solid var(--growth-material-border);
  background: var(--growth-material-glass-solid);
}

@supports (backdrop-filter: blur(1px)) {
  .growth-header {
    background: var(--growth-material-glass);
    backdrop-filter: var(--growth-material-blur);
  }
}

.growth-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--growth-space-2) var(--growth-space-5);
  min-block-size: var(--growth-layout-header);
}

.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--growth-space-2);
  min-block-size: var(--growth-size-target);
  text-decoration: none;
}

.mark {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--growth-size-target);
  block-size: var(--growth-size-target);
  border: 1px solid var(--growth-color-accent);
  border-block-end: 2px solid var(--growth-color-signal);
  border-radius: var(--growth-radius-xs);
  color: var(--growth-color-accent);
  font: var(--growth-font-weight-bold) var(--growth-font-size-eyebrow)/1 var(--growth-font-family-mono);
  letter-spacing: var(--growth-letter-spacing-eyebrow);
}

.wordmark-text { display: grid; line-height: var(--growth-line-height-title); }
.wordmark-text strong { font: var(--growth-font-weight-semibold) 1.125rem/1.2 var(--growth-font-family-display); }
.wordmark-text span { color: var(--growth-color-text-secondary); font-size: var(--growth-font-size-caption); }

.growth-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--growth-space-1) var(--growth-space-2);
  min-inline-size: 0;
}

.growth-nav a {
  display: inline-flex;
  align-items: center;
  min-inline-size: var(--growth-size-target);
  min-block-size: var(--growth-size-target);
  padding-inline: var(--growth-space-2);
  border-radius: var(--growth-radius-xs);
  color: var(--growth-color-text-secondary);
  font-size: var(--growth-font-size-small);
  text-decoration: none;
}

.growth-nav a:hover, .growth-nav a[aria-current] { color: var(--growth-color-text); }
.growth-nav a[aria-current] { box-shadow: inset 0 -2px var(--growth-color-accent); }
.growth-nav .header-cta {
  padding-inline: var(--growth-space-4);
  border: 1px solid var(--growth-color-control-border);
  border-radius: var(--growth-radius-pill);
  color: var(--growth-color-text);
}
.growth-nav .header-cta:hover { border-color: var(--growth-color-accent); }

.growth-nav-toggle { display: none; }

@media (max-width: 1199px) {
  .growth-header__bar { flex-wrap: wrap; padding-block: var(--growth-space-2); }
  .growth-nav { width: 100%; }

  @supports selector(:popover-open) {
    .growth-header__bar { flex-wrap: nowrap; padding-block: 0; }
    .growth-nav-toggle {
      display: inline-grid;
      flex: none;
      place-content: center;
      gap: var(--growth-space-1);
      inline-size: var(--growth-size-target);
      block-size: var(--growth-size-target);
      border: 1px solid var(--growth-color-control-border);
      border-radius: var(--growth-radius-pill);
      background: var(--growth-color-surface);
      color: var(--growth-color-text);
      cursor: pointer;
    }
    .growth-nav-toggle::before, .growth-nav-toggle::after {
      content: "";
      inline-size: var(--growth-space-4);
      border-block-start: 2px solid currentColor;
    }
    .growth-nav[popover] { display: none; }
    .growth-nav[popover]:popover-open {
      position: fixed;
      inset: calc(var(--growth-layout-header) + var(--growth-space-2)) var(--growth-layout-gutter) auto auto;
      display: grid;
      width: min(22rem, calc(100% - 2 * var(--growth-layout-gutter)));
      max-block-size: calc(100dvh - var(--growth-layout-header) - var(--growth-space-4));
      margin: 0;
      padding: var(--growth-space-3);
      overflow: auto;
      border: 1px solid var(--growth-color-control-border);
      border-radius: var(--growth-radius-lg);
      background: var(--growth-color-surface);
      color: var(--growth-color-text);
      box-shadow: var(--growth-shadow-2);
    }
    .growth-nav[popover] .header-cta { margin-block-start: var(--growth-space-2); }
  }
}

@media (min-width: 1200px) {
  html:has(.growth-header > .bf-banner) { --growth-header-clearance: 8rem; }
  .growth-nav[popover] {
    position: static;
    display: flex;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
  }
}

.bf-banner {
  order: 1;
  padding-inline: var(--growth-layout-gutter);
  border-block-end: 2px solid var(--growth-color-signal);
  background: var(--growth-color-accent) var(--growth-gradient-accent);
  color: var(--growth-color-text-on-accent);
  font-size: var(--growth-font-size-small);
  line-height: var(--growth-line-height-snug);
  text-align: center;
}

.bf-banner p { margin: 0; }
.bf-banner a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--growth-size-target);
  padding-inline: var(--growth-space-1);
  color: inherit;
  font-weight: var(--growth-font-weight-bold);
  text-underline-offset: 0.15em;
  white-space: nowrap;
}
.bf-banner a:focus-visible { outline-color: var(--growth-color-text-on-accent); outline-offset: 0; }
.bf-waived { color: var(--growth-color-accent); font-weight: var(--growth-font-weight-bold); }
.price-terms s { color: var(--growth-color-text-tertiary); }

.growth-footer {
  border-block-start: 1px solid var(--growth-color-line-strong);
  background: var(--growth-color-bg-raised);
  color: var(--growth-color-text-secondary);
  font-size: var(--growth-font-size-small);
}
.growth-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--growth-space-2) var(--growth-space-6);
  padding-block: var(--growth-space-6);
}
.growth-footer a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--growth-size-target);
  min-inline-size: var(--growth-size-target);
  text-underline-offset: 0.25em;
}
.growth-footer a:hover { color: var(--growth-color-accent); }
.growth-footer a[href^="tel"] { white-space: nowrap; }
.growth-footer__inner > span { max-inline-size: 100%; }
.footer-line { flex-basis: 100%; margin: 0; color: var(--growth-color-text); font-size: var(--growth-font-size-body); }
.sep { margin-inline: var(--growth-space-2); color: var(--growth-color-accent); }

.sticky-call-bar { display: none; }
@media (max-width: 760px) {
  html:has(.sticky-call-bar) { scroll-padding-block-end: 4.5rem; }
  body:has(.sticky-call-bar) { padding-block-end: 4.5rem; }
  .sticky-call-bar {
    position: fixed;
    z-index: var(--growth-layer-header);
    inset: auto 0 0;
    display: block;
    padding: var(--growth-space-2) var(--growth-layout-gutter);
    border-block-start: 1px solid var(--growth-color-line-strong);
    background: var(--growth-color-bg);
  }
  .sticky-call-btn { width: 100%; }
}

@media (forced-colors: active) {
  :focus-visible, .bf-banner a:focus-visible { outline-color: Highlight; }
  :is(.growth-nav-toggle, .growth-nav .header-cta, .growth-nav[popover]:popover-open) { border-color: ButtonText; }
  .growth-nav a[aria-current] { text-decoration: underline; }
}

@media print {
  :root {
    color-scheme: light;
    --growth-color-bg: white;
    --growth-color-bg-raised: white;
    --growth-color-bg-sunken: white;
    --growth-color-surface: white;
    --growth-color-surface-raised: white;
    --growth-color-text: black;
    --growth-color-text-secondary: black;
    --growth-color-text-tertiary: black;
    --growth-color-text-on-accent: black;
    --growth-color-accent: black;
    --growth-color-accent-hover: black;
    --growth-color-danger: black;
  }
  .growth-header { position: static; background: none; }
  .growth-header .bf-banner, .growth-header .growth-nav-toggle, .sticky-call-bar { display: none; }
  body:has(.sticky-call-bar) { padding-block-end: 0; }
}
