/*
 * StratusGrid marketing site
 * Source of truth: Figma "SG Website — Nov 2026", page "Designs (Light Mode)".
 *
 * The file name carries a version (site.v1.css). Assets are cached for a day,
 * so when a change would break older pages, copy to site.v2.css and update the
 * <link> tags instead of editing in place. See docs/deploy-and-rollback.md.
 *
 * Sections:
 *   1. Tokens (from the Figma variables)
 *   2. Base
 *   3. Layout
 *   4. Components
 *   5. Sections
 *   6. Page-specific
 *   7. Responsive
 */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* Color */
  --text-primary: #110b1e;
  --text-body: #4a4556;
  --text-muted: #7a7585;
  --text-on-accent: #fff;
  --brand-purple: #8264f4;
  --brand-gold: #eeb312;
  /* Darker variants for small text on white: #8264f4 is 4.15:1 and #eeb312 is
     1.9:1 against white, both below the WCAG AA 4.5:1 minimum. */
  --accent-strong: #6a4bd8;
  --purple-soft: #c5b9ff;
  --purple-tint: #ede9fe;
  --bg-page: #fff;
  --bg-subtle: #f4f4f6;
  --bg-surface: #ededed;
  --bg-placeholder: #d9d9d9;
  --bg-dark: #110b1e;
  --border-line: #e2e2e2;
  --border-control: #cdcdcd;
  --border-dark: rgb(255 255 255 / 12%);
  --text-on-dark: #fff;
  --text-on-dark-body: rgb(255 255 255 / 80%);
  --text-on-dark-muted: rgb(255 255 255 / 55%);

  /* Type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Hind Madurai", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-logo: "Work Sans", system-ui, sans-serif;

  --fs-hero: clamp(2.75rem, 1.4rem + 5.2vw, 5rem); /* 44 → 80 */
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 2.75rem); /* 32 → 44 */
  --fs-cta: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); /* 36 → 64 */
  --fs-stat: clamp(4rem, 2.8rem + 4.6vw, 6rem); /* 64 → 96 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); /* 20 → 22 */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem); /* 18 → 22 */
  --fs-body: 1.0625rem; /* 17 */
  --fs-body-lg: 1.125rem; /* 18 */
  --fs-sm: 0.875rem; /* 14 */
  --fs-xs: 0.75rem; /* 12 */

  /* Space and shape */
  --page-max: 1440px;
  --content-max: 1280px;
  --gutter: 40px;
  --margin: clamp(20px, 5.6vw, 80px);
  --section-y: clamp(72px, 8.3vw, 120px);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgb(17 11 30 / 8%), 0 8px 24px rgb(18 10 31 / 5%);
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* In-page links (Careers: "See Current Openings") land below the sticky header. */
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #fff;
  font: 500 var(--fs-sm) / 20px var(--font-ui);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* 3. Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--border-line);
}

.section--flush-top {
  border-top: 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark-body);
  border-top: 0;
}

.section--dark + .section {
  border-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Two equal columns: heading left, copy right (the Figma "Split" frame). */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}

/* Header column (510) + content column (620) with the extra space between,
   as in the Stratusphere Figma layout. */
.split--offset {
  grid-template-columns: minmax(0, 510fr) minmax(0, 620fr);
  column-gap: max(var(--gutter), calc(100% - 1130px));
}

.split--offset .section-head .h2 {
  max-width: 500px;
  text-wrap: wrap;
}

/* 4. Components ------------------------------------------------------------ */

/* Typography */
.display {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2--cta {
  font-size: var(--fs-cta);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head .h2.h2--narrow,
.h2--narrow {
  max-width: 820px;
  text-wrap: wrap;
}

.section-head .h2--narrow + .copy {
  margin-top: 24px;
}

.h3 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.lead--body {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.accent {
  color: var(--brand-purple);
}

.section--dark .accent,
.footer .accent {
  color: var(--purple-soft);
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 68ch;
}

/* Copy that spans the full container (Home: Customer outcomes). */
.copy--full {
  max-width: none;
}

.container > .section-head + .copy--full {
  margin-top: 48px;
}

.copy--lg {
  font-size: var(--fs-body-lg);
}

.section--dark .h2,
.section--dark .h3,
.section--dark .lead {
  color: var(--text-on-dark);
}

.eyebrow {
  color: var(--accent-strong);
  font: 500 0.8125rem / 1.4 var(--font-ui);
}

/* Badge (Figma: Badge) */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 22px;
  padding: 2px 8px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font: 500 var(--fs-xs) / 16px var(--font-ui);
  white-space: nowrap;
}

.section--dark .badge {
  border-color: rgb(255 255 255 / 20%);
  background: transparent;
  color: var(--text-on-dark);
}

/* Buttons (Figma: Button) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

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

.btn--primary:hover {
  background: #2c2540;
}

.btn--outline {
  border: 2px solid var(--text-primary);
  background: var(--bg-page);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: var(--bg-subtle);
}

.btn--secondary {
  border-color: var(--border-control);
  background: var(--bg-page);
  color: var(--text-primary);
}

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

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

.btn--gold:hover {
  background: #f5c53e;
}

.btn--accent {
  width: 100%;
  background: #7246ee;
  color: #fff;
}

.btn--accent:hover {
  background: #5f35d8;
}

.btn--ghost {
  padding-inline: 10px;
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: var(--bg-subtle);
}

/* Figma buttons are 36px tall. On touch-size screens .btn--lg grows to 44px. */
.btn--lg {
  min-height: 36px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* In a button row, center the arrow link on the buttons. */
.actions .link-arrow {
  align-self: center;
}

/* Arrow text link (Figma: Link) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
  text-decoration: none;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.15s ease;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow:hover svg {
  transform: translateX(2px);
}

/* Figma uses gold for these links. Gold on white fails contrast, so on light
   backgrounds the link uses the strong purple; on dark backgrounds it keeps
   the brand gold. */
.link-arrow--accent {
  color: var(--accent-strong);
}

.section--dark .link-arrow,
.section--dark .link-arrow--accent {
  color: var(--brand-gold);
}

/* Icon tile (Figma: Icon) */
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
}

.icon-tile img {
  width: 22px;
  height: 22px;
}

.section--dark .icon-tile {
  background: rgb(130 100 244 / 25%);
}

/* Step number pill: "01" */
.step-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: #5b3fd0;
  font: 500 0.6875rem / 1 var(--font-ui);
}

/* Pill tags */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--border-line);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 500 0.8125rem / 20px var(--font-ui);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-purple);
}

