/* ========================================
   site-base.css â€” shared base for legal & utility pages
   Subset of index.html design system, no animations,
   no hero-specific styles. Self-hosted fonts only.
   ======================================== */

/* Self-hosted fonts (no third-party CDN) */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/ubuntu-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/ubuntu-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/ubuntu-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url('../fonts/figtree-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300;
  font-display: block;
  src: url('../fonts/figtree-italic.woff2') format('woff2');
}

/* Design tokens â€” mirror of index.html :root.
   Only the subset legal/utility pages need; full token list lives in DESIGN_SYSTEM.md. */
:root {
  /* Heading scales, shared as tokens so the header-stack margins can be
     expressed against them (see "Header-stack optical rhythm" in
     DESIGN_SYSTEM.md). Must match index.html. */
  --section-heading-fs: clamp(2rem, 5vw, 3.5rem);
  --section-heading-sm-fs: clamp(1.5rem, 2.6vw, 2rem);
  --bg-primary: #161616;
  --bg-card: #242424;
  --accent: #EB5757;
  --accent-text: #FF8E8E;
  --success: #5B8C5A;
  --success-text: #8FCF8D;
  --highlight: #BF9A58;
  --highlight-text: #E6C87E;
  --conversion-text: #EBA18F;
  --text-primary: #FFEDC9;
  --text-secondary: #B3A08A;
  --text-tertiary: #D6C4A8;
  --text-muted: #998871;
  --border: #2D2D2D;
  --border-card: #474747;
  --link-underline-thickness: 1.6px;
  --link-underline-offset: 3px;
  --link-underline-color-rest: rgba(255, 142, 142, 0.4);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --font-weight-figtree-thin: 300;
}

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

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* Interactive labels should not be accidentally highlighted while activating controls. */
button,
.navbar__logo,
.navbar__links a,
.navbar__cta,
.navbar__toggle,
.btn-primary,
.btn-secondary,
.footer__links a,
.footer__email a,
.footer__socials a,
.footer__bottom a {
  -webkit-user-select: none;
  user-select: none;
}

html {
  scroll-padding-top: 128px;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus visible â€” keyboard navigation (matches index.html) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: fixed;
  left: 24px;
  top: 16px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 0;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(calc(-100% - 32px));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skip-link:focus-visible {
  opacity: 1;
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

main:focus {
  outline: none;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

body {
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', sans-serif;
}

/* Global link reset â€” matches index.html.
   Component-level overrides (navbar, footer) and the body-copy override (.page a)
   set their own colour + decoration. */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   NAVBAR (full â€” matches index.html exactly)
   ======================================== */
.navbar {
  --navbar-edge-space: 32px;
  --navbar-scrolled-edge-space: 20px;
  --navbar-column-gap: clamp(24px, 3vw, 40px);
  --navbar-link-gap: clamp(24px, 2.25vw, 32px);
  position: fixed;
  top: 16px;
  /* logo/CTA flush with frame outer edge: nav box is 1504 wide (frame 1440 + 32px nav padding Ã- 2) */
  left: max(0px, calc(50% - 752px));
  right: max(0px, calc(50% - 752px));
  transform: none;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: var(--navbar-column-gap);
  align-items: center;
  height: 80px;
  padding: 0 var(--navbar-edge-space);
  border-radius: 0;
  transition: top 0.5s ease, left 0.5s ease, right 0.5s ease,
              padding 0.5s ease, border-radius 0.5s ease,
              background-color 0.5s ease, backdrop-filter 0.5s ease,
              border-color 0.5s ease;
  border: 1px solid transparent;
}

.navbar.scrolled,
html.navbar-initial-scrolled .navbar {
  top: 16px;
  left: max(16px, calc(50% - 500px));
  right: max(16px, calc(50% - 500px));
  padding: 0 0 0 var(--navbar-scrolled-edge-space);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: top 0.5s ease, left 0.5s ease, right 0.5s ease,
              padding 0.5s ease, border-radius 0.5s ease,
              background-color 0.5s ease, backdrop-filter 0.5s ease,
              border-color 0.5s ease, box-shadow 0.35s ease;
}

.navbar.navbar--instant,
.navbar.navbar--instant .navbar__cta,
.navbar.navbar--instant .navbar__cta::before,
.navbar.navbar--instant .navbar__cta::after,
.navbar.navbar--instant .navbar__cta-outline {
  transition: none !important;
}

/* Reduced motion: no sliding or resizing on scroll, only a quick fade of the pill surface */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar.scrolled {
    transition: background-color 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
  }
}

.navbar.scrolled:has(.navbar__cta:hover) {
  box-shadow: inset -120px 0 80px -40px rgba(235, 87, 87, 0.12);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
  min-height: 44px;
  text-decoration: none;
}

.navbar__logo svg {
  height: 46px;
  width: auto;
  display: block;
}

.navbar__studio-name {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-left: 0;
  white-space: nowrap;
}

.navbar__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--navbar-link-gap);
  list-style: none;
  padding: 0;
  min-width: 0;
}

.navbar__links a {
  position: relative;
  display: inline-block;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
  padding: 1px 2px 3px;
  transition: none;
}

