/* ==========================================================================
   Sections — page-specific composition
   Ordered top to bottom as they appear in index.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site header
   Floating pill bar over the hero. Figma: 1396 × 69 inset 22px, radius 100.
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset-block-start: var(--header-inset);
  inset-inline: 0;
  z-index: var(--z-sticky);
  padding-inline: var(--header-inset);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  max-width: var(--layout-wide);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 21px;
  border-radius: var(--radius-pill);
  background-color: var(--gm-alpha-grey-20);
  backdrop-filter: blur(12px);
}

/* Inner pages have no dark hero behind the bar, so the translucent fill
   leaves white nav text on a pale band. Give those pages a solid bar. */
.site-header--solid .site-header__bar {
  background-color: var(--gm-green-900);
}

.site-header__logo {
  flex: none;
  display: block;
}

.site-header__logo img {
  width: 144px;
  height: auto;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.site-nav__link {
  display: inline-block;
  padding-block: var(--space-2xs);
  font-family: var(--font-display);
  /* Figma has these at 13px, which reads small on a real screen. */
  font-size: var(--step-body-sm);
  line-height: 20px;
  color: var(--gm-white);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

.site-nav__link:hover {
  color: var(--gm-lime-500);
}

.site-header__cta {
  flex: none;
}

/* Collapsed menu ---------------------------------------------------------- */

.site-menu__checkbox {
  /* Visually hidden but focusable, so the toggle is keyboard reachable. */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.site-menu__button {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  order: 3;
  min-height: 44px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--step-caption);
  color: var(--gm-white);
  cursor: pointer;
}

.site-menu__bars,
.site-menu__bars::before,
.site-menu__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.site-menu__bars {
  position: relative;
}

.site-menu__bars::before,
.site-menu__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.site-menu__bars::before {
  inset-block-start: -6px;
}

.site-menu__bars::after {
  inset-block-start: 6px;
}

/* Below the desktop breakpoint the eight-item nav cannot sit on one line,
   so it collapses into a panel under the bar. */
@media (max-width: 1200px) {
  .site-header__bar {
    flex-wrap: wrap;
    gap: var(--space-xs);
    row-gap: var(--space-sm);
  }

  /* The bar is translucent by design; make it solid while the panel is
     open so hero content does not show through the links. */
  .site-header__bar:has(.site-menu__checkbox:checked) {
    background-color: var(--gm-green-900);
    border-radius: var(--radius-lg);
  }

  .site-menu__button {
    display: inline-flex;
    order: 3;
  }

  .site-header__logo {
    order: 1;
    margin-inline-end: auto;
  }

  .site-header__cta {
    order: 2;
  }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    padding-block: var(--space-sm) var(--space-xs);
    border-block-start: 1px solid var(--border-on-dark);
  }

  .site-menu__checkbox:checked ~ .site-nav {
    display: block;
  }

  .site-menu__checkbox:focus-visible ~ .site-menu__button {
    outline: var(--focus-ring-width) solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-pill);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding-block: var(--space-sm);
    font-size: var(--step-body);
  }
}

@media (max-width: 480px) {
  .site-header__bar {
    padding-inline: var(--space-sm);
  }

  .site-header__logo img {
    width: 118px;
  }

  .site-menu__label-text {
    display: none;
  }

  /* Keep logo, CTA and toggle on one line at 360px and up. */
  .site-header__cta {
    min-height: 40px;
    padding-inline: 0.875rem;
    font-size: var(--step-body-sm);
  }

  .site-menu__button {
    padding-inline: var(--space-xs);
  }
}

/* --------------------------------------------------------------------------
   Hero
   Figma: frame 1440 × 873, copy block at x165 / y319, artwork 694 × 694
   at x720 / y152, facet shape 1164 × 1147 at x842 / y283.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 873px;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-height) + var(--header-inset) * 2)
    var(--space-3xl);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
}

/* Pinned to the backdrop rather than sized with height:100%. The <picture>
   wrapper has an indefinite height, so a percentage height on the image
   resolved to auto and left the facet texture stopping ~90% down the band,
   with flat green below it. */
