/* Product detail pages use body.feature-page, a transparent main and a
   heading-light H1. data-tone="light" is for dark art, "sister" for purple.
   Use product-section for the content width and product-measure for prose. */
:root {
  --site-frame-width: 1760px;
}

:is(.feature-page, body[data-page="sales-insights"]) {
  --product-gutter: clamp(24px, 6vw, 98px);
  --product-section-width: 1480px;
  --product-measure: 44ch;
}

.feature-page {
  background-color: #f5f7f8;
}

body[data-page="sales-insights"] {
  background-color: #f7f9fb;
}

:is(body.feature-page, body[data-page="sales-insights"]) > main {
  /* Keep the canvas continuous beyond the frame, even when a page loads its
     own CSS later. Individual sections can still paint their own surfaces. */
  background: transparent !important;
}

@media (min-width: 1800px) {
  body:not([data-page="home"]) main, .footer {
    max-width: var(--site-frame-width);
    margin-inline: auto;
  }
}

:where(.product-section, .crm-workspace, .crm-hub, .crm-bottom) {
  box-sizing: border-box;
  max-width: var(--product-section-width);
  margin-inline: auto;
  padding-inline: var(--product-gutter);
  scroll-margin-top: 96px;
}

:where(.product-measure, .crm-section-head p) {
  max-width: var(--product-measure);
}

@media (max-width: 800px) {
  :is(.feature-page, body[data-page="sales-insights"]) {
    --product-gutter: clamp(18px, 5vw, 44px);
  }
}

/* One gradient across the entire heading, including emphasized words. */
:where(.feature-page, body[data-page="sales-insights"]) .heading-light {
  --heading-solid: #17374d;
  --heading-low: #142f43;
  --heading-mid: #244c6c;
  --heading-high: #486e8d;
  --heading-field: linear-gradient(116deg, var(--heading-low) 5%, var(--heading-mid) 54%, var(--heading-high) 100%);
  color: var(--heading-solid);
  -webkit-text-fill-color: currentColor;
}

:where(.feature-page, body[data-page="sales-insights"]) .heading-light[data-tone="light"] {
  --heading-solid: #f4f8ff;
  --heading-low: #c8dff4;
  --heading-mid: #e6f0fb;
  --heading-high: #fff;
  --heading-field: linear-gradient(116deg, var(--heading-high) 5%, var(--heading-mid) 54%, var(--heading-low) 100%);
}

:where(.feature-page, body[data-page="sales-insights"]) .heading-light[data-tone="sister"] {
  --heading-solid: #30394d;
  --heading-low: #273849;
  --heading-mid: #46445f;
  --heading-high: #665c78;
}