.navbar__links a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.navbar__links a.active {
  color: var(--text-primary);
}

.navbar__links a.active::after {
  background: var(--accent);
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__cta {
  background-color: transparent;
  color: var(--text-primary);
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 32px;
  border-radius: 0;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: visible;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 3;
  justify-self: end;
  transition: height 0.52s var(--ease-premium),
              padding 0.52s var(--ease-premium) 0.06s,
              border-radius 0.52s var(--ease-premium),
              background-color 0.18s ease 0.34s,
              color 0.18s ease 0.34s,
              border-color 0.2s ease,
              box-shadow 0.35s ease,
              transform 0.25s ease;
  cursor: pointer;
}

.navbar__cta::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--border);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.navbar__cta:hover::before {
  background: var(--accent);
}

.navbar__cta::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.navbar__cta-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.navbar__cta-outline {
  display: none;
}

.navbar__cta-text {
  display: block;
  line-height: 1;
}

.navbar__cta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  color: var(--accent);
}

@media (min-width: 901px) {
  .navbar__logo {
    transform: translateY(-1px);
  }

  .navbar__links {
    transform: translate(-50%, calc(-50% - 1px));
  }

  .navbar__cta-text {
    transform: translateY(-1px);
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .navbar {
    --navbar-edge-space: 24px;
    top: 12px;
  }

  .navbar.scrolled,
  html.navbar-anchor-start .navbar,
  html.navbar-initial-scrolled .navbar {
    top: 12px;
  }
}

.navbar__cta:hover {
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 0 28px 8px rgba(235, 87, 87, 0.34);
  transform: translateY(-1px);
}

.navbar__cta:hover::after {
  opacity: 1;
}

.navbar__cta.btn--with-fast-forward {
  padding-right: 24px;
}

.navbar.scrolled .navbar__cta,
html.navbar-initial-scrolled .navbar__cta {
  align-self: center;
  height: 80px;
  min-height: 0;
  padding: 0 44px;
  margin-top: -1px;
  margin-right: -0.5px;
  margin-bottom: -1px;
  margin-left: 0;
  background-color: transparent;
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(235, 87, 87, 0);
  border-radius: 0 999px 999px 0;
  transition: height 0.52s var(--ease-premium),
              padding 0.52s var(--ease-premium),
              border-radius 0.52s var(--ease-premium),
              background-color 0.18s ease,
              color 0.18s ease,
              border-color 0.2s ease,
              box-shadow 0.5s ease,
              transform 0.25s ease;
}

.navbar.scrolled .navbar__cta-content,
html.navbar-initial-scrolled .navbar__cta-content {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: none;
}

.navbar.scrolled .navbar__cta-text,
html.navbar-initial-scrolled .navbar__cta-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -1px;
}

.navbar.scrolled .navbar__cta-outline,
html.navbar-initial-scrolled .navbar__cta-outline {
  display: block;
  position: absolute;
  inset: 1px 1px 1px 0;
  opacity: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-left: none;
  border-radius: 0 999px 999px 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  z-index: 0;
}

.navbar.scrolled .navbar__cta::after,
html.navbar-initial-scrolled .navbar__cta::after {
  display: none;
}

.navbar.scrolled .navbar__cta::before,
html.navbar-initial-scrolled .navbar__cta::before {
  top: 0;
  bottom: 0;
  z-index: 1;
}

.navbar.scrolled .navbar__cta:hover {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 28px 8px rgba(235, 87, 87, 0.34);
  transform: none;
}

.navbar.scrolled .navbar__cta:hover .navbar__cta-outline {
  opacity: 0;
}

/* Mobile nav toggle */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  width: 44px;
  height: 44px;
  line-height: 0;
}

.navbar__toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
}

@keyframes mobile-nav-content-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobile-nav-content-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

html.navbar-menu-open::before,
html.navbar-menu-closing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: rgba(10, 10, 10, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.42s var(--ease-premium),
              backdrop-filter 0.42s var(--ease-premium),
              background-color 0.42s var(--ease-premium);
}