/* Grid of cells inside one bordered box (Figma: Grid / Benefits / Commitments) */
.cell-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
}

.cell-grid > * {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 32px 36px;
  border-color: var(--border-line);
  border-style: solid;
  border-width: 0 0 0 1px;
}

.cell-grid > :first-child {
  border-left-width: 0;
}

.cell-grid--2 {
  --cols: 2;
}

.cell-grid--2 > :nth-child(2n + 1) {
  border-left-width: 0;
}

.cell-grid--2 > :nth-child(n + 3) {
  border-top-width: 1px;
}

.cell-grid--3 > :nth-child(3n + 1) {
  border-left-width: 0;
}

.cell-grid .h3 {
  margin-top: 4px;
}

.section--dark .cell-grid {
  border-color: var(--border-dark);
}

.section--dark .cell-grid > * {
  border-color: var(--border-dark);
}

/* Process row: 01 Discover → 02 Plan → … */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
}

.process__step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 24px;
  border-left: 1px solid var(--border-line);
  color: var(--text-primary);
  font: 500 1.25rem / 1.1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.process__step:first-child {
  border-left: 0;
}

.process__step svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

a.process__step:hover {
  background: var(--bg-subtle);
}

a.process__step:hover svg {
  transform: translateX(3px);
  color: var(--text-primary);
}

/* Illustration frames */
.figure {
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
}

.figure img {
  width: 100%;
}

/* The dark illustrations draw their own rounded frame. */
.section--dark .figure {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Light illustrations that draw their own rounded frame. */
.figure--framed {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dot-grid {
  background-color: var(--bg-page);
  background-image: radial-gradient(rgb(17 11 30 / 18%) 0.8px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* Logo strip */
/* Customer logos scroll right to left in a loop. The list is in the page
   twice (the copy is hidden from screen readers) and the track moves by half
   its width, so the loop has no seam. It pauses on hover. Visitors who prefer
   reduced motion get one still, centred, wrapping row. */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}

.logo-marquee:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-strip {
  display: flex;
  flex: none;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
}

.logo-strip li {
  display: flex;
  flex: none;
  justify-content: center;
}

.logo-strip img {
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
}

@keyframes logo-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-marquee__track {
    width: auto;
    animation: none;
  }

  .logo-marquee .logo-strip {
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
    padding-inline: var(--margin);
  }

  .logo-marquee .logo-strip[aria-hidden="true"] {
    display: none;
  }
}

/* Logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
  text-decoration: none;
}

.logo img {
  width: 38px;
  height: 37px;
}

.logo__word {
  font-family: var(--font-logo);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.logo__word b {
  font-weight: 600;
}

.logo__word span {
  font-weight: 300;
}

/* Header / nav ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(160%) blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 74px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 40px;
}

.site-nav__links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.site-nav__links a {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  height: 32px;
  padding-inline: 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
  text-decoration: none;
}

.site-nav__links a:hover {
  background: var(--bg-subtle);
}

.site-nav__links a[aria-current="page"] {
  color: var(--accent-strong);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Footer ------------------------------------------------------------------- */

.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-body);
}

.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border-dark);
}

.footer__tagline {
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 290px) 1fr;
  gap: var(--gutter);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border-dark);
}

.footer__col h2 {
  color: var(--purple-soft);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
}

.footer__col ul,
.footer__col address {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  font: 500 var(--fs-sm) / 20px var(--font-ui);
  font-style: normal;
}

.footer__col li,
.footer__col address span {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.footer__col a {
  color: var(--text-on-dark-body);
  text-decoration: none;
}

.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__social {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.footer__social a:hover {
  background: rgb(255 255 255 / 10%);
}

.footer__social img,
.footer__social svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer__band {
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.footer__band img {
  width: 100%;
  max-width: 1280px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 32px;
  color: var(--text-on-dark-muted);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
}

.footer__legal ul {
  display: flex;
  gap: 16px;
}

.footer__legal a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 5. Sections -------------------------------------------------------------- */

/* Hero with the pixel pattern on the right */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--border-line);
}

.hero__pattern {
  position: absolute;
  top: -28px;
  right: 0;
  bottom: -30px;
  width: min(720px, 50vw);
  pointer-events: none;
}

/* Each page has its own pattern (720px wide, 727–860px tall); the box takes the image's height. */
.hero__grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 720px;
  overflow: hidden;
  /* Scroll parallax: site.v1.js sets --parallax as the page scrolls so the
     pattern trails behind the content. Not set when the visitor prefers
     reduced motion, so the pattern stays put. */
  transform: translate3d(0, var(--parallax, 0px), 0);
}

.hero__grid img,
.hero__grid svg {
  display: block;
  width: 720px;
  max-width: none;
  height: auto;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__inner .display {
  max-width: 842px;
}

.hero__inner .copy {
  max-width: 620px;
  font-size: var(--fs-body-lg);
}

.hero__inner--wide .copy {
  max-width: 761px;
}

/* Wrap like the design (balance can push a word to the next line). */
.display--wrap {
  text-wrap: wrap;
}

.hero__inner .actions {
  padding-top: 8px;
}

/* Section header: badge + h2 (+ intro) */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section-head .h2 {
  max-width: 1000px;
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.section-head--center .badge {
  align-self: center;
}

.container > .section-head + * {
  margin-top: clamp(40px, 4vw, 56px);
}

/* Centered closing CTA */
.cta {
  text-align: center;
}

.cta .h2 {
  max-width: 880px;
  margin-inline: auto;
}

.cta .copy {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--text-body);
  font-size: var(--fs-body-lg);
}

.cta .actions {
  justify-content: center;
  margin-top: 36px;
}

/* Bento (Home: "More than another FinOps tool") */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.bento__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
}

