/* ============================================================
   Signadot Custom Overrides
   Loaded after webflow.min.css — safe to override Webflow styles
   ============================================================ */

/* ------------------------------------------------------------
   1. Fonts
   Body: Plus Jakarta Sans (modern, legible)
   Headings: DM Sans (existing brand choice, kept as-is)
   ------------------------------------------------------------ */

/* Body copy — Plus Jakarta Sans */
html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* webflow.min.css sets font-family on .redesign-body — match specificity */
.redesign-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Headings — keep DM Sans (Webflow default), explicitly set to avoid inheritance */
h1, h2, h3, h4, h5, h6,
.revamp_h1, .revamp_h2, .revamp_h2-white, .revamp_h3,
.temp_revamp_h2, .small_h1,
.cta_h1, .cta_h2, .demo_h2 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Monospace — preserved for code blocks */
code, pre,
.w-richtext code,
.w-richtext pre {
  font-family: 'JetBrains Mono', 'DM Mono', 'Source Code Pro', monospace;
}

/* ------------------------------------------------------------
   2. Alignment — content sections left-aligned, CTAs centered
   ------------------------------------------------------------ */

/* Left-align text in all content sections */
.text-align-center,
.text-align-center-2,
.text-align-center-3,
.text-align-center-4 {
  text-align: left;
}

/* Left-align max-width containers so headings/subtext start
   from the same left edge as the content below them */
.align-center {
  margin-left: 0;
  margin-right: auto;
}

/* Webflow sets text-align: center on some classes directly — override */
.temp_revamp_h2 {
  text-align: left;
}

/* ── CTA section exceptions: keep centered ── */

/* CTABanner (.cta-new) and inline product-page CTAs (.section_testing-cta) */
.cta-new .text-align-center,
.cta-new .container-new,
.section_testing-cta .text-align-center,
.section_testing-cta .container-new,
.section_testing-cta .testing-cta_component {
  text-align: center;
}
.cta-new .align-center,
.section_testing-cta .align-center {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   3. Typography — larger scale for a modern devtools feel
   ------------------------------------------------------------ */

/* H1 */
.revamp_h1,
.small_h1 {
  font-size: 56px;
  line-height: 1.1;
}

/* H2 */
.revamp_h2,
.revamp_h2-white,
.temp_revamp_h2 {
  font-size: 48px;
  line-height: 1.15;
}

/* H3 */
.revamp_h3 {
  font-size: 18px;
  line-height: 1.35;
}

/* CTA headings */
.cta_h1 {
  font-size: 56px;
  line-height: 1.1;
  max-width: none;
}
.cta_h2 {
  font-size: 44px;
  line-height: 1.15;
  max-width: none;
}

/* Body / subheader copy */
.text-size-18 {
  font-size: 19px;
  line-height: 1.7;
}
.text-size-16 {
  font-size: 17px;
  line-height: 1.7;
}
.text-20,
.text-size-medium {
  font-size: 20px;
  line-height: 1.6;
}

/* Natural heading wrap — prevents awkward mid-phrase breaks on single-sentence headings */
.revamp_h1,
.revamp_h2, .revamp_h2-white, .temp_revamp_h2,
.cta_h1, .cta_h2, .demo_h2 {
  text-wrap: balance;
}

/* Responsive — tablet */
@media (max-width: 991px) {
  .revamp_h1,
  .small_h1 {
    font-size: 44px;
  }
  .revamp_h2,
  .revamp_h2-white,
  .temp_revamp_h2 {
    font-size: 36px;
  }
  .cta_h1 {
    font-size: 40px;
  }
  .cta_h2 {
    font-size: 32px;
  }
}

/* Responsive — mobile */
@media (max-width: 767px) {
  .revamp_h1,
  .small_h1 {
    font-size: 36px;
  }
  .revamp_h2,
  .revamp_h2-white,
  .temp_revamp_h2 {
    font-size: 28px;
  }
  .cta_h1 {
    font-size: 30px;
  }
  .cta_h2 {
    font-size: 26px;
  }
}

/* ------------------------------------------------------------
   4. Validation / pull-request cards — consistent heading alignment,
      link pinned to bottom
   ------------------------------------------------------------ */

/* ValidationSpeed subheader — remove 700px cap so it fills the section width */
.revamp_section .max-width-700_1 {
  max-width: none;
}

/* TeamTabs subheader — remove 570px cap so it stays on one line on desktop */
.revamp_solutions-section .max-width-570 {
  max-width: none;
}

/* Platform section — left-column text-blocks: remove left padding so text
   aligns with the container's left edge (matching the h2/subheader) */
.revamp_key-section .revamp-key-item_text-block {
  padding-left: 0;
}
/* Restore left padding for right-column text-blocks (item 4: image left, text right) */
.revamp_key-section #w-node-ffaba26b-f83b-628d-b17f-2a8f9bc649e8-ee303373 {
  padding-left: 48px;
}