.hero__backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__facet-layer {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero__facet-frame {
  position: relative;
  height: 100%;
}

.hero__facet {
  position: absolute;
  /* Figma: x842 y283, 1164 wide — expressed against the 1110px content
     column (x165–1275) so the shape tracks the artwork at any width. */
  inset-inline-start: 61%; /* (842 − 165) / 1110 */
  inset-block-start: 32.42%; /* 283 / 873 */
  width: 104.86%; /* 1164 / 1110 */
  height: auto;
  max-width: none;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 665px) minmax(0, 1fr);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 665px;
}

.hero__title {
  font-size: var(--step-display);
  line-height: 1.09;
  letter-spacing: -1px;
  color: var(--gm-white);
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--gm-lime-500);
}

.hero__lede {
  max-width: 538px;
  color: var(--gm-white);
}

.hero__actions {
  margin-block-start: var(--space-sm);
  --cluster-gap: var(--space-sm);
}

/* Figma: artwork x720–1414, i.e. it starts halfway across the content
   column and overhangs its right edge by 139px. */
.hero__media {
  grid-area: 1 / 1 / 2 / 3;
  justify-self: end;
  align-self: center;
  width: 62.52%; /* 694 / 1110 */
  margin-inline-end: -12.52%; /* 139 / 1110 */
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: auto;
}

@media (max-width: 1000px) {
  .hero {
    min-height: 0;
    padding-block-end: var(--space-2xl);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .hero__copy {
    grid-area: auto;
  }

  .hero__media {
    grid-area: auto;
    justify-self: center;
    width: min(520px, 100%);
    margin-inline-end: 0;
    order: -1;
  }

  .hero__facet {
    inset-inline-start: 30%;
    inset-block-start: 45%;
    width: 130%;
  }
}

/* --------------------------------------------------------------------------
   The Solution
   Figma: band 1440 × 847, card 1350 × 771 at x45 / y35, radius 20. Review
   dropped the Problem panel, so the card is always the dark treatment and
   there is no toggle.
   -------------------------------------------------------------------------- */

.solution {
  padding-block: var(--section-pad-y-tight);
}

.solution__card {
  /* Dark card on a light band: re-point the inherited text roles rather
     than out-specifying the surface theme. */
  --heading-color: var(--gm-white);
  --body-color: var(--gm-white);
  color: var(--gm-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.25rem) var(--space-xl)
    clamp(2.5rem, 1.5rem + 3vw, 4.25rem);
  border-radius: 20px;
  background-color: var(--gm-green-700);
}

.solution__title {
  max-width: 730px;
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.1875rem); /* → 35px */
  line-height: 1.286; /* 45/35 */
  letter-spacing: -1px;
  text-align: center;
  color: var(--gm-white);
}

.solution__lede {
  max-width: 540px;
  line-height: 1.375; /* 22/16 */
  text-align: center;
  color: var(--gm-white);
}

/* Old way / new way comparison ------------------------------------------- */

.compare {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-start: var(--space-lg);
}

.compare__card {
  display: flex;
  flex-direction: column;
  width: 230px;
  padding: 25px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

.compare__card--old {
  background-color: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.15);
}

.compare__card--new {
  background-color: rgb(201 245 32 / 0.1);
  border-color: rgb(201 245 32 / 0.4);
}

.compare__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.3);
}

.compare__card--new .compare__label {
  color: var(--gm-lime-500);
}

.compare__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-xl) var(--space-md);
}

.compare__avatars {
  display: flex;
  gap: var(--space-xs);
}

.compare__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: rgb(255 255 255 / 0.15);
  color: rgb(255 255 255 / 0.6);
}

.compare__avatar svg {
  width: 14px;
  height: 14px;
}

.compare__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--gm-lime-500);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  line-height: 20px;
  color: var(--gm-green-700);
}

.compare__caption {
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 20px;
  color: rgb(255 255 255 / 0.5);
}

.compare__card--new .compare__caption {
  color: rgb(255 255 255 / 0.7);
}

.compare__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-block-start: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 16px;
  color: rgb(255 255 255 / 0.4);
}

.compare__list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.compare__list:not(.compare__list--check) li::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: rgb(255 255 255 / 0.3);
}