.bento__media {
  border-bottom: 1px solid var(--border-line);
}

.bento__media img {
  width: 100%;
}

.bento__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 40px 32px;
}

.bento__body .h3 {
  margin-bottom: 4px;
}

.bento__body .copy {
  gap: 14px;
}

.bento__body .link-arrow {
  margin-top: auto;
  padding-top: 28px;
}

.bento__card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bento__card--wide .bento__body {
  justify-content: center;
  padding: 48px 40px;
}

.bento__card--wide .bento__media {
  border-bottom: 0;
  border-left: 1px solid var(--border-line);
}

.bento__card--wide .bento__media img {
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--border-line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 40px 40px 40px 0;
}

.stat + .stat {
  padding-left: 40px;
  border-left: 1px solid var(--border-line);
}

.stat__value {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__label {
  color: var(--text-body);
  font-size: 0.9375rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.person {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 28px;
  border: 1px solid var(--border-line);
  border-radius: 18px;
}

.person img {
  width: 100%;
  aspect-ratio: 355 / 300;
  margin-bottom: 10px;
  border-radius: 14px;
  object-fit: cover;
  filter: grayscale(1);
}

.person > :not(img) {
  padding-inline: 8px;
}

.person .h3 {
  font-weight: 600;
}

.person__role {
  color: var(--brand-purple);
  font: 500 0.875rem / 1.4 var(--font-body);
}

/* Team blocks (Engineering Expertise, Leadership): a heading with a rule under it */
.team-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 56px;
}

.team-block--leaders {
  gap: 32px;
}

.team-block__title {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}

.copy--tight {
  gap: 12px;
}

/* Lanes (How It Works: ownership vs collaboration) */
.lanes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-top: 1px solid var(--border-line);
}

.lanes__label {
  color: var(--text-body);
  font: 400 var(--fs-xs) / 16px var(--font-ui);
}

.lane {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-purple);
  color: #fff;
  font: 600 var(--fs-xs) / 16px var(--font-ui);
}

.lane--soft {
  background: var(--purple-soft);
  color: #4a2fc0;
}

.stages {
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
}

.stages .cell-grid {
  --cols: 4;

  border: 0;
  border-radius: 0;
}

.stages .cell-grid > :nth-child(4n + 1) {
  border-left-width: 0;
}

.stage__title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font: 500 1.375rem / 1.2 var(--font-display);
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border-line);
}

.section--dark .rule {
  background: var(--border-dark);
}

/* Contact form */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  box-shadow: var(--shadow-card);
}

/* 6. Page-specific --------------------------------------------------------- */