html.navbar-menu-closing::before {
  opacity: 0;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

/* Mobile nav open state */
.navbar.navbar--open {
  height: auto;
  min-height: var(--mobile-navbar-row, 80px);
  max-height: min(100svh, 520px);
  grid-template-rows: var(--mobile-navbar-control-size, 44px) auto auto;
  grid-auto-rows: auto;
  align-items: center;
  padding: 0 32px 24px;
  border-radius: 0;
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent !important;
  border-bottom-color: var(--border) !important;
  box-shadow: none;
  overflow: hidden;
}

.navbar.navbar--closing {
  height: auto;
  min-height: var(--mobile-navbar-row, 80px);
  max-height: var(--mobile-navbar-row, 80px);
  grid-template-rows: var(--mobile-navbar-control-size, 44px) auto auto;
  grid-auto-rows: auto;
  align-items: center;
  padding: 0 32px;
  border-radius: 0;
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent !important;
  border-bottom-color: var(--border) !important;
  box-shadow: none;
  overflow: hidden;
}

.navbar--open .navbar__logo,
.navbar--open .navbar__toggle,
.navbar--closing .navbar__logo,
.navbar--closing .navbar__toggle {
  align-self: center;
  display: flex;
  align-items: center;
}

.navbar--open .navbar__links,
.navbar--closing .navbar__links {
  position: static;
  transform: none;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
  margin-top: var(--mobile-navbar-space, 24px);
  padding: var(--mobile-navbar-space, 24px) 0 var(--mobile-navbar-space, 24px);
  border-top: 1px solid var(--border);
}

.navbar--open .navbar__links {
  animation: mobile-nav-content-in 0.36s var(--ease-premium) both;
}

.navbar--closing .navbar__links {
  animation: mobile-nav-content-out 0.22s ease both;
}

.navbar--open .navbar__links li,
.navbar--closing .navbar__links li {
  padding: 10px 0;
}

.navbar--open .navbar__links a,
.navbar--closing .navbar__links a {
  font-size: 1rem;
}

.navbar.navbar--open .navbar__cta,
.navbar.navbar--closing .navbar__cta {
  display: flex !important;
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  justify-self: stretch;
  height: 56px;
  min-height: 56px;
  align-self: auto;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  margin: 0;
  border-radius: 0;
  border-color: var(--text-primary);
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: none;
  transform: none;
}

.navbar.navbar--open .navbar__cta {
  animation: mobile-nav-content-in 0.36s var(--ease-premium) 0.05s both;
}

.navbar.navbar--closing .navbar__cta {
  animation: mobile-nav-content-out 0.2s ease both;
}

.navbar.navbar--open .navbar__cta::before,
.navbar.navbar--open .navbar__cta::after,
.navbar.navbar--open .navbar__cta-outline,
.navbar.navbar--closing .navbar__cta::before,
.navbar.navbar--closing .navbar__cta::after,
.navbar.navbar--closing .navbar__cta-outline {
  display: none;
}

.navbar.navbar--open .navbar__cta-content,
.navbar.navbar--closing .navbar__cta-content {
  height: auto;
  min-height: 0;
  transform: none;
}

.navbar.navbar--open .navbar__cta-text,
.navbar.navbar--closing .navbar__cta-text {
  top: 0;
}

.navbar__toggle svg line {
  transition: transform 0.26s var(--ease-premium), opacity 0.18s ease;
  transform-box: fill-box;
  transform-origin: center center;
}

.navbar__toggle[aria-expanded="true"] .bar-top {
  transform: translateY(6px) rotate(45deg) scaleX(0.9);
}

.navbar__toggle[aria-expanded="true"] .bar-mid {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .bar-bot {
  transform: translateY(-6px) rotate(-45deg) scaleX(0.9);
}

@media (max-width: 900px) {
  .navbar {
    --mobile-navbar-space: 17px;
    --mobile-navbar-space-x: 24px;
    --mobile-navbar-space-top: calc(var(--mobile-navbar-space) - 3px);
    --mobile-navbar-control-size: 44px;
    --mobile-navbar-logo-height: 38px;
    --mobile-navbar-row: calc(var(--mobile-navbar-control-size) + var(--mobile-navbar-space-top) + var(--mobile-navbar-space));
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: var(--mobile-navbar-row);
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-width: 0 0 1px;
    border-color: transparent;
    max-height: var(--mobile-navbar-row);
    overflow: hidden;
    transition: max-height 0.42s var(--ease-premium),
                padding 0.42s var(--ease-premium),
                background-color 0.5s ease,
                border-color 0.5s ease,
                backdrop-filter 0.5s ease,
                box-shadow 0.35s ease;
  }

  .navbar.scrolled,
  html.navbar-initial-scrolled .navbar {
    top: 0;
    left: 0;
    right: 0;
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space);
    border-radius: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-width: 0 0 1px;
    border-color: transparent transparent var(--border);
    max-height: var(--mobile-navbar-row);
    overflow: hidden;
    transition: max-height 0.42s var(--ease-premium),
                padding 0.42s var(--ease-premium),
                background-color 0.5s ease,
                border-color 0.5s ease,
                backdrop-filter 0.5s ease,
                box-shadow 0.35s ease;
  }

  .navbar.navbar--open,
  .navbar.scrolled.navbar--open,
  html.navbar-initial-scrolled .navbar.navbar--open,
  html.navbar-initial-scrolled .navbar.navbar--open {
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space-x);
    border-radius: 0;
    border-width: 0 0 1px !important;
    max-height: min(100svh, 520px);
  }

  .navbar.navbar--closing,
  .navbar.scrolled.navbar--closing,
  html.navbar-initial-scrolled .navbar.navbar--closing {
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space-x);
    border-radius: 0;
    border-width: 0 0 1px !important;
    max-height: var(--mobile-navbar-row);
  }

  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .navbar__links {
    position: static;
    transform: none;
  }

  .navbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    grid-column: 3;
    justify-self: end;
    margin-right: -12px;
  }

  .navbar__logo svg {
    height: var(--mobile-navbar-logo-height);
  }

  .navbar__logo {
    align-self: center;
  }

  .navbar__studio-name {
    font-size: 1.0625rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    --navbar-edge-space: 24px;
    --navbar-scrolled-edge-space: 20px;
    --mobile-navbar-space: 13px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 36px;
  }

  .navbar.scrolled,
  html.navbar-initial-scrolled .navbar,
  .navbar.navbar--open,
  .navbar.navbar--closing,
  .navbar.scrolled.navbar--open,
    .navbar.scrolled.navbar--closing {
    --mobile-navbar-space: 13px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 36px;
  }

  .container,
  .footer__grid {
    padding-inline: 20px;
  }
}

