/* Shared Extlink marketing language. Loaded after the existing page styles.
   Scope deliberately excludes the store, account pages and template demos. */
body.ex-public {
  --ex-ink: #202e32;
  --ex-muted: #5f7277;
  --ex-teal: #087f66;
  --ex-mint: #dff3e9;
  --ex-line: #dce5e2;
  --ex-paper: #f5f8f7;
  --ex-navy: #153337;
  --ex-surface: #fff;
  --ex-radius: 16px;
  margin: 0;
  background: var(--ex-surface);
  color: var(--ex-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.ex-public :is(.ex-header, .ex-footer, .ex-billing-intro, .ex-billing-grid, .ex-billing-next, .ex-billing-steps, .ex-billing-faq) *,
body.ex-public :is(.ex-header, .ex-footer, .ex-billing-intro, .ex-billing-grid, .ex-billing-next, .ex-billing-steps, .ex-billing-faq) {
  box-sizing: border-box;
}

body.ex-public :is(h1, h2, h3, h4) {
  color: inherit;
  font-family: inherit;
  font-weight: 650;
}

body.ex-public h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

body.ex-public h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

body.ex-public h3 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body.ex-public .ex-container {
  width: min(1184px, calc(100% - 80px));
  margin-inline: auto;
}

body.ex-public :is(.ex-button, .ex-billing-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

body.ex-public .ex-button:hover {
  transform: none;
}

body.ex-public :is(.ex-button-dark, .ex-button-teal, .ex-billing-link) {
  background: var(--ex-teal);
  color: #fff !important;
}

body.ex-public :is(.ex-button-dark, .ex-button-teal, .ex-billing-link):hover {
  background: #066a55;
}

body.ex-public .ex-button-outline {
  border-color: var(--ex-line);
  background: var(--ex-surface);
  color: var(--ex-ink) !important;
}

body.ex-public .ex-button-outline:hover {
  background: var(--ex-paper);
  border-color: #aabeb6;
}

body.ex-public .ex-button-light {
  background: #e5f5ed;
  color: #153d32 !important;
}

body.ex-public .ex-button-light:hover {
  background: #d4edde;
}

body.ex-public .ex-actions {
  gap: 14px 20px;
  margin-top: 28px;
}

body.ex-public .ex-link {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-underline-offset: 4px;
}

body.ex-public .ex-link:hover {
  text-decoration: underline;
}

body.ex-public :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--ex-teal);
  outline-offset: 4px;
}

body.ex-public .ex-header {
  background: #fffffff5;
  border-bottom-color: var(--ex-line);
  box-shadow: none;
}

body.ex-public .ex-nav {
  width: min(1184px, calc(100% - 80px));
  min-height: 80px;
  gap: 20px;
}

body.ex-public .ex-navigation {
  gap: clamp(14px, 1.6vw, 22px);
}

body.ex-public .ex-brand {
  color: var(--ex-ink);
  font-size: 23px;
}

body.ex-public .ex-mark {
  background: var(--ex-navy);
}

body.ex-public .ex-mega {
  border-radius: var(--ex-radius);
  box-shadow: 0 16px 48px #15333713;
  padding: 20px;
}

body.ex-public .ex-mega strong {
  font-size: 14px;
}

body.ex-public .ex-mega small {
  font-size: 12px;
  line-height: 1.6;
}

body.ex-public .ex-dropdown summary {
  padding-block: 22px;
}

body.ex-public .ex-eyebrow {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
}

body.ex-public .ex-pill {
  margin-bottom: 23px;
  border-color: #cee4db;
  background: #ffffffc4;
  font-size: 12px;
  font-weight: 550;
}

body.ex-public .ex-hero {
  padding: clamp(54px, 6vw, 82px) 0 64px;
  background: linear-gradient(120deg, #fff 35%, #f3f9f6);
}

body.ex-public .ex-hero::after {
  opacity: .24;
}

body.ex-public .ex-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

body.ex-public .ex-hero-copy {
  max-width: 570px;
}

body.ex-public .ex-hero-copy h1 {
  font-size: clamp(40px, 4.6vw, 64px);
}

body.ex-public .ex-hero-copy > p {
  margin-top: 23px;
  font-size: 17px;
  line-height: 1.75;
}

body.ex-public .ex-hero-copy .ex-hero-note {
  font-size: 13px !important;
}

body.ex-public .ex-hero-model img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 16px 24px #15333716);
}

body.ex-public .ex-page-hero {
  padding: 60px 0 48px;
  background: linear-gradient(120deg, #f4f8f6, #fff 85%);
  border-bottom: 1px solid #eaf0ed;
}

body.ex-public .ex-page-hero h1 {
  max-width: 920px;
  font-size: clamp(38px, 4.3vw, 58px);
}

body.ex-public .ex-page-hero p {
  max-width: 730px;
  font-size: 17px;
  line-height: 1.75;
}

body.ex-public .ex-section {
  padding-block: clamp(60px, 7vw, 92px);
  scroll-margin-top: 98px;
}

body.ex-public .ex-section-heading {
  max-width: 730px;
  margin-bottom: 36px;
}

body.ex-public .ex-section-heading p,
body.ex-public :is(.ex-split, .ex-case-feature) > div > p {
  font-size: 16px;
  line-height: 1.75;
}

body.ex-public :is(.ex-cards, .ex-personas) {
  gap: 20px;
}

body.ex-public :is(.ex-card, .ex-persona, .ex-network, .ex-license-panel, .ex-outcome-card, .ex-provider-cycle, .ex-implementation-scope, .ex-founder-offer-card, .ex-billing-card) {
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius);
  box-shadow: none;
  background: var(--ex-surface);
  padding: 28px;
}

body.ex-public :is(.ex-card, .ex-persona) h3 {
  font-size: 20px;
}

body.ex-public :is(.ex-card, .ex-persona) p {
  font-size: 15px;
  line-height: 1.75;
}

body.ex-public .ex-card .ex-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 23px;
  background: var(--ex-paper);
  border: 1px solid var(--ex-line);
  border-radius: 10px;
  font-size: 22px;
}

