@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

/* Standalone-site overrides that must remain after future homepage exports. */
html { overflow-x: clip; }
body.layout-home { min-width: 0; max-width: 100%; overflow-x: clip; }

body.layout-home,
.gr-home-2027,
.gr-home-2027 h1,
.gr-home-2027 h2,
.gr-home-2027 h3,
.gr-home-2027 h4,
.gr-home-2027 h5,
.gr-home-2027 h6,
.gr-home-2027 button,
.gr-home-2027 input,
.gr-home-2027 select,
.gr-home-2027 textarea,
.gr-shared-footer,
.gr-shared-footer h1,
.gr-shared-footer h2,
.gr-shared-footer h3,
.gr-shared-footer h4,
.gr-shared-footer h5,
.gr-shared-footer h6,
.gr-shared-footer button,
.gr-shared-footer input,
.gr-shared-footer select,
.gr-shared-footer textarea {
  font-family: "DM Sans", Arial, sans-serif;
}

body.layout-home {
  letter-spacing: -.015em;
}

@media (min-width: 1051px) {
  .gr-home-2027 .gr-home-nav__menu > a,
  .gr-home-2027 .gr-home-nav__services > button,
  .gr-home-2027 .gr-home-nav__login {
    font-size: 14px;
  }

  .gr-home-2027 .gr-home-nav__actions .gr-button--small {
    min-height: 46px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 14px;
  }
}

.gr-home-2027 .gr-home-nav__services > button:focus {
  outline: none;
}

.gr-home-2027 .gr-home-nav__services > button:focus-visible {
  box-shadow: inset 0 -3px 0 #ed450d;
  outline: none;
}

.gr-home-2027 .gr-intelligence-canvas__serp-link {
  position: absolute;
  z-index: 20;
  inset: 0;
  border-radius: 20px;
  cursor: pointer;
}

.gr-home-2027 .gr-intelligence-canvas__serp-link:focus-visible {
  outline: 2px solid #ff6332;
  outline-offset: 5px;
}

.gr-home-2027 #data-apis {
  scroll-margin-top: 86px;
}

/* Shared footer. Content is generated from src/content/site-shell.json. */
.gr-shared-footer {
  position: relative;
  z-index: 5;
  padding: 80px 0 28px;
  color: #fff;
  background: #060a0f;
}

.gr-shared-footer .gr-shell {
  width: min(1740px, calc(100% - 96px));
  margin-right: auto;
  margin-left: auto;
}

.gr-shared-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .7fr);
  gap: 70px;
  padding-bottom: 60px;
  border-bottom: 1px solid #28313a;
}

.gr-shared-footer__brand img {
  filter: brightness(0) invert(1);
  opacity: .9;
}

.gr-shared-footer__brand p {
  max-width: 390px;
  margin: 22px 0 0;
  color: #8f99a5;
  font-size: 13px;
  line-height: 1.7;
}

.gr-shared-footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.gr-shared-footer nav strong {
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
}

.gr-shared-footer nav a {
  color: #8f99a5;
  font-size: 12px;
}

.gr-shared-footer nav a:hover,
.gr-shared-footer__bottom a:hover {
  color: #ed450d;
}

.gr-shared-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 24px;
  padding-top: 25px;
  color: #66717e;
  font-size: 10px;
}

.gr-shared-footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.gr-shared-footer__bottom a {
  color: inherit;
}

@media (max-width: 1160px) {
  .gr-shared-footer .gr-shell {
    width: min(1320px, calc(100% - 64px));
  }

  .gr-shared-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px 25px;
  }

  .gr-shared-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .gr-shared-footer .gr-shell {
    width: calc(100% - 36px);
  }

  .gr-shared-footer {
    padding-top: 58px;
  }

  .gr-shared-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 22px;
    padding-bottom: 45px;
  }

  .gr-shared-footer__grid nav:last-child {
    grid-column: 1 / -1;
  }

  .gr-shared-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

@media (min-width: 1051px) and (max-width: 1600px) and (max-height: 900px) {
  .gr-home-2027 .gr-seo-explorer {
    height: 730px;
    min-height: 730px;
  }

  .gr-home-2027 .gr-seo-explorer__rail {
    padding: 30px 20px 19px;
  }

  .gr-home-2027 .gr-seo-explorer__rail-heading {
    padding-bottom: 20px;
  }

  .gr-home-2027 .gr-seo-explorer__tabs {
    padding-top: 10px;
  }

  .gr-home-2027 .gr-seo-explorer__tabs button {
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .gr-home-2027 .gr-seo-explorer__stage {
    padding: 28px 30px 18px;
  }

  .gr-home-2027 .gr-seo-explorer__stage-heading {
    min-height: 82px;
  }

  .gr-home-2027 .gr-seo-explorer__progress {
    margin-top: 15px;
  }

  .gr-home-2027 .gr-seo-app-screen {
    height: 585px;
    min-height: 585px;
  }

  .gr-home-2027 .gr-seo-app-screen__topbar {
    min-height: 47px;
  }

  .gr-home-2027 .gr-seo-app-screen__body {
    padding: 16px 18px 18px;
  }

  .gr-home-2027 .gr-seo-screen-toolbar span {
    min-height: 29px;
  }

  .gr-home-2027 .gr-seo-screen-metrics {
    margin-top: 13px;
  }

  .gr-home-2027 .gr-seo-screen-metrics div {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .gr-home-2027 .gr-seo-screen-visual {
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .gr-home-2027 .gr-seo-screen-visual canvas {
    height: 167px;
  }

  .gr-home-2027 .gr-seo-screen-visual--rank-tracker canvas {
    height: 218px;
  }

  .gr-home-2027 .gr-seo-screen-visual--keyword-volumes canvas {
    height: 157px;
  }

  .gr-home-2027 .gr-seo-screen-table {
    margin-top: 12px;
  }

  .gr-home-2027 .gr-seo-screen-table th,
  .gr-home-2027 .gr-seo-screen-table td {
    height: 33px;
  }
}

/* Compact delivery badges for homepage service cards. */
.gr-service-card__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 3px;
  padding: 0;
  list-style: none;
}
.gr-service-card__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid #46505a;
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
  color: #d4dce3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  white-space: nowrap;
}
.gr-service-card__channel--mcp {
  border-color: #85513e;
  background: rgba(237, 69, 13, .07);
  color: #ffd2bf;
}
.gr-service-card__channel small {
  padding: 1px 4px;
  border-radius: 3px;
  background: #673622;
  color: #ffd2bf;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Match the shared site menu and footer reading sizes. */
.gr-home-2027 .gr-home-nav__menu > a,
.gr-home-2027 .gr-home-nav__services > button,
.gr-home-2027 .gr-home-nav__login,
.gr-home-2027 .gr-home-nav__actions .gr-button--small,
.gr-home-2027 .gr-home-mega__workflows a,
.gr-shared-footer nav strong { font-size: 16px; }
.gr-home-2027 .gr-home-mega__products a small,
.gr-home-2027 .gr-home-mega p,
.gr-home-2027 .gr-home-mega__products a span,
.gr-shared-footer nav a,
.gr-shared-footer__brand p,
.gr-shared-footer__bottom { font-size: 14px; line-height: 1.6; }