.compare__list--check {
  color: rgb(255 255 255 / 0.7);
}

.compare__check {
  flex: none;
  width: 11px;
  height: 11px;
  color: var(--gm-lime-500);
}

@media (max-width: 560px) {
  .compare__card {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   What is a Digital Worker?
   Figma: band 1440 × 649 (#f4fcd2). Copy on the left; on the right a halo
   ellipse, the artwork and four floating chips. The chip composition is
   pinned by percentage inside a 655 × 511 frame and only used at desktop —
   below that the chips become a normal stacked list.
   -------------------------------------------------------------------------- */

.about-dw {
  padding-block: var(--section-pad-y-tight);
  overflow: clip;
}

.about-dw__inner {
  display: grid;
  grid-template-columns: minmax(0, 555px) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2xl);
}

.about-dw__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 576px;
}

.about-dw__title {
  max-width: 535px;
  font-size: var(--step-h2);
  line-height: var(--leading-heading);
}

.about-dw__list {
  margin-block-start: var(--space-md);
}

.about-dw__text {
  max-width: 540px;
  line-height: 1.375;
}

.about-dw__media {
  position: relative;
}

.about-dw__halo {
  position: absolute;
  inset-inline-start: 15.27%; /* 100 / 655 */
  inset-block-start: 0;
  width: 83.36%; /* 546 / 655 */
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background-color: var(--gm-lime-wash);
}

.about-dw__art {
  position: relative;
  width: 100%;
  height: auto;
}

/* Floating chips --------------------------------------------------------- */

.feature-chip {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 11px 21px;
  border: 1px solid rgb(2 64 60 / 0.1);
  border-radius: var(--radius-md);
  background-color: var(--gm-white);
  backdrop-filter: blur(2px);
}

.feature-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background-color: var(--gm-lime-500);
  color: var(--gm-green-700);
}

.feature-chip__icon svg {
  width: 20px;
  height: 20px;
}

.feature-chip__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  line-height: 20px;
  color: var(--gm-green-700);
}

.feature-chip__text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 19.5px;
  color: rgb(2 64 60 / 0.5);
}

@media (min-width: 1000px) {
  .about-dw {
    padding-block: 41px 97px;
  }

  .about-dw__inner {
    gap: 0;
  }

  .about-dw__copy {
    grid-area: 1 / 1;
  }

  /* Frame matches Figma x720–1375, y2608–3119 (655 × 511). */
  .about-dw__media {
    grid-area: 1 / 1 / 2 / 3;
    justify-self: end;
    width: 59.01%; /* 655 / 1110 */
    margin-inline-end: -9.01%; /* 100 / 1110 */
    aspect-ratio: 655 / 511;
  }

  .about-dw__art {
    position: absolute;
    inset-inline-start: 22.29%; /* 146 / 655 */
    inset-block-start: 10.76%; /* 55 / 511 */
    width: 67.18%; /* 440 / 655 */
  }

  .feature-chip {
    position: absolute;
    width: 43.05%; /* 282 / 655 */
  }

  .feature-chip--a {
    inset-inline-start: 2.14%;
    inset-block-start: 9.39%;
  }

  .feature-chip--b {
    inset-inline-start: 56.95%;
    inset-block-start: 12.72%;
  }

  .feature-chip--c {
    inset-inline-start: 2.14%;
    inset-block-start: 73%;
  }

  .feature-chip--d {
    inset-inline-start: 58.63%;
    inset-block-start: 82.97%;
    width: 35.88%; /* 235 / 655 */
  }
}

/* Paired with the min-width: 1000px block above. The fraction matters: on a
   scaled display the viewport can land between 999 and 1000, where a plain
   `999px` would match neither block and leave the desktop grid running at a
   width it was never meant for. */
@media (max-width: 999.98px) {
  .about-dw__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-dw__media {
    display: grid;
    gap: var(--space-md);
    justify-items: center;
  }

  .about-dw__halo {
    inset-inline-start: 50%;
    translate: -50% 0;
    width: min(420px, 90%);
  }

  .about-dw__art {
    width: min(440px, 100%);
    margin-block-end: var(--space-md);
  }

  .feature-chip {
    width: 100%;
    max-width: 420px;
  }
}

