/* upgrade.css (10 Nov 2026): design-finish layer for peptidekits.net.
   Loaded last, after assets/styles.css and each page's inline CSS.
   Presentation only: no copy, pricing, form, link or script changes. Research-use-only notices keep
   their colours, size and position.
   Palette and type are the site's own: paper #F4F6F7, ink #132326, cobalt #2448C9, Archivo. */

:root{
  --up-gap:12px;
  --up-r:24px;
  --up-under:36px;
  --up-mist:#F0F3FB;
  --up-mist-2:#DCE3F6;
  --up-line:rgba(19,35,38,.12);
  --up-line-2:rgba(19,35,38,.24);
  --up-body:#44555A;
  --radius-s:10px;
  --radius-m:18px;
}
html{scroll-padding-top:104px}
::selection{background:rgba(36,72,201,.18)}
h2{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.1;text-wrap:balance}

/* ---------- buttons: pills ---------- */
.btn{border-radius:999px;padding:12px 22px}
.btn.sm{padding:7px 16px}
.btn.ghost{background:rgba(255,255,255,.6);border-color:var(--up-line-2)}
.btn.ghost:hover{background:#FFFFFF}
.strengths .btn.sm{padding:7px 14px}

/* ---------- header: a floating white bar that joins the panel below it ---------- */
.site-head{top:var(--up-gap);margin:var(--up-gap) var(--up-gap) 0;border:0;border-radius:var(--up-r);box-shadow:0 0 0 1px var(--up-line),0 10px 26px rgba(19,35,38,.08)}
.brand svg{flex:none}
.menu-btn{border-radius:999px;padding:8px 16px;border-color:var(--up-line-2);font-weight:600;color:var(--ink);min-height:40px}
@media(max-width:940px){
  .hdr-phone-m{border-radius:999px;padding:0 12px}
  /* open menu: a white sheet under the bar that scrolls inside the screen */
  .nav{top:calc(100% + 8px);padding:8px 22px 14px;border:0;border-radius:20px;box-shadow:0 0 0 1px var(--up-line),0 18px 40px rgba(19,35,38,.18)}
  .nav.open{max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}
  .nav a{padding:13px 0;font-size:1rem;border-bottom:1px solid var(--rule)}
  .nav a:last-child{border-bottom:0}
}

/* ---------- home hero: one calm mist panel, centred, with the kit tray beneath the words ---------- */
.hero,.page-head{margin:calc(-1*var(--up-under)) var(--up-gap) 0;border:1px solid var(--up-line);border-top:0;border-radius:0 0 var(--up-r) var(--up-r);
  background:linear-gradient(180deg,#FFFFFF 0,#FFFFFF 72px,var(--up-mist) 48%,var(--up-mist-2) 100%)}
.hero{padding:calc(var(--up-under) + 78px) 0 0;margin-bottom:64px}
.hero-grid{grid-template-columns:minmax(0,1fr);gap:0;justify-items:center;text-align:center}
.hero-grid>div:first-child{display:contents}
.hero h1{font-size:clamp(2.4rem,5.3vw,4rem);line-height:1.08;max-width:17ch;margin:0 0 .42em;text-wrap:balance}
.hero .h1-brand{opacity:1;color:var(--cobalt);font-size:clamp(.8rem,.21em,.92rem);font-stretch:100%;letter-spacing:.24em;margin:0 0 1.5em}
.hero .lede{max-width:58ch;margin:0;color:var(--up-body);line-height:1.6}
.hero .actions{justify-content:center;margin-top:30px}
.hero .actions .btn{padding:14px 26px;font-size:1rem}
.hero .actions .btn:not(.ghost){box-shadow:0 10px 24px rgba(36,72,201,.26)}
.hero #pk-pricing{max-width:64ch;padding:12px 20px;border:1px solid var(--up-line);border-radius:14px;background:rgba(255,255,255,.72);color:var(--ink);font-size:.92rem}
.hero .tray{order:5;width:min(100%,600px);margin-top:46px;text-align:left;box-shadow:inset 0 2px 0 rgba(255,255,255,.7),inset 0 -3px 8px rgba(19,35,38,.08),0 34px 60px -34px rgba(19,35,38,.45)}
.hero .tray-label{border-radius:12px}
/* the three facts: a glass card that overlaps the bottom of the hero */
.hero .facts{order:6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:min(100%,960px);margin:44px 0 -52px;padding:0;border:1px solid rgba(255,255,255,.9);border-radius:20px;background:rgba(255,255,255,.94);box-shadow:0 22px 50px rgba(19,35,38,.13);overflow:hidden;color:var(--up-body)}
.hero .facts>div{padding:24px 20px 22px;border-left:1px solid var(--up-line)}
.hero .facts>div:first-child{border-left:0}
.hero .facts strong{font-size:1.12rem;font-stretch:112%;margin-bottom:4px}

/* ---------- sections ---------- */
section.band{padding:78px 0}
section.band.alt{margin:0 var(--up-gap);border:1px solid var(--up-line);border-radius:var(--up-r)}
.section-head{margin-bottom:34px}
/* ordering steps: four soft cards */
.steps{border-top:0;gap:16px}
.steps li{padding:24px 22px 10px;border:1px solid var(--up-line);border-radius:18px;background:var(--white)}
.steps li::before{border-color:var(--cobalt);color:var(--cobalt);width:34px;height:34px;margin-bottom:18px}
/* compound classes: tiles */
.cat-index{gap:10px 12px}
.cat-index a{padding:14px 16px;border:1px solid var(--up-line);border-radius:14px;background:var(--paper);transition:border-color .15s,background .15s}
.cat-index a:hover{border-color:var(--cobalt);background:var(--white)}
/* lists, tables, boxes */
.plist{border-color:var(--up-line)}
.side .box,.acct-card,.form{border-color:var(--up-line)}
.form{border-radius:20px}
.qty{border-radius:10px;overflow:hidden}
.notice{border-radius:0 12px 12px 0}
.chip[aria-pressed=true]{background:var(--ink)}
.prose>details{margin-bottom:10px;padding:2px 22px;border:1px solid var(--up-line);border-radius:16px;background:var(--white)}
.prose>details summary{padding:16px 0}
.posts{border-top-color:var(--up-line-2)}

/* book a call: the cobalt feature card (the block's own inline CSS comes later in the page, hence body) */
body .book-call{padding:70px 0 78px}
body .book-call .book-wrap{max-width:var(--wrap);padding-left:24px;padding-right:24px}
body .book-call .book-card{border:0;border-radius:var(--up-r);color:#FFFFFF;background:linear-gradient(150deg,var(--cobalt-d) 0,var(--cobalt) 62%,#3558DA 100%)}
body .book-call .book-card h2{color:#FFFFFF}
body .book-call .book-card p{color:rgba(255,255,255,.92)}
body .book-call .book-card .book-eyebrow{color:#DCE4FB;opacity:1}
body .book-call .book-card .book-fine{color:rgba(255,255,255,.86);opacity:1}
body .book-call .book-actions a.btn{background:#FFFFFF;border-color:#FFFFFF;color:var(--cobalt-d)}
body .book-call .book-actions a.btn:hover{background:var(--up-mist)}
body .book-call .book-actions a.btn.ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.6);color:#FFFFFF}
body .book-call .book-actions a.btn.ghost:hover{background:rgba(255,255,255,.2);border-color:#FFFFFF}
body .book-call :focus-visible{outline-color:#FFFFFF}

/* footer: the ink panel, inset and rounded */
.site-foot{margin:0 var(--up-gap) var(--up-gap);border-radius:var(--up-r);padding-top:60px}
.news input{border-radius:999px;padding-left:16px}
.site-foot :focus-visible{outline-color:#FFFFFF}

/* gate and sign-in sheets */
.gate-box{border-radius:22px;padding:32px}

/* ---------- inner pages: a title panel joined to the header ---------- */
.page-head{padding:calc(var(--up-under) + 58px) 0 54px}
.page-head h1{font-size:clamp(2.1rem,4.5vw,3.3rem);line-height:1.08;max-width:22ch;margin:0 0 .42em;text-wrap:balance}
.page-head .lede{max-width:60ch;color:var(--up-body);line-height:1.6}
.page-head .crumbs{margin:0 0 22px;color:var(--up-body)}
.page-head .crumbs a{color:var(--up-body)}
.page-head .post-meta{color:var(--up-body);max-width:none}
/* pages whose text column is narrower than the page (set inline on the column): line the title up with it */
.page-head:has(+ .prose[style*="max-width:820px"])>.wrap{max-width:820px}
.page-head:has(+ .prose[style*="max-width:860px"])>.wrap{max-width:860px}
.page-head:has(+ .prose[style*="max-width:900px"])>.wrap{max-width:900px}
.two{padding-top:56px}
.prose{padding-top:52px}
.two .prose{padding-top:0}
/* product and research-note pages have no title block: give them air under the floating bar */
#product .crumbs{margin-top:40px}
#product .pd .tray{box-shadow:inset 0 2px 0 rgba(255,255,255,.7),inset 0 -3px 8px rgba(19,35,38,.08),0 30px 54px -34px rgba(19,35,38,.4)}
/* research note (filled in by app.js): its crumbs, h1 and date sit on the same title panel; the grid lets the
   panel run full width behind the first three items without touching the markup or the script */
#article:has(>.crumbs){max-width:none!important;padding:0 0 80px;display:grid;grid-template-columns:minmax(24px,1fr) minmax(0,732px) minmax(24px,1fr)} /* !important: the element carries an inline max-width (780px), kept as the text column */
#article:has(>.crumbs)>*{grid-column:2;min-width:0}
#article:has(>.crumbs)::before{content:"";grid-column:1/-1;grid-row:1/4;margin:calc(-1*var(--up-under)) var(--up-gap) 0;border:1px solid var(--up-line);border-top:0;border-radius:0 0 var(--up-r) var(--up-r);
  background:linear-gradient(180deg,#FFFFFF 0,#FFFFFF 72px,var(--up-mist) 48%,var(--up-mist-2) 100%)}
#article>.crumbs{grid-row:1;margin:0 0 20px;padding-top:56px;color:var(--up-body)}
#article>.crumbs a{color:var(--up-body)}
#article>.crumbs+h1{grid-row:2;max-width:24ch;text-wrap:balance}
#article>.crumbs+h1+p{grid-row:3;margin:0;padding-bottom:52px;color:var(--up-body)}
#article>.crumbs+h1+p+*{margin-top:48px}
#article:not(:has(>.crumbs)){padding-top:56px}

/* ---------- phones ---------- */
@media(max-width:860px){
  section.band{padding:60px 0}
  .hero{padding-top:calc(var(--up-under) + 48px);margin-bottom:56px}
  .hero .tray{margin-top:36px;padding:20px}
  .hero .tray-grid{gap:10px}
  body .book-call{padding:52px 0 60px}
}
@media(max-width:780px){
  /* kit rows: the Add button sits under the name instead of widening the tray column */
  .plist .prow>.btn{grid-column:2/-1;justify-self:start}
}
@media(max-width:940px){.site-foot .brand span{display:inline}}
@media(max-width:760px){
  :root{--up-gap:8px;--up-r:20px}
  .hero h1{font-size:clamp(2.05rem,9.2vw,2.7rem)}
  .hero .actions .btn{flex:1 1 100%}
  .hero .facts{grid-template-columns:1fr;margin-top:36px}
  .hero .facts>div{padding:16px 18px;border-left:0;border-top:1px solid var(--up-line)}
  .hero .facts>div:first-child{border-top:0}
  .page-head{padding:calc(var(--up-under) + 34px) 0 40px}
  #article>.crumbs{padding-top:32px}
  #article>.crumbs+h1+p{padding-bottom:38px}
  #article>.crumbs+h1+p+*{margin-top:36px}
  .two{padding-top:40px}
  .prose{padding-top:40px}
  .form{padding:22px 18px}
  .prose>details{padding:2px 16px}
  .site-foot{padding-top:44px}
  body .book-call .book-wrap{padding-left:16px;padding-right:16px}
}
@media(max-width:380px){
  .site-head .head-in{padding:0 12px;gap:8px}
  .head-actions{gap:6px}
  .hdr-phone-m{padding:0 7px;font-size:.78rem}
  .menu-btn{padding:8px 10px}
  .site-head .btn.sm{padding:7px 11px}
}
