/* ============================================
   VITAE LABS — Research Peptides Australia
   Design system: black / bone-white, editorial
   serif display + technical sans, sharp lines
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #161616;
  --bone: #ece9e2;
  --bone-dim: #b9b5ac;
  --grey: #6f6c66;
  --line: #232323;
  --line-light: #2e2e2e;
  --accent: #ece9e2;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(236,233,226,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,233,226,0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  background-position: center top;
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--bone); color: var(--black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.lead { color: var(--bone-dim); max-width: 620px; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--bone);
  color: var(--black);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 9px 16px;
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo .logo-top {
  font-size: 7px;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 5px;
  font-weight: 500;
}

.logo .logo-main {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.06em;
  color: var(--bone);
}

.logo .logo-labs {
  display: inline-block;
  background: var(--bone);
  color: var(--black);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding: 2px 7px 2px 9px;
  margin-top: 4px;
  align-self: flex-end;
}

nav.links { display: flex; gap: 40px; align-items: center; }

nav.links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color .25s;
  position: relative;
  padding: 6px 0;
}

nav.links a:hover, nav.links a.active { color: var(--bone); }

nav.links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--bone);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-light);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.cart-btn:hover { background: var(--bone); color: var(--black); }

.menu-toggle { display: none; background: none; border: none; color: var(--bone); font-size: 22px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(236,233,226,0.05), transparent 60%),
    linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.9));
  pointer-events: none;
}

.hero-grid-lines { display: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-vials {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

.hero-vials img {
  max-height: 384px;
  max-width: 100%;
  width: auto;
}

.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 28px;
}

.hero h1 em { font-style: italic; color: var(--bone-dim); }

.hero p { max-width: 520px; color: var(--bone-dim); font-size: 16px; margin-bottom: 44px; }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--bone);
  transition: all .25s;
  cursor: pointer;
  background: none;
  color: var(--bone);
}

.btn.solid { background: var(--bone); color: var(--black); }
.btn.solid:hover { background: transparent; color: var(--bone); }
.btn.ghost:hover { background: var(--bone); color: var(--black); }

/* ---------- stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat-strip > div {
  padding: 34px 32px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.stat-strip > div:first-child { border-left: none; }

.stat-strip .num {
  font-family: var(--serif);
  font-size: 26px;
  display: block;
  margin-bottom: 4px;
}

.stat-strip .lbl {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}

/* ---------- sections ---------- */
section.block { padding: 110px 0; border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* ---------- peptide cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 60px;
}

.pep-card {
  background: var(--black);
  padding: 44px 36px;
  transition: background .3s;
  display: flex;
  flex-direction: column;
}

.pep-card:hover { background: var(--black-2); }

.pep-card .idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.2em;
  margin-bottom: 26px;
}

.pep-card h3 { font-size: 26px; margin-bottom: 6px; }

.pep-card .tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 18px;
}

.pep-card p { color: var(--bone-dim); font-size: 13.5px; flex: 1; }

.pep-card .card-link {
  margin-top: 26px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  border-bottom: 1px solid var(--line-light);
  align-self: flex-start;
  padding-bottom: 4px;
  transition: border-color .25s;
}

.pep-card .card-link:hover { border-color: var(--bone); }