/* --------------------------------------------------------------------------
   Onboarding — "Live in weeks"
   Figma: dark band 1440 × 770, three cards 349/352/350 × 283 joined by a
   dashed 30px connector.
   -------------------------------------------------------------------------- */

.onboarding__title {
  font-size: var(--step-h2);
  line-height: var(--leading-heading);
}

.onboarding__actions {
  margin-block-start: var(--space-xs);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-block-start: clamp(3rem, 1.5rem + 5vw, 5rem);
}

.steps__item {
  position: relative;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-md);
  background-color: rgb(255 255 255 / 0.06);
}

/* Dashed connector between consecutive cards. */
.steps__item + .steps__item::before {
  content: "";
  position: absolute;
  inset-block-start: 99px;
  inset-inline-end: 100%;
  width: 30px;
  border-block-start: 1px dashed rgb(255 255 255 / 0.2);
}

.steps__number {
  font-family: var(--font-display);
  font-size: 2.25rem; /* 36 */
  font-weight: var(--weight-bold);
  line-height: 40px;
  color: var(--gm-lime-500);
}

.steps__title {
  margin-block-start: var(--space-md);
  font-size: 1.125rem; /* 18 */
  font-weight: var(--weight-semibold);
  line-height: 28px;
  color: var(--gm-white);
}

.steps__text {
  margin-block-start: var(--space-xs);
  line-height: 22.75px;
  color: rgb(255 255 255 / 0.55);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .steps__item + .steps__item::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Meet the Digital Workers
   Figma: cards 350 × 796, radius 20, gap 30, first card at x165. The row
   runs past the right edge of the page, so it is a native scroller rather
   than a JS carousel — it already works with touch, trackpad and keyboard.
   -------------------------------------------------------------------------- */

.workers {
  overflow: clip;
}

.workers__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-block-end: var(--space-2xl);
}

.workers__intro {
  max-width: 824px;
}

.workers__intro p {
  margin-block-start: var(--space-lg);
  max-width: 729px;
  line-height: 1.375;
}

.workers__controls {
  display: flex;
  gap: 6px;
  flex: none;
}

.workers__arrow {
  width: 37px;
  height: 37px;
  padding: 0;
  color: rgb(2 64 60 / 0.2);
  transition: color var(--duration-base) var(--ease-out);
}

.workers__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* One chevron symbol, mirrored for "next". */
.workers__arrow--next {
  color: var(--gm-green-700);
}

.workers__arrow--next svg {
  scale: -1 1;
}

.workers__arrow:hover {
  color: var(--gm-green-900);
}

.workers__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--workers-inset);
  /* Align the first card with the content column, and let the row bleed to
     the viewport edge on the right exactly as the design does. */
  /* 100% not 100vw — vw counts the scrollbar and would push the first card
     out of line with the content column. */
  --workers-inset: max(
    var(--layout-gutter),
    calc((100% - var(--layout-max)) / 2)
  );
  padding-block-end: var(--space-lg);
  /* Hidden, not disabled: the row still scrolls by touch, trackpad, arrow
     keys and the prev/next buttons. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.workers__track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.workers__list {
  display: flex;
  gap: 30px;
  /* Grow to the row's real width so the container scrolls rather than
     clipping the cards that fall outside it. */
  width: max-content;
  padding-inline: var(--workers-inset);
}

.worker-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 350px;
  padding: 23px 27px 27px;
  border-radius: 20px;
  scroll-snap-align: start;
}

.worker-card--piper {
  background-color: rgb(224 255 176 / 0.5);
}
.worker-card--casey {
  background-color: rgb(222 224 229 / 0.5);
}
/* Same lavender as the design, but at 0.2 it composited to #F3F4FE — near
   enough to Casey's #EFF0F2 to read as the same card. Raising the alpha keeps
   the hue and lets the blue actually show. */
.worker-card--morgan {
  background-color: rgb(196 201 250 / 0.5);
}
.worker-card--eddie {
  background-color: rgb(245 240 158 / 0.4);
}
/* Flynn is the fifth card and had no colour in the design yet. Soft teal is
   the gap in the existing set — green, grey, lavender, yellow. */
