/* SITE · the few rules every page shares, loaded last so each page follows them.
   One focus ring, one back-to-top button, and reduced motion respected everywhere. */

/* focus ring · 2px in the page's nav accent (ink on pages without one) */
:focus-visible { outline: 2px solid var(--nav-accent, var(--ink, #15120E)); outline-offset: 3px; }

/* back to top · the solid ink circle (case studies hide it and use their hourglass instead) */
.to-top {
  right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 40px);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--ink, #15120E); color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 14px 30px -14px rgba(21,18,14,.55), 0 2px 6px -2px rgba(21,18,14,.35);
}
.to-top:hover { background: #000; }

/* reduced motion · nothing slides, blurs, or loops */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* buttons · every liquid button in the page content shares one label size and one shape
   (the nav's Figma button keeps the nav's own size) */
[data-liquid]:not(.tab) {
  font-family: var(--font-sans) !important; font-size: 14px !important; font-weight: 400 !important;
  letter-spacing: normal !important; padding: 10px 20px !important; border-radius: 100px !important;
}
[data-liquid]:not(.tab) > *:not(.lqd) { font: inherit !important; letter-spacing: inherit !important; }

/* results numbers · the line beside each big number reads at the same size as the site's lists */
.rfig__p { font-family: var(--font-rounded) !important; font-weight: 300 !important; font-size: var(--pill-type, 21.6px) !important; line-height: 1.45 !important; color: var(--ink) !important; }
/* the label above each results number is the same size as every other green heading on the case studies */
.rfig__h { font-size: clamp(15px, 1.15vw, 18px) !important; letter-spacing: -0.01em !important; }
.results-top__side .beat__kicker { margin-top: 0 !important; }

/* no hairline frame around pictures · slideshows, the wireframe and the email screens sit straight on the page
   (a keyboard focus ring still shows on a slideshow) */
.carousel__track:not(:focus-visible), .wf__frame, .swap__screen { box-shadow: none !important; }
/* a one-line caption under a picture is centred on the picture */
.fu-cap, .dn-video-caption { text-align: center !important; }
.results-top .dn-video-caption { justify-self: center !important; }
/* the live demo frames lose their hairline too; the soft shadow under them stays */
.demo { box-shadow: 0 18px 40px -28px rgba(21,18,14,.45) !important; }
