/* Layout, buttons and components shared by every page. */

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  white-space: nowrap;
}

.btn-lg {
  font-size: 15px;
  padding: 14px 22px;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-blue-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--brand-blue-700);
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 248, 242, 0.9), 0 0 0 6px var(--brand-blue);
}

.e-brand:focus-visible,
.e-offer:focus-visible,
.e-nofees:focus-visible,
.e-topnav__links a:focus-visible,
.e-topnav__menu:focus-visible,
.e-site-footer__social:focus-visible,
.e-site-footer__col a:focus-visible {
  outline: 2px solid var(--brand-blue-300);
  outline-offset: 3px;
  border-radius: var(--r-2);
}

/* Text helpers */
.e-arrow {
  font-family: var(--font-mono);
}

.e-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(251, 248, 242, 0.8);
  letter-spacing: 0.5px;
}

.e-h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--brand-navy);
}

.e-wordmark {
  white-space: nowrap;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.e-wordmark span {
  font-weight: 500;
  color: var(--brand-blue-300);
}

.e-masthead .t-eyebrow,
.e-site-footer .t-eyebrow {
  color: var(--brand-blue-300);
}

/* Labels above page and section headings sit a size up from the labels in cards and tiles */
.e-page-hero__inner > .t-eyebrow,
.e-intro__copy > .t-eyebrow,
.e-side__head > .t-eyebrow,
.e-showcase__head > .t-eyebrow,
.e-steps__head > .t-eyebrow,
.e-industry__head > .t-eyebrow,
.e-offers__intro > .t-eyebrow,
.e-why__head > .t-eyebrow,
.e-tiers__head > .t-eyebrow,
.e-pricing__head > .t-eyebrow,
.e-more__head > .t-eyebrow,
.e-cases__head > .t-eyebrow,
.e-story__head > .t-eyebrow,
.e-rules__head > .t-eyebrow {
  font-size: 14px;
}

/* Less room between the navy top section and the first section after it */
main > section:first-child {
  padding-top: 64px;
}

/* Scroll reveal (js/reveal.js adds .in) */
.js .rv:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

.js .rv.in {
  animation: rv-in 620ms var(--ease-out) backwards;
}

@keyframes rv-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Masthead and navigation */
.e-masthead {
  background: var(--brand-navy);
  color: var(--cream-50);
  position: relative;
  overflow: hidden;
}

/* A soft bloom and a faint grid give the navy sections depth. */
.e-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 380px at 82% -20%, rgba(8, 88, 216, 0.55), transparent 68%),
    radial-gradient(520px 320px at 2% 118%, rgba(111, 160, 240, 0.14), transparent 72%);
}

.e-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251, 248, 242, 0.115) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 242, 0.115) 1px, transparent 1px);
  background-size: 46px 46px;
  /* Offset so the first row of lines falls between the label above each page title, not through it */
  background-position: 0 23px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 75%);
}

.e-topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-navy);
  border-bottom: 1px solid rgba(251, 248, 242, 0.1);
  transition: background var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