.worker-card--flynn {
  background-color: rgb(186 232 226 / 0.55);
}

/* Figma has this at 264px, but the card only fits on a laptop screen once
   the artwork and the gaps come in a little. */
.worker-card__art {
  width: 216px;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
}

.worker-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  margin-block-start: var(--space-sm);
}

.worker-card__name {
  font-size: 1.5625rem; /* 25 */
  line-height: 1.25;
  letter-spacing: -1px;
  color: var(--gm-green-900);
}

.worker-card__role {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: 22px;
  color: var(--text-body);
}

.worker-card__text {
  line-height: 22px;
}

.worker-card__list {
  --stack-gap: 10px;
  gap: 10px;
}

@media (max-width: 520px) {
  .worker-card {
    width: min(350px, 82vw);
  }
}

/* --------------------------------------------------------------------------
   Proven, credible and ready to work
   -------------------------------------------------------------------------- */

.clients__title,
.sectors__title {
  max-width: 730px;
  font-size: var(--step-h3);
  line-height: 1.286; /* 45/35 */
  letter-spacing: -1px;
}

.clients__lede {
  max-width: 730px;
  line-height: 1.375;
}

.client-logos {
  margin: var(--space-2xl) 0 0;
}

.client-logos__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl) var(--space-2xl);
}

/* A fixed box per logo. The supplied marks run from 5:1 to nearly square, so
   sizing on height alone would give the wide ones several times the visual
   weight of the rest; fitting each inside the same box evens them out. */
.client-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(104px, 9vw, 132px);
  height: clamp(40px, 3.6vw, 52px);
}

.client-logos__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Sixteen sets of brand colours at once would out-shout the page, and the
     strip is here as evidence rather than decoration. Pointing at one brings
     it back. */
  filter: grayscale(1);
  opacity: 0.55;
  transition:
    filter var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out);
}

/* Gated on a hovering pointer: on touch there is nothing to hover with, and
   an ungated :hover would leave whichever logo was last tapped stuck in
   colour. The reveal is decorative — no information depends on it. */
@media (hover: hover) {
  .client-logos__item:hover img {
    filter: grayscale(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   FAQs
   Native <details>, so open/close and keyboard work without script.
   -------------------------------------------------------------------------- */

.faqs__title {
  font-size: var(--step-h2);
  line-height: 1.167; /* 56/48 */
  letter-spacing: -1px;
}

.faqs__lede {
  max-width: 728px;
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-block-start: var(--space-3xl);
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-content: start;
}

.faq {
  padding: 24px;
  border: 1px solid rgb(2 64 60 / 0.1);
  border-radius: var(--radius-md);
  background-color: var(--gm-white);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--step-body);
  font-weight: var(--weight-semibold);
  line-height: 24px;
  color: var(--gm-green-700);
  cursor: pointer;
  list-style: none;
}

/* Remove the default disclosure triangle. */
.faq__q::-webkit-details-marker {
  display: none;
}

.faq__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background-color: rgb(2 64 60 / 0.12);
  color: var(--gm-green-700);
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}

.faq__marker svg {
  width: 12px;
  height: 12px;
}

.faq__minus,
.faq[open] .faq__plus {
  display: none;
}

.faq[open] .faq__minus {
  display: block;
}

.faq[open] .faq__marker {
  background-color: var(--gm-green-700);
  color: var(--gm-white);
}

.faq__a {
  margin-block-start: 12px;
  font-size: var(--step-body-sm);
  line-height: 22px;
  color: var(--text-body);
}

.faqs__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-block-start: var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--step-body-sm);
  line-height: 18.2px;
  color: rgb(2 64 60 / 0.6);
}

.faqs__footer .link-arrow {
  font-family: var(--font-body);
  font-size: var(--step-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--gm-green-700);
}

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

/* --------------------------------------------------------------------------
   Closing call to action
   Figma: pale card 1208 × 452 (r20) with a lime panel 602 wide on its right
   and the artwork overhanging the card by 30px top and bottom.
   -------------------------------------------------------------------------- */