/* Home hero: product UI under the copy */
.home-hero {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-hero .hero__pattern {
  bottom: auto;
  height: 860px;
}

.home-hero .display {
  max-width: 760px;
}

.home-hero .copy {
  max-width: 540px;
}

.home-hero__ui {
  position: relative;
  margin-top: 64px;
}

.home-hero__ui img {
  width: 100%;
}

/* Tablet and desktop: trim part of the empty canvas on each side (the
   dashboard fills x 181–1100 of 1280) so it shows about 14% larger. The
   cards reach the canvas top and bottom, so only the sides are trimmed.
   Phones use a tighter crop (see the max-width: 767px block). */
@media (min-width: 768px) {
  .home-hero__ui {
    overflow: hidden;
    aspect-ratio: 1120 / 739;
  }

  .home-hero__ui img,
  .home-hero__ui .home-hero__card {
    position: absolute;
    inset: auto;
    top: 0;
    left: -7.143%;
    width: 114.286%;
    max-width: none;
    height: auto;
  }
}

/* Hero product UI: the floating cards are separate layers that fade in
   over the dashboard, one after another, when the page loads. */
.home-hero__card {
  position: absolute;
  inset: 0;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__card {
    animation: hero-card-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .home-hero__card--savings { animation-delay: 0.4s; }
  .home-hero__card--row { animation-delay: 0.75s; }
  .home-hero__card--detail { animation-delay: 1.1s; }
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.trusted {
  padding: 48px 0 80px;
  text-align: center;
  overflow-x: clip; /* the logo marquee runs edge to edge, past the container */
}

.trusted__title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trusted .logo-marquee {
  margin-top: 36px;
  margin-inline: calc(50% - 50vw);
}

.talk-trusted {
  padding: 24px 0 80px;
}

/* Talk With Our Team hero */
.talk-hero {
  padding-block: clamp(56px, 7.8vw, 112px) 56px;
}

.talk-hero .split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 510px);
  justify-content: space-between;
  gap: clamp(40px, 8vw, 140px);
}

.talk-hero .display {
  margin-bottom: 28px;
}

.talk-hero .copy {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

/* 7. Responsive ------------------------------------------------------------ */

@media (max-width: 1180px) {
  .site-header__inner {
    gap: 24px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav__links {
    gap: 0;
  }

  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }

}

@media (max-width: 1099px) {
  /* Talk With Our Team: below 1100px the headline column gets too narrow for
     "Executive" at display size, so the hero stacks (headline above form). */
  .talk-hero .split {
    grid-template-columns: 1fr;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    padding: 16px var(--margin) 32px;
    border-bottom: 1px solid var(--border-line);
    background: var(--bg-page);
    box-shadow: 0 16px 32px rgb(17 11 30 / 8%);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    justify-content: flex-start;
  }

  .site-nav__links a {
    height: 48px;
    font-size: 1rem;
  }

  .site-nav__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .site-nav__actions .btn {
    min-height: 44px;
  }
}

@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
  }

  .hero__pattern {
    opacity: 0.6;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card--wide {
    grid-template-columns: 1fr;
  }

  .bento__card--wide .bento__media {
    order: -1;
    border-bottom: 1px solid var(--border-line);
    border-left: 0;
  }

  .cell-grid,
  .cell-grid--2,
  .stages .cell-grid {
    --cols: 2;

    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cell-grid > * {
    border-width: 0;
  }

  .cell-grid > :nth-child(2n) {
    border-left-width: 1px;
  }

  .cell-grid > :nth-child(n + 3) {
    border-top-width: 1px;
  }

  /* An odd last cell spans the full row. */
  .cell-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__step:nth-child(odd) {
    border-left: 0;
  }

  .process__step:nth-child(n + 3) {
    border-top: 1px solid var(--border-line);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__social {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: -6px;
  }
}

@media (max-width: 1023px) {
  /* Wide illustrations with the diagram in the middle (Stratusphere: Less
     noise): crop to the centre 600x300 of the 1280x380 art so the diagram
     stays legible on phones and tablets. The figure draws the frame the crop removes. */
  .figure--crop-center {
    position: relative;
    aspect-ratio: 2 / 1;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    background: var(--bg-page);
  }

  .figure--crop-center img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 213.34%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767px) {
  /* Phones: the pattern sits behind the text, so fade it further and turn the
   * yellow and purple squares into the same faint gray as the rest. The fill
   * rule works on the inline SVG (site.v1.js); the filter covers the plain
   * <img> if the inline load fails.
   */
  .hero__pattern {
    opacity: 0.2;
    width: 100%;
  }

  .hero__grid img {
    filter: grayscale(1) opacity(0.5);
  }

  .hero__grid rect[fill="#EEB312"],
  .hero__grid rect[fill="#8264F4"] {
    fill: #110b1e;
    opacity: 0.06;
  }

  .cell-grid,
  .cell-grid--2,
  .stages .cell-grid {
    grid-template-columns: 1fr;
  }

  .cell-grid > *,
  .cell-grid > :nth-child(2n) {
    border-width: 0;
  }

  .cell-grid > :nth-child(n + 2) {
    border-top-width: 1px;
  }

  .cell-grid > * {
    padding: 24px;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process__step,
  .process__step:nth-child(odd) {
    border-left: 0;
  }

  .process__step:nth-child(n + 2) {
    border-top: 1px solid var(--border-line);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat + .stat {
    padding: 28px 0;
    border-left: 0;
  }

  .stat + .stat {
    border-top: 1px solid var(--border-line);
  }

  .bento__body,
  .bento__card--wide .bento__body {
    padding: 28px 24px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .logo-strip {
    gap: 56px;
    padding-right: 56px;
  }

  .logo-strip img {
    height: 32px;
    max-width: 140px;
  }

  /* Phones: trim the empty canvas around the dashboard (it fills x 181–1100,
     y 38–713 of 1280×739) so the hero shows larger, within the text column.
     The box keeps ~20px for the card shadows; all layers share the same crop. */
  .home-hero__ui {
    margin-top: 52px;
    overflow: hidden;
    aspect-ratio: 960 / 721;
  }

  /* Home: bring the "Trusted to deliver" heading a little closer to the hero image. */
  .home-hero + .trusted {
    padding-top: 32px;
  }

  .home-hero__ui img,
  .home-hero__ui .home-hero__card {
    position: absolute;
    inset: auto;
    top: -2.5%;
    left: -16.667%;
    width: 133.333%;
    max-width: none;
    height: auto;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__cta {
    padding-top: 64px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .btn--lg {
    min-height: 44px;
    font-size: 1rem;
  }
}

/* Home: Stratusphere card flow animation ----------------------------------------
 * An SVG layer over the illustration (same 618×300 coordinates, so it scales
 * with the image). One 4.5s loop: dots run from the three sources into the
 * engine, a dot crosses to the list, the highlighted row glows.
 * Hidden for reduced motion (the static illustration stays); paused off screen
 * by site.v1.js.
 */
.bento__media--animated {
  position: relative;
}

.flow-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-anim__dot {
  fill: var(--brand-purple);
  filter: drop-shadow(0 0 4px rgb(130 100 244 / 70%));
}

.flow-anim__dot--muted {
  fill: #b5b5b5;
  filter: none;
}

.flow-anim__row {
  fill: rgb(130 100 244 / 22%);
  stroke: var(--brand-purple);
  stroke-width: 1.5;
}

/* Home: Outcome-based pricing card. Each step changes to solid purple with a
 * white icon in turn (color only, no movement), a dot carries the work along
 * the line, then the progress bar in the small card fills (5s loop). */
/* Active step: solid purple tile with a white icon (the How It Works active
 * color, without the glow or movement). */
.flow-anim__tile {
  fill: var(--brand-purple);
}

.flow-anim__port {
  fill: #fff;
  stroke: var(--brand-purple);
}

.flow-anim__icon {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-anim__bar {
  fill: var(--brand-purple);
}

@media (prefers-reduced-motion: reduce) {
  .flow-anim {
    display: none;
  }
}

/* Pipeline (How It Works: "What StratusGrid takes on") ------------------------
 * Five steps in a dark, dotted panel. Each node takes the purple "active" state
 * in turn, and a pulse travels along the wire to the next node. Without motion
 * (prefers-reduced-motion) it shows the Figma state: the last node is active.
 */

.pipeline {
  --cycle: 8s; /* full loop */
  --step: 1.6s; /* --cycle / 5 */
  --band: 160px; /* panel height on desktop */
  --node-w: 88px;
  --node-h: 64px;

  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: none;
}

.pipeline::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--band);
  border: 1px solid #2c2540;
  border-radius: var(--radius-lg);
  background-color: var(--bg-dark);
  background-image: radial-gradient(rgb(255 255 255 / 18%) 0.85px, transparent 1.2px);
  background-size: 25.6px 25.6px;
  background-position: 0 0;
}

.pipeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc((var(--band) - var(--node-h)) / 2);
  text-align: center;
}

.pipeline__step:nth-child(1) { --i: 0; }
.pipeline__step:nth-child(2) { --i: 1; }
.pipeline__step:nth-child(3) { --i: 2; }
.pipeline__step:nth-child(4) { --i: 3; }
.pipeline__step:nth-child(5) { --i: 4; }

.pipeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--node-w);
  height: var(--node-h);
  border: 1px solid var(--brand-purple);
  border-radius: 12px;
  background: #2a2144; /* #8264f4 at 25% on the dark panel, kept opaque so the wire stays behind it */
  color: #b3a4ff;
}

.pipeline__node svg {
  width: 24px;
  height: 24px;
}

/* Connection ports on both sides of each node */
.pipeline__node::before,
.pipeline__node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: 1px solid var(--brand-purple);
  border-radius: 2px;
  background: var(--bg-dark);
}

.pipeline__node::before {
  left: -4.5px;
}

.pipeline__node::after {
  right: -4.5px;
}

/* Static (no-motion) state from Figma: the last node is active. */
.pipeline__step--last .pipeline__node {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: #fff;
}

.pipeline__wire {
  position: absolute;
  top: calc(var(--band) / 2);
  left: calc(50% + var(--node-w) / 2);
  width: calc(100% - var(--node-w));
  height: 1px;
  background: var(--brand-purple);
}

.pipeline__step--last .pipeline__wire {
  display: none;
}

/* The dot that travels along a wire (same as the Home card dots) */
.pipeline__wire::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-purple);
  filter: drop-shadow(0 0 4px rgb(130 100 244 / 70%));
  opacity: 0;
}

.pipeline__label {
  max-width: 230px;
  margin-top: calc((var(--band) - var(--node-h)) / 2 + 24px);
  padding-inline: 8px;
  color: var(--text-on-dark);
}

@media (prefers-reduced-motion: no-preference) {
  .pipeline__node {
    animation: pipeline-node var(--cycle) ease-in-out calc(var(--i) * var(--step)) infinite both;
  }

  .pipeline__wire::after {
    animation: pipeline-pulse var(--cycle) linear calc(var(--i) * var(--step)) infinite both;
  }

  .pipeline__label {
    animation: pipeline-label var(--cycle) ease-in-out calc(var(--i) * var(--step)) infinite both;
  }

  /* Pause while the section is off screen (set by site.v1.js). */
  .pipeline:not(.is-visible) *,
  .pipeline:not(.is-visible) *::after {
    animation-play-state: paused;
  }
}

/* Each step is active for ~20% of the loop (its own 1.6s slot). */
@keyframes pipeline-node {
  0%,
  24%,
  100% {
    background: #2a2144;
    color: #b3a4ff;
  }

  5%,
  18% {
    background: var(--brand-purple);
    color: #fff;
  }
}

/* The pulse leaves as the step finishes and reaches the next node as it lights up. */
@keyframes pipeline-pulse {
  0%,
  14% {
    left: 0;
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  24% {
    left: calc(100% - 7px);
    opacity: 1;
  }

  26%,
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

@keyframes pipeline-label {
  0%,
  24%,
  100% {
    color: rgb(255 255 255 / 72%);
  }

  5%,
  18% {
    color: #fff;
  }
}

/* Small screens: the pipeline runs top to bottom, label beside each node. */
@media (max-width: 767px) {
  .pipeline {
    --node-w: 64px;
    --node-h: 52px;
    --row-pad: 14px;

    grid-template-columns: 1fr;
    padding-block: 10px;
  }

  .pipeline::before {
    inset: 0;
    height: auto;
  }

  .pipeline__step {
    flex-direction: row;
    gap: 18px;
    padding: var(--row-pad) 20px;
    text-align: left;
  }

  .pipeline__node::before,
  .pipeline__node::after {
    display: none;
  }

  .pipeline__wire {
    top: calc(var(--row-pad) + var(--node-h));
    left: calc(20px + var(--node-w) / 2);
    width: 1px;
    height: calc(100% - var(--node-h));
  }

  .pipeline__wire::after {
    top: 0;
    left: -3px;
  }

  .pipeline__label {
    max-width: none;
    margin-top: 0;
    padding-inline: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .pipeline__wire::after {
      animation-name: pipeline-pulse-down;
    }
  }

  @keyframes pipeline-pulse-down {
    0%,
    14% {
      top: 0;
      opacity: 0;
    }

    16% {
      opacity: 1;
    }

    24% {
      top: calc(100% - 7px);
      opacity: 1;
    }

    26%,
    100% {
      top: calc(100% - 7px);
      opacity: 0;
    }
  }
}

/* 404 page ------------------------------------------------------------------ */

.not-found {
  padding-block: var(--section-y);
  text-align: center;
}

.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Three icon tiles: map and compass tilted behind, search-x in front. */
.not-found__art {
  position: relative;
  width: 264px;
  height: 154px;
  flex: none;
}

.not-found__tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 2px solid var(--border-line);
  border-radius: 29px;
  background: var(--bg-page);
  opacity: 0.7;
}

.not-found__tile img {
  width: 44px;
  height: 44px;
}

.not-found__tile--left {
  top: 37px;
  left: 3px;
  transform: rotate(10deg);
}

.not-found__tile--right {
  top: 19px;
  left: 155px;
  transform: rotate(-10deg);
}

.not-found__tile--main {
  top: 13px;
  left: 69px;
  width: 128px;
  height: 128px;
  border-color: var(--purple-soft);
  border-radius: 36px;
  background: linear-gradient(rgb(197 185 255 / 35%), rgb(197 185 255 / 35%)), var(--bg-page);
  opacity: 1;
}

.not-found__tile--main img {
  width: 60px;
  height: 60px;
}

.not-found__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.not-found__badge {
  padding: 2px 8px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: 500 0.875rem / 1.3 var(--font-body);
}

.not-found__title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.not-found__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}

.not-found__links p {
  color: var(--text-muted);
  font: 500 0.875rem / 1.3 var(--font-body);
}

.not-found__links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.not-found__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border-line);
  border-radius: 999px;
  color: var(--text-primary);
  font: 500 0.9375rem / 1.3 var(--font-body);
  text-decoration: none;
}

