/* Product, workspace and solution pages: a sleek product-page layout over the
   same words and headings as before (nothing hidden, nothing removed).
   One centred reading column; pictures, tables and demos run wider on a calm
   surface; the contents list sits on top as one quiet row; the side box moves to
   the end as a finished band. Loaded only on the pages with a moving header
   (scripts/build-marketing.mjs), after design, journal-shared, site-system and
   growth, so every rule here is scoped to .solution-page and wins by order. */

.solution-page{
  --pp-text:720px;
  --pp-wide:1040px;
  --pp-ink:var(--site-ink,#0f0f10);
  --pp-ink-2:var(--site-secondary,#2b2d31);
  --pp-muted:var(--site-muted,#6b6f76);
  --pp-line:var(--site-border,rgba(15,15,16,.12));
  --pp-surface:var(--site-surface,#f4f5f6);
  --pp-paper:var(--site-paper,#fff);
  --pp-mono:var(--site-mono,'IBM Plex Mono',monospace);
}
/* Wide screens keep a gutter on each side for the docked "On this page" list
   (product-page.js), so pictures and tables never run underneath it. */
@media(min-width:1280px){
  .solution-page{--pp-wide:min(1040px,calc(100vw - 496px))}
}

/* ---------- The product screenshot under the header: centred, and always
   below the moving header visual (.ps-scene in page-scenes.css: 72px from the
   top, clamp(560px,78vh,760px) tall, 520px at 1000px and under). The words
   column reserves that height; the column starts 152px down the header (96px
   padding, eyebrow), counted here as 140px so any error leaves extra room. */
@media(min-width:761px){
  .solution-page .has-scene .solution-hero-grid>div:first-child{
    min-height:calc(clamp(560px,78vh,760px) - 44px - clamp(40px,5vw,64px));
  }
  .solution-page .has-scene .solution-hero-image{
    justify-self:center;
    width:100%;
    max-width:1040px;
    margin-inline:auto;
  }
}
@media(min-width:761px) and (max-width:1000px){
  .solution-page .has-scene .solution-hero-grid>div:first-child{
    min-height:calc(520px - 44px - clamp(40px,5vw,64px));
  }
}

/* ---------- Layout: contents on top, article in the middle, links at the end */
.solution-page .journal .article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"toc" "body" "aside";
  justify-content:stretch;
  gap:0;
  padding-bottom:clamp(72px,9vw,120px);
}
.solution-page .journal .article-layout>.article-toc{grid-area:toc}
.solution-page .journal .article-layout>.article-body{grid-area:body}
.solution-page .journal .article-layout>.article-aside{grid-area:aside}

/* The blog layout makes these two sticky side columns and hides them on smaller
   screens. Here they are ordinary blocks in the page, at every width. */
.solution-page .journal .article-layout>:is(.article-toc,.article-aside){
  display:block;
  position:static;
  top:auto;
  max-height:none;
  overflow:visible;
  align-self:auto;
}

/* ---------- On this page: one quiet row of links above the article */
.solution-page .journal .article-layout>.article-toc{
  position:relative;
  width:100%;
  max-width:var(--pp-wide);
  margin:0 auto;
  padding:16px 0 8px 168px;
  border-top:1px solid var(--pp-line);
  border-bottom:1px solid var(--pp-line);
}
.solution-page .journal .article-toc h2{
  position:absolute;
  top:22px;
  left:0;
  width:132px;
  margin:0;
  font:500 11px/1.6 var(--pp-mono);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--pp-muted);
}
.solution-page .journal .article-toc a{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  margin:0 4px 8px 0;
  padding:4px 11px;
  border:1px solid var(--pp-line);
  border-radius:999px;
  background:var(--pp-paper);
  color:var(--pp-ink-2);
  font-size:13px;
  line-height:1.3;
  white-space:nowrap;
  vertical-align:top;
  transition:border-color .18s,color .18s,background-color .18s;
}
.solution-page .journal .article-toc a:hover,
.solution-page .journal .article-toc a.is-active{
  border-color:var(--pp-ink);
  color:var(--pp-ink);
}
.solution-page .journal .article-toc a:focus-visible{outline:2px solid var(--pp-ink);outline-offset:2px}

/* ---------- The article column */
.solution-page .journal .article-body{
  width:100%;
  max-width:var(--pp-wide);
  margin-inline:auto;
  font-size:18px;
  color:var(--pp-ink-2);
}
/* Words keep a reading measure; pictures, tables and demos may run wider. */
.solution-page .journal .article-body>.solution-lead,
.solution-page .journal .solution-section>*{
  max-width:var(--pp-text);
  margin-inline:auto;
}
.solution-page .journal .solution-section>:is(figure,.table-wrap,.showcase,.workspace-grid){
  max-width:var(--pp-wide);
}

/* The lead: the first words of the page, set larger. */
.solution-page .journal .solution-lead{
  padding:clamp(40px,5vw,64px) 0 0;
}
.solution-page .journal .solution-lead p{
  margin:0 0 20px;
  font-size:clamp(19px,1.6vw,22px);
  line-height:1.55;
  letter-spacing:-.006em;
  color:var(--pp-muted);
}
.solution-page .journal .solution-lead p:first-child{color:var(--pp-ink)}
.solution-page .journal .solution-lead p:last-child{margin-bottom:0}

/* ---------- Sections */
.solution-page .journal .solution-section{
  margin:0;
  padding:clamp(40px,5vw,64px) 0 0;
  border-top:0;
  scroll-margin-top:72px;
}
/* A hairline over each section, as wide as the words. */
.solution-page .journal .solution-section::before{
  content:"";
  display:block;
  max-width:var(--pp-text);
  margin:0 auto clamp(36px,4.5vw,56px);
  border-top:1px solid var(--pp-line);
}
.solution-page .journal .solution-section .growth-number{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  font:500 11px/1.6 var(--pp-mono);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--pp-muted);
}
.solution-page .journal .solution-section .growth-number::before{
  content:"";
  flex:none;
  width:22px;
  height:1px;
  background:currentColor;
}
.solution-page .journal .article-body .solution-section h2{
  margin-top:0;
  margin-bottom:22px;
  font-size:clamp(30px,3.2vw,42px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.032em;
  color:var(--pp-ink);
  text-wrap:balance;
}
.solution-page .journal .solution-section>h3{
  margin:44px auto 12px;
  font-size:21px;
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.015em;
  color:var(--pp-ink);
}
.solution-page .journal .solution-section>p{
  line-height:1.7;
  margin-bottom:22px;
}
.solution-page .journal .solution-section>:is(ul,ol){
  margin-bottom:28px;
  padding-left:22px;
}
.solution-page .journal .solution-section>:is(ul,ol)>li{
  margin-bottom:12px;
  padding-left:6px;
  line-height:1.65;
}
.solution-page .journal .solution-section>:is(ul,ol)>li::marker{color:var(--pp-muted)}
.solution-page .journal .solution-section>ol>li::marker{font:500 14px var(--pp-mono)}
.solution-page .journal .article-body strong{color:var(--pp-ink);font-weight:700}
.solution-page .journal .article-body code{
  padding:1px 6px;
  border:1px solid var(--pp-line);
  border-radius:6px;
  background:var(--pp-surface);
  font:500 .86em var(--pp-mono);
  color:var(--pp-ink);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}

/* A live demo inside the article keeps its own card styles; the article's
   paragraph and list rules from the blog layout must not reach into it. */
.solution-page .journal .article-body .showcase-live{margin:0}
.solution-page .journal .article-body .showcase-kicker{margin:0 0 14px}
.solution-page .journal .article-body .showcase-card-title{margin:0 0 16px;line-height:1.2}
.solution-page .journal .article-body .showcase-steps{list-style:none;margin:0 0 18px;padding:0}
.solution-page .journal .article-body .showcase-steps li{margin:0;padding:0 0 12px 38px;line-height:1.55}
.solution-page .journal .article-body .showcase-inc{margin:0 0 20px;line-height:1.55}
.solution-page .journal .solution-section>.showcase{margin:clamp(36px,4vw,52px) auto}

/* ---------- Pictures on a calm surface */
.solution-page .journal .solution-section figure{
  margin:clamp(36px,4vw,52px) auto;
}
.solution-page .journal .solution-section figure>a{
  display:block;
  padding:clamp(10px,2.6vw,36px);
  border:1px solid var(--pp-line);
  border-radius:20px;
  background:var(--pp-surface);
}
.solution-page .journal .solution-section figure img{
  border:1px solid var(--pp-line);
  border-radius:12px;
  box-shadow:0 1px 2px rgba(15,15,16,.04),0 18px 40px -24px rgba(15,15,16,.22);
}
.solution-page .journal .solution-section figure a:hover img{transform:translateY(-2px)}
.solution-page .journal .solution-section figcaption{
  max-width:var(--pp-text);
  margin:14px auto 0;
  font-size:13px;
  line-height:1.6;
  color:var(--pp-muted);
}

/* ---------- Tables: clean hairline rows */
.solution-page .journal .article-body .table-wrap{
  margin:clamp(32px,4vw,48px) auto;
  border-top:1px solid var(--pp-ink);
}
.solution-page .journal .article-body table{font-size:16px}
.solution-page .journal .article-body :is(th,td){
  padding:16px 20px 16px 0;
  border-bottom:1px solid var(--pp-line);
  line-height:1.55;
}
.solution-page .journal .article-body th{
  padding-top:14px;
  padding-bottom:14px;
  font:500 11px/1.5 var(--pp-mono);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--pp-muted);
}
.solution-page .journal .article-body td{color:var(--pp-ink-2)}
.solution-page .journal .article-body td:first-child{color:var(--pp-ink);font-weight:600}

/* ---------- Notes: one subtle panel */
.solution-page .journal .article-body .note,
.solution-page .journal .article-body .feature-note{
  margin:32px auto;
  padding:22px 26px;
  border:1px solid var(--pp-line);
  border-radius:16px;
  background:var(--pp-surface);
}
.solution-page .journal .article-body .note .micro{
  margin:0 0 8px;
  font:500 11px/1.6 var(--pp-mono);
  letter-spacing:.14em;
  color:var(--pp-muted);
}
.solution-page .journal .article-body .note p:last-child{margin-bottom:0}

/* ---------- "What you never build" style grids: hairline cells, not boxes */
.solution-page .journal .article-body .workspace-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0 32px;
  margin:36px auto 40px;
}
.solution-page .journal .article-body .workspace-grid>div{
  padding:18px 0 20px;
  border:0;
  border-top:1px solid var(--pp-line);
  border-radius:0;
  background:none;
  transform:none;
}
.solution-page .journal .article-body .workspace-grid>div:hover{transform:none}
.solution-page .journal .article-body .workspace-grid strong{font-size:16px}
.solution-page .journal .article-body .workspace-grid span{font-size:15px}

/* ---------- FAQ: accordion rows with hairlines */
.solution-page .journal .article-body .faq-item{
  margin-block:0;
  padding:0;
  border-top:1px solid var(--pp-line);
}
.solution-page .journal .article-body .faq-item:last-of-type{border-bottom:1px solid var(--pp-line)}
.solution-page .journal .article-body .faq-item summary{
  align-items:center;
  margin:0;
  padding:22px 0;
  font-size:18px;
  font-weight:600;
  line-height:1.4;
  color:var(--pp-ink);
}
.solution-page .journal .article-body .faq-item summary span{
  flex:none;
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid var(--pp-line);
  border-radius:50%;
  font-size:16px;
  line-height:1;
  color:var(--pp-muted);
  transition:transform .2s,border-color .2s,color .2s;
}
.solution-page .journal .article-body .faq-item summary:hover{color:var(--pp-ink)}
.solution-page .journal .article-body .faq-item summary:hover span{border-color:var(--pp-ink);color:var(--pp-ink)}
.solution-page .journal .article-body .faq-item[open] summary{margin-bottom:0;padding-bottom:12px}
.solution-page .journal .article-body .faq-item>p{
  max-width:640px;
  margin:0 0 24px;
  color:var(--pp-muted);
}

/* The closing section is the page's call to action: centred, a little larger. */
.solution-page .journal .solution-cta{margin-top:28px}
.solution-page .journal .article-body>.solution-section:last-child:has(.solution-cta){
  padding-top:clamp(56px,7vw,96px);
  text-align:center;
}
.solution-page .journal .article-body>.solution-section:last-child:has(.solution-cta)::before{margin-bottom:clamp(56px,7vw,96px)}
.solution-page .journal .article-body>.solution-section:last-child:has(.solution-cta) .growth-number{justify-content:center}
.solution-page .journal .article-body>.solution-section:last-child:has(.solution-cta) .growth-number::after{
  content:"";flex:none;width:22px;height:1px;background:currentColor;
}
.solution-page .journal .article-body .solution-section:last-child:has(.solution-cta) h2{
  max-width:820px;
  font-size:clamp(34px,4.4vw,56px);
  line-height:1.04;
  letter-spacing:-.04em;
}
.solution-page .journal .article-body>.solution-section:last-child:has(.solution-cta)>p:not(.solution-cta){
  max-width:600px;
  color:var(--pp-muted);
}
.solution-page .journal .article-body>.solution-section:last-child:has(.solution-cta) .solution-cta{justify-content:center}

/* ---------- The end band: one call-to-action strip and a tidy index of links */
.solution-page .journal .article-layout>.article-aside{
  width:100%;
  max-width:var(--pp-wide);
  margin:clamp(72px,9vw,120px) auto 0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(40px,5vw,56px);
}
.solution-page .journal .aside-box{
  margin:0;
  padding:0;
  border:0;
}
.solution-page .journal .aside-box:first-child{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:32px;
  padding:30px 32px;
  border:1px solid var(--pp-line);
  border-radius:20px;
  background:var(--pp-surface);
}
.solution-page .journal .aside-box:first-child h2{
  grid-column:1;
  margin:0 0 6px;
  font:700 24px/1.2 var(--site-font);
  letter-spacing:-.025em;
  text-transform:none;
  color:var(--pp-ink);
}
.solution-page .journal .aside-box:first-child p{
  grid-column:1;
  margin:0;
  font-size:15px;
  line-height:1.55;
  color:var(--pp-muted);
}
.solution-page .journal .aside-box:first-child .btn{
  grid-column:2;
  grid-row:1/span 2;
  white-space:nowrap;
}
.solution-page .journal .aside-box:not(:first-child){
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  column-gap:28px;
}
.solution-page .journal .aside-box:not(:first-child) h2{
  grid-column:1/-1;
  margin:0 0 14px;
  font:500 11px/1.6 var(--pp-mono);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--pp-muted);
}
.solution-page .journal .aside-box:not(:first-child) p{
  margin:0;
  border-top:1px solid var(--pp-line);
}
.solution-page .journal .aside-box:not(:first-child) a{
  display:block;
  padding:13px 0 14px;
  font-size:15px;
  font-weight:500;
  line-height:1.35;
  color:var(--pp-ink-2);
  text-decoration:none;
  text-wrap:balance;
  transition:color .18s;
}
.solution-page .journal .aside-box:not(:first-child) a:hover{color:var(--pp-ink);text-decoration:underline;text-underline-offset:4px}