/* Cards stack vertically as flex columns */
.revamp_pull-request-item {
  display: flex;
  flex-direction: column;
}

/* Fixed image area — all icons occupy the same vertical space
   so h3 and body copy start at the same height across columns */
.revamp_pull-request-item .pull-request_image-wrapper {
  display: flex;
  align-items: center;
  height: 96px;
  margin-bottom: 0;
}
.revamp_pull-request-item .pull-request_image-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Content block grows to fill remaining card height */
.revamp_pull-request-item > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Push the case-study link to the bottom of each card */
.pull-request_link {
  margin-top: auto;
  padding-top: 1rem;
  display: block;
}

/* ------------------------------------------------------------
   5. Feature card image backgrounds — pale tints matching icon palette
   ------------------------------------------------------------ */

/* Card 2: teal icon → pale teal wash */
.testing-code_image-wrap.is-2 {
  background-color: #e8f6f6;
}
/* Card 3: purple icon → pale lavender wash */
.testing-code_image-wrap.is-3 {
  background-color: #f0ecff;
}

/* ------------------------------------------------------------
   6. Hero sections — consistent background, padding, transparent navbar
   ------------------------------------------------------------ */

/* Bottom padding before the logo strip — shared by all hero sections */
.revamp_homepage-hero,
.section_testing-header,
.homepage-hero,
.section_header1 {
  padding-bottom: 4rem !important;
}

/* local-development: the in-HTML spacer-50 gives only 50px gap; add a small
   top offset to the content wrapper to bring it in line with other pages */
.section_testing-header .padding-global {
  padding-top: 1.25rem;
}

/* revamp_homepage-hero: reset Webflow top padding so the hero fills from
   the very top and the navbar sits flush at the top edge of the section */