.not-found__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.not-found__link:hover {
  background: var(--bg-subtle);
}

.not-found__link:hover svg {
  transform: translateX(2px);
}

@media (max-width: 767px) {
  .not-found .container {
    gap: 32px;
  }

  .not-found__art {
    transform: scale(0.8);
    margin-block: -15px;
  }
}

/* Utilities ---------------------------------------------------------------- */

.u-center {
  text-align: center;
}

.u-mt-36 {
  margin-top: 36px;
}

.u-mt-48 {
  margin-top: 48px;
}

.u-mt-56 {
  margin-top: clamp(40px, 4vw, 56px);
}

.u-mt-64 {
  margin-top: clamp(40px, 4.5vw, 64px);
}

.u-mt-72 {
  margin-top: clamp(48px, 5vw, 72px);
}

.u-mb-24 {
  margin-bottom: 24px;
}

.u-mb-32 {
  margin-bottom: 32px;
}

.u-py-48 {
  padding-block: 48px;
}

.u-py-56 {
  padding-block: clamp(40px, 4vw, 56px);
}

.actions--center {
  justify-content: center;
}

.copy--center {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

/* Privacy Policy: a plain reading page (no pattern, narrow text column). */
.legal-hero {
  border-bottom: 0;
  padding-bottom: 40px;
}

.legal-updated {
  color: var(--text-body);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
}

.legal-section {
  padding-top: 0;
}

.prose {
  max-width: 760px;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 56px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin-top: 36px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

.prose h4 {
  margin-top: 28px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

.prose h2 + h3,
.prose h3 + h4 {
  margin-top: 20px;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 1.25em;
  list-style: disc;
}

.prose li::marker {
  color: var(--brand-purple);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Nav dropdown (Resources). Desktop: a small panel under the item; it opens on
   hover (mouse) or click/Enter (site.v1.js sets aria-expanded). Mobile menu:
   the links show as an indented sub-list under the toggle. */
.nav-menu {
  position: relative;
}

.nav-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding-inline: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
}

.nav-menu__toggle:hover {
  background: var(--bg-subtle);
}

.nav-menu__toggle--current {
  color: var(--accent-strong);
}

.nav-menu__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.nav-menu__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-menu__list {
  display: none;
}

.nav-menu__toggle[aria-expanded="true"] + .nav-menu__list {
  display: block;
}

@media (min-width: 1100px) {
  .nav-menu__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    background: var(--bg-page);
    box-shadow: var(--shadow-card);
  }

  /* Hover bridge so the panel doesn't close while the pointer crosses the gap. */
  .nav-menu__list::before {
    content: "";
    position: absolute;
    inset: -9px 0 auto;
    height: 9px;
  }

  .site-nav__links .nav-menu__list a {
    display: flex;
    width: 100%;
  }
}

@media (min-width: 1100px) and (hover: hover) {
  .nav-menu:hover .nav-menu__list {
    display: block;
  }

  .nav-menu:hover .nav-menu__toggle svg {
    transform: rotate(180deg);
  }
}

@media (max-width: 1099px) {
  .nav-menu__toggle {
    width: 100%;
    height: 48px;
    justify-content: space-between;
    font-size: 1rem;
  }

  .nav-menu__list {
    padding-left: 16px;
  }
}

/* Careers: open positions list (Figma: Positions) */
.jobs {
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
}

.jobs li + li {
  border-top: 1px solid var(--border-line);
}

.job {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s ease;
}

.job:hover {
  background: var(--bg-subtle);
}

.job__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.job__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--border-line);
  border-radius: 999px;
  color: var(--text-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.job__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-control);
  border-radius: 999px;
}