/* ---------- Tablets and phones */
@media(max-width:820px){
  /* The label sits above the links once there is no room for a label column. */
  .solution-page .journal .article-layout>.article-toc{padding-left:0}
  .solution-page .journal .article-toc h2{position:static;width:auto;margin:0 0 10px}
  .solution-page .journal .aside-box:not(:first-child){grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}
  .solution-page .journal .article-body .workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  /* The label on its own line, then one row of contents that scrolls sideways
     inside itself, never the page. */
  .solution-page .journal .article-layout>.article-toc{
    display:grid;
    grid-auto-flow:column;
    grid-template-rows:auto auto;
    grid-auto-columns:max-content;
    column-gap:6px;
    row-gap:10px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    padding:14px 0;
    -webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);
    mask-image:linear-gradient(90deg,#000 86%,transparent);
  }
  .solution-page .journal .article-layout>.article-toc::-webkit-scrollbar{display:none}
  .solution-page .journal .article-toc h2{position:static;grid-row:1;grid-column:1/span 3;width:auto;margin:0;white-space:nowrap}
  .solution-page .journal .article-toc a{grid-row:2;margin:0}
  .solution-page .journal .article-body{font-size:17px}
  .solution-page .journal .article-body .solution-section h2{font-size:clamp(27px,7.4vw,32px)}
  .solution-page .journal .solution-section figure>a{border-radius:14px}
  .solution-page .journal .solution-section figure img{border-radius:8px}
  .solution-page .journal .article-body .workspace-grid{grid-template-columns:minmax(0,1fr)}
  .solution-page .journal .article-body .faq-item summary{font-size:17px;gap:16px}
  .solution-page .journal .aside-box:first-child{grid-template-columns:minmax(0,1fr);padding:24px 22px 26px}
  .solution-page .journal .aside-box:first-child .btn{grid-column:1;grid-row:auto;justify-self:start;margin-top:18px}
  .solution-page .journal .aside-box:not(:first-child){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
  .solution-page .journal .aside-box:not(:first-child) a{font-size:14.5px}
}
/* A section reached from a contents link takes focus without a ring around it. */
.solution-page .journal .solution-section[tabindex="-1"]:focus{outline:none}

/* ---------- "On this page" follows the reader (product-page.js adds .pp-dock
   once the row at the top of the article has scrolled away).
   Narrower screens: a small button at the bottom right opens a compact list. */
body.solution-page>.pp-dock{
  position:fixed;
  z-index:60; /* under the cookie notice (70) and the site header (100) */
  right:16px;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s,transform .2s,visibility 0s .2s;
}
body.solution-page>.pp-dock.is-shown{
  opacity:1;
  visibility:visible;
  transform:none;
  transition:opacity .2s,transform .2s,visibility 0s;
}
.solution-page .pp-dock-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 18px 0 16px;
  border:0;
  border-radius:999px;
  background:var(--pp-ink);
  color:#fff;
  font:500 14px/1 var(--site-font,'Satoshi',sans-serif);
  box-shadow:0 1px 2px rgba(15,15,16,.12),0 12px 28px -10px rgba(15,15,16,.45);
  cursor:pointer;
  transition:background-color .18s;
}
.solution-page .pp-dock-btn:hover,
.solution-page .pp-dock.is-open .pp-dock-btn{background:var(--pp-ink-2)}
.solution-page .pp-dock-btn:focus-visible{outline:2px solid var(--pp-ink);outline-offset:3px}
.solution-page .pp-dock-icon{
  flex:none;
  width:14px;
  height:10px;
  background:
    linear-gradient(currentColor,currentColor) 0 0/100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 50%/70% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 100%/85% 1.5px no-repeat;
}
.solution-page .pp-dock-nav{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  width:min(340px,calc(100vw - 32px));
  max-height:min(62vh,460px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:14px 6px 6px;
  border:1px solid var(--pp-line);
  border-radius:16px;
  background:var(--pp-paper);
  box-shadow:0 24px 48px -16px rgba(15,15,16,.3);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .18s,transform .18s,visibility 0s .18s;
}
.solution-page .pp-dock.is-open .pp-dock-nav{
  opacity:1;
  visibility:visible;
  transform:none;
  transition:opacity .18s,transform .18s,visibility 0s;
}
.solution-page .pp-dock-label{
  margin:0;
  padding:0 12px 8px;
  font:500 11px/1.6 var(--pp-mono);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--pp-muted);
}
.solution-page .pp-dock-nav a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--pp-ink-2);
  font:400 14px/1.35 var(--site-font,'Satoshi',sans-serif);
  text-decoration:none;
  overflow-wrap:anywhere;
}
.solution-page .pp-dock-nav a:hover{background:var(--pp-surface);color:var(--pp-ink)}
.solution-page .pp-dock-nav a.is-active{background:var(--pp-surface);color:var(--pp-ink);font-weight:600}
.solution-page .pp-dock-nav a:focus-visible{outline:2px solid var(--pp-ink);outline-offset:-2px}

