/* ==========================================================================
   Meridian Peptide Labs — design system + home page
   Clinical / pharmacy aesthetic: cool whites, deep navy ink, clinical teal,
   monospaced lab data. Contrast checked against WCAG AA for text on surfaces.
   ========================================================================== */

:root {
  --bg: #F4F8FA;
  --surface: #FFFFFF;
  --ink: #0B2540;
  --ink-2: #33495E;
  --muted: #5F7385;
  --line: #DCE6EC;
  --line-2: #EAF0F4;

  --teal-900: #063F46;
  --teal-700: #09646D;
  --teal-600: #0A7C86;
  --teal-500: #14A0AB;
  --teal-200: #BFE6E8;
  --teal-100: #DDF2F3;
  --teal-50:  #EFF9F9;

  --navy-900: #071B30;
  --navy-800: #0B2540;
  --navy-700: #12365A;

  --green-700: #17784F;
  --green-50:  #E7F6EF;
  --amber-800: #7A4E08;
  --amber-200: #F0D9A0;
  --amber-50:  #FFF7E5;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, .06), 0 1px 1px rgba(11, 37, 64, .04);
  --shadow-md: 0 8px 24px rgba(11, 37, 64, .08), 0 2px 6px rgba(11, 37, 64, .05);
  --shadow-lg: 0 24px 60px rgba(11, 37, 64, .14);

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 12px rgba(10,124,134,.25); }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: .6rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.icon-btn:hover { border-color: var(--teal-600); color: var(--teal-700); }
.icon-btn .ico { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--muted); border-radius: 6px; }
.link-btn:hover { color: #B3261E; }

/* ---------- utility bar + header ---------- */
.utility { background: var(--navy-800); color: #D6E4EE; font-size: .8rem; }
.utility__in { display: flex; justify-content: center; gap: 2rem; padding: .5rem 0; flex-wrap: wrap; }
.utility__in span { display: inline-flex; align-items: center; gap: .45rem; }
.utility .ico { width: 15px; height: 15px; color: #7FE0D5; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__name { display: flex; flex-direction: column; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1; }
.brand__name small { font-weight: 500; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand--light { color: #fff; } .brand--light small { color: #9DB3C5; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal-700); border-color: var(--teal-500); }
.nav .nav__cta { border: 1.5px solid var(--line); padding: .5rem 1rem; border-radius: 999px; color: var(--ink); }
.nav .nav__cta:hover { border-color: var(--teal-600); }
.header__actions { display: flex; gap: .6rem; align-items: center; }
.menu-btn { display: none; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--teal-600); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cart-count[hidden] { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; display: none; box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
  .nav .nav__cta { text-align: center; margin-top: .75rem; border-radius: 999px; }
  .header__actions { margin-left: auto; }
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--white { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal-500); border-radius: 2px; }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .9rem; }
.section__head p { color: var(--ink-2); font-size: 1.07rem; margin: 0; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1100px 520px at 85% -10%, rgba(20,160,171,.16), transparent 60%),
    linear-gradient(180deg, #E9F6F7 0%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11,37,64,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,37,64,.045) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4.5rem, 7vw, 6.5rem); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; background: #fff; border: 1px solid var(--teal-200); color: var(--teal-700); border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.pill .ico { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--teal-600); }
.hero__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__stats { display: flex; gap: 2.2rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--muted); }

.stage { position: relative; aspect-ratio: 1 / 1.04; max-width: 560px; margin-inline: auto; width: 100%; }
.stage figure { margin: 0; position: absolute; overflow: hidden; background: #E7ECF3; box-shadow: var(--shadow-lg); }
.stage figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage__main { left: 0; top: 0; width: 80%; aspect-ratio: 1 / 1; border-radius: 28px; z-index: 1; }
.stage__small { right: 0; top: 22%; width: 38%; aspect-ratio: 4 / 5; border-radius: 22px; border: 5px solid #fff; z-index: 2; }
.report { position: absolute; z-index: 4; left: 4%; bottom: 0; width: 58%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem .95rem .7rem; box-shadow: var(--shadow-lg); }
.report__head { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.report__head b { color: var(--green-700); display: inline-flex; gap: .3rem; align-items: center; }
.report__head .ico { width: 13px; height: 13px; }
.report svg { width: 100%; height: auto; }
.report__foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-2); margin-top: .25rem; }
.badge-float { position: absolute; z-index: 4; right: 3%; top: 3%; background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: .7rem .95rem; box-shadow: var(--shadow-lg); font-size: .78rem; line-height: 1.3; }
.badge-float strong { display: block; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: #7FE0D5; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stage { max-width: 440px; }
}

/* ---------- trust strip ---------- */
.trust { position: relative; z-index: 2; margin-top: -3rem; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.trust__item { display: flex; gap: .9rem; padding: 1.4rem 1.5rem; align-items: flex-start; }
.trust__item + .trust__item { border-left: 1px solid var(--line-2); }
.trust__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); }
.trust__icon .ico { width: 22px; height: 22px; }
.trust__item h3 { font-family: var(--font-sans); font-size: .98rem; font-weight: 600; margin-bottom: .2rem; }
.trust__item p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .trust__grid { grid-template-columns: 1fr 1fr; } .trust__item:nth-child(3) { border-left: 0; } .trust__item:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
@media (max-width: 560px) { .trust__grid { grid-template-columns: 1fr; } .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line-2); } }

/* ---------- catalogue ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.chip small { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: var(--teal-500); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip[aria-pressed="true"] small { color: #9DB3C5; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; gap: .75rem; } }

.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal-200); }
.pcard[hidden] { display: none; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #E9EEF4; border-bottom: 1px solid var(--line-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.15rem; gap: .35rem; }
.tag { align-self: flex-start; display: inline-block; padding: .22rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .03em; color: var(--accent, var(--teal-700)); background: color-mix(in srgb, var(--accent, #0A7C86) 10%, #fff); border: 1px solid color-mix(in srgb, var(--accent, #0A7C86) 24%, #fff); }
.pcard__title { font-family: var(--font-sans); font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; margin-top: .2rem; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a:hover { color: var(--teal-700); }
.pcard__focus { font-size: .88rem; color: var(--ink-2); margin: 0 0 .5rem; min-height: 2.6em; line-height: 1.4; }
.pcard__meta { display: grid; gap: .3rem; margin: 0 0 .9rem; padding: .65rem 0; border-block: 1px dashed var(--line); }
.pcard__meta div { display: flex; justify-content: space-between; gap: .75rem; font-size: .78rem; }
.pcard__meta dt { color: var(--muted); }
.pcard__meta dd { margin: 0; font-family: var(--font-mono); color: var(--ink); text-align: right; }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.price strong { font-family: var(--font-mono); font-weight: 500; font-size: 1.18rem; letter-spacing: -.02em; }
.price__from { font-size: .76rem; color: var(--muted); }
.catalog__note { margin-top: 1.6rem; font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.catalog__note .ico { margin-top: .15rem; color: var(--teal-600); }
/* compact horizontal cards on phones so the catalogue stays scannable (must follow base .pcard rules) */
@media (max-width: 520px) {
  .pcard { flex-direction: row; }
  .pcard__media { flex: 0 0 124px; aspect-ratio: auto; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--line-2); }
  .pcard__media img { position: absolute; inset: 0; }
  .pcard__body { padding: .9rem .95rem; gap: .25rem; min-width: 0; }
  .pcard__focus { min-height: 0; margin-bottom: .3rem; font-size: .84rem; }
  .pcard__meta { margin-bottom: .6rem; padding: .45rem 0; }
  .pcard__meta div:nth-child(2) { display: none; }
}

/* ---------- quality band ---------- */
.band { background: var(--navy-800); color: #D6E4EE; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 10% 0%, rgba(20,160,171,.22), transparent 60%); pointer-events: none; }
.band .container { position: relative; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #7FE0D5; } .band .eyebrow::before { background: #7FE0D5; }
.band .section__head p { color: #B8CBDA; }
.quality { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #7FE0D5; color: var(--navy-900); font-family: var(--font-mono); font-weight: 500; }
.step h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin-bottom: .25rem; }
.step p { margin: 0; font-size: .92rem; color: #B8CBDA; }
.coa { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.coa__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.coa__head h3 { color: var(--ink); font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.coa__head span { font-size: .78rem; color: var(--muted); }
.coa__ok { display: inline-flex; align-items: center; gap: .35rem; background: var(--green-50); color: var(--green-700); border-radius: 999px; padding: .25rem .65rem; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.coa__ok .ico { width: 14px; height: 14px; }
.coa table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: .9rem; }
.coa td { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.coa td:last-child { text-align: right; font-family: var(--font-mono); }
.coa tr:last-child td { border-bottom: 0; }
.coa__note { font-size: .74rem; color: var(--muted); margin: .8rem 0 0; }
@media (max-width: 900px) { .quality { grid-template-columns: 1fr; } }

/* ---------- research areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.area { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
.area h3 { font-family: var(--font-sans); font-size: 1.12rem; font-weight: 700; }
.area p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.area ul { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.area li a { display: inline-block; padding: .25rem .65rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.area li a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1100px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }

/* ---------- handling ---------- */
.handling { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.hcard { display: flex; gap: 1rem; padding: 1.35rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.hcard .trust__icon { background: #fff; }
.hcard h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; margin-bottom: .25rem; }
.hcard p { margin: 0; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) { .handling { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--teal-200); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--teal-600); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.15rem; margin: 0; }

/* ---------- cta + notices ---------- */
.cta { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.2rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.cta p { margin: 0; color: #CDEBED; max-width: 34rem; }
.cta .btn-ghost { border-color: transparent; }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; background: var(--amber-50); border: 1px solid var(--amber-200); color: var(--amber-800); border-radius: var(--radius-sm); font-size: .88rem; line-height: 1.5; }
.notice .ico { margin-top: .12rem; width: 1.2em; height: 1.2em; }
.notice strong { color: #5E3B03; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9DB3C5; padding: 4rem 0 1.5rem; margin-top: 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand p { margin: 1.1rem 0 1rem; max-width: 22rem; }
.footer__mail { display: inline-flex; gap: .5rem; align-items: center; color: #fff; text-decoration: none; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { color: #9DB3C5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__legal { padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; line-height: 1.6; color: #8DA5B8; }
.footer__legal strong { color: #fff; }
.footer__bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(7,27,48,.5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; }
.drawer__ship { padding: .9rem 1.3rem; background: var(--teal-50); border-bottom: 1px solid var(--line); font-size: .86rem; }
.drawer__ship:empty { display: none; }
.drawer__ship p { margin: 0 0 .5rem; }
.bar { height: 6px; background: var(--teal-100); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal-600); border-radius: 99px; transition: width .3s; }
.drawer__body { flex: 1; overflow: auto; padding: .5rem 1.3rem; }
.drawer__empty { display: grid; justify-items: center; gap: .8rem; padding: 4rem 1rem; text-align: center; color: var(--muted); }
.drawer__empty .ico { width: 44px; height: 44px; color: var(--teal-500); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.line__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #E9EEF4; border-radius: 10px; }
.line__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line__info { display: grid; gap: .25rem; font-size: .9rem; }
.line__info a { color: var(--ink); text-decoration: none; }
.line__side { display: grid; justify-items: end; gap: .5rem; font-family: var(--font-mono); font-size: .95rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; color: var(--ink-2); }
.qty button:hover { color: var(--teal-700); background: var(--teal-50); }
.qty span { min-width: 2ch; text-align: center; font-family: var(--font-mono); font-weight: 500; }
.qty--sm { align-self: start; width: fit-content; } .qty--sm button { width: 28px; height: 28px; } .qty--sm .ico { width: 14px; height: 14px; }
.drawer__foot { padding: 1.1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; background: #fff; }
.drawer__foot:empty { display: none; }
.drawer__foot p { margin: 0; }
.sum { display: flex; justify-content: space-between; font-size: 1.05rem; }
.sum strong { font-family: var(--font-mono); font-weight: 500; font-size: 1.25rem; }

/* ---------- research-use gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(7,27,48,.72); backdrop-filter: blur(6px); }
.gate__card { width: min(520px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.gate__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); margin-bottom: 1rem; }
.gate__icon .ico { width: 26px; height: 26px; }
.gate h2 { font-size: 1.9rem; margin-bottom: .8rem; }
.gate p { color: var(--ink-2); font-size: .95rem; }
.gate__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- stock check / notify-me modal (builds on .gate) ---------- */
.stock-card { position: relative; }
.stock-card__close { position: absolute; top: .9rem; right: .9rem; }
.stock-card__item { margin: -.4rem 0 1.2rem; font-size: .92rem; color: var(--muted); }
.stock-card__item strong { color: var(--ink); }
.stock-card__fine { margin: 1rem 0 0; }
.stock-prog { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; }
.stock-prog .bar { flex: 1; height: 8px; }
.stock-prog .bar span { transition: none; }
.stock-prog__pct { min-width: 3ch; text-align: right; font-size: .85rem; color: var(--muted); }
.chk { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.chk__step { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--muted); font-size: .93rem; transition: background .2s, border-color .2s, color .2s; }
.chk__dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.chk__dot .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.chk__step.is-active { color: var(--ink); border-color: var(--teal-200); background: var(--teal-50); font-weight: 500; }
.chk__step.is-active .chk__dot { border-color: var(--teal-200); border-top-color: var(--teal-600); animation: chk-spin .8s linear infinite; }
.chk__step.is-done { color: var(--ink-2); }
.chk__step.is-done .chk__dot { border-color: var(--teal-600); background: var(--teal-600); color: #fff; }
.chk__step.is-fail { color: #A12B2B; border-color: #F1C4C4; background: #FCECEC; font-weight: 600; }
.chk__step.is-fail .chk__dot { border-color: #A12B2B; background: #A12B2B; color: #fff; }
@keyframes chk-spin { to { transform: rotate(360deg); } }
.field { display: block; margin-top: 1.1rem; }
.field > span { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.field input { font: inherit; width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--teal-600); outline: none; box-shadow: 0 0 0 3px var(--teal-100); }
.field input[aria-invalid="true"] { border-color: #A12B2B; }
.field__err { margin: .5rem 0 0; font-size: .85rem; color: #A12B2B; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 120; display: flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem; background: var(--navy-800); color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .9rem; transform: translate(-50%, 140%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 2rem); }
.toast.is-on { transform: translate(-50%, 0); }
body.no-scroll .toast { bottom: auto; top: 1rem; transform: translate(-50%, -160%); }
body.no-scroll .toast.is-on { transform: translate(-50%, 0); }
.toast .ico { color: #7FE0D5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