@media (max-width: 380px) {
  .navbar {
    --mobile-navbar-space: 11px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 34px;
  }

  .navbar.scrolled,
  html.navbar-initial-scrolled .navbar,
  .navbar.navbar--open,
  .navbar.navbar--closing,
  .navbar.scrolled.navbar--open,
    .navbar.scrolled.navbar--closing {
    --mobile-navbar-space: 11px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 34px;
  }
}

/* btn utility classes used by navbar CTA */
.btn--with-icon { padding-right: 20px; }
.btn--with-fast-forward { padding-right: 24px; }

/* ========================================
   PAGE LAYOUT
   ======================================== */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 32px 96px;
}
.page--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 160px 32px 96px;
  max-width: 720px;
  margin: 0 auto;
}

/* Body copy inside legal-page content â€” sized for long-form reading.
   Mirrors .card__body / .pillar__body sizing from index.html (1.0625rem / 1.7). */
.page p,
.page li {
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.page a {
  overflow-wrap: anywhere;
}

/* .page p bumps all paragraphs to 1.0625rem, which would override .kicker's 13px.
   Restore explicitly so legal-page kickers match every other surface. */
.page .kicker {
  font-size: 13px;
  line-height: 1.6;
}

/* Inline links inside legal-page body content â€” underlined for readability.
   Global `a` rule in this file is unstyled (matches index.html); this is the
   one place where underlines come back, because legal copy has links inside
   paragraphs and they need to be visually distinguishable. */
.page a {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: var(--link-underline-offset);
  text-decoration-thickness: var(--link-underline-thickness);
  text-decoration-color: var(--link-underline-color-rest);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.page a:hover {
  color: var(--accent-text);
  text-decoration-color: var(--accent-text);
}
.page blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.kicker {
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 16px;
}

h1 {
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  overflow-wrap: break-word;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
/* The tracking above is for legal-page h2 only; shared section headings match index.html. */
.page .section-heading { letter-spacing: normal; }

h3 {
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page p, .page ul, .page ol,
.page--center p, .page--center ul, .page--center ol { margin-bottom: 16px; }
.page ul, .page ol,
.page--center ul, .page--center ol { padding-left: 24px; }
.page li, .page--center li { margin-bottom: 8px; }

strong { color: var(--text-primary); font-weight: 700; }

.lang-divider {
  margin: 96px 0 64px;
  border: none;
  border-top: 1px solid var(--border);
  position: relative;
}
.lang-divider::after {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 16px;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.note {
  font-size: 15px;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin-bottom: 24px;
}

address {
  font-style: normal;
  margin-bottom: 16px;
}

/* ========================================
   BUTTONS â€” copied from index.html exactly.
   The clip-path ::after animation is the canonical hover treatment for
   primary/secondary buttons across the site.
   ======================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  box-sizing: border-box;
  padding: 15px 28px 17px 28px;
  border-radius: 0;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: visible;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.btn__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}

.btn-primary:not(.btn--with-icon) .btn__content,
.btn-secondary:not(.btn--with-icon) .btn__content {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover,
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px 8px rgba(235, 87, 87, 0.34);
  transform: translateY(-1px);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 16px 4px rgba(235, 87, 87, 0.34);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tally-popup,
.tally-popup [class*="_popupContainer_"],
.tally-popup iframe {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--text-secondary) var(--bg-card);
}

.tally-popup::-webkit-scrollbar,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar,
.tally-popup iframe::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.tally-popup::-webkit-scrollbar-track,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar-track,
.tally-popup iframe::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.tally-popup::-webkit-scrollbar-thumb,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar-thumb,
.tally-popup iframe::-webkit-scrollbar-thumb {
  background-color: var(--text-secondary);
  border: 3px solid var(--bg-card);
  border-radius: 999px;
}

.tally-popup::-webkit-scrollbar-thumb:hover,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar-thumb:hover,
.tally-popup iframe::-webkit-scrollbar-thumb:hover {
  background-color: var(--highlight);
}

.tally-popup [class*="_popupContainer_"] {
  max-height: 95vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tally-popup [class*="_popupContainer_"] iframe {
  max-height: none !important;
}

@media (max-height: 1000px) {
  .tally-popup [class*="_popupContainer_"] {
    max-height: 85vh;
  }
}

@media (max-width: 576px) {
  .tally-popup [class*="_popupContainer_"] {
    max-height: 70vh;
  }
}

/* ========================================
   404 page card
   ======================================== */
.error-card { max-width: 560px; }
.error-card .actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER (mirrors index.html footer markup)
   ======================================== */
.footer {
  background: #0A0A0A;
  padding: 80px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr auto 1.6fr;
  gap: 64px;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer__brand-name svg,
.footer__brand-name img {
  height: 80px;
  width: auto;
  display: block;
}
.footer__brand-tagline {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-top: 20px;
  max-width: 320px;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer__rule {
  width: 8px;
  align-self: stretch;
  min-height: 200px;
  background: var(--accent);
  justify-self: center;
}
.footer__heading {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 12px; }
.footer__links a {
  position: relative;
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
}
.footer__links a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}
.footer__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer__contact-block > * + * { margin-top: 32px; }
.footer__email a {
  position: relative;
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.footer__email a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}
.footer__email a:hover { border-bottom-color: var(--accent); }
.footer__email a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer__socials {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}
.footer__socials a {
  position: relative;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer__socials a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.footer__socials a:hover { color: var(--accent); transform: translateY(-1px); }
.footer__socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.footer__divider {
  border: 0;
  border-top: 1px solid var(--border);
  max-width: 1392px;
  margin: 48px auto 24px;
}
.footer__bottom {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}
.footer__bottom a {
  position: relative;
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__bottom a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}
.footer__bottom a:hover { color: var(--text-primary); }
.footer__bottom a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer__bottom-sep { opacity: 0.5; }

@media (min-width: 768px) and (max-width: 1020px) {
  .page, .page--center { padding: 128px 32px 80px; }
  h1 { font-size: clamp(32px, 4.5vw, 44px); }
}

@media (max-width: 900px) {
  .footer { padding-top: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__rule { display: none; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__inner { padding-inline: 20px; }
  .page, .page--center { padding-left: 20px; padding-right: 20px; padding-top: 120px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; margin-top: 40px; }
  .page p, .page li { font-size: 1rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ========================================
   Audit product pages (/audit.html, /audit-sample-report.html)
   Landing-page visual language on the shared .page shell.
   Canonical values from DESIGN_SYSTEM.md: section ladder 120/96/64,
   .section-heading clamp(2rem, 5vw, 3.5rem), accent never as text
   colour (labels use --accent-text), notes use --text-tertiary.
   ======================================== */

/* Wide product container: 1200px content + 24px rail, landing-style */
.page--product {
  max-width: 1248px;
  padding: 160px 24px 96px;
}

/* Landing section-header pattern, canonical scale.
   text-box-trim strips the half-leading so .kicker/.section-heading boxes
   start at cap-top and end at the alphabetic baseline. See the header-stack
   rhythm block below for what that buys. Unsupported browsers ignore the
   property and fall back to ordinary half-leading boxes. */
.kicker,
.section-heading {
  text-box: trim-both cap alphabetic;
}

.section-heading {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: var(--section-heading-fs);
  line-height: 1.15;
  text-align: center;
  color: var(--text-primary);
  margin: 0 0 40px;
}
.section-heading--sm {
  font-size: var(--section-heading-sm-fs);
  margin-bottom: 23px;
}
.section-divider {
  width: 160px;
  height: 8px;
  background: var(--accent);
  margin: 0 auto 40px;
  flex-shrink: 0;
}
.page .section-sub {
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 560px;
  margin: 0 auto 16px;
  text-align: center;
}
.audit-section__header {
  text-align: center;
}
/* Header-stack optical rhythm (kicker / heading / divider / sub), settled
   2026-08-04. text-box-trim (declared with .section-heading and .kicker
   further up, see the "canonical scale" rules) strips the half-leading, so
   the margins below ARE the optical gaps directly, with no derived multipliers,
   no descender measurement, no JS.

   Desktop, tablet and phone are tuned INDEPENDENTLY, deliberately not
   sharing one ratio: a gap tuned to look right at a 56px heading has no
   reason to look right at 32px. Thresholds match this project's documented
   breakpoints (DESIGN_SYSTEM.md): tablet 768-1020px, mobile stacks under
   900px. Values are user-approved for the section tier (index.html); the
   --sm module tier values below are extrapolated from the same ratios
   pending separate review, see DESIGN_SYSTEM.md.
   Keep in sync with index.html and blog-theme/assets/css/theme.css. */
.kicker:has(+ .section-heading) {
  margin-bottom: 34px;
}
.kicker:has(+ .section-heading--sm) {
  margin-bottom: 19px;
}
.section-divider:has(+ .section-sub),
.section-divider:has(+ p) {
  margin-bottom: 30px;
}
.section-heading--sm + .section-divider--module:has(+ .section-sub),
.section-heading--sm + .section-divider--module:has(+ p) {
  margin-bottom: 17px;
}

@media (max-width: 1020px) {
  .section-heading { margin-bottom: 36px; }
  .section-heading--sm { margin-bottom: 17px; }
  .kicker:has(+ .section-heading) { margin-bottom: 32px; }
  .kicker:has(+ .section-heading--sm) { margin-bottom: 14px; }
  .section-divider:has(+ .section-sub),
  .section-divider:has(+ p) { margin-bottom: 26px; }
  .section-heading--sm + .section-divider--module:has(+ .section-sub),
  .section-heading--sm + .section-divider--module:has(+ p) { margin-bottom: 13px; }
}

@media (max-width: 600px) {
  .section-heading { margin-bottom: 30px; }
  .section-heading--sm { margin-bottom: 17px; }
  .kicker:has(+ .section-heading) { margin-bottom: 26px; }
  .kicker:has(+ .section-heading--sm) { margin-bottom: 14px; }
  .section-divider:has(+ .section-sub),
  .section-divider:has(+ p) { margin-bottom: 20px; }
  .section-heading--sm + .section-divider--module:has(+ .section-sub),
  .section-heading--sm + .section-divider--module:has(+ p) { margin-bottom: 13px; }
}
/* The two audit headers with no sub end on the divider, so there is no
   cap-top to correct against. They keep the tuned 26px gap to the module
   below, unchanged from before this pass. */
.audit-section__header .section-divider:not(:has(+ *)),
.audit-final .section-divider:not(:has(+ *)) {
  margin-bottom: 26px;
}
.audit-section__header .section-heading {
  margin-top: 0;
}
/* Module-scale divider: the same red rule at the smaller, left-aligned scale
   used by headings that sit inside a module rather than opening a section
   (e.g. the sample-report callout's left column). Keeps the "every h2 carries
   a red rule" signature without pretending to be a centred section opener.
   This is NOT the removed hero variant; heroes still take no divider. */
.section-divider--module {
  width: 80px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
}

/* Section rhythm: mirror the landing's symmetric 120/120 ladder so the
   gaps between sections read at the same 240px cadence. */
.audit-section {
  padding: 120px 0;
}

/* Hero: asymmetric two-column, copy + honest-scorecard illustration */
.audit-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: stretch;
  padding: 8px 0 120px;
}
.audit-hero__copy {
  max-width: 620px;
}
.audit-hero__copy .kicker {
  margin-bottom: 16px;
}
.audit-hero h1 {
  margin-bottom: 24px;
}
.page .audit-hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 0 28px;
}
.audit-hero__figure {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
/* Hero illustration: an example scorecard, a preview of the deliverable,
   not the abstract chart it replaced. Reuses the traffic-light claim pills. */
.audit-scorecard {
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.page .audit-scorecard__label {
  font-family: 'Ubuntu', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
}
.page .audit-scorecard__list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page .audit-scorecard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.audit-scorecard__row:last-child {
  border-bottom: none;
}
.page .audit-scorecard__dim {
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 1.0625rem;
  color: var(--text-primary);
}
.audit-scorecard__row .claim-pill {
  margin-top: 0;
}
.page .audit-scorecard__foot {
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 16px 0 0;
}

/* Scope: icon-led editorial rows, not cards */
/* Full-rail spec list: icon | dimension | detail, five ruled rows,
   no orphaned final item. Rows stack on tablet/mobile. */
.audit-scope {
  margin: 40px 0 0;
}
@media (min-width: 1021px) {
  .audit-scope__row > div {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 8px 48px;
    align-items: center;
  }
  /* Label and detail sit side by side at desktop, so the stacked-row
     bottom margin would only skew vertical centering. .page keeps this
     ahead of the base .audit-scope__row h3 rule that follows in source. */
  .page .audit-scope__row h3 {
    margin-bottom: 0;
  }
}
.audit-scope__row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}
.audit-scope__icon {
  color: var(--accent);
}
.audit-scope__icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.audit-scope__row h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.audit-scope__row p {
  margin-bottom: 0;
}

/* Optional add-on: reads as a sixth, gray-filled list row (aligned to the
   scope rows) rather than a separate card, but the fill marks it optional. */
.audit-optional {
  margin: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px 24px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1021px) {
  .audit-optional__body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 8px 48px;
    align-items: baseline;
  }
  .page .audit-optional__body .audit-optional__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
  }
}
.audit-optional__icon {
  color: var(--accent);
}

/* Icon language (2026-10-12): cream accent inside filled red icons */
.i-cream { fill: var(--text-primary); }
.i-cream-s { stroke: var(--text-primary); }
.audit-optional__icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.page .audit-optional__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
}
.audit-optional__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.audit-optional__body p:last-child {
  margin-bottom: 0;
}
.audit-tag {
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px 4px;
  border: 1px solid var(--highlight);
  border-radius: 999px;
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight-text);
  white-space: nowrap;
  margin-top: 5px;
}

/* Sample-report callout: split panel with a report mockup */
.audit-sample-callout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
/* Margins come from the shared header-stack rhythm above, which is tuned to
   --section-heading-sm-fs for this module tier. */
.audit-sample-callout .section-heading--sm {
  text-align: left;
  margin-top: 0;
}
.audit-sample-callout__copy p:not(.kicker) {
  max-width: 460px;
  margin-bottom: 28px;
}
.audit-claim-preview {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 32px;
}
.page .audit-claim-preview__label {
  font-family: 'Ubuntu', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.page .audit-claim-preview__disposition {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin: 0 0 20px;
}
/* Snapshot: the report's opening cross-dimension read, measured numbers */
.page .audit-report-snapshot {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.page .audit-report-snapshot li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page .audit-report-snapshot li .claim-pill { margin-top: 0; }
.page .audit-report-snapshot__cat {
  display: block;
  font-family: 'Ubuntu', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
/* Category labels stay neutral here: the verdict pill beside them owns the colour. */
.audit-report-snapshot__cat--sustainability,
.audit-report-snapshot__cat--performance,
.audit-report-snapshot__cat--conversion     { color: var(--text-tertiary); }
.page .audit-report-snapshot__val {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-primary);
}
.page .audit-claim-preview__foot {
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 16px 0 0;
}

/* Price + process: two-column composition */
.audit-buy {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: stretch;
  margin: 40px 0 0;
}
.audit-price-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.audit-price-panel__step {
  display: inline-flex;
  align-items: center;
  padding: 9.5px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(235, 87, 87, 0.12);
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}
/* text-box-trim has no effect on the flex container itself (it only trims
   block/inline text boxes) - it has to sit on an inline child instead,
   same pattern as .claim-pill > span. */
.audit-price-panel__step > span {
  text-box: trim-both cap alphabetic;
}
.audit-price-panel__name {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.35rem;
}
.page .audit-price-panel__price {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.audit-price-panel p {
  font-size: 1rem;
  line-height: 1.65;
}
.page .audit-price-panel__note {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-bottom: 0;
}
/* The credit is the strongest thing on this panel: proceed and the audit is
   free. It used to sit mid-sentence between the page count and the VAT note,
   which is where a reader skips. Given its own line, in cream rather than the
   muted tertiary the surrounding fine print uses. */
.page .audit-price-panel__credit {
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
/* `.page` prefix is required, not cosmetic: `.page ul` sets padding-left 24px
   and outranks a bare `.audit-steps`, so the reset silently lost and every
   step row sat 24px right of the price panel and section heading. Same
   pattern as `.page .audit-scorecard__list`. */
.page .audit-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: audit-step;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.audit-steps li {
  counter-increment: audit-step;
  flex: 1;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.audit-steps li:last-child {
  border-bottom: 1px solid var(--border);
}
.audit-steps li::before {
  content: "0" counter(audit-step);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}

/* FAQ rail, full width; answers kept to a readable measure */
.audit-faq {
  margin: 40px 0 0;
  border-top: 1px solid var(--border);
}
.audit-faq .faq__answer p {
  max-width: 820px;
}

/* Final CTA: no top divider, the section whitespace carries the separation */
.audit-final {
  text-align: center;
  margin-top: 0;
  padding: 120px 0 16px;
}
.audit-final .section-sub {
  margin-bottom: 36px;
}

/* ---- Sample report page ---- */

/* Sample report page: the illustrative-data notice, and the embedded real report.
   The report body between the GENERATED markers is produced by
   automation/audit/build-sample-page.mjs from the same template a client receives,
   so it carries its own scoped styles and must not be edited by hand. */
/* A plain note, not a box: the report's own header is the first thing that should look framed. */
.page .sample-notice {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
}
.page .sample-notice p { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.page .sample-notice strong { font-weight: 700; color: var(--text-primary); }
/* One 760px reading column from the notice to the footer (DESIGN_SYSTEM.md, sample report). */
.report-embed { max-width: 760px; margin: 0 auto; }
/* The page rail already provides side padding; the template's own main padding is for the
   standalone client render. */
.page .report-embed { padding: 32px 0 0; }
.page .report-embed h2 { margin-top: 0; }
.page .report-embed a { font-weight: var(--font-weight-figtree-thin, 300); }
.page .report-embed :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.page .ratio__measured,
.page .ratio__target {
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.page .ratio__measured { color: var(--accent-text); }
.page .ratio__target { color: var(--success-text); }

.page .finding__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}

.page .finding__where { color: var(--text-secondary); font-size: 0.88rem; }

.claim-pill {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* Verdict pill, from the Figma component (Website file, node 2779-416) with 3px more
     height: 25px tall, 7px dot, 9px side padding, 5px gap, radius 40, 1.2px ring, Figtree
     Regular 12 at 4% tracking. Mirrored by .pill in the audit report template. */
  /* Odd height with no vertical padding: the centre sits on row 12.5, so the 7px dot
     and the 8.4px caps box get exactly 9px of air above and below (dot on whole pixels). */
  height: 25px;
  padding: 0 9px;
  /* Ring as an inset shadow, not a border: a 1.2px border would push the content box
     off whole pixels and the dot would jitter against the text from place to place. */
  border: 0;
  --ring: var(--border-card);
  box-shadow: inset 0 0 0 1.2px var(--ring);
  border-radius: 40px;
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  margin-top: 2px;
}
/* Figma's "vertical trim: cap height to baseline": the text box becomes the capitals, so
   centring the row centres dot and caps on one line. */
.claim-pill > span { text-box: trim-both cap alphabetic; }
.claim-pill::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}
@supports not (text-box: trim-both cap alphabetic) {
  .claim-pill::before { margin-top: -1px; }
}
.claim-pill--green { --ring: var(--success); }
.claim-pill--green::before { background-color: var(--success); }
.claim-pill--amber { --ring: var(--highlight); }
.claim-pill--amber::before { background-color: var(--highlight); }
.claim-pill--red { --ring: var(--accent); }
.claim-pill--red::before { background-color: var(--accent); }

.check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  font-size: 1rem;
}
.check-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 3px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.check-pill--pass { color: var(--success-text); border-color: var(--success); }
.check-pill--fail { color: var(--conversion-text); border-color: var(--accent); }
.check-pill--flag { color: var(--highlight-text); border-color: var(--highlight); }

.audit-report__priorities li::marker {
  color: var(--accent-text);
  font-weight: 700;
}
.audit-report__priorities li {
  margin-bottom: 20px;
}
.audit-report__priorities li:last-child {
  margin-bottom: 0;
}
.audit-priority__action,
.audit-priority__weight {
  display: block;
}
/* Weight line uses the page's small-label idiom rather than a fourth pill
   style: the report already carries claim pills, check pills and the tag. */
.page .audit-priority__weight {
  font-family: 'Ubuntu', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Impact/effort plot. Points sit on Low/Medium/High bands rather than free
   coordinates, because bands are the granularity actually assessed. Hidden on
   phones and aria-hidden everywhere: the ordered list below is the real content
   and states all four calls in full. */
.audit-chart {
  display: none;
}
@media (min-width: 768px) {
  .audit-chart {
    display: block;
    margin: 28px 0 36px;
  }
  .audit-chart svg {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
  }
  .audit-chart__grid line {
    stroke: var(--border);
    stroke-width: 1;
    stroke-dasharray: 3 7;
  }
  .audit-chart__axis line {
    stroke: var(--border-card);
    stroke-width: 1;
  }
  .audit-chart__tick text {
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    fill: var(--text-muted);
  }
  .audit-chart__axis-title text {
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    fill: var(--text-secondary);
  }
  .audit-chart__point circle {
    fill: var(--accent);
  }
  .audit-chart__point text {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 15px;
    fill: #161616;
  }
}

/* Link-shaped buttons: undo the .page inline-link treatment, which
   otherwise paints anchor CTAs as red underlined text inside the button */
.page a.btn-primary,
.page a.btn-secondary {
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.page a.btn-primary { color: var(--bg-primary); }
.page a.btn-primary:hover { color: var(--bg-primary); }
.page a.btn-secondary { color: var(--text-primary); }
.page a.btn-secondary:hover { color: var(--text-primary); }

/* FAQ disclosure styling, ported from index.html (static: no JS-driven
   icon rotation, since animations.js is not loaded on these pages). */
.faq__item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq__question {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  min-height: 44px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  /* Same as the landing page: a fast second click must not select the question text. */
  -webkit-user-select: none;
  user-select: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '';
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Cpath d='M0 9.5H19M9.5 0V19' stroke='black' stroke-width='5' stroke-linecap='butt'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Cpath d='M0 9.5H19M9.5 0V19' stroke='black' stroke-width='5' stroke-linecap='butt'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: 50% 50%;
  transition: transform 0.28s var(--ease-premium);
}
.faq__item[open] > .faq__question::after {
  transform: rotate(45deg);
}
/* When JS drives the accordion, rotation follows the animated open state
   (.is-open) rather than [open], which lags behind the close animation. */
.js-faq .faq__item[open] > .faq__question::after {
  transform: none;
}
.js-faq .faq__item.is-open > .faq__question::after {
  transform: rotate(45deg);
}
.faq__answer {
  box-sizing: border-box;
  overflow: hidden;
}
.faq__answer p {
  font-family: 'Figtree', sans-serif;
  font-weight: var(--font-weight-figtree-thin);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
  padding-top: 16px;
}

/* Responsive: canonical ladder. Tablet 96px, phone 64px. */
@media (min-width: 768px) and (max-width: 1020px) {
  .audit-section { padding: 96px 0; }
  .audit-final { margin-top: 0; padding-top: 96px; }
  .audit-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 96px;
  }
  /* Stacked hero: the scorecard is now the second row of a single left-aligned
     column, so it must sit flush with the copy above it and share its width
     instead of floating centred in the full rail. (The rule this replaced
     targeted `.audit-hero__figure svg`, dead since the figure stopped holding
     an illustration and started holding the example scorecard card.) */
  .audit-hero__figure { justify-content: flex-start; }
  .audit-scorecard { max-width: 620px; }
  /* Stacked buy block: the panel and the steps become two rows of one column,
     so they share a width instead of the panel capping at 460px while the
     steps ran the full rail. Same 620px stacked column as the hero. */
  .audit-buy {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 620px;
  }
  .audit-price-panel {
    max-width: none;
  }
  .audit-sample-callout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 767px) {
  .audit-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Same stacked-hero alignment as tablet; see the note there. */
  .audit-hero__figure { justify-content: flex-start; }
  .audit-scorecard { max-width: 620px; }

  /* Same stacked buy-block width as tablet; see the note there. */
  .audit-buy {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 620px;
  }
  .audit-sample-callout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}
@media (max-width: 600px) {
  .page--product { padding: 120px 20px 64px; }
  .audit-section { padding: 64px 0; }
  .audit-hero { padding-bottom: 64px; }
  .audit-final { margin-top: 0; padding-top: 64px; }

  .audit-scope__row {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 24px 16px;
  }
  .audit-scope__icon svg,
  .audit-optional__icon svg { width: 34px; height: 34px; }
  .audit-optional { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 16px; }
  .page .audit-optional__head { flex-wrap: wrap; gap: 10px; }
  .audit-price-panel { padding: 32px 24px; }

}