/* Wide screens: a quiet vertical list in the gutter left of the article,
   fixed under the 72px header, with the current section marked. */
@media(min-width:1280px){
  body.solution-page>.pp-dock{
    top:104px;
    bottom:auto;
    right:auto;
    left:max(16px,calc((100vw - var(--pp-wide)) / 2 - 224px));
    width:200px;
    transform:translateX(-6px);
  }
  body.solution-page>.pp-dock.is-shown{transform:none}
  .solution-page .pp-dock-btn{display:none}
  .solution-page .pp-dock-nav{
    position:relative;
    right:auto;
    bottom:auto;
    width:auto;
    max-height:calc(100vh - 136px);
    padding:0 4px 0 0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    opacity:1;
    visibility:inherit;
    transform:none;
    transition:none;
    scrollbar-width:thin;
  }
  .solution-page .pp-dock-label{padding:0 0 12px}
  .solution-page .pp-dock-nav a{
    padding:6px 0 6px 14px;
    border-left:1px solid var(--pp-line);
    border-radius:0;
    font-size:13px;
    line-height:1.4;
    color:var(--pp-muted);
    transition:color .18s,border-color .18s;
  }
  .solution-page .pp-dock-nav a:hover{background:none;color:var(--pp-ink)}
  .solution-page .pp-dock-nav a.is-active{background:none;color:var(--pp-ink);font-weight:500;border-left-color:var(--pp-ink)}
}

@media(prefers-reduced-motion:reduce){
  .solution-page .journal .article-toc a,
  .solution-page .journal .aside-box a,
  .solution-page .journal .article-body .faq-item summary span,
  body.solution-page>.pp-dock,
  body.solution-page>.pp-dock.is-shown,
  .solution-page .pp-dock-nav,
  .solution-page .pp-dock.is-open .pp-dock-nav,
  .solution-page .pp-dock-nav a{transition:none}
}
