/* V7 homepage: founder story, partner credentials, FAQ. Ported from the prototype (src/css/13-home-cred.css), default display only. */

#p-home-cred{overflow-x:clip}
#p-home-cred .hcr{padding-top:var(--sec)}
#p-home-cred .hcr-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,500px);gap:clamp(28px,4cqi,56px);align-items:end;border-bottom:1px solid var(--line)}
#p-home-cred .hcr-tx{padding-bottom:clamp(32px,3.4cqi,48px);align-self:center}
#p-home-cred .hcr-h{white-space:normal;text-wrap:balance}
#p-home-cred .hcr-fact{margin:14px 0 0;font:400 var(--t-lede)/1.45 var(--f);color:var(--mute);max-width:34em;text-wrap:pretty}
#p-home-cred .hcr-q{margin:clamp(24px,2.6cqi,36px) 0 0;padding:0}
#p-home-cred .hcr-q p{margin:0;font:400 clamp(22px,2.2cqi,32px)/1.28 var(--f);letter-spacing:-.02em;color:var(--ink);text-wrap:pretty;max-width:24em}
#p-home-cred .hcr-q footer{margin-top:16px;font:500 16px/1.3 var(--f);color:var(--ink)}
#p-home-cred .hcr-q footer span{font-weight:400;color:var(--mute)}
#p-home-cred .hcr-q footer .hcr-since{font-size:14px}
#p-home-cred .hcr-story{margin-top:18px}
#p-home-cred .hcr-only{margin:clamp(24px,2.6cqi,36px) 0 0;font:500 clamp(19px,1.7cqi,24px)/1.3 var(--f);letter-spacing:-.015em;color:var(--heat)}
#p-home-cred .hcr-ph{position:relative;align-self:end;justify-self:end;width:100%;max-width:500px;aspect-ratio:1}
#p-home-cred .hcr-px{position:absolute;inset:0;width:100%;height:100%;z-index:0}
#p-home-cred .hcr-ph img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;object-position:bottom;display:block}
/* partner credentials, typeset (Kriste 10-21): the platform mark in one ink + the credential name in two lines,
   hairline dividers, no badge art. Status still to confirm before launch. */
#p-home-cred .hcr-badges{display:flex;flex-wrap:wrap;align-items:center;gap:16px 0;padding-block:26px 16px}
#p-home-cred .hcr-spk{margin:0;padding-bottom:clamp(28px,2.6cqi,36px);font:400 14px/1.45 var(--f);color:var(--ink-2)}
#p-home-cred .hcr-cred{display:flex;align-items:center;gap:13px;min-height:40px;padding-inline:clamp(22px,2.6cqi,40px);border-left:1px solid var(--line)}
#p-home-cred .hcr-cred:first-child{padding-left:0;border-left:0}
#p-home-cred .hcr-mark{width:22px;height:22px;flex:none;color:var(--ink)}
#p-home-cred .hcr-cred span{display:grid;gap:2px}
#p-home-cred .hcr-cred b{font:500 14px/1.2 var(--f);color:var(--ink);white-space:nowrap}
#p-home-cred .hcr-cred i{font:400 14px/1.2 var(--f);font-style:normal;color:var(--mute);white-space:nowrap}
.pg[data-page="home"] #p-home-cred .hcr-badges .sg-tag{padding-inline:0}  /* beats the homepage tag padding, so the note sits flush */
/* questions we hear (Kriste 10-21): two columns of hairline rows, every question visible at rest;
   answers open on click, independently. Open cue = the hollow square that fills (no +, chevrons or arrows). */
/* 10-27 (Kriste comment): heading on top, the questions across the full width in rows (3 columns desktop, 2 tablet,
   one list on phone), so there is no empty column under the heading. A row's cells stretch together when one answer
   opens, so the hairlines stay aligned. */