body.ex-public :is(.ex-registry-flow, .ex-real-console-screen, .ex-real-app-screen, .ex-real-product-grid figure, .ex-workflow-gallery figure, .ex-report-preview, .ex-real-scene, .ex-tech-network-gallery figure) {
  border-radius: var(--ex-radius);
  box-shadow: 0 8px 28px #15333709;
}

/* Keep real product imagery complete; no invented crops or backgrounds. */
body.ex-public .ex-real-app-screen img,
body.ex-public .ex-real-product-grid figure:nth-child(2) img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

body.ex-public .ex-real-app-screen {
  width: min(100%, 280px);
}

body.ex-public .ex-founder-band {
  background: #183a36;
}

body.ex-public .ex-founder-band h2 {
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.2;
}

body.ex-public .ex-founder-band p {
  font-size: 14px;
  line-height: 1.7;
}

body.ex-public .ex-founder-offer h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

body.ex-public .ex-founder-offer-card {
  color: var(--ex-ink);
}

body.ex-public .ex-provider-cycle {
  color: var(--ex-ink);
}

body.ex-public .ex-provider-cycle li {
  border-color: var(--ex-line);
}

body.ex-public .ex-provider-cycle :is(.ex-eyebrow, li > span) {
  color: var(--ex-teal);
}

body.ex-public .ex-provider-cycle :is(p, small),
body.ex-public .ex-founder-offer-card :is(p, small) {
  color: var(--ex-muted);
}

body.ex-public .ex-founder-offer-card > :is(strong, span):not(.ex-founder-kicker) {
  color: var(--ex-ink);
}