.cta__card {
  /* The card sits on the dark band but is itself light, so re-point the
     inherited text roles rather than fighting the surface theme. */
  --heading-color: var(--gm-green-700);
  --body-color: var(--gm-green-900);
  color: var(--gm-green-900);
  display: grid;
  grid-template-columns: minmax(0, 606fr) minmax(0, 602fr);
  align-items: center;
  border-radius: 20px;
  background-color: var(--gm-green-050);
  /* No clipping: the artwork deliberately overhangs the lime panel. */
}

/* Figma: the card is 1208 wide — 49px wider than the content column
   on each side. */
.cta .container {
  max-width: calc(1208px + var(--layout-gutter) * 2);
}

@media (min-width: 1000px) {
  .cta {
    padding-block: 71px 29px;
  }
}

.cta__copy {
  padding: clamp(2rem, 1rem + 3vw, 3.375rem);
}

.cta__title {
  max-width: 440px;
  font-size: var(--step-h3);
  line-height: 1.286;
  color: var(--gm-green-700);
}

.cta__text {
  max-width: 532px;
  margin-block-start: var(--space-md);
  line-height: 1.625; /* 26/16 */
  color: var(--gm-green-900);
}

.cta__actions {
  --cluster-gap: 30px;
  margin-block-start: var(--space-xl);
}

.cta__btn-primary {
  background-color: var(--gm-green-900);
  color: var(--gm-lime-500);
}

.cta__btn-primary:hover {
  background-color: var(--gm-green-600);
}

.cta__btn-ghost {
  color: var(--gm-green-700);
}

.cta__btn-ghost:hover {
  color: var(--gm-green-900);
  text-decoration: underline;
}

.cta__media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 20px 20px 0;
  background-color: var(--gm-lime-500);
}

.cta__media img {
  width: 88.5%; /* 533 / 602 */
  height: auto;
  /* The artwork bleeds past the panel top and bottom in the design. */
  margin-block: -6%;
}

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

  .cta__media {
    order: -1;
    padding-block: var(--space-lg);
    border-radius: 20px 20px 0 0;
  }

  .cta__media img {
    width: min(420px, 70%);
    margin-block: 0;
  }
}

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

.site-footer {
  padding-block: var(--space-4xl) var(--space-2xl);
  border-block-start: 1px solid rgb(255 255 255 / 0.1);
  overflow: clip;
}

/* Was a three-column grid of link lists. Review removed those, so the
   address and the Red Marble line take the width between them instead of
   stacking down the left. */
.site-footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 460px);
  justify-content: space-between;
  align-items: start;
  gap: var(--space-2xl);
}

.site-footer__address {
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-style: normal;
  line-height: 1.65;
  color: var(--gm-white);
}

.site-footer__lineage {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--gm-white);
}

.site-footer__lineage a {
  color: var(--gm-lime-500);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.2em;
}

.site-footer__lineage a:hover {
  color: var(--gm-white);
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.3);
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block-start: var(--space-md);
}

.site-footer__col a {
  display: inline-block;
  /* Reaches the 24px minimum target height without changing the 30px
     baseline-to-baseline rhythm from the design. */
  padding-block: 2px;
  font-family: var(--font-display);
  font-size: var(--step-body-sm);
  line-height: 20px;
  color: rgb(255 255 255 / 0.5);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

.site-footer__col a:hover {
  color: var(--gm-white);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-block-start: var(--space-lg);
  padding-block-start: 24px;
  border-block-start: 1px solid rgb(255 255 255 / 0.1);
  font-family: var(--font-display);
  font-size: var(--step-body-sm);
  line-height: 20px;
  /* Was 0.3, which measured 2.5:1 — under AA and hard to read on the band. */
  color: rgb(255 255 255 / 0.7);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal-links {
  display: flex;
  gap: 20px;
}

.site-footer__legal-links a {
  display: inline-block;
  /* 24px target height, pulled back so the row keeps its design height. */
  padding-block: 4px;
  margin-block: -4px;
  color: inherit;
  text-decoration: none;
}

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

.site-footer__wordmark {
  width: 100%;
  max-width: 1109px;
  height: auto;
  margin-block-start: var(--space-4xl);
}

@media (max-width: 820px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
}