#p-home-cred .hcr-faq{border-top:1px solid var(--line);padding-block:var(--sec);display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(28px,3cqi,44px);align-items:start}
#p-home-cred .hcr-faq-h{margin:0}
#p-home-cred .hcr-faq-list>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(32px,4cqi,64px);align-items:stretch;border-bottom:1px solid var(--line)}
#p-home-cred .hcr-qa{border-top:1px solid var(--line)}
#p-home-cred .hcr-qa-h{margin:0;font:inherit}
#p-home-cred .hcr-qa-b{display:flex;align-items:baseline;gap:14px;width:100%;margin:0;padding:20px 0;border:0;background:none;text-align:left;cursor:pointer;
  font:500 20px/1.3 var(--f);letter-spacing:-.01em;color:var(--ink)}
#p-home-cred .hcr-sq{flex:none;width:10px;height:10px;background:#CDC5B8;transform:translateY(1px);transition:background-color .25s var(--ease)}
#p-home-cred .hcr-qa-b:hover .hcr-sq{background:var(--orange)}
#p-home-cred .hcr-qa-b[aria-expanded="true"] .hcr-sq{background:var(--orange)}
#p-home-cred .hcr-qa-b:focus-visible{outline-offset:4px}
#p-home-cred .hcr-qa-a{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .4s var(--ease),visibility 0s linear .4s}
#p-home-cred .hcr-qa-a.is-open{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .4s var(--ease),visibility 0s}
@media (pointer: fine){ #p-home-cred .hcr-qa-a.is-open{cursor:pointer} }
#p-home-cred .hcr-qa-a>div{overflow:hidden;min-height:0}
#p-home-cred .hcr-qa-a p{margin:0;padding:0 0 4px 24px;font:400 16px/1.6 var(--f);color:var(--ink-2);max-width:40em;text-wrap:pretty}
#p-home-cred .hcr-qa-a .sg-link{margin:12px 0 0 24px;font-size:16px}
#p-home-cred .hcr-qa-a>div>:last-child{margin-bottom:22px}
/* V5 (Jev item 6): phone shows the first four questions, then "More questions" */
#p-home-cred .hcr-more{display:none}
@container site (max-width: 600px){
  #p-home-cred .hcr-faq-list:not(.is-more) .hcr-qa:nth-child(n+5){display:none}
  #p-home-cred .hcr-more{all:unset;box-sizing:border-box;display:flex;align-items:center;min-height:44px;margin-top:8px;font:500 16px/1.3 var(--f);color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer}
  #p-home-cred .hcr-faq-list.is-more .hcr-more{display:none}
  #p-home-cred .hcr-more:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
}
@media (prefers-reduced-motion: reduce){ #p-home-cred .hcr-qa-a,#p-home-cred .hcr-qa-a.is-open{transition:none} }
@container site (max-width: 960px){
  #p-home-cred .hcr-faq{grid-template-columns:minmax(0,1fr)}
  #p-home-cred .hcr-faq-list>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  #p-home-cred .hcr-in{grid-template-columns:minmax(0,1fr);align-items:start}
  #p-home-cred .hcr-ph{order:2;max-width:380px;justify-self:center}
  @container site (max-width: 600px){ #p-home-cred .hcr-ph{max-width:160px} }  /* r30 (Kriste 11-16): 220 -> 160, a shorter founder block */  /* 10-28 (Chris): the photo no longer fills the phone screen */
  #p-home-cred .hcr-h{white-space:normal}
}
/* r48 (Chris D. 11-20, comment e5b22e08 "I'd love to see all of the FAQs listed vertically from top to bottom with the first FAQ
   already unrolled"): one list, one question per row, on every width; the first answer is open when the page loads. */
#p-home-cred .hcr-faq-list>div{grid-template-columns:minmax(0,1fr)}
#p-home-cred .hcr-qa-a p{max-width:46em}
/* r50 (Kriste 11-20, comment 4cc01274 "Why don't you use the full width of the page for this section? Why is the text so compacted
   and so cluttered in one space?"; replaces r49's centred column). Desktop and tablet: two panes across the full width. Left = every
   question, one per row, top to bottom (Chris D.'s list); right = the open answer in larger type. The first answer is open on load and
   one answer is open at a time. Phone keeps the r48 accordion list. */
@container site (min-width: 601px){
  #p-home-cred .hcr-faq-h{text-align:center}
  #p-home-cred .hcr-faq-list>div{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(40px,6cqi,96px);border-bottom:0;align-items:start}
  #p-home-cred .hcr-qa{display:contents}
  #p-home-cred .hcr-qa-h{grid-column:1;border-top:1px solid var(--line)}
  #p-home-cred .hcr-qa:last-child .hcr-qa-h{border-bottom:1px solid var(--line)}
  #p-home-cred .hcr-qa-b{padding-block:22px;color:var(--ink-2);transition:color .25s var(--ease)}
  #p-home-cred .hcr-qa-b:hover,#p-home-cred .hcr-qa-b[aria-expanded="true"]{color:var(--ink)}
  #p-home-cred .hcr-qa-a{grid-column:2;grid-row:1 / span 6;align-self:start;display:block;opacity:0;visibility:hidden;transition:opacity .35s var(--ease),visibility 0s linear .35s;padding-top:20px}
  #p-home-cred .hcr-qa-a.is-open{opacity:1;visibility:visible;transition:opacity .35s var(--ease),visibility 0s}
  #p-home-cred .hcr-qa-a>div{overflow:visible}
  #p-home-cred .hcr-qa-a p{padding:0;max-width:34em;font-size:clamp(19px,1.5cqi,22px);line-height:1.55;color:var(--ink)}
  #p-home-cred .hcr-qa-a .sg-link{margin:20px 0 0}
  #p-home-cred .hcr-qa-a>div>:last-child{margin-bottom:0}
  @media (pointer: fine){ #p-home-cred .hcr-qa-a.is-open{cursor:auto} }
}
@container site (max-width: 600px){
  #p-home-cred .hcr-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
  #p-home-cred .hcr-cred,#p-home-cred .hcr-cred:first-child{padding:0;border-left:0}
  #p-home-cred .hcr-badges .sg-tag{margin-left:0;justify-self:start}
  /* phone: the founder block is centred (Kriste 10-21); the FAQ rows stay left, they are a reading list */
  #p-home-cred .hcr-in{gap:24px}
  #p-home-cred .hcr-tx{text-align:center;padding-bottom:0}
  #p-home-cred .hcr-fact,#p-home-cred .hcr-q p{margin-inline:auto}
  #p-home-cred .hcr-only{color:var(--label)}  /* 19px on phone is below large-type size, so the 4.5:1 orange (heat is 4.3:1) */
  #p-home-cred .hcr-q footer .hcr-since{display:block;margin-top:4px}
  #p-home-cred .hcr-badges{grid-template-columns:repeat(2,auto);justify-content:center;gap:20px 28px}
  #p-home-cred .hcr-badges .sg-tag{grid-column:1/-1;justify-self:center}
  #p-home-cred .hcr-spk{text-align:center}
  #p-home-cred .hcr-faq-h{text-align:center}
  #p-home-cred .hcr-faq{padding-bottom:0;gap:24px}
  /* phone: back to one hairline list (four questions + More questions) */
  #p-home-cred .hcr-faq-list{border-top:1px solid var(--line)}
  #p-home-cred .hcr-faq-list>div{display:block;border-bottom:0}
  #p-home-cred .hcr-qa{border-top:0;border-bottom:1px solid var(--line)}
  #p-home-cred .hcr-qa-b{font-size:17px;padding:18px 0}
  #p-home-cred .hcr-qa-b:hover .hcr-sq{background:#CDC5B8}
  #p-home-cred .hcr-qa-b[aria-expanded="true"] .hcr-sq{background:var(--orange)}
}

/* Kriste 10-22 (comment 55c1f02f): the pixels behind Eric drift slowly, almost invisible. Desktop and tablet only
   (phone keeps one moving thing per screen); reduced motion = still. Opacity attributes stay, only fill-opacity breathes. */
@keyframes hcr-drift{0%,100%{transform:translate(0,0);fill-opacity:1}50%{transform:translate(0,-5px);fill-opacity:.55}}
@keyframes hcr-drift-x{0%,100%{transform:translate(0,0);fill-opacity:1}50%{transform:translate(4px,0);fill-opacity:.6}}
#p-home-cred .hcr-px rect{transform-box:fill-box;animation:hcr-drift 11s ease-in-out infinite}
#p-home-cred .hcr-px rect:nth-child(3n){animation-duration:14s;animation-delay:-4s}
#p-home-cred .hcr-px rect:nth-child(3n+1){animation-duration:9s;animation-delay:-7s}
#p-home-cred .hcr-px rect:nth-child(4n){transform-origin:center;animation-name:hcr-drift-x}
@container site (max-width:600px){#p-home-cred .hcr-px rect{animation:none}}
@media (prefers-reduced-motion:reduce){#p-home-cred .hcr-px rect{animation:none}}

/* V7 11-12 (Kriste a905bb6f): the headline runs the full width above the story and the photo (it used the narrow text
   column and set in four lines, with empty space above Eric's head) */
#p-home-cred .hcr-in>.hcr-h{grid-column:1/-1;margin:0;max-width:none}
#p-home-cred .hcr-in>.hcr-h+.hcr-tx .hcr-fact{margin-top:0}
@container site (max-width: 600px){ #p-home-cred .hcr-in>.hcr-h{text-align:center} }

#p-home-cred .hcr-in>.hcr-h+.hcr-tx{align-self:start;padding-top:4px}
#p-home-cred .hcr-in:has(>.hcr-h){row-gap:clamp(20px,2cqi,28px)}
/* V7 r20/r24: partner badges, the default one-row display (review options Grouped / Running not shipped) */
#p-home-cred .hcr-track,#p-home-cred .hcr-set{display:contents}
/* r24 One row (default): seven equal cells, icon over the name */
@container site (min-width: 961px){
  #p-home-cred .hcr-badges{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;align-items:start}
  #p-home-cred .hcr-cred{flex-direction:column;align-items:flex-start;gap:10px;min-height:0;padding:2px clamp(12px,1.4cqi,20px)}
  #p-home-cred .hcr-cred:first-child{padding-left:0}
  #p-home-cred .hcr-cred b,#p-home-cred .hcr-cred i{white-space:normal}
}
@container site (max-width: 960px){
  #p-home-cred .hcr-badges{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;gap:0;padding-inline:0;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
  #p-home-cred .hcr-badges::-webkit-scrollbar{display:none}
  #p-home-cred .hcr-cred,#p-home-cred .hcr-cred:first-child{flex:none;flex-direction:column;align-items:flex-start;gap:10px;scroll-snap-align:start;
    padding:2px 22px;border-left:1px solid var(--line)}
  #p-home-cred .hcr-cred:first-child{padding-left:0;border-left:0}
}
/* r26 (Kriste 4b62a3f5): the speaking line centred and bold, like the proof line above the logos */
#p-home-cred .hcr-spk{text-align:center;font:600 16px/1.45 var(--f);color:var(--ink);padding-top:6px}

/* r40 H (phone alignment): the follow-on link under the questions sits on the centre axis */
@container site (max-width: 600px){ #p-home-cred .hcr-more{display:flex;margin-inline:auto} }

/* WP theme leak guard (main-home-v3.css: a:hover recolours links and drops the underline; svg boxed at 1em; reset strips bold). */
:where(#p-home-cred) a.sg-link:hover{color:var(--ink);text-decoration-line:underline}
:where(#p-home-cred) svg{width:auto;height:auto;display:inline;position:static}
:where(#p-home-cred) b{font-weight:bolder}
:where(#p-home-cred) .hcr-qa-b:focus{outline:none}
:where(#p-home-cred) .hcr-qa-b:focus-visible{outline:2px solid var(--orange)}
