/* Commercial pages share the approved home treatment. The existing home,
   guide player, forms, pricing components and their behaviour stay independent. */
.marketing-page {
  --marketing-ink: #132c4c;
  --marketing-copy: #27486f;
  --marketing-brand: #176bd0;
  --marketing-border: #d6e2f2;
  padding-top: 0;
  padding-bottom: 64px;
  overflow-x: clip;
}

/* Scope the wider site header to the pages which load this stylesheet. */
body:has(> .marketing-page) > .site-header > .site-shell {
  max-width: 1760px;
}
body:has(> .marketing-page) > .site-header .site-container {
  max-width: none;
}

.marketing-page > .site-shell {
  width: 100%;
  max-width: 1504px;
  padding-inline: 32px;
}
.marketing-page > .site-shell > .site-container {
  max-width: none;
}
.marketing-page > .sector-clean__shell {
  width: min(1440px, calc(100% - 64px));
}

/* The background spans the viewport; the real content remains in a grid.
   No 100vw breakout, overlapping panels or added browser chrome. */
.marketing-page > .marketing-hero {
  display: flex !important;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - var(--marketing-header-height, 0px));
  min-height: calc(100dvh - var(--marketing-header-height, 0px));
  margin: 0;
  padding: clamp(56px, 6vw, 94px) 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(112deg, #eaf4ff 0%, #e4f1ff 48%, #f5f9ff 100%);
  color: var(--marketing-ink);
  box-shadow: none;
  isolation: isolate;
  overflow: hidden;
}
/* Override the legacy doubled .free-hero display rule without increasing the
   specificity of spacing rules, which must still adapt at mobile breakpoints. */
.marketing-page.free-page > .marketing-hero { display: flex !important; }
.marketing-page > .marketing-hero::before,
.marketing-page > .marketing-hero::after {
  content: none !important;
}
.marketing-page .marketing-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(34px, 4.2vw, 72px);
  width: min(1664px, calc(100% - 96px));
  max-width: none;
  margin: 0 auto;
}
.marketing-page .marketing-hero .marketing-hero__copy {
  display: block !important;
  width: 100%;
  max-width: 670px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}