body.ex-public .ex-footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--ex-line);
  background: var(--ex-paper);
}

body.ex-public .ex-footer-grid {
  gap: 30px;
  font-size: 13px;
}

body.ex-public .ex-footer h3 {
  margin: 8px 0 17px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

body.ex-public .ex-footer p {
  font-size: 13px;
  line-height: 1.75;
}

body.ex-public .ex-footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  font-size: 12px;
}

/* Subscription and payment explainers use the same card hierarchy as billing. */
body.ex-public .ex-billing-intro {
  width: auto;
  max-width: none;
  margin-bottom: 0;
}

body.ex-public .ex-billing-intro p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--ex-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.ex-public .ex-billing-intro h1 em {
  color: var(--ex-teal);
  font-style: normal;
}

body.ex-public .ex-billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

body.ex-public .ex-billing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
}

body.ex-public .ex-billing-card :is(h2, h3) {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body.ex-public .ex-billing-card p {
  margin: 0;
  color: var(--ex-muted);
  font-size: 15px;
  line-height: 1.75;
}

body.ex-public .ex-billing-card :is(ul, ol) {
  margin: 0 0 2px;
  padding-left: 20px;
  color: var(--ex-muted);
  font-size: 14px;
  line-height: 1.8;
}

body.ex-public .ex-billing-card .ex-eyebrow {
  margin: 0;
  font-size: 11px;
}

body.ex-public .ex-billing-card .ex-checklist {
  padding-left: 0;
}

body.ex-public .ex-billing-card :is(.ex-button, .ex-billing-link, .ex-link) {
  margin-top: auto;
}

body.ex-public .ex-billing-next {
  display: block;
  margin: 0;
  border-block: 1px solid var(--ex-line);
  background: var(--ex-paper);
}

body.ex-public .ex-billing-next > .ex-container {
  max-width: none;
}

body.ex-public .ex-billing-next h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.16;
}

body.ex-public .ex-billing-next p {
  margin: 18px 0 0;
  color: var(--ex-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.ex-public .ex-billing-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ex-public .ex-billing-steps > :is(li, article, div) {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius);
  background: var(--ex-surface);
}

body.ex-public .ex-billing-steps > li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ex-line);
  border-radius: 9px;
  background: var(--ex-paper);
  color: var(--ex-teal);
  font-size: 12px;
  font-weight: 650;
}

body.ex-public .ex-billing-steps h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

body.ex-public .ex-billing-steps p {
  margin: 0;
  color: var(--ex-muted);
  font-size: 14px;
  line-height: 1.75;
}

body.ex-public .ex-billing-faq {
  max-width: 900px;
  margin-inline: auto;
}

body.ex-public .ex-billing-faq details {
  padding: 23px 0;
  border-bottom: 1px solid var(--ex-line);
}

body.ex-public .ex-billing-faq summary {
  color: var(--ex-ink);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.5;
  cursor: pointer;
}

body.ex-public .ex-billing-faq details p {
  max-width: 800px;
  margin: 14px 0 0;
  color: var(--ex-muted);
  font-size: 15px;
  line-height: 1.8;
}