/* js/nav.js adds .is-stuck once the page scrolls. */
.e-topnav.is-stuck {
  background: rgba(8, 32, 72, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(251, 248, 242, 0.12), 0 12px 32px -20px rgba(8, 32, 72, 0.9);
}

.e-topnav__row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.e-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.e-brand img {
  width: 30px;
  height: 30px;
}

.e-topnav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.e-topnav__links a {
  color: rgba(251, 248, 242, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 120ms ease-out;
}

.e-topnav__links a:hover,
.e-topnav__links a.is-active {
  color: var(--white);
}

/* Menu button, shown on small screens when scripts run */
.e-topnav__menu {
  display: none;
}

.e-topnav__menu svg {
  width: 18px;
  height: 18px;
}

.e-topnav__menu path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.e-topnav__menu-close {
  display: none;
}

.e-topnav__menu[aria-expanded="true"] .e-topnav__menu-open {
  display: none;
}

.e-topnav__menu[aria-expanded="true"] .e-topnav__menu-close {
  display: block;
}

@media (max-width: 1300px) {
  .e-topnav__links {
    gap: 15px;
  }

  .e-topnav__links a {
    font-size: 13px;
  }
}

@media (max-width: 1150px) {
  .js .e-topnav__links {
    display: none;
  }

  .js .e-topnav.is-open .e-topnav__links {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 2px;
    border-top: 1px solid rgba(251, 248, 242, 0.14);
  }

  .js .e-topnav.is-open .e-topnav__links a {
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(251, 248, 242, 0.08);
  }

  .js .e-topnav.is-open .e-topnav__links a:last-child {
    border-bottom: 0;
  }

  .js .e-topnav__menu {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(251, 248, 242, 0.24);
    border-radius: 10px;
    background: transparent;
    color: var(--cream-50);
    cursor: pointer;
  }

  .e-topnav__row {
    height: auto;
    flex-wrap: wrap;
    gap: 14px;
    padding-block: 14px;
  }

  .e-topnav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .e-topnav__cta {
    margin-left: auto;
  }

  .e-topnav.is-stuck .e-topnav__row {
    gap: 10px;
    padding-block: 10px;
  }

  .e-topnav.is-stuck .e-topnav__cta {
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .e-topnav__row {
    gap: 8px;
  }

  .e-topnav .e-wordmark {
    font-size: 15px;
  }

  .e-topnav__cta,
  .e-topnav.is-stuck .e-topnav__cta {
    padding: 11px 14px;
    font-size: 13px;
  }
}

/* Two-column section with a sticky heading */
.e-side {
  padding: 96px 0;
}

.e-side__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

/* Long words in a card must not push the column wider than the screen. */
.e-side__grid > * {
  min-width: 0;
}

.e-side__head {
  position: sticky;
  top: 90px;
}

.e-side__title {
  margin: 10px 0 0;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brand-navy);
}

@media (max-width: 1040px) {
  .e-side__grid {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }
}

@media (max-width: 920px) {
  .e-side__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .e-side__head {
    position: static;
  }
}

/* FAQ */
.e-faq__list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--cream-200);
}

.e-faq__item {
  padding: 26px 0;
  border-top: 1px solid var(--cream-200);
}

.e-faq__item h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.e-faq__item p {
  margin: 8px 0 0;
  color: var(--fg-2);
  line-height: 1.7;
  font-size: 16px;
}

/* Offer cards */
.e-offer {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-4);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(8, 32, 72, 0.05), 0 10px 28px -14px rgba(8, 32, 72, 0.22);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.e-offer:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(8, 32, 72, 0.07), 0 22px 46px -18px rgba(8, 32, 72, 0.3);
}

.e-offer__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-3);
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.e-offer .t-eyebrow {
  color: var(--brand-blue);
}

.e-offer__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--fg-display);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.e-offer__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
}

.e-offer__meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
}

.e-offer--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  background: var(--brand-blue-50);
  border-color: var(--brand-blue-100);
}

.e-offer__lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.e-offer--wide .e-offer__meta {
  margin-top: 0;
  padding-top: 0;
}

/* Each card opens with the question it answers */
.e-offer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.e-offer__ask {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--cream-100);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-2);
  text-align: right;
}

.e-offer__top .e-offer__ask {
  align-self: center;
}

.e-offer--wide .e-offer__ask {
  background: var(--white);
}

.e-offers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1040px) {
  .e-offers__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .e-offers__grid {
    grid-template-columns: 1fr;
  }
}

/* No subscriptions, no per-user fees, straight after the hero */
main > .e-rent:first-child {
  padding: 48px 0 0;
}

.e-rent + section {
  padding-top: 72px;
}

.e-nofees {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 44px;
  align-items: center;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-4);
  box-shadow: 0 1px 2px rgba(8, 32, 72, 0.05), 0 10px 28px -14px rgba(8, 32, 72, 0.22);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

/* A link to the pricing page, so it lifts on hover like the offer cards */
.e-nofees:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(8, 32, 72, 0.07), 0 22px 46px -18px rgba(8, 32, 72, 0.3);
}

