/* ─────────── Product pages (capabilities/*) ───────────
   Sits on the sand frame from components.css. Each page sets data-stage on
   <main>; the stage picks the same color as its tab on the homepage suite. */

.pp { --st1: #DFECD7; --st2: #AED6B9; --st3: #2C8A60; --stc: #1E7A55; }
.pp[data-stage=prior] { --st1: #EEF1DC; --st2: #E3DDA0; --st3: #C9A23F; --stc: #D9822B; }
.pp[data-stage=questionnaire] { --st1: #EFEAF8; --st2: #CFC0F1; --st3: #7A5CD6; --stc: #7A5CD6; }
.pp[data-stage=checklist] { --st1: #E7EFF8; --st2: #B9D3F0; --st3: #2F7DD1; --stc: #2F7DD1; }
.pp[data-stage=workpapers] { --st1: #E3F2EE; --st2: #AADCD2; --st3: #14968A; --stc: #14968A; }
.pp[data-stage=delivery] { --st1: #F8EAE5; --st2: #F1C3B7; --st3: #E0574A; --stc: #E0574A; }

/* App-style icon tile, as on the homepage tabs */
.pp-ico { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--stc)) 78%, #fff), var(--c, var(--stc))); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12); }
.pp-ico i { font-size: 17px; color: #fff; }

/* ── Hero: product chip, big headline, one line, buttons ── */
.pp .cap-hero { background: transparent; padding-top: 112px; padding-bottom: 88px; text-align: center; }
.pp .cap-hero__inner { max-width: 880px; margin: 0 auto; }
.pp .cap-hero__crumbs { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--sand-2); border: 1px solid var(--line); font: 500 14px/1 var(--ff-sans); color: var(--grove-9); text-decoration: none; }
.pp .cap-hero__crumbs .pp-ico { width: 26px; height: 26px; border-radius: 999px; }
.pp .cap-hero__crumbs .pp-ico i { font-size: 14px; }
.pp .cap-hero__title { font: 400 clamp(44px, 6vw, 80px)/1.02 var(--ff-display); letter-spacing: -0.025em; color: var(--grove-9); margin: 0 0 22px; text-wrap: balance; }
.pp .cap-hero__sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--fg-3); max-width: 36em; margin: 0 auto 34px; text-wrap: pretty; }
.pp .cap-hero__ctas { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── Demo: the live mock on the stage gradient, framed like the homepage suite ── */
.pp .cap-demo { padding: 0 !important; background: transparent; }
.pp .cap-demo__inner { max-width: none; margin: 0; padding: 0; }
.pp .pp-strip { height: 36px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(-45deg, var(--hatch) 0 1px, transparent 1px 7px); }
.pp .cap-demo__stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 72px 40px 80px; isolation: isolate;
  background:
    radial-gradient(55% 60% at 15% 10%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(70% 75% at 92% 100%, var(--st3) 0%, transparent 72%),
    radial-gradient(60% 60% at 62% 42%, var(--st2) 0%, transparent 75%),
    linear-gradient(160deg, var(--st1) 0%, var(--st2) 55%, color-mix(in srgb, var(--st3) 55%, var(--st2)) 100%); }
.pp .cap-demo__stage::before, .pp .cap-demo__stage::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.pp .cap-demo__stage::before { width: 1100px; height: 1100px; left: -30%; top: 18%; border: 1px solid rgba(255,255,255,.6); }
.pp .cap-demo__stage::after { width: 700px; height: 700px; right: -12%; top: -30%; border: 1px solid rgba(255,255,255,.4); }
.pp .cap-demo__stage > * { position: relative; z-index: 1; }
.pp .cap-demo__cap { display: none; }

/* ── How it works: heading, then numbered joined cells ── */
.pp .cap-how, .pp .cap-deep, .pp .cap-related { background: transparent; padding-top: 104px; padding-bottom: 104px; }
.pp .cap-how__inner, .pp .cap-deep__inner, .pp .cap-related__inner { max-width: none; }
.pp .cap-how__head, .pp .cap-deep__head, .pp .cap-related__head { max-width: 760px; margin: 0 0 48px; text-align: left; }
.pp .cap-how__head h2, .pp .cap-deep__head h2, .pp .cap-related__head h2 { font: 400 clamp(32px, 3.8vw, 52px)/1.06 var(--ff-display); letter-spacing: -0.02em; color: var(--grove-9); margin: 0; text-wrap: balance; }
.pp .cap-how__grid, .pp .cap-deep__grid, .pp .cap-related__grid { display: grid; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pp .cap-how__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp .cap-how__step { padding: 36px 36px 40px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transition: background .3s; }
.pp .cap-how__step:hover { background: var(--sand-2); }
.pp .cap-how__num { display: block; margin: 0 0 48px; font: 400 44px/1 var(--ff-display); letter-spacing: -0.02em; color: var(--stc); background: none; width: auto; height: auto; border: 0; }
.pp .cap-how__step h3 { font: 400 clamp(20px, 1.8vw, 24px)/1.2 var(--ff-display); letter-spacing: -0.01em; color: var(--grove-9); margin: 0 0 10px; }
.pp .cap-how__step p { font-size: 16px; line-height: 1.6; color: var(--fg-3); margin: 0; }

/* ── Features: 3 x 2 joined cells with icon tiles in the stage color ── */
.pp .cap-deep__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp .cap-deep__card, .pp .cap-deep__card:has(> .cap-deep__icon) { display: block; padding: 32px 32px 36px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transition: background .3s; }
.pp .cap-deep__card:hover { background: var(--sand-2); transform: none; }
.pp .cap-deep__icon { grid-row: auto; padding: 0; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 28px; border-radius: 10px; background: color-mix(in srgb, var(--stc) 14%, #fff); color: var(--stc); border: 0; }
.pp .cap-deep__icon i { font-size: 19px; color: inherit; }
.pp .cap-deep__card h3 { font: 500 17px/1.3 var(--ff-sans); color: var(--grove-9); margin: 0 0 8px; transition: none; }
.pp .cap-deep__card p { transition: none; }
.pp .cap-deep__card p { font-size: 15px; line-height: 1.6; color: var(--fg-3); margin: 0; }

/* ── Related products: cells with each product's own icon color ── */
.pp .cap-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp .cap-related__card { display: flex; flex-direction: column; gap: 0; padding: 32px 32px 36px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; text-decoration: none; color: inherit; transition: background .3s; }
.pp .cap-related__card:hover { background: var(--sand-2); transform: none; }
.pp .cap-related__card-icon { margin: 0 0 28px; background: none; width: auto; height: auto; border: 0; }
.pp .cap-related__card h3 { font: 400 22px/1.2 var(--ff-display); letter-spacing: -0.01em; color: var(--grove-9); margin: 0 0 8px; }
.pp .cap-related__card p { font-size: 15px; line-height: 1.6; color: var(--fg-3); margin: 0 0 20px; }
.pp .cap-related__card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--grove-7); }
.pp .cap-related__card:hover .cap-related__card-link i { transform: translateX(3px); }
.pp .cap-related__card-link i { transition: transform .25s cubic-bezier(.16,1,.3,1); }

@media (max-width: 900px) {
  .pp .cap-hero { padding-top: 72px; padding-bottom: 56px; }
  .pp .cap-demo__stage { padding: 40px 12px 48px; }
  .pp .cap-how, .pp .cap-deep, .pp .cap-related { padding-top: 72px; padding-bottom: 72px; }
  .pp .cap-how__grid, .pp .cap-deep__grid, .pp .cap-related__grid { grid-template-columns: 1fr; }
  .pp .cap-how__num { margin-bottom: 24px; }
  .pp .cap-how__step, .pp .cap-deep__card, .pp .cap-related__card { padding: 26px 22px 30px; }
}

/* Cards in a row line up: icon, title and text share rows across the grid (no zigzag) */
.pp .cap-deep__grid { grid-auto-rows: auto; }
.pp .cap-deep__card, .pp .cap-deep__card:has(> .cap-deep__icon) { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: 1fr; row-gap: 0; align-content: start; }
.pp .cap-deep__card > .cap-deep__icon { align-self: start; }
.pp .cap-deep__card > h3 { align-self: start; }
.pp .cap-how__grid { grid-auto-rows: auto; }
.pp .cap-how__step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
/* Everything in a grid appears together rather than one after another */
.pp .cap-deep__card[data-rv], .pp .cap-how__step[data-rv], .pp .cap-related__card[data-rv] { transition-delay: 0s !important; }

/* Related: the "See the full workflow" link sits on the right edge, level with the heading */
.pp .cap-related__head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
@media (max-width: 600px) { .pp .cap-related__head { flex-direction: column; align-items: flex-start; } }

/* Demo on desktop: like every illustration, the mock enters from the bottom-right, 64px clear at the top and left */
@media (min-width: 901px) {
  .pp .cap-demo__stage { display: block; height: 680px; padding: 64px 0 0 64px; }
  .pp .cap-demo__stage > *:not(:empty) { width: calc(100% - 63px) !important; max-width: none !important; margin: 0 !important; }
}

/* Product heroes: a blurred glow in the stage color rises from the bottom edge; two layers drift and morph behind the text */
.pp > section.cap-hero, .pp > section.x-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 176px; }
@media (max-width: 900px) { .pp > section.cap-hero, .pp > section.x-hero { padding-bottom: 128px; } }
.pcx { --st1: #E7EFF8; --st2: #B9D3F0; --st3: #3492EF; --stc: #2F7DD1; }
/* Hero tags as calm pills */
.pp-tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pp-tags li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(20,20,10,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 14px/1 var(--ff-sans); color: var(--grove-9); }
.pp-tags i { font-size: 14px; color: var(--grove-6); }
.pp-tags .pp-tags__soon { color: var(--fg-3); } .pp-tags .pp-tags__soon i { color: var(--fg-4); }

/* How it works: three illustrated cards per product page; a sheet enters from the bottom-right, caption below */
.pp .cap-how__grid:has(.hs-card) { gap: 40px 24px; border: 0; }
.pp .cap-how__step.hs-card { display: block; grid-row: auto; padding: 0; border: 0; background: transparent; }
.pp .cap-how__step.hs-card:hover { background: transparent; }
.pp .hs-card .cap-how__num { margin: 22px 0 10px; font-size: 30px; }
.hs-vis { position: relative; height: 300px; overflow: hidden; border-radius: 16px; border: 1px solid rgba(20,20,10,.06);
  background: radial-gradient(60% 70% at 15% 10%, rgba(255,255,255,.7) 0%, transparent 70%), radial-gradient(70% 75% at 92% 100%, color-mix(in srgb, var(--st3) 70%, transparent) 0%, transparent 72%), linear-gradient(160deg, var(--st1) 0%, var(--st2) 100%); }
.hs { position: absolute; top: 48px; left: 48px; right: -1px; bottom: -1px; padding: 22px 24px; border-radius: 16px 0 0 0; overflow: hidden; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(20,20,10,.05), 0 30px 60px -30px rgba(20,20,10,.3); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hs small { display: block; font: 400 12.5px/1.3 var(--ff-sans); color: var(--fg-4); }
.hs-h { width: 100%; padding-bottom: 10px; border-bottom: 1px solid rgba(20,20,10,.07); }
.hs-h b { display: block; font: 500 15px/1.3 var(--ff-sans); color: var(--grove-9); }
.hs-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0; }
.hs-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-size: 16px; }
.hs-t { flex: 1; min-width: 0; display: grid; }
.hs-t b { font: 500 14px/1.25 var(--ff-sans); color: var(--grove-9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-t s { font: 400 11.5px/1.3 var(--ff-mono); color: var(--fg-4); }
.hs-ok { flex: none; font-size: 15px; color: var(--grove-6); }
.hs-tag { flex: none; font: 500 11.5px/1 var(--ff-sans); font-style: normal; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--stc) 12%, #fff); color: color-mix(in srgb, var(--stc) 80%, #000); }
.hs-tag--warn { background: #FFF1D6; color: #9A6200; }
.hs-row--flat { padding-top: 8px; border-top: 1px solid rgba(20,20,10,.06); }
.hs-drop { width: 100%; display: grid; justify-items: start; gap: 4px; padding: 16px; border: 1.5px dashed color-mix(in srgb, var(--stc) 45%, #fff); border-radius: 12px; background: color-mix(in srgb, var(--stc) 5%, #fff); }
.hs-drop i { font-size: 20px; color: var(--stc); margin-bottom: 4px; } .hs-drop b { font: 500 14px/1.2 var(--ff-sans); color: var(--grove-9); }
.hs-big { font: 400 40px/1 var(--ff-display); letter-spacing: -.02em; color: var(--grove-9); margin-top: 4px; }
.hs-cap { margin-top: -4px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { position: relative; padding: 8px 13px; border-radius: 999px; background: rgba(20,20,10,.05); font: 500 13px/1 var(--ff-sans); color: var(--grove-9); }
.hs-chip--on { background: var(--stc); color: #fff; }
.hs-chip--fact { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--stc) 10%, #fff); }
.hs-chip--fact i { color: var(--stc); font-size: 12px; }
.hs-bub { margin: 0; max-width: 260px; padding: 12px 14px; border-radius: 16px 16px 16px 5px; background: #F2F0EB; font: 400 14.5px/1.4 var(--ff-sans); color: var(--grove-9); }
.hs-bub--note { border-radius: 16px 16px 5px 16px; background: color-mix(in srgb, var(--stc) 10%, #fff); font-size: 13.5px; }
.hs-note { display: flex; align-items: center; gap: 6px; margin: 0; font: 500 12.5px/1 var(--ff-sans); color: var(--fg-4); }
.hs-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #F4F3EF; font: 500 13px/1 var(--ff-mono); color: var(--grove-9); }
.hs-btn { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 9px; background: rgba(20,20,10,.05); font: 500 14px/1 var(--ff-sans); color: var(--grove-9); z-index: 0; }
.hs-btn--on { background: var(--grove-8); color: #fff; }
.hs-btn--on::after { content: ""; position: absolute; inset: -6px; border-radius: 13px; background: rgba(44,138,96,.16); z-index: -1; }
.hs-btns { display: flex; gap: 8px; margin-top: 4px; }
.hs-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(20,20,10,.07); } .hs-bar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--stc); }
.hs-tg { display: grid; place-items: center; flex: none; min-width: 34px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--stc) 12%, #fff); font: 600 11px/1 var(--ff-mono); color: color-mix(in srgb, var(--stc) 80%, #000); }
.hs-doc { width: 100%; padding: 14px; border-radius: 12px; background: #FAF9F6; border: 1px solid rgba(20,20,10,.06); display: grid; gap: 6px; justify-items: start; }
.hs-doc b { font: 500 22px/1 var(--ff-mono); color: var(--grove-9); }
.hs-tick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(44,138,96,.12); font: 500 12px/1 var(--ff-sans); color: var(--grove-7); }
.hs-rec { position: relative; width: 100%; height: 130px; border-radius: 12px; background: linear-gradient(160deg, #2B2B29, #1A1A19); display: flex; align-items: flex-start; gap: 8px; padding: 12px; color: #fff; font: 600 12px/1 var(--ff-mono); }
.hs-rec__dot { width: 9px; height: 9px; border-radius: 50%; background: #E0574A; margin-top: 1px; }
.hs-rec__face { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 22px; }
/* Motion: plays once in view; off for reduced motion */
@keyframes hsSheet { from { opacity: 0; translate: 26px 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes hsUp { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes hsPop { 0% { scale: .5; opacity: 0; } 70% { scale: 1.15; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes hsFill { from { width: 0; } }
@keyframes hsHalo { 0%, 100% { opacity: .55; scale: 1; } 50% { opacity: 1; scale: 1.07; } }
@keyframes hsBlink { 50% { opacity: .2; } }
.hs-motion .hs-card:not(.is-on) .hs { opacity: 0; }
.hs-motion .hs-card.is-on .hs { animation: hsSheet .8s cubic-bezier(.2,.8,.2,1) both; }
.hs-motion .hs-card.is-on .hs > * { animation: hsUp .5s both; }
.hs-motion .hs-card.is-on .hs > :nth-child(2) { animation-delay: .35s; } .hs-motion .hs-card.is-on .hs > :nth-child(3) { animation-delay: .55s; }
.hs-motion .hs-card.is-on .hs > :nth-child(4) { animation-delay: .75s; } .hs-motion .hs-card.is-on .hs > :nth-child(5) { animation-delay: .95s; }
.hs-motion .hs-card.is-on .hs-ok { animation: hsPop .45s 1.1s both; }
.hs-motion .hs-card.is-on .hs-tag { animation: hsPop .45s 1.2s both; }
.hs-motion .hs-card.is-on .hs-bar i { animation: hsFill 1.2s .5s cubic-bezier(.2,.8,.2,1) both; }
.hs-motion .hs-card.is-on .hs-btn--on::after { animation: hsHalo 2.6s 1.2s ease-in-out infinite; }
.hs-motion .hs-card.is-on .hs-chip--on { animation: hsPop .45s 1s both; }
.hs-rec__dot { animation: hsBlink 1.2s steps(2) infinite; }
.hs-motion .hs-card.is-on .hs-tick { animation: hsPop .45s 1.1s both; }
@media (prefers-reduced-motion: reduce) { .hs-rec__dot { animation: none; } }
@media (max-width: 900px) { .pp .cap-how__grid:has(.hs-card) { grid-template-columns: 1fr; gap: 32px; } .hs-vis { height: 280px; } .hs { top: 28px; left: 24px; } }