/* ---------- product page ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  background: var(--black);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  transition: background .3s;
}

.product:hover { background: var(--black-2); }

.product .vial {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(236,233,226,0.04), transparent 70%);
}

.product .vial img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.product:hover .vial img { transform: translateY(-6px) scale(1.03); }

.product h3 { font-size: 24px; margin-bottom: 4px; }

.product .spec {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.product p.desc { color: var(--bone-dim); font-size: 13px; flex: 1; margin-bottom: 22px; }

.product .price {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 18px;
}

.product .price span { font-size: 12px; font-family: var(--sans); color: var(--grey); letter-spacing: 0.15em; }

.add-btn {
  width: 100%;
  background: none;
  border: 1px solid var(--bone);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: all .25s;
}

.add-btn:hover { background: var(--bone); color: var(--black); }
.add-btn.added { background: var(--bone); color: var(--black); }

/* ---------- cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 200;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: var(--black-2);
  border-left: 1px solid var(--line-light);
  z-index: 201;
  transition: right .35s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 { font-size: 20px; }

.cart-close { background: none; border: none; color: var(--bone); font-size: 22px; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 10px 28px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item .ci-name { font-family: var(--serif); font-size: 16px; }
.cart-item .ci-spec { font-size: 11px; color: var(--grey); font-family: var(--mono); }

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-light);
  padding: 4px 10px;
}

.qty button { background: none; border: none; color: var(--bone); cursor: pointer; font-size: 14px; padding: 2px 4px; }
.qty span { font-family: var(--mono); font-size: 12px; min-width: 16px; text-align: center; }

.ci-price { font-family: var(--mono); font-size: 13px; }

.cart-foot { padding: 24px 28px; border-top: 1px solid var(--line); }

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 20px;
}

.cart-empty { text-align: center; color: var(--grey); padding: 60px 0; font-size: 13px; letter-spacing: 0.1em; }

/* ---------- checkout ---------- */
.checkout-panel {
  border: 1px solid var(--line);
  padding: 44px;
  background: var(--black-2);
}

.checkout-panel h3 { font-size: 24px; margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label.f {
  display: block;
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
}

label.f input, label.f textarea, label.f select {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--black);
  border: 1px solid var(--line-light);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .25s;
}

label.f input:focus, label.f textarea:focus { border-color: var(--bone-dim); }

/* ---------- guide page ---------- */
.guide-toc {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}

.guide-toc a { color: var(--grey); transition: color .25s; }
.guide-toc a:hover { color: var(--bone); }

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 34px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.step .n {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--line-light);
  line-height: 1;
}

.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { color: var(--bone-dim); max-width: 640px; }
.step ul { color: var(--bone-dim); margin: 12px 0 0 18px; max-width: 640px; }
.step li { margin-bottom: 8px; }

/* calculator */
.calc {
  border: 1px solid var(--line-light);
  background: var(--black-2);
  padding: 44px;
  margin-top: 60px;
}

.calc h3 { font-size: 26px; margin-bottom: 8px; }
.calc .sub { color: var(--grey); font-size: 13px; margin-bottom: 30px; }

.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }

.calc-out {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.calc-out .co {
  border: 1px solid var(--line);
  padding: 20px;
  text-align: center;
}

.calc-out .co .v { font-family: var(--serif); font-size: 30px; display: block; }
.calc-out .co .l { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 20px;
  color: var(--grey);
  transition: transform .25s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 0 26px; color: var(--bone-dim); max-width: 700px; font-size: 14px; }

/* ---------- notice / disclaimer ---------- */
.notice {
  border: 1px solid var(--line-light);
  padding: 26px 30px;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.notice strong { color: var(--bone-dim); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 10px; display: block; margin-bottom: 8px; }

/* ---------- footer ---------- */
footer.site {
  padding: 80px 0 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.foot-grid h4 {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 20px;
}

.foot-grid a, .foot-grid p { display: block; color: var(--bone-dim); font-size: 13px; margin-bottom: 10px; transition: color .25s; }
.foot-grid a:hover { color: var(--bone); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 30px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bone);
  color: var(--black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 28px;
  z-index: 300;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .hero { min-height: auto; overflow: visible; }
  .hero-inner { display: flex; flex-direction: column; gap: 34px; padding: 56px 0 68px; }
  .hero-vials { order: -1; text-align: center; }
  .hero-vials img { display: inline-block; width: 86%; max-width: 380px; height: auto; max-height: none; }
  .card-grid, .product-grid, .calc-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(3) { border-left: none; }
  .stat-strip > div { border-top: 1px solid var(--line); }
  .stat-strip > div:nth-child(-n+2) { border-top: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .card-grid, .product-grid, .calc-grid, .form-row, .calc-out { grid-template-columns: 1fr; }
  nav.links {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 26px 32px;
    gap: 22px;
    align-items: flex-start;
  }
  nav.links.open { display: flex; }
  .menu-toggle { display: block; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .checkout-panel, .calc { padding: 28px 22px; }
  section.block { padding: 70px 0; }
}
