/* Stacked HQ site · shared styles. Page layouts keep the v79 inline styles; this file adds the shell, responsive rules and the form. */
:root{--gx:max(80px,calc((100vw - 1280px) / 2))}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:#EEEFF0;color:#121316;font-family:Geist,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%}
:focus-visible{outline:2px solid #C41E3A;outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:#fff;color:#121316;padding:10px 14px;border-radius:10px;font:600 14px Geist}
.skip:focus{left:12px}
.page{overflow:hidden}
.legal-sec,[id]{scroll-margin-top:24px}
/* nav */
.sitenav .navtoggle{display:none}
/* legal */
.legal-toc{position:sticky;top:24px;max-height:calc(100vh - 48px);overflow:auto}
.legal-ul{margin:0;padding:0 0 0 22px;display:flex;flex-direction:column;gap:8px;font:400 17px/1.65 Geist;color:#33363B}
.legal-ul li::marker{color:#6B6E73}
.legal-sec strong{font-weight:600;color:#1C1E22}
.legal-table{overflow-x:auto;border:1px solid rgba(11,11,12,.10);border-radius:16px;background:rgba(255,255,255,.6)}
.legal-table table{width:100%;border-collapse:collapse;font:400 15px/1.5 Geist;color:#33363B}
.legal-table th{font:500 12px Geist Mono;letter-spacing:.1em;text-transform:uppercase;color:#6B6E73;text-align:left;padding:14px 18px;border-bottom:1px solid rgba(11,11,12,.10)}
.legal-table td{padding:14px 18px;border-top:1px solid rgba(11,11,12,.06);vertical-align:top}
.legal-table td:first-child{font-weight:500;color:#1C1E22;width:34%}
mark.ph{background:#FFE58A;color:#3A2E00;padding:1px 6px;border-radius:6px;font:500 .86em Geist Mono;white-space:normal}
/* form */
.cform,.cform *,.fmsg,.legal-table,.legal-table *,.navtoggle,.skip{box-sizing:border-box}
.cform{display:flex;flex-direction:column;gap:22px}
.cform .row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.cform label,.cform legend{display:block;font:500 13px Geist Mono;letter-spacing:.12em;text-transform:uppercase;color:#4B4E54;margin:0 0 8px;padding:0}
.cform .opt{font:400 13px Geist;letter-spacing:0;text-transform:none;color:#6B6E73}
.cform input[type=text],.cform input[type=email],.cform textarea{width:100%;font:400 16px/1.5 Geist;color:#121316;background:#fff;border:1px solid rgba(11,11,12,.16);border-radius:12px;padding:13px 15px;transition:border-color .15s,box-shadow .15s}
.cform textarea{min-height:150px;resize:vertical}
.cform input:focus,.cform textarea:focus{outline:none;border-color:#2B2E33;box-shadow:0 0 0 3px rgba(43,46,51,.12)}
.cform fieldset{border:0;margin:0;padding:0;min-width:0}
.cform .pills{display:flex;flex-wrap:wrap;gap:10px}
.cform .pill{position:relative;margin:0;text-transform:none;letter-spacing:normal}
.cform .pill input{position:absolute;opacity:0;width:1px;height:1px}
.cform .pill span{display:inline-flex;align-items:center;font:500 14px Geist;color:#2B2E33;background:#fff;border:1px solid rgba(11,11,12,.16);border-radius:999px;padding:10px 16px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.cform .pill input:checked+span{background:#26282B;color:#fff;border-color:#26282B}
.cform .pill input:focus-visible+span{outline:2px solid #C41E3A;outline-offset:3px}
.cform .hp{position:absolute !important;left:-10000px !important;width:1px;height:1px;overflow:hidden}
.cform button{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;font:600 15px Geist;padding:14px 22px;border-radius:12px;background:#26282B;color:#fff;border:0;cursor:pointer}
.cform button[disabled]{opacity:.6;cursor:progress}
.cform .note{font:400 14px/1.5 Geist;color:#6B6E73;margin:0}
.fmsg{border-radius:16px;padding:18px 20px;font:400 16px/1.55 Geist}
[hidden]{display:none !important}
.fmsg.ok{background:#E9F4EC;color:#1E4D2B;border:1px solid #BFDCC7}
.fmsg.err{background:#FBEAEC;color:#7A1626;border:1px solid #F0C4CB}
.fmsg a{text-decoration:underline;text-underline-offset:3px}
/* responsive: tablet */
@media (max-width:1100px){
  :root{--gx:40px}
  .r-wrap{white-space:normal !important}
  .r-flexwrap{flex-wrap:wrap !important}
  .r-fluid{max-width:100% !important}
  .r-stack{flex-wrap:wrap !important}
  .r-stack>*{min-width:0}
  .r-stack>.r-col{flex:1 1 300px !important}
  .r-stack>.r-fit:not([data-fw]){flex:none !important}
  .r-pad{padding-left:max(24px,min(4vw,40px)) !important;padding-right:max(24px,min(4vw,40px)) !important}
  .r-grid[data-cols="3"],.r-grid[data-cols="4"],.r-grid[data-cols="5"],.r-grid[data-cols="6"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .r-grid>*{grid-column:auto !important;grid-row:auto !important}
  .legal{flex-direction:column !important;gap:32px !important}
  .legal-toc{position:static;width:100% !important;max-height:none}
  .legal-card{padding:12px 32px !important}
}
@media (max-width:860px){
  .sitenav{flex-wrap:wrap}
  .sitenav .navtoggle{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;border-radius:12px;border:1px solid color-mix(in srgb,var(--navc,#E9EAEC) 28%,transparent);background:transparent;padding:0 11px;cursor:pointer}
  .sitenav .navtoggle span{display:block;height:2px;border-radius:2px;background:var(--navc,#E9EAEC);transition:transform .2s,opacity .2s}
  .sitenav .navtoggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
  .sitenav .navtoggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
  .sitenav .navlinks{display:none !important;order:3;width:100%;flex-direction:column;align-items:stretch !important;gap:4px !important;padding:16px 0 8px}
  .sitenav.open .navlinks{display:flex !important}
  .sitenav .navlinks a{padding:12px 4px;font-size:17px !important}
  .sitenav .navlinks a:last-child{justify-content:center;margin-top:8px}
}
/* responsive: phone */
@media (max-width:640px){
  :root{--gx:20px}
  .r-stack{flex-direction:column !important;align-items:stretch !important;margin-left:0 !important;margin-right:0 !important}
  .r-stack>*,.r-stack>.r-col,.r-stack>.r-fit:not([data-fw]){max-width:100% !important;flex:0 0 auto !important}
  .r-stack>.r-col:not(.r-fit){width:auto !important}
  .r-grid{grid-template-columns:minmax(0,1fr) !important}
  .r-pad{padding-left:20px !important;padding-right:20px !important}
  .r-rad{border-radius:24px !important}
  .legal-card{padding:4px 20px !important;border-radius:24px !important}
  .cform .row{grid-template-columns:1fr}
  .sitefoot{flex-direction:column;gap:40px}
  .sitefoot div{flex-wrap:wrap}
  .sitefoot span,.sitefoot a{white-space:nowrap}
  .r-nobr>br{display:none}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}}
@media (max-width:1100px){.r-autoh{height:auto !important;min-height:var(--h)}}
@media (max-width:640px){.r-autoh{min-height:0 !important}}
/* v1 prep (Nov 27): even card rows on tablet. 4-up rows go 2 across, 3-up rows stay 3 across down to 861px, then 1. Phone rules above still stack to 1. */
@media (min-width:641px) and (max-width:1100px){
  .r-stack:has(>.r-col:nth-child(4):last-child):not(.r-keep4)>.r-col{flex:1 1 calc(50% - 9px) !important;min-width:0}
  .r-stack:has(>.r-col:nth-child(3):last-child):not(:has(>:not(.r-col))):not(:has(>.r-fit)):not(.r-keep4)>.r-col{flex:1 1 0 !important;min-width:0}
}
@media (min-width:641px) and (max-width:860px){
  .r-stack:has(>.r-col:nth-child(3):last-child):not(:has(>:not(.r-col))):not(:has(>.r-fit)):not(.r-keep4)>.r-col{flex:1 1 100% !important}
}
/* Labs step numbers stay 4 across so they line up with the timeline dots */
@media (max-width:1100px){
  .r-keep4{flex-wrap:nowrap !important;flex-direction:row !important}
  .r-keep4>.r-col{flex:1 1 0 !important;min-width:0;width:auto !important}
}
/* IQ comparison table: keep the two value columns side by side so each value stays under its header */
@media (max-width:1100px){
  .r-cmp>div{flex-wrap:nowrap !important;flex-direction:row !important;align-items:flex-start !important;gap:16px}
  .r-cmp>div>.r-col:first-child{flex:0 0 150px !important;width:150px !important;white-space:normal !important}
  .r-cmp>div>.r-col:not(:first-child){flex:1 1 0 !important;min-width:0;white-space:normal !important}
}
@media (max-width:640px){
  .r-cmp>div{flex-wrap:wrap !important;padding-left:20px !important;padding-right:20px !important;gap:6px 16px}
  .r-cmp>div>.r-col:first-child{flex:0 0 100% !important;width:100% !important}
  .r-cmp>div:first-child>.r-col:first-child{display:none}
  .r-cmp>div>.r-col:not(:first-child){flex:1 1 0 !important}
}
/* Reduced motion: the prompt-bar phrases rotate by animation and start hidden. Show the first phrase as static text instead of an empty bar. */
@media (prefers-reduced-motion:reduce){.r-rot:first-child{opacity:1 !important}}
