/* Site overrides on top of Dazzle (landing + docs chrome). */

.header-logo a {
  width: 40px;
  height: 40px;
  background: url("../images/logo-square.png") no-repeat center;
  background-size: cover;
  border-radius: 10px;
  font: 0/0 a;
}

.footer-logo {
  width: 48px;
  height: 48px;
  background: url("../images/logo-square.png") no-repeat center;
  background-size: cover;
  border-radius: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1.2rem;
  vertical-align: middle;
}

.lang-switch a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  font-family: "montserrat-semibold", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-transform: uppercase;
}

.lang-switch a:hover,
.lang-switch a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

#header.opaque .lang-switch a {
  color: rgba(0, 0, 0, 0.55);
}

#header.opaque .lang-switch a:hover,
#header.opaque .lang-switch a.is-active {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

.home-image-right img.product-shot {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.home-content-left .buttons a + a {
  margin-left: 0.8rem;
}

#download .button {
  margin: 0.4rem;
  min-width: 16rem;
}

/* Green CTA band: primary green-on-green and gray stroke are hard to see */
#download .button.button-primary {
  background: #ffffff !important;
  color: #1f7a2e !important;
  border-color: #ffffff !important;
}

#download .button.button-primary:hover,
#download .button.button-primary:focus {
  background: #f3f8f3 !important;
  color: #145a20 !important;
}

#download .button.stroke {
  background: transparent !important;
  color: #ffffff !important;
  border: 0.3rem solid rgba(255, 255, 255, 0.9) !important;
}

#download .button.stroke:hover,
#download .button.stroke:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.about-how-steps a {
  color: #39b54a;
  text-decoration: underline;
}

/* Inner pages (guide / webhook / privacy chrome) */
body.page-docs {
  background: #f7f7f7;
}

body.page-docs #header {
  position: absolute;
  background: transparent;
}

body.page-docs #header.opaque {
  background: #fff;
}

/* Docs pages use a light body; Dazzle footer has no background of its own. */
body.page-docs > footer,
body.page-docs > footer .footer-main,
body.page-docs > footer .footer-bottom {
  background: #141515 !important;
  background-image: none !important;
}

body.page-docs > footer {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.page-docs > footer p,
body.page-docs > footer .copyright,
body.page-docs > footer .copyright span {
  color: rgba(255, 255, 255, 0.65) !important;
}

body.page-docs > footer ul a,
body.page-docs > footer ul a:visited {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.page-docs > footer ul a:hover,
body.page-docs > footer ul a:focus {
  color: #ffffff !important;
}

.doc-hero {
  padding: 14rem 0 4rem;
  background: #141515;
  color: #fff;
}

.doc-hero h1 {
  font-family: "montserrat-bold", sans-serif;
  font-size: 3.6rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem;
}

.doc-hero p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 54rem;
}

.doc-wrap {
  padding: 4rem 0 6rem;
}

.doc-content {
  background: #fff;
  border-radius: 10px;
  padding: 3rem 3.2rem 3.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  color: #333;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

.doc-content h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: #111;
  margin-top: 0;
}

.doc-content h2 {
  font-size: 1.9rem;
  margin-top: 2.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e6e6e6;
  color: #111;
}

.doc-content h3 {
  font-size: 1.5rem;
  margin-top: 1.6rem;
  color: #222;
}

.doc-content a {
  color: #39b54a;
}

.doc-content nav {
  background: #f6f6f6;
  padding: 1.2rem 1.4rem;
  border-radius: 8px;
  margin: 1.4rem 0;
}

.doc-content nav ol {
  margin: 0.4rem 0 0;
  padding-left: 1.4rem;
}

.doc-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.9rem 0 1.2rem;
  font-size: 1.45rem;
}

.doc-content th,
.doc-content td {
  border: 1px solid #ddd;
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.doc-content th {
  background: #f6f6f6;
}

.doc-content code {
  background: #f0f0f0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.92em;
}

.doc-content pre {
  background: #f4f4f4;
  padding: 1rem 1.2rem;
  overflow: auto;
  border-radius: 8px;
}

.doc-content pre code {
  background: transparent;
  padding: 0;
}

.doc-content .note {
  background: #fff8e6;
  border-left: 3px solid #e6a800;
  padding: 0.75rem 1rem;
  margin: 1.1rem 0;
}

.doc-content .star {
  color: #b8860b;
}

.doc-content > footer {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 1.2rem;
}

@media only screen and (max-width: 768px) {
  .doc-hero {
    padding: 11rem 0 3rem;
  }

  .doc-content {
    padding: 2rem 1.4rem 2.4rem;
  }

  .lang-switch {
    margin: 0.6rem 0 0;
  }
}