.job__arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.job:hover .job__arrow svg {
  transform: translateX(2px);
}

/* Careers: benefits grid (Figma: Benefits grid) */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Careers: teammate quotes on dark (Figma: Quotes) */
.quotes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
}

.quotes li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 223px;
  padding: 28px;
  border: 1px solid #2c2540;
  border-radius: var(--radius-lg);
  background: #1b1429;
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 1099px) {
  .benefits,
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotes li {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .job {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 20px;
  }

  .job__title {
    flex-basis: 100%;
    font-size: 1.125rem;
  }

  .job__arrow {
    margin-left: auto;
  }

  .benefits li {
    padding: 16px;
    gap: 12px;
    font-size: 1rem;
  }

  .quotes {
    margin-top: 48px;
  }
}

@media (max-width: 479px) {
  .benefits,
  .quotes {
    grid-template-columns: 1fr;
  }
}

/* Careers closing CTA: a longer headline, so it's wider and a step smaller (Figma: 52px, 1000px). */
.cta--wide .h2 {
  max-width: 1000px;
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.05;
}

/* Knowledge Base: topic filters, article cards, and pagination. site.v1.js
   runs the filters and paging (12 per page); without it, every article shows
   and the controls stay hidden. */
.kb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.kb-filter {
  padding: 8px 16px;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 1.3 var(--font-body);
  cursor: pointer;
}

.kb-filter:hover {
  background: var(--bg-subtle);
}

.kb-filter[aria-pressed="true"] {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #fff;
  font-weight: 600;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.kb-card[hidden] {
  display: none;
}

.kb-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.kb-card__link:hover {
  border-color: var(--border-control);
  box-shadow: var(--shadow-card);
}

/* Article image, cropped to the card. The dot-grid shows while it loads. */
.kb-card__media {
  flex: none;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-line);
  background-color: var(--bg-subtle);
  background-image: radial-gradient(rgb(17 11 30 / 16%) 0.8px, transparent 1.2px);
  background-size: 20px 20px;
}

.kb-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.kb-card__title {
  color: var(--text-primary);
  font: 600 1.25rem / 1.25 var(--font-display);
}

.kb-card__desc {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.5;
}

.kb-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-line);
}

