/*
 * Patterns shared by the Landing and the Solution page (moved unchanged from landing.css in
 * card 23): eyebrow, buttons, text link, hairline, section heading, the navy sections with
 * their contour lines, and the Easy to deploy section (renders, three columns). Widths: mobile
 * under 768 px, tablet 768 to 1279 px, desktop from 1280 px. Every value comes from tokens.css.
 */

/* --- Shared ------------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-teal-400);
  font-size: var(--text-eyebrow-size);
  line-height: var(--text-eyebrow-line);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--text-eyebrow-tracking);
  text-transform: uppercase;
}

.eyebrow__mark {
  flex: none;
  width: 16px;
  height: 16px;
}

.eyebrow--on-light {
  color: var(--color-teal-700);
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.button-primary,
.button-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: var(--button-height);
  padding: 0 var(--space-24);
  border-radius: var(--radius-pill);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.button-primary {
  background: var(--color-teal-400);
  color: var(--color-text-on-action);
}

.button-inverse {
  background: var(--color-white);
  color: var(--color-petrol-900);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: 0 var(--space-4);
  border-radius: var(--space-4);
  color: var(--color-teal-700);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

@media (hover: hover) {
  .text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.hairline {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-on-navy-rule);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.section-heading .hairline {
  margin-bottom: var(--space-8);
}

.section-heading__lead {
  color: var(--color-slate-300);
}

.section-heading--light .t-h2 {
  color: var(--color-petrol-900);
}

.section-heading--light .section-heading__lead {
  color: var(--color-slate-500);
}

/* The dark sections (What we do, Proof numbers): navy, with the contour lines behind. */
.dark-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-navy-900);
  color: var(--color-white);
}

.contour {
  position: absolute;
  z-index: -1;
  width: 1512.85px;
  max-width: none;
  height: 745.93px;
  pointer-events: none;
}

/* --- 04 Easy to deploy --------------------------------------------------------------------- */

.deploy {
  padding: var(--space-64) 0;
  background: var(--color-white);
}

.deploy__columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  margin-top: var(--space-40);
}

.deploy__column {
  display: flex;
  flex-direction: column;
}

/* Card 52 (3973:4273 / 3973:4381): each visual a tile of its own, rounded, the ground and the
   fade drawn in the picture; 350 x 240 on a phone (full width), 384 x 360 from 768 px. */
.deploy__render {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.deploy__render img {
  display: block;
  width: 100%;
  height: auto;
}

.deploy__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-20);
  text-align: center;
}

.deploy__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.deploy__number {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: var(--color-teal-700);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: var(--weight-medium);
}

.deploy__text .t-h3 {
  color: var(--color-petrol-900);
}

.deploy__text p:not(.deploy__number) {
  color: var(--color-slate-500);
}

@media (min-width: 768px) {
  .deploy {
    padding: var(--space-80) 0;
  }

  .deploy__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
  }

  .deploy__render img {
    aspect-ratio: 384 / 360;
  }
}

@media (min-width: 1280px) {
  .deploy {
    padding: 120px 0;
  }

  .deploy__columns {
    gap: 0;
    margin-top: 56px;
  }

  /* Three tiles of 384 x 360, 24 apart, above three columns of 400 (1200 in all): the first
     tile at its column's start, the second centred, the third at its column's end. */
  .deploy__render {
    width: 384px;
  }

  .deploy__column:nth-child(2) .deploy__render {
    align-self: center;
  }

  .deploy__column:nth-child(3) .deploy__render {
    align-self: flex-end;
  }

  .deploy__body {
    flex: 1;
    justify-content: space-between;
    margin-top: var(--space-40);
    padding: 0 var(--space-32);
  }

  .deploy__text {
    padding-bottom: var(--space-24);
  }

  .deploy__column + .deploy__column .deploy__body {
    border-left: 1px solid var(--color-grey-150);
  }

  /* From 1280 px the link is drawn 20 high (touch targets of 44 apply under 1280). */
  .deploy .text-link {
    min-height: 0;
    padding: 2px var(--space-4);
  }
}