:where(.feature-page, body[data-page="sales-insights"]) :is(h1, h2).heading-light :is(em, span) {
  color: inherit;
  background: none;
  -webkit-text-fill-color: inherit;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  :where(.feature-page, body[data-page="sales-insights"]) :is(h1, h2).heading-light {
    padding-bottom: .10em;
    margin-bottom: calc(var(--heading-space-after, 0px) - .10em);
    background-color: var(--heading-solid);
    background-image: var(--heading-field);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (forced-colors: active), print {
  :where(.feature-page, body[data-page="sales-insights"]) :is(h1, h2).heading-light {
    padding-bottom: 0;
    margin-bottom: var(--heading-space-after, 0);
    background: none;
    color: var(--heading-solid);
    -webkit-text-fill-color: currentColor;
  }
}

@media (forced-colors: active) {
  :where(.feature-page, body[data-page="sales-insights"]) :is(h1, h2).heading-light {
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    forced-color-adjust: auto;
  }
}

.crm-guide {
  --ink: #18374d;
  --paper: #fbf9f3;
  color: var(--ink);
  padding: clamp(84px, 7vw, 102px) 0 0;
}
.crm-guide :where(h1,h2,h3,h4,p,blockquote,figure,fieldset) { margin: 0; }
body[data-page="crm"] .crm-guide :is(h1,h2,h3,h4) { font-weight: 530; hyphens: none; overflow-wrap: normal; }
.crm-guide :is(h1,h2).heading-light { letter-spacing: -.055em; line-height: 1.02; --heading-space-after: 0px; text-wrap: balance; }
.crm-guide p { font-size: clamp(16px, 1.18vw, 19px); line-height: 1.55; }
.crm-guide h2 { font-size: clamp(38px, 4.6vw, 72px); }
.crm-guide a:focus-visible, .crm-answers summary:focus-visible { outline: 3px solid #6595e9; outline-offset: 4px; }
.crm-hero {
  position: relative;
  isolation: isolate;
  max-width: var(--site-frame-width);
  margin: 0 auto;
  width: calc(100% - 32px);
  overflow: hidden;
  border-radius: 13px;
  background: #203b50;
}
.crm-hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.crm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #122a419e 0%, #162e4545 42%, transparent 63%); }
.crm-hero-copy { min-height: clamp(470px, 42vw, 695px); width: 53%; padding: clamp(32px,4vw,64px) 0 clamp(42px,5.8vw,84px) var(--product-gutter); display: flex; align-items: flex-start; flex-direction: column; justify-content: center; color: #fff; }
.crm-hero h1 { font-size: clamp(49px, 5.45vw, 90px); max-width: 14ch; }
.crm-hero-copy > p { margin-top: 19px; max-width: 42ch; color: #f3f7fb; }
.crm-back { color: #f2f6fc; margin-bottom: clamp(25px,3.3vw,48px); font-size: .91rem; text-decoration: none; }
.crm-back:hover { text-decoration: underline; }
.crm-hero-link,.crm-link { display: inline-flex; align-items: center; gap: .8rem; width: fit-content; font-weight: 560; text-decoration: none; border-bottom: 1px solid currentColor; padding: .25em 0 .28em; }
.crm-hero-link { color: #fff; margin-top: 20px; }
.crm-link { color: #244c65; margin-top: 20px; }
.crm-workspace { padding-block: clamp(62px,6.5vw,104px) clamp(58px,6.2vw,98px); }
.crm-section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(26px,5vw,82px); align-items: end; padding-bottom: clamp(28px,3vw,47px); }
.crm-section-head p { color: #39576a; }
.crm-record { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.13fr); align-items: stretch; border: 0; min-inline-size: 0; padding: 0; background: #e6edf0; border-radius: 12px; overflow:hidden; position: relative; }
.crm-dialog { padding: clamp(27px,3.2vw,50px); background: #dce7ed; }
.crm-dialog h3 { font-size: clamp(24px,2.05vw,34px); letter-spacing: -.035em; }
.crm-sr,.crm-toggle { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path: inset(50%); white-space:nowrap; }
.crm-switch { display:inline-flex; flex-wrap:wrap; gap:3px; padding:3px; border:1px solid #aabcc9; border-radius:8px; background:#cad8e0; margin:14px 0 clamp(24px,3vw,44px); }
.crm-switch label { display: inline-flex; align-items: center; min-height:44px; padding:0 12px; border-radius:5px; color:#29485e; font-size:.95rem; cursor:pointer; }
#crm-meeting:checked ~ .crm-dialog label[for=crm-meeting],#crm-mail:checked ~ .crm-dialog label[for=crm-mail] { color:#163e61; background:#fff; box-shadow:0 1px 3px #304b6038; font-weight:600; }
#crm-meeting:focus-visible ~ .crm-dialog label[for=crm-meeting],#crm-mail:focus-visible ~ .crm-dialog label[for=crm-mail] { outline: 3px solid #386db4; outline-offset: 2px; }
.crm-record .crm-event { display:none; }
#crm-meeting:checked ~ * .crm-event-meeting,#crm-mail:checked ~ * .crm-event-mail { display:block; }
.crm-dialog .crm-event > span,.crm-board-focus > span { font-size: .91rem; color:#496477; }
.crm-dialog blockquote { margin-top: 8px; max-width: 29ch; font-size:clamp(21px,2.05vw,31px); line-height:1.3; letter-spacing:-.022em; }
.crm-folio { align-self:center; padding:30px clamp(22px,3.5vw,58px) 32px clamp(20px,3vw,45px); }
.crm-folder-tab { background:#29577b; color:#fff; display:table; border-radius: 8px 14px 0 0; padding:8px 17px 7px; font-size:.88rem; font-weight:560; }
.crm-folder-tab span { font-weight:400; color:#e0edf6; }
.crm-sheet { background:var(--paper); border-top:4px solid #29577b; border-radius:0 6px 6px 3px; padding: 9px clamp(18px,2vw,31px); box-shadow: 0 3px 0 -1px #c5c8bf,0 7px 0 -3px #e9e5d9,0 14px 26px -17px #31455188; }
.crm-entry { padding:16px 0; }
.crm-entry + .crm-entry { border-top:1px solid #d4d5ca; }
.crm-entry h4 { font-size:.91rem; font-weight:650; color:#39566c; }
.crm-entry p { margin-top:6px; font-size:clamp(17px,1.35vw,21px); line-height:1.35; }
.crm-hub { display:grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:clamp(28px,5.8vw,92px); padding-block:clamp(45px,5.8vw,88px); border-block:1px solid #c8d3d8; background:#f1f4f3; }
.crm-hub-copy p { margin-top:16px; color:#39576a; max-width:48ch; }
.crm-board { background:#113349; border:1px solid #193d52; border-radius:12px; overflow:hidden; box-shadow:0 16px 34px -24px #243e4c88; }
.crm-board figcaption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; color:#fff; padding:20px 23px; align-items:baseline; }
.crm-board figcaption strong { font-size:1.18rem; font-weight:550; }
.crm-board figcaption span { color:#cee0e8; font-size:.85rem; }
.crm-lanes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:#e7edf0; }
.crm-lane { padding:18px 10px 24px; border-inline-end:1px solid #c7d6dc; }
.crm-lane:last-child { border:0; }
.crm-lane strong { display:block; font-size:.87rem; margin-bottom:15px; font-weight:550; }
.crm-lane > span { display:block; padding:12px 6px; background:white; border:1px solid #cad5d9; border-radius:5px; font-size:.89rem; font-weight:550; overflow-wrap:anywhere; }
.crm-lane-current { background:#dce8f3; }
.crm-lane-current > span { border:1px solid #6488aa; border-inline-start:4px solid #225991; }
.crm-board-focus { padding:18px 23px 23px; background:white; }
.crm-board-focus p { margin-top:6px; font-size:clamp(17px,1.45vw,22px); max-width:34ch; line-height:1.35; }
.crm-bottom { display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(30px,8vw,150px); padding-block:clamp(55px,7.5vw,112px); }
.crm-bottom .button { margin-top:25px; }
.crm-answers details { border-top:1px solid #bfcdd2; }
.crm-answers details:last-child { border-bottom:1px solid #bfcdd2; }
.crm-answers summary { padding:18px 0; list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:15px; font-size:clamp(17px,1.4vw,22px); font-weight:550; }
.crm-answers summary::-webkit-details-marker { display:none; }
.crm-answers summary::after { content:'+'; }
.crm-answers [open] summary::after { content:'−'; }
.crm-answers p { padding:0 1.5rem 20px 0; color:#39576a; }
.crm-answers p a { text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 800px) {
  .crm-guide { padding-top:78px; }
  .crm-hero { width:calc(100% - 16px); border-radius:10px; display:flex; flex-direction:column; background:#1e374c; }
  .crm-hero-art { position:static; z-index:auto; height:clamp(190px,52vw,320px); width:130%; max-width:none; margin-left:-30%; object-fit:cover; object-position:center 18%; }
  .crm-hero::before { display:none; }
  .crm-hero-copy { width:auto; min-height:0; padding:25px 23px 29px; }
  .crm-back { margin-bottom:17px; }
  .crm-hero h1 { font-size:clamp(41px,8.5vw,61px); }
  .crm-hero-copy p { margin-top:13px; }
  .crm-hero-link { margin-top:13px; }
  .crm-section-head,.crm-record,.crm-hub,.crm-bottom { grid-template-columns:1fr; }
  .crm-section-head { gap:14px; }
  .crm-dialog { padding:23px; }
  .crm-switch { margin:8px 0 18px; }
  .crm-folio { padding:18px 20px 28px; }
  .crm-hub,.crm-bottom { gap:27px; }
}
@media (max-width: 400px) {
  .crm-lane { padding:14px 5px 20px; }
  .crm-lane > span { font-size:.78rem; padding:9px 4px; }
  .crm-board figcaption,.crm-board-focus { padding-inline:16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .crm-record .crm-event { animation: crm-open .24s ease-out; }
  @keyframes crm-open { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}