.kb-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 600;
}

.kb-card__author {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.kb-card__arrow svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.kb-card__link:hover .kb-card__arrow svg {
  transform: translateX(2px);
}

.kb-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.kb-pages[hidden] {
  display: none;
}

.kb-pages__nums {
  display: flex;
  gap: 8px;
}

.kb-page {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 1 var(--font-body);
  cursor: pointer;
}

.kb-page:hover:not(:disabled) {
  background: var(--bg-subtle);
}

.kb-page[aria-current="page"] {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #fff;
  font-weight: 600;
}

.kb-page:disabled {
  opacity: 0.4;
  cursor: default;
}

.kb-page svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1023px) {
  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .kb-grid {
    grid-template-columns: 1fr;
  }

  .kb-card__media {
    height: 140px;
  }

  .kb-card__body {
    padding: 24px;
  }
}

/* Knowledge Base article (Figma: Knowledge Base — Article). The body is
   imported HubSpot content, so it is styled by element, not by class. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font: 500 0.9375rem / 1.3 var(--font-body);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.crumbs svg {
  width: 16px;
  height: 16px;
}

.crumbs__topic {
  color: var(--accent-strong);
}

.article__head {
  padding: 72px 0 48px;
}

.article__head .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.article__title {
  max-width: min(960px, 100%);
  color: var(--text-primary);
  font: 600 clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem) / 1.1 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article__summary {
  max-width: 760px;
  color: var(--text-body);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.article__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.article__cover {
  height: clamp(200px, 25vw, 360px);
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}

.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 96px;
  padding: 72px 0 120px;
}

.article__body {
  max-width: 824px;
  min-width: 0;
  color: var(--text-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.article__body > * + * {
  margin-top: 24px;
}

.article__body h2,
.article__body h3,
.article__body h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

.article__body h2 {
  margin-top: 48px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
}

.article__body h3 {
  margin-top: 40px;
  font-size: 1.375rem;
}

.article__body h4 {
  margin-top: 32px;
  font-size: 1.125rem;
}

.article__body > :first-child {
  margin-top: 0;
}

.article__body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article__body ul,
.article__body ol {
  padding-left: 1.4em;
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li + li,
.article__body li > * + * {
  margin-top: 8px;
}

.article__body li::marker {
  color: var(--brand-purple);
}

/* Numbered steps (Figma: Steps): top-level ordered lists become a bordered
   list with a number badge per step; the last step's badge is filled. */
.article__body > ol {
  counter-reset: step;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  list-style: none;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.article__body > ol > li {
  position: relative;
  margin: 0;
  padding: 18px 24px 18px 68px;
  counter-increment: step;
}

.article__body > ol > li + li {
  border-top: 1px solid var(--border-line);
}

.article__body > ol > li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--accent-strong);
  font: 600 0.8125rem / 1 var(--font-display);
}

.article__body > ol > li:last-child::before {
  background: var(--brand-purple);
  color: #fff;
}

.article__body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-line);
  border-radius: 12px;
}

.article__body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 0.9em / 1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.article__body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px 24px;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 0.9375rem / 1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: normal;
  white-space: pre;
}

.article__body pre code {
  padding: 0;
  background: none;
  font: inherit;
}

.article__body blockquote {
  padding-left: 20px;
  border-left: 3px solid var(--purple-soft);
}

.article__body hr {
  border: 0;
  border-top: 1px solid var(--border-line);
}

.article__body .table-wrap {
  overflow-x: auto;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.article__body th,
.article__body td {
  padding: 10px 14px;
  border: 1px solid var(--border-line);
  text-align: left;
  vertical-align: top;
}

.article__body th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.article__video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-dark);
}

.article__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.article__aside {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-links {
  padding: 24px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
}

.aside-links__title {
  color: var(--text-primary);
  font: 600 1rem / 1.3 var(--font-display);
}

.aside-links ul {
  margin-top: 4px;
}

.aside-links li + li {
  border-top: 1px solid var(--border-line);
}

.aside-links a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  color: var(--text-primary);
  font: 500 0.9375rem / 1.45 var(--font-body);
  text-decoration: none;
}

.aside-links li:last-child a {
  padding-bottom: 0;
}

.aside-links a:hover {
  color: var(--accent-strong);
}

.aside-links svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--brand-purple);
}

.aside-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
}

.aside-help__title {
  color: #fff;
  font: 600 1.25rem / 1.25 var(--font-display);
}

.aside-help p {
  color: var(--text-on-dark-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .article__layout {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 56px 0 96px;
  }

  .article__aside {
    position: static;
  }
}

@media (max-width: 767px) {
  .article__head {
    padding: 40px 0 32px;
  }

  .article__body {
    font-size: 1.0625rem;
  }

  .article__body > ol > li {
    padding: 16px 16px 16px 56px;
  }

  .article__body > ol > li::before {
    top: 14px;
    left: 16px;
  }
}

/* Pagination gap ("1 2 … 20") */
.kb-pages__gap {
  display: grid;
  place-items: center;
  width: 20px;
  color: var(--text-muted);
  font: 500 var(--fs-sm) / 1 var(--font-body);
}

/* Topic tag on blog cards (Figma: Tag) */
.kb-card__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--border-line);
  border-radius: 999px;
  color: var(--text-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Blog posts: dark code blocks (Figma: Code block) */
.article--blog .article__body pre {
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* NOTE / IMPORTANT callouts (Figma: Callout) */
.callout {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 1rem;
  line-height: 1.55;
}

.callout > svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #b8860b;
}

.callout__label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* "Share this article" (blog sidebar) */
.aside-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
}