body.ex-public .ex-billing-faq details a {
  color: var(--ex-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bootstrap pages retain their grid, validation and disclosure behavior. */
body.ex-public.ex-public-legacy main {
  color: var(--ex-ink);
  font-family: inherit;
  font-size: 16px;
}

body.ex-public.ex-public-legacy main .container {
  max-width: 1216px;
}

body.ex-public.ex-public-legacy main .bg-dark {
  background-color: var(--ex-navy) !important;
}

body.ex-public.ex-public-legacy main > .bg-dark:first-child > .container {
  padding-top: 64px !important;
  padding-bottom: 56px !important;
}

body.ex-public.ex-public-legacy main > .bg-dark:first-child .lead {
  max-width: 760px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.75;
}

body.ex-public.ex-public-legacy main :is(.text-primary, .extlink-section-kicker, .gateway-flow-arrow) {
  color: var(--ex-teal) !important;
}

body.ex-public.ex-public-legacy main .bg-dark .text-primary {
  color: #9be2c5 !important;
}

body.ex-public.ex-public-legacy main :is(.text-body, .text-muted) {
  color: var(--ex-muted) !important;
}

body.ex-public.ex-public-legacy main .bg-dark :is(.text-body, .text-muted, .text-white-70) {
  color: #c6d9d5 !important;
}

body.ex-public.ex-public-legacy main :is(.card, .extlink-channel-card, .gateway-flow-item, .extlink-demo-note) {
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius);
  box-shadow: none;
}

body.ex-public.ex-public-legacy main .card-body {
  padding: 28px;
}

body.ex-public.ex-public-legacy main :is(.card-title, .extlink-channel-card h4) {
  font-size: 20px;
  line-height: 1.35;
}

body.ex-public.ex-public-legacy main .btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  box-shadow: none;
}

body.ex-public.ex-public-legacy main .btn-transition:hover {
  transform: none;
}

body.ex-public.ex-public-legacy main .btn-primary {
  border-color: var(--ex-teal);
  background: var(--ex-teal);
  color: #fff;
}

body.ex-public.ex-public-legacy main .btn-primary:hover {
  border-color: #066a55;
  background: #066a55;
}

body.ex-public.ex-public-legacy main :is(.btn-outline-primary, .btn-soft-primary) {
  border-color: #c4dbd1;
  background: #eff7f3;
  color: var(--ex-teal);
}

body.ex-public.ex-public-legacy main :is(.icon-soft-primary, .avatar-soft-primary) {
  background: #e8f4ee;
  color: var(--ex-teal);
}

body.ex-public.ex-public-legacy main .list-checked-primary .list-checked-item::before {
  color: var(--ex-teal);
}

body.ex-public.ex-public-legacy main :is(.form-control, .form-select) {
  min-height: 46px;
  border-color: var(--ex-line);
  border-radius: 9px;
  background-color: var(--ex-surface);
  color: var(--ex-ink);
  font-size: 14px;
}

body.ex-public.ex-public-legacy main :is(.form-control, .form-select):focus {
  border-color: var(--ex-teal);
  box-shadow: 0 0 0 3px #087f6612;
}

body.ex-public.ex-public-legacy main :is(.form-control, .form-select).is-invalid,
body.ex-public.ex-public-legacy main .was-validated :is(.form-control, .form-select):invalid {
  border-color: #be4552;
}

body.ex-public.ex-public-legacy main .form-label {
  color: var(--ex-ink);
  font-size: 13px;
  font-weight: 600;
}

body.ex-public.ex-public-legacy main .extlink-contact-section,
body.ex-public.ex-public-legacy main .extlink-demo-note {
  background: var(--ex-paper);
}

body.ex-public.ex-public-legacy main .extlink-profile-options .btn {
  align-items: flex-start;
  min-height: 132px;
  padding: 18px;
  border-color: var(--ex-line);
  border-radius: 12px !important;
  background: var(--ex-surface);
  color: var(--ex-ink);
  font-weight: 400;
  transform: none;
}

body.ex-public.ex-public-legacy main .extlink-profile-options .btn-check:checked + .btn {
  border-color: var(--ex-teal);
  background: #eef7f2;
  color: var(--ex-ink);
  box-shadow: 0 0 0 1px var(--ex-teal);
}

body.ex-public.ex-public-legacy main .extlink-profile-options .btn-check:checked + .btn small {
  color: var(--ex-muted) !important;
}

body.ex-public.ex-public-legacy main .extlink-profile-options .btn strong {
  font-size: 15px;
  font-weight: 600;
}

body.ex-public.ex-public-legacy main .extlink-profile-options .btn small {
  font-size: 12px;
  line-height: 1.65;
}