.e-nofees__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--brand-navy);
}

.e-nofees__title span {
  display: block;
  color: var(--brand-blue);
}

.e-nofees__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}

.e-nofees__list b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-display);
}

.e-nofees__list span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
}

@media (max-width: 920px) {
  .e-nofees {
    grid-template-columns: 1fr;
  }

  .e-nofees__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Closing call to action */
.e-cta {
  background: var(--brand-navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.e-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(620px 320px at 88% -30%, rgba(8, 88, 216, 0.5), transparent 70%);
}

.e-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 56px;
  position: relative;
  z-index: 1;
}

.e-cta__action {
  grid-column: 2;
  grid-row: 1 / 3;
}

@media (max-width: 860px) {
  .e-cta__inner {
    grid-template-columns: 1fr;
  }

  .e-cta__action {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }
}

.e-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}

.e-cta__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.e-cta__copy p {
  margin: 0;
  color: rgba(251, 248, 242, 0.7);
  font-size: 17px;
  line-height: 1.6;
}

.e-cta__copy .e-cta__foot {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(251, 248, 242, 0.6);
}

.e-cta__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.e-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(251, 248, 242, 0.22);
  border-radius: var(--r-pill);
  background: rgba(251, 248, 242, 0.05);
  font-size: 12px;
  color: rgba(251, 248, 242, 0.86);
}

.e-cta__badge svg {
  flex-shrink: 0;
  color: var(--brand-blue-300);
}

.e-cta__action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.e-cta__action .e-note {
  white-space: nowrap;
}

.e-cta .btn-primary {
  background: var(--white);
  color: var(--brand-navy);
  font-size: 16px;
  padding: 16px 26px;
  box-shadow: 0 0 0 4px rgba(251, 248, 242, 0.14);
}

.e-cta .btn-primary:hover {
  background: var(--cream-100);
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(251, 248, 242, 0.2);
}

.e-cta .btn-primary:active {
  background: var(--cream-200);
  transform: translateY(0);
}

/* Footer */
.e-site-footer {
  background: var(--brand-navy);
  color: var(--cream-50);
  padding: 56px 0 40px;
}

.e-site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.e-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.e-site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.e-site-footer__logo img {
  width: 28px;
  height: 28px;
}

.e-site-footer__logo .e-wordmark {
  font-size: 17px;
  color: inherit;
  letter-spacing: normal;
}

.e-site-footer__tag {
  margin: 0;
  color: var(--brand-blue-300);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.e-site-footer__serve {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 248, 242, 0.86);
}

.e-site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--cream-50);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.e-site-footer__social:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e-site-footer__social svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.e-site-footer__social-bg {
  fill: currentColor;
}

.e-site-footer__social-dot {
  fill: var(--brand-navy);
}

.e-site-footer__social-glyph {
  fill: none;
  stroke: var(--brand-navy);
  stroke-width: 2;
  stroke-linecap: round;
}

.e-site-footer__cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.e-site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.e-site-footer__col a {
  display: inline-block;
  padding-block: 5px;
  color: var(--cream-50);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.5;
}

.e-site-footer__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 242, 0.14);
  font-size: 13px;
  color: var(--brand-blue-300);
}

/* Browser-window example frame, used by the dashboard and the offer page examples */
.e-demo__caption {
  margin: 16px 0 0;
}

.e-demo__point {
  font-weight: 700;
  color: var(--brand-blue);
}

.e-dash__viewlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.e-dash {
  background: var(--white);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.e-dash .t-eyebrow {
  color: var(--fg-3);
}

.e-dash__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cream-200);
  background: var(--cream-50);
}

.e-dash__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream-300);
}

.e-dash__url {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-left: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.e-dash__checks {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
}

.e-dash__checks svg {
  display: block;
}

.e-dash__checks + .e-dash__sync {
  margin-left: 0;
}

.e-dash__sync {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
}

.e-dash__sync::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: e-pulse 1.9s ease-in-out infinite;
}

@keyframes e-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 138, 92, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(18, 138, 92, 0); }
}