.aside-share ul {
  display: flex;
  gap: 8px;
}

.aside-share a,
.aside-share button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-primary);
  cursor: pointer;
}

.aside-share a:hover,
.aside-share button:hover {
  background: var(--bg-subtle);
}

.aside-share svg {
  width: 16px;
  height: 16px;
}

.aside-share button[data-copied] {
  border-color: var(--brand-purple);
  color: var(--accent-strong);
}

/* Blog signup line: one line on desktop, wraps on smaller screens. */
.cta .copy--one-line {
  max-width: none;
}

@media (min-width: 900px) {
  .cta .copy--one-line p {
    white-space: nowrap;
  }
}

/* Talk With Our Team: HubSpot's embedded briefing form (site.v1.js loads it
   with HubSpot's styles off). These rules match the site's own fields. */
.hs-embed__status {
  color: var(--text-body);
  font: 400 var(--fs-sm) / 20px var(--font-ui);
}

.hs-embed__status--error {
  color: #8a1c1c;
}

.hs-embed .hs-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hs-embed fieldset {
  display: grid;
  gap: 16px;
  max-width: none !important; /* HubSpot sets a 500px max width inline */
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hs-embed fieldset.form-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* HubSpot pairs "AWS monthly spending" with "Message"; give Message its own row. */
.hs-embed fieldset.form-columns-2:has(.hs_message) {
  grid-template-columns: 1fr;
}

.hs-embed .hs-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important; /* HubSpot adds an 8px bottom margin; spacing comes from the gaps here */
}

.hs-embed .hs-form-field > label {
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
}

.hs-embed .hs-form-required {
  margin-left: 2px;
  color: var(--accent-strong);
}

.hs-embed .input {
  margin: 0 !important;
}

.hs-embed .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  /* !important: HubSpot's own rule (six :not()s) sets 27px and 0 15px. */
  min-height: 36px !important;
  padding: 6px 10px !important;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font: 400 var(--fs-sm) / 20px var(--font-ui);
  box-shadow: 0 1px 2px rgb(17 11 30 / 4%);
}

/* :is(select) / :is(textarea) outrank the !important box rule above. */
.hs-embed .hs-input:not([type="checkbox"]):not([type="radio"]):is(select) {
  appearance: none;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23110b1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.hs-embed select.hs-input.is-placeholder {
  color: #858090;
}

.hs-embed .hs-input:not([type="checkbox"]):not([type="radio"]):is(textarea) {
  min-height: 96px !important;
  resize: vertical;
}

.hs-embed .hs-input:focus {
  border-color: var(--brand-purple);
  outline: 2px solid rgb(130 100 244 / 30%);
  outline-offset: 0;
}

.hs-embed .hs-input.invalid.error {
  border-color: #c0392b;
}

.hs-embed .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-embed .legal-consent-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-body);
  font: 400 var(--fs-sm) / 20px var(--font-ui);
}

.hs-embed .legal-consent-container .hs-richtext p,
.hs-embed .legal-consent-container p {
  margin: 0;
}

.hs-embed .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-body);
  font: 400 var(--fs-sm) / 20px var(--font-ui);
  cursor: pointer;
}

.hs-embed .hs-form-booleancheckbox-display > span {
  margin: 0 !important; /* HubSpot adds a 20px left margin */
}

.hs-embed .hs-form-booleancheckbox-display input {
  flex: none;
  float: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--brand-purple);
}

.hs-embed .legal-consent-container a {
  color: var(--text-primary);
  text-decoration: underline;
}

.hs-embed .hs-error-msgs {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.hs-embed .hs-error-msgs label,
.hs-embed .hs-error-msg {
  color: #b42318;
  font: 400 0.8125rem / 18px var(--font-ui);
}

.hs-embed .hs_error_rollup .hs-error-msgs {
  margin: 0;
}

.hs-embed .hs_submit .actions {
  display: block;
  margin: 0;
  padding: 0;
}

.hs-embed .hs_submit .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.hs-embed .submitted-message {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--purple-tint);
  color: var(--text-primary);
  font: 500 var(--fs-sm) / 20px var(--font-ui);
}

@media (max-width: 599px) {
  .hs-embed fieldset.form-columns-2 {
    grid-template-columns: 1fr;
  }
}

/* Blog newsletter: HubSpot's form in one row on desktop (first name, last
   name, email, Subscribe); stacked on phones. */
.hs-embed--inline {
  max-width: 880px;
  margin: 36px auto 0;
  text-align: left;
}

.hs-embed--inline .hs-embed__status,
.hs-embed--inline .submitted-message {
  text-align: center;
}

@media (min-width: 768px) {
  .hs-embed--inline .hs-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: start;
    gap: 16px;
  }

  .hs-embed--inline fieldset {
    display: contents;
  }

  /* Label (20px) + gap (8px) above each input: line the button up with them. */
  .hs-embed--inline .hs_submit {
    margin-top: 28px;
  }

  .hs-embed--inline .hs_submit .btn {
    width: auto;
    height: 36px;
    min-height: 0;
  }

  .hs-embed--inline .hs_error_rollup {
    grid-column: 1 / -1;
  }
}

/* Careers: note shown after the email button copies the address. */
.copy-note {
  margin-top: 16px;
  color: var(--text-body);
  font: 400 var(--fs-sm) / 20px var(--font-ui);
  text-align: center;
}

/* Line break used only on phones (Home: "Trusted to deliver / measurable
   cloud savings" as two even lines). */
.br-mobile {
  display: none;
}

@media (max-width: 767px) {
  .br-mobile {
    display: inline;
  }
}