.revamp_homepage-hero {
  padding-top: 0;
  background-image: linear-gradient(115deg, #ffba080d, #38b2ac26);
}

/* homepage: push content below the navbar */
.revamp_homepage-hero .padding-global-new {
  padding-top: 4.5rem;
}

/* homepage-hero (pull-request-testing): add matching gradient, reset Webflow's 96px top padding */
.homepage-hero {
  background-image: linear-gradient(115deg, #ffba080d, #38b2ac26);
  padding-top: 0;
}

/* pull-request-testing: compensate for removed section padding with content-level spacing */
.homepage-hero .padding-global-new {
  padding-top: 3.5rem;
}

/* preview-environments and ai-smart-tests: these heroes go straight to H1
   with no badge/spacer element — add top breathing room to the hero component */
.revamp_hero-component.add-spacing {
  padding-top: 4.5rem;
}

/* section_header1 (ai-development): override Webflow's distinct mint gradient
   so the hero matches the rest of the site */
.section_header1 {
  background: linear-gradient(115deg, #ffba080d, #38b2ac26) !important;
  padding-top: 0;
}

/* Reduce the inner top padding on section_header1 so the content doesn't
   sit too far below the navbar (padding-section-large adds ~6rem by default) */
.section_header1 .padding-section-large {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* pricing hero: gradient background (blog pages share section_pricing-header so scope with :not) */
.section_pricing-header:not(.blog-section) {
  background-image: linear-gradient(115deg, #ffba080d, #38b2ac26);
  padding-top: 0;
  padding-bottom: 3rem;
}

/* integrations hero: override Webflow's dark gradient with site gradient */
.integrations-hero.v2 {
  background: linear-gradient(115deg, #ffba080d, #38b2ac26) !important;
  padding-top: 0;
  padding-bottom: 3rem;
}
/* add top spacing for content below the navbar */
.integrations-hero.v2 .padding-global-new {
  padding-top: 4.5rem;
}
/* Webflow's dark hero set text to white; force dark on the light gradient */
.integrations-hero.v2 {
  color: #1d1d1f;
}

/* Webflow JS applies an inline background-color to the navbar on scroll /
   dropdown interactions. Override it so the navbar always stays transparent
   over the hero gradient on every page. */
.revamp_homepage-hero .navbar5_component,
.section_testing-header .navbar5_component,
.homepage-hero .navbar5_component,
.section_header1 .navbar5_component,
.section_pricing-header:not(.blog-section) .navbar5_component,
.integrations-hero.v2 .navbar5_component {
  background-color: transparent !important;
}

/* Hero image sizing — cap the ai-development illustration so it stays
   proportional to images on other pages (~420px max height) */
.header1_image {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}

/* Hero right-column images on revamp_hero-component pages — align to top
   of the column and let them fill naturally; prevents floating in oversized cells */
.revamp_hero-component > img,
.revamp_hero-component > div:last-child > img {
  width: 100%;
  object-fit: contain;
  object-position: center top;
}

/* ------------------------------------------------------------
   7. Blog hero — compact, no subscribe form
   ------------------------------------------------------------ */
.blog-section.section_pricing-header {
  background-image: none;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

/* ------------------------------------------------------------
   8. CMS Article / Blog / Case Study Layout
   ------------------------------------------------------------ */

/* Outer reading column — centers at 720px, full-width on mobile */
.article-outer {
  max-width: 720px;
  margin: 0 auto;
}

/* Header block: title + meta, separated from body by a thin rule */
.article-header {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

/* Company logo in article header */
.article-logo-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.article-logo-chip img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Body text — comfortable reading size and rhythm */
.cms-rich-text {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.82);
}

/* Paragraph spacing */
.cms-rich-text p {
  margin-bottom: 1.35em;
}
.cms-rich-text p:last-child {
  margin-bottom: 0;
}

/* H2 / H3 breathing room above sections */
.cms-rich-text h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
.cms-rich-text h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* TL;DR / article lede — italic, purple left-border, below h1 */
.article-tldr {
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.68);
  border-left: 2px solid #8b5cf6;
  padding-left: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* Article metadata row — reading time, author, date */
.article-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.article-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}
.article-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Pull quotes — unattributed, subtle gray left border */
.cms-rich-text blockquote {
  border: none;
  border-left: 2px solid #d1d5db;
  background: none;
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0;
}
.cms-rich-text blockquote p {
  font-style: italic;
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 0;
}

/* Attributed quotes (contain <cite>) — purple accent, more prominent */
.cms-rich-text blockquote:has(cite) {
  border-left: 3px solid #8b5cf6;
  background: rgba(139, 92, 246, 0.04);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.5rem;
}
.cms-rich-text blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b5cf6;
  font-style: normal;
}

/* Hyperlinks — Signadot purple */
.cms-rich-text a {
  color: #8b5cf6;
  text-decoration-color: rgba(139, 92, 246, 0.35);
}
.cms-rich-text a:hover {
  color: #7c3aed;
  text-decoration-color: #7c3aed;
}

/* Callout / content spotlight boxes — purple accent, clearly distinct from quotes */
.cms-rich-text .callout {
  background: #f8f9fb;
  border: 1px solid #e9ecef;
  border-left: 3px solid #8b5cf6;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}

/* Section labels — H4 as uppercase eyebrow */
.cms-rich-text h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Thin section dividers — override global hr which is invisible on white */
.cms-rich-text hr {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 3rem 0;
}

/* Case study overview box (inline grid, above body) */
.cs-overview-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 15px;
}
.cs-overview-box dt {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.cs-overview-box dd {
  color: #6b7280;
  margin: 0;
}

/* Related case studies — 3-column card grid */
.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.cs-related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-related-card:hover {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.09);
}
.cs-related-logo-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  min-height: 28px;
}
.cs-related-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  object-position: left center;
}
.cs-related-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.cs-related-cta {
  margin-top: 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: #8b5cf6;
  letter-spacing: 0.01em;
}
@media (max-width: 767px) {
  .cs-related-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .cs-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   9. ai-smart-tests page
   ------------------------------------------------------------ */

/* Normalize the three feature card images to a consistent height
   so they sit at the same baseline regardless of source image ratio */
.pull-request_image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
}
.pull-request_image-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* "Powered by AI" CTA section — re-enable center alignment
   (overridden by the global left-align rule in section 2) */
.revamp_how-works .text-align-center {
  text-align: center;
}
.revamp_how-works .align-center {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   10. Pricing page
   ------------------------------------------------------------ */

/* Center the pricing hero */
.pricing-header_component {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.pricing-header_component .spacer-20 {
  padding-top: 0.3rem !important;
}