body.ex-public.ex-public-legacy main #submitBtn {
  justify-self: start;
  width: auto;
  min-width: 168px;
}

@media (min-width: 1121px) {
  body.ex-public .ex-nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 1120px) {
  body.ex-public .ex-nav {
    min-height: 76px;
    width: calc(100% - 48px);
  }

  body.ex-public .ex-menu-toggle {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--ex-line);
    border-radius: 9px;
    background: var(--ex-surface);
    color: var(--ex-ink);
    font: inherit;
    font-size: 13px;
  }

  body.ex-public .ex-navigation {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 18px 24px;
    border-bottom: 1px solid var(--ex-line);
    background: var(--ex-surface);
  }

  body.ex-public .ex-navigation[data-open=true] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  body.ex-public .ex-navigation > a {
    padding: 12px 8px;
  }

  body.ex-public .ex-dropdown summary {
    justify-content: space-between;
    padding: 13px 8px;
  }

  body.ex-public .ex-client {
    margin-left: 0;
  }

  body.ex-public :is(.ex-mega, .ex-mega-small) {
    position: static;
    width: 100%;
    max-height: none;
    padding: 14px;
    box-shadow: none;
  }

  body.ex-public .ex-nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
    padding: 10px 18px !important;
  }
}

@media (max-width: 980px) {
  body.ex-public .ex-billing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ex-public .ex-billing-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body.ex-public .ex-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  body.ex-public .ex-hero-copy {
    max-width: 700px;
  }

  body.ex-public .ex-hero-model {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
  }

  body.ex-public .ex-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 680px) {
  body.ex-public .ex-container,
  body.ex-public .ex-nav {
    width: calc(100% - 40px);
  }

  body.ex-public h1,
  body.ex-public .ex-hero-copy h1,
  body.ex-public .ex-page-hero h1 {
    font-size: clamp(35px, 9vw, 44px);
    letter-spacing: -.04em;
  }

  body.ex-public h2 {
    font-size: 31px;
  }

  body.ex-public .ex-hero {
    padding: 42px 0 44px;
  }

  body.ex-public .ex-page-hero {
    padding: 42px 0 36px;
  }

  body.ex-public .ex-section {
    padding-block: 55px;
  }

  body.ex-public .ex-hero-copy > p,
  body.ex-public .ex-page-hero p {
    font-size: 16px;
  }

  body.ex-public :is(.ex-cards, .ex-personas, .ex-billing-grid, .ex-billing-steps, .ex-footer-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ex-public :is(.ex-card, .ex-persona, .ex-network, .ex-license-panel, .ex-outcome-card, .ex-provider-cycle, .ex-implementation-scope, .ex-founder-offer-card, .ex-billing-card) {
    padding: 23px;
  }

  body.ex-public .ex-real-app-screen {
    width: min(100%, 260px);
  }

  body.ex-public :is(.ex-founder-stats, .ex-founder-quotas) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body.ex-public :is(.ex-founder-stats, .ex-founder-quotas) > span {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 7px;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.ex-public .ex-billing-next {
    margin: 0;
  }

  body.ex-public .ex-billing-steps > :is(li, article, div) {
    padding: 23px;
  }

  body.ex-public .ex-billing-faq summary {
    font-size: 16px;
  }

  body.ex-public .ex-footer {
    padding-top: 42px;
  }

  body.ex-public .ex-footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  body.ex-public.ex-public-legacy main > .bg-dark:first-child > .container {
    padding-top: 44px !important;
    padding-bottom: 40px !important;
  }

  body.ex-public.ex-public-legacy main .card-body {
    padding: 23px;
  }

  body.ex-public.ex-public-legacy main :is(.form-control, .form-select) {
    font-size: 16px;
  }

  body.ex-public.ex-public-legacy main .extlink-profile-options .btn {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ex-public *,
  body.ex-public *::before,
  body.ex-public *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