.marketing-page .marketing-hero .marketing-hero__copy > :is(.sector-clean__eyebrow, .kicker, .home4-badge) {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #184980;
  box-shadow: none;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.marketing-page .marketing-hero .marketing-hero__copy h1 {
  width: auto;
  max-width: 18ch;
  margin: 0;
  color: var(--marketing-ink);
  font-size: clamp(2.65rem, 4.25vw, 4.5rem);
  font-weight: 700;
  line-height: 1.065;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.marketing-page .marketing-hero .marketing-hero__copy > p {
  width: auto;
  max-width: 57ch;
  margin: 26px 0 0;
  color: var(--marketing-copy);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}
.marketing-page .marketing-hero .marketing-hero__actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}
.marketing-page .marketing-hero__primary-group {
  display: grid;
  align-content: start;
  justify-items: stretch;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
}
.marketing-page .marketing-hero .marketing-hero__primary-group .marketing-hero__microcopy {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #29496b;
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.marketing-page .marketing-hero .marketing-hero__actions .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  max-width: 100%;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.marketing-page .marketing-hero .marketing-hero__actions .btn-brand {
  border-color: #176bd0;
  background: #176bd0;
  color: #fff;
  box-shadow: 0 8px 20px rgb(23 107 208 / 20%);
}
.marketing-page .marketing-hero .marketing-hero__actions .btn-brand:hover {
  border-color: #1155b0;
  background: #1155b0;
  color: #fff;
  transform: none;
  box-shadow: 0 10px 24px rgb(23 107 208 / 24%);
}
.marketing-page .marketing-hero .marketing-hero__actions .btn-ghost {
  border-color: #3d659a;
  background: #f3f6fb;
  color: #132c4c;
  box-shadow: none;
}
.marketing-page .marketing-hero .marketing-hero__actions .btn-ghost:hover {
  border-color: #184980;
  background: #eaf0f8;
  color: #132c4c;
  transform: none;
}
.marketing-page .marketing-hero .btn:focus-visible {
  outline: 3px solid #123b6c;
  outline-offset: 4px;
}
.marketing-page .marketing-hero :is(.sector-clean__trust, .proof-strip, .fe-proof) {
  margin-top: 24px;
  color: #29496b;
  font-size: .82rem;
}
.marketing-page .marketing-hero :is(.sector-clean__trust li, .proof-strip span, .fe-proof span) {
  color: #29496b;
  font-size: .82rem;
  line-height: 1.5;
}
.marketing-page .marketing-hero .marketing-hero__visual {
  display: block;
  position: relative;
  float: none;
  width: calc(100% + clamp(20px, 3.5vw, 60px));
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
}
.marketing-page .marketing-hero .marketing-hero__visual::before,
.marketing-page .marketing-hero .marketing-hero__visual::after {
  content: none;
}
.marketing-page .marketing-hero .marketing-visual {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.marketing-page .marketing-hero .marketing-hero__visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 610px;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 18px 44px rgb(19 60 120 / 12%);
  transform: none;
}
.marketing-page .marketing-hero .marketing-hero__visual figcaption {
  margin: 0;
  padding: 14px 8px 0;
  border: 0;
  background: transparent;
  color: #29496b;
  font-size: .83rem;
  line-height: 1.5;
  text-align: center;
}
.marketing-page .marketing-hero .marketing-hero__visual .marketing-visual__caption {
  margin: 0;
  color: #29496b;
  font-size: .83rem;
  font-weight: 400;
}

/* Editorial headlines keep a calmer scale within the same full-screen hero,
   without presenting the guide or comparison as a product trial. */
.marketing-page .marketing-hero--guide .marketing-hero__copy h1 {
  max-width: 21ch;
  font-size: clamp(2.5rem, 3.7vw, 3.9rem);
}
/* site.css has a legacy, deliberately doubled .free-hero selector. Match its
   specificity so the former floated thumbnail cannot shrink this grid item. */
.marketing-page.free-page .marketing-hero .marketing-hero__visual {
  float: none;
  width: calc(100% + clamp(20px, 3.5vw, 60px));
  margin: 0;
}
.marketing-page.free-page .marketing-hero .marketing-hero__copy > p {
  max-width: 57ch;
}
.marketing-page.free-page .marketing-hero .marketing-hero__copy > p:last-child {
  margin-top: 20px;
  font-size: .85rem;
}
.marketing-page.free-page .marketing-hero .marketing-hero__copy > p:last-child a {
  color: #174c89;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.marketing-page .marketing-editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: 64px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.marketing-page .marketing-editorial-intro h2 {
  max-width: 20ch;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1.15;
}
.marketing-page .marketing-editorial-intro .free-editorial-intro__body {
  max-width: 72ch;
}
.marketing-page .marketing-editorial-intro p + p {
  margin-top: 18px;
}
.marketing-page :is(.vf-guide-editorial__body, .fe-editorial__body) {
  max-width: 75ch;
}
.marketing-page :is(.section-intro, .sector-clean__product-copy) p {
  max-width: 68ch;
}
.marketing-page .sector-clean__flow {
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 56px;
  padding-block: 24px;
  border-top: 0;
}
.marketing-page .sector-clean__demo {
  gap: 42px;
  border-color: var(--marketing-border);
  border-radius: 24px;
}
.marketing-page .sector-clean__demo-media,
.marketing-page .sector-clean__demo-video {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.marketing-page .sector-clean__demo-copy {
  max-width: 520px;
}
.marketing-page.segment-page > .site-shell > .site-container > .segment-section:first-child {
  margin-top: 64px;
}
.marketing-page.segment-page > .segment-hero {
  margin-top: 0;
}
.marketing-page .segment-section--gallery .section-intro,
.marketing-page .segment-section--demo > div:first-child {
  max-width: 68ch;
}

/* Prices uses the same wide header and light blue introduction. Its existing
   static comparison, plan data and billing controls are left intact. */
.marketing-page :is(.vf-guide-price-card__copy, .vf-guide-price-card__price, .free-price-card__copy, .free-price-card__price) {
  min-width: 0;
}
.marketing-page .vf-guide-price-card__monthly,
.marketing-page .free-price-card__annual strong {
  display: block;
  max-width: 100%;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.035em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.marketing-pricing-page > .marketing-pricing-heading {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px 24px 66px;
  background: linear-gradient(112deg, #eaf4ff 0%, #e4f1ff 48%, #f5f9ff 100%);
}
.marketing-pricing-page > .marketing-pricing-heading h1 {
  max-width: 22ch;
  margin-inline: auto;
  color: #132c4c;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.marketing-pricing-page > .marketing-pricing-heading p {
  max-width: 68ch;
  margin: 22px auto 0;
  color: #27486f;
}
/* The page heading already introduces pricing. Keep the shared section title
   available to assistive technology without repeating it in the visual flow. */
.marketing-pricing-page > #precios {
  padding-top: clamp(28px, 3vw, 36px);
}
.marketing-pricing-page > #precios .home4-intro > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.marketing-pricing-page > #precios .home4-intro > p {
  margin-top: 0;
}
.marketing-pricing-page > #precios .home4-billing-toggle {
  margin-top: 20px;
}
.marketing-pricing-page > section > .home12-shell {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
}

@media (prefers-reduced-motion: no-preference) {
  .marketing-page .marketing-hero__visual {
    animation: marketing-product-enter 650ms cubic-bezier(.16, 1, .3, 1) backwards;
  }
}
@keyframes marketing-product-enter {
  from { transform: translate3d(14px, 8px, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (max-width: 1100px) {
  .marketing-page .marketing-hero__layout {
    gap: 30px;
    width: calc(100% - 64px);
  }
  .marketing-page .marketing-hero .marketing-hero__copy h1 {
    font-size: clamp(2.5rem, 4.3vw, 3.5rem);
  }
  .marketing-page .marketing-hero .marketing-hero__actions .btn {
    padding-inline: 18px;
    font-size: .87rem;
  }
}
@media (max-width: 900px) {
  .marketing-page > .marketing-hero { padding: 48px 0; }
  .marketing-page .marketing-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .marketing-page .marketing-hero .marketing-hero__copy { max-width: 740px; }
  .marketing-page .marketing-hero .marketing-hero__copy h1 {
    max-width: 22ch;
    font-size: clamp(2.5rem, 6vw, 3.7rem);
  }
  .marketing-page .marketing-hero .marketing-hero__visual {
    width: 100%;
    max-width: 840px;
    margin-inline: auto;
  }
  .marketing-page.free-page .marketing-hero .marketing-hero__visual {
    width: 100%;
    margin: 0 auto;
  }
  .marketing-page .marketing-editorial-intro { grid-template-columns: minmax(0, 1fr); }
  .marketing-page .marketing-editorial-intro h2 { max-width: 28ch; }
  .marketing-page .sector-clean__demo { gap: 28px; }
  .marketing-page .sector-clean__demo-copy { max-width: 68ch; }
}
@media (max-width: 600px) {
  .marketing-page { padding-bottom: 42px; }
  .marketing-page > .site-shell { padding-inline: 20px; }
  .marketing-page > .sector-clean__shell,
  .marketing-pricing-page > section > .home12-shell { width: calc(100% - 40px); }
  .marketing-page > .marketing-hero { padding: 36px 0 38px; }
  .marketing-page .marketing-hero__layout { width: calc(100% - 40px); gap: 30px; }
  .marketing-page .marketing-hero .marketing-hero__copy > :is(.sector-clean__eyebrow, .kicker, .home4-badge) {
    margin-bottom: 18px;
    font-size: .69rem;
  }
  .marketing-page .marketing-hero .marketing-hero__copy h1 {
    max-width: 22ch;
    font-size: clamp(2.15rem, 8.8vw, 3rem);
    line-height: 1.08;
  }
  .marketing-page .marketing-hero .marketing-hero__copy > p {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.6;
  }
  .marketing-page .marketing-hero .marketing-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 26px;
  }
  .marketing-page .marketing-hero__primary-group,
  .marketing-page .marketing-hero .marketing-hero__actions .btn { width: 100%; }
  .marketing-page .marketing-hero .marketing-hero__actions .btn {
    min-height: 50px;
    font-size: .93rem;
  }
  .marketing-page .marketing-hero .marketing-hero__visual img { border-radius: 12px; }
  .marketing-page .marketing-hero .marketing-hero__visual figcaption { font-size: .78rem; }
  .marketing-page .sector-clean__flow { gap: 9px; margin-bottom: 38px; font-size: .85rem; }
  .marketing-page .sector-clean__demo { padding: 20px; border-radius: 18px; }
  .marketing-page .marketing-editorial-intro { padding-top: 44px; }
  .marketing-pricing-page > .marketing-pricing-heading { padding: 44px 20px; }
  .marketing-page.segment-page > .site-shell > .site-container > .segment-section:first-child { margin-top: 44px; }
  .marketing-page.segment-page > .segment-hero { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-page .marketing-hero__visual { animation: none; }
  .marketing-page .marketing-hero .marketing-hero__actions .btn { transition: none; }
}
