/* Marketing only: checkout and onboarding never load this stylesheet. */
.marketing {
  --bg: #07121f;
  --bg-soft: #0b1928;
  --panel: #0e1e2e;
  --text: #f4f8fc;
  --muted: #aabccd;
  --line: #223548;
  --blue: #40ccec;
  --max: 1240px;
  background: var(--bg);
}
.marketing .container, .marketing .nav-wrap { width: min(calc(100% - 3rem), var(--max)); }
.marketing .site-header { background: #07121f; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.marketing .nav-wrap { min-height: 84px; }
.marketing .brand-logo { width: 184px; }
.marketing .developer-credit { display: none; }
.marketing .nav-links { gap: 1.65rem; }
.marketing .nav-links a { font-size: .9rem; color: #c5d3e0; }
.marketing .nav-links a:hover, .marketing .nav-links a[aria-current="page"] { color: var(--blue); }
.marketing .button, .marketing .nav-links .button {
  min-height: 48px; padding: .85rem 1.25rem; border: 1px solid #40ccec;
  border-radius: .4rem; background: #40ccec; color: #061522; box-shadow: none;
  font-size: .9rem; font-weight: 700; transition: background .16s, border-color .16s;
}
.marketing .button:hover, .marketing .nav-links .button:hover { background: #77e0f5; border-color: #77e0f5; color: #061522; transform: none; }
.marketing .button.secondary { background: transparent; border-color: #506678; color: #e2edf7; }
.marketing .button.secondary:hover { background: #122638; border-color: #8aa4ba; }
.marketing a:focus-visible, .marketing button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.marketing .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .13em; color: var(--blue); }
.marketing h1, .marketing h2, .marketing h3 { letter-spacing: -.035em; }
.marketing .hero { background: var(--bg); border-bottom: 0; }
.marketing .hero-copy::after { display: none; }
.marketing .hero-actions { gap: .8rem; }
.marketing.home { display: block; overflow: visible; }
.marketing.home main { display: block; }
.marketing.home .hero { display: block; }
.marketing.home .hero-inner {
  width: min(calc(100% - 3rem), var(--max)); min-height: 0; height: auto;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem); padding: clamp(3.5rem, 7vw, 6.5rem) 0 4rem;
}
.marketing.home .hero-copy { width: auto; }
.marketing.home h1 { font-size: clamp(2.8rem, 4.4vw, 4.15rem); line-height: 1.07; margin-bottom: 1.5rem; }
.marketing .lede { color: #b6c7d7; font-size: 1.1rem; line-height: 1.65; }
.trial-note { margin: .9rem 0 0; color: var(--muted); font-size: .78rem; }
.product-preview { margin: 0; min-width: 0; }
.preview-window { border: 1px solid #385165; border-radius: .65rem; overflow: hidden; background: #102235; }
.preview-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; color: #c2d1de; font-size: .72rem; border-bottom: 1px solid #385165; }
.preview-topline span:last-child { color: var(--blue); }
.preview-screen { position: relative; overflow: hidden; aspect-ratio: 2; background: #f7f9fc; }
/* Crop only the browser chrome from the existing, unmodified CRM screenshot. */
.preview-screen img { position: absolute; width: 100%; height: auto; max-width: none; top: -7.2%; left: 0; }
.product-preview figcaption { margin-top: .8rem; color: #9db2c5; font-size: .75rem; }
.feature-overview { padding: 0 0 4.5rem; }
.feature-overview-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; margin-bottom: 2rem; border-top: 1px solid var(--line); }
.feature-overview-heading h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin: 0; }
.feature-overview-heading .eyebrow { margin-bottom: .65rem; }
.marketing .text-link { color: var(--blue); text-decoration: none; font-size: .88rem; font-weight: 600; }
.marketing .text-link:hover { text-decoration: underline; text-underline-offset: .25rem; }
.main-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.main-feature { padding: 1.8rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.main-feature:not(:nth-child(3n + 1)) { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.feature-icon { width: 27px; height: 27px; margin-bottom: 1.1rem; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.main-feature h3 { font-size: 1.1rem; margin-bottom: .65rem; }
.main-feature p { margin: 0 0 1rem; max-width: 32ch; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.feature-optional { display: inline-block; margin-left: .35rem; color: #aabccd; font-size: .65rem; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
.marketing .site-footer { padding: 1.6rem 0; font-size: .8rem; background: var(--bg); }
.marketing .footer-links { gap: 1.5rem; }
.marketing .footer-links a { color: #b6c7d7; }
.marketing .footer-credit { color: #8da4b9; }
.marketing.product-shell { height: auto; min-height: 100svh; overflow: visible; display: block; }
.marketing.product-shell .product-page { display: block; }
.marketing .platform-tabs-header { padding: 2.4rem 0 1.25rem; background: var(--bg); }
.marketing .platform-tabs-header .feature-tabs-heading { margin-bottom: 1.5rem; }
.marketing .platform-tabs-header .feature-tabs-heading h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.marketing .product-tabs { border-radius: .5rem; border-color: var(--line); background: #0b1928; }
.marketing .product-tabs button { min-height: 46px; border-radius: .3rem; font-size: .8rem; }
.marketing .product-tabs button[aria-selected="true"] { background: #40ccec; color: #061522; }
.marketing .platform-tab-stage, .marketing .product-detail-stage { height: auto; min-height: 0; overflow: visible; }
.marketing .feature-hero .hero-inner {
  width: min(calc(100% - 3rem), var(--max)); height: auto; min-height: 0;
  padding: 2.5rem 0 4rem; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 3rem;
}
.marketing .feature-hero .hero-copy { width: auto; }
.marketing .feature-hero .hero-copy h1 { min-height: var(--feature-title-height, 0px); font-size: clamp(2.25rem, 3.5vw, 3.5rem); }
.marketing .feature-hero .hero-copy .lede { min-height: var(--feature-lede-height, 0px); }
.marketing .feature-visual { width: 100%; min-width: 0; aspect-ratio: 1.68; overflow: hidden; border: 1px solid #385165; border-radius: .65rem; background: #102235; }
.marketing .feature-hero .feature-visual > .hero-laptop { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.marketing .feature-visual > .product-preview { width: 100%; height: 100%; }
.marketing .feature-visual .preview-window { height: 100%; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.marketing .feature-visual .preview-screen { flex: 1; aspect-ratio: auto; }
.marketing .feature-hero .hero-laptop { position: static; width: 100%; max-height: none; height: auto; transform: none; filter: none; margin: 0; border-radius: .5rem; }
.marketing .product-detail { padding: 2rem 0 4rem; background: var(--bg); height: auto; }
.marketing .detail-inner { width: min(calc(100% - 3rem), var(--max)); }
.marketing .detail-heading h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.marketing .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.marketing .detail-grid h2 { font-size: 1.2rem; }
.marketing .detail-grid section { padding-block: 1.4rem; }
.marketing .about-story, .marketing .contact-card-section { background: var(--bg); padding-block: 4rem; }
.marketing .about-intro h1 { font-size: clamp(2.5rem, 4vw, 3.7rem); }
.marketing .about-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; }
.marketing .contact-card { background: #0b1928; border-radius: .65rem; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; }
.marketing .contact-intro h1 { font-size: clamp(2.4rem, 3.5vw, 3.3rem); }
.marketing input, .marketing textarea { border-color: #40566a; border-radius: .4rem; }
.capability-directory, .demo-gallery { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.capability-directory-heading { max-width: 800px; margin-bottom: 2rem; }
.capability-directory-heading h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.capability-directory-heading > p:last-child { color: var(--muted); }
.capability-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.capability-directory-grid article { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.capability-directory-grid h3 { font-size: 1.15rem; }
.capability-directory-grid p { color: var(--muted); font-size: .92rem; }
.connected-tools-note { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .5rem; background: #0b1928; }
.connected-tools-note h3 { font-size: 1.1rem; }
.connected-tools-note p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.demo-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.demo-gallery-item { min-width: 0; padding: 0; text-align: left; cursor: pointer; background: transparent; border: 0; color: var(--text); }
.demo-gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: contain; border: 1px solid #385165; border-radius: .4rem; background: #0b1928; }
.demo-gallery-item span { display: block; margin-top: .7rem; font-size: .88rem; }
.demo-gallery-item:hover span { color: var(--blue); }
.demo-gallery-item small { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.marketing-closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 3rem 4rem; }
.marketing-closing-cta h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.marketing-closing-cta p:last-child { margin: 0; color: var(--muted); }
.demo-image-dialog { width: min(95vw, 1700px); max-width: 95vw; max-height: 95svh; padding: 1rem; border: 1px solid #506678; border-radius: .6rem; background: #0b1928; color: var(--text); }
.demo-image-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.demo-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.demo-dialog-heading h2 { margin: 0; font-size: 1.2rem; }
.demo-dialog-heading button { padding: .7rem 1rem; border: 1px solid #506678; border-radius: .3rem; color: var(--text); background: transparent; cursor: pointer; }
.demo-image-dialog img { display: block; width: 100%; height: auto; max-height: 75svh; object-fit: contain; }
.demo-image-dialog > p { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; }
.marketing .feature-visual .demo-screen-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.marketing .product-preview .preview-screen .demo-screen-image { position: static; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1000px) and (min-width: 821px) {
  .marketing .nav-links { gap: 1rem; }
  .marketing .brand-logo { width: 155px; }
}
@media (max-width: 820px) {
  .capability-directory-grid, .demo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-closing-cta { align-items: flex-start; flex-direction: column; }
  .marketing .nav-links { top: 84px; background: #0b1928; border-color: #385165; border-radius: .5rem; }
  .marketing.home .hero-inner, .marketing .feature-hero .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .marketing.home h1 { max-width: 650px; font-size: clamp(2.7rem, 7vw, 3.7rem); }
  .marketing .lede { max-width: 55ch; }
  .marketing .product-preview { width: 100%; }
  .main-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-feature:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .main-feature:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .marketing .product-tabs { flex-wrap: wrap; overflow: visible; }
  .marketing .product-tabs button { flex: 1 1 45%; min-height: 48px; white-space: normal; }
  .marketing .feature-hero .hero-laptop { width: 100%; margin: 0; }
  .marketing .about-layout, .marketing .contact-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .marketing .about-story, .marketing .contact-card-section { padding-block: 3rem; }
  .marketing .detail-back-slot { justify-self: start; }
  .marketing .platform-tabs-header .feature-tabs-heading { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 520px) {
  .capability-directory-grid { grid-template-columns: 1fr; gap: .5rem; }
  .demo-gallery-grid { gap: 1.25rem .75rem; }
  .marketing .container, .marketing .nav-wrap, .marketing.home .hero-inner, .marketing .feature-hero .hero-inner, .marketing .detail-inner { width: calc(100% - 2.5rem); }
  .marketing .brand-logo { width: 162px; }
  .marketing .hero-actions .button { width: auto; flex: 1 1 auto; }
  .marketing .hero-actions { gap: .65rem; }
  .marketing .button { padding: .85rem 1rem; }
  .feature-overview-heading { flex-direction: column; align-items: start; gap: 1rem; }
  .main-feature-grid { grid-template-columns: 1fr; }
  .main-feature, .main-feature:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
  .main-feature p { max-width: none; }
  .marketing .footer-inner { gap: 1rem; }
  .marketing .footer-links { gap: 1rem; }
  .marketing .detail-grid { grid-template-columns: 1fr; }
  .marketing .contact-card { padding: 1.5rem; }
}

.marketing .platform-tabs-header { scroll-margin-top: 84px; }