.e-dash__body {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.e-dash__side {
  border-right: 1px solid var(--cream-200);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream-50);
}

.e-dash__side .t-eyebrow {
  margin-bottom: 8px;
}

.e-dash__view {
  font-size: 13px;
  color: var(--fg-2);
  padding: 8px 12px;
}

/* The current view in the example: marked, but not styled like a button */
.e-dash__view.is-active {
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-50);
  border-radius: var(--r-2);
}

.e-dash__main {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.e-dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.e-dash__kpi {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
}

.e-dash__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.e-dash__delta.is-up {
  color: var(--success);
}

.e-dash__delta.is-down {
  color: var(--danger);
}

.e-dash__chart {
  border-top: 1px solid var(--cream-200);
  padding-top: 20px;
}

.e-dash__chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.e-dash__chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-display);
}


.e-dash__svg {
  width: 100%;
  height: 150px;
  margin-top: 12px;
}

.e-dash__grid {
  stroke: var(--cream-200);
  stroke-width: 1;
}


.e-dash__line {
  stroke: var(--brand-blue);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .e-dash__line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.e-dash.in .e-dash__line {
  animation: draw 1400ms 200ms var(--ease-out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 920px) {
  .e-dash__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .e-dash__side {
    border-right: none;
    border-bottom: 1px solid var(--cream-200);
    padding: 16px 18px;
  }

  /* On narrow screens the views become one row that scrolls sideways */
  .e-dash__viewlist {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .e-dash__view {
    flex: none;
    white-space: nowrap;
  }

  .e-dash__kpis {
    grid-template-columns: 1fr 1fr;
  }

  /* Room for a two-line label, so the figures in each row line up */
  .e-dash__kpis .t-eyebrow {
    min-height: 2.6em;
    min-height: 2lh;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .rv:not(.in) {
    opacity: 1;
    transform: none;
  }

  .js .rv.in {
    animation: none;
  }

  .js .e-dash__line {
    stroke-dashoffset: 0;
  }

  .e-dash.in .e-dash__line {
    animation: none;
  }

  .e-dash__sync::before {
    animation: none;
  }

}

.e-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.e-site-footer__legal a {
  color: inherit;
}

.e-site-footer__legal a:hover {
  color: var(--white);
}

/* Blueprint grid carried into the light sections, fading out from the top right corner */
main > section:not(.e-cta):not(.e-why) {
  position: relative;
}

main > section:not(.e-cta):not(.e-why):not(.e-side--ink)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--cream-300) 1px, transparent 1px),
    linear-gradient(90deg, var(--cream-300) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 72%);
}

main > section:not(.e-cta):not(.e-why) > .container {
  position: relative;
}

/* On the navy track record the grid uses the closing band's line color */
.e-side--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251, 248, 242, 0.115) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 242, 0.115) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 72%);
}

/* The same grid in the closing band, so it separates from the footer */
.e-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251, 248, 242, 0.115) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 242, 0.115) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

@media (max-width: 640px) {
  .e-cta {
    padding: 64px 0 48px;
  }
}

/* Footer links respond like every other link on the page */
.e-site-footer__col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(251, 248, 242, 0.4);
  text-underline-offset: 3px;
}

/* Comfortable line length for FAQ answers */
.e-faq__item p {
  max-width: 62ch;
}

/* Industry selector, shared by the homepage and the Operations Dashboard page */
.e-industry {
  padding: 96px 0 36px;
}

.e-industry__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.e-industry__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.e-industry__options noscript {
  grid-column: 1 / -1;
}

.e-chip {
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: var(--white);
  color: var(--fg-1);
  border: 1px solid var(--cream-300);
  transition: all 120ms ease-out;
}

.e-chip[aria-pressed="true"] {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}

.e-chip:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.e-industry__line {
  margin: 14px 0 28px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-1);
  max-width: 760px;
  min-height: 60px;
}

/* Chips answer the pointer before the click */
.e-chip:hover:not([aria-pressed="true"]) {
  border-color: var(--brand-blue-300);
  background: var(--brand-blue-50);
}

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