/* Peptide Purity USA — design system */
:root {
  --ink: #07131f;
  --ink-soft: #1a2e42;
  --slate: #3d556b;
  --mist: #e8eef4;
  --paper: #f5f8fb;
  --white: #ffffff;
  --teal: #0d8a7c;
  --teal-deep: #08665c;
  --teal-glow: rgba(13, 138, 124, 0.18);
  --amber: #c9852a;
  --danger: #b33a3a;
  --success: #1f7a4d;
  --line: rgba(7, 19, 31, 0.1);
  --shadow: 0 18px 50px rgba(7, 19, 31, 0.12);
  --radius: 4px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 138, 124, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(26, 46, 66, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f7 0%, var(--paper) 40%, #edf2f6 100%);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 251, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.25rem;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; color: inherit; flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--teal), var(--ink-soft), var(--teal));
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px rgba(13,138,124,0.35);
  animation: mark-spin 18s linear infinite;
}
@keyframes mark-spin { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em;
}
.brand-tag {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--slate); font-weight: 500;
}

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-list > li > a,
.nav-link-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.75rem; color: var(--ink-soft); font-size: 0.9rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-list > li > a:hover,
.nav-link-btn:hover,
.nav-list > li > a.is-active,
.nav-link-btn.is-active {
  color: var(--teal-deep); background: var(--teal-glow);
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.55rem 0.75rem; color: var(--ink-soft); font-size: 0.875rem; border-radius: var(--radius);
}
.dropdown a:hover { background: var(--mist); color: var(--teal-deep); }

.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.65rem; color: var(--ink-soft); border-radius: var(--radius); position: relative;
}
.icon-link:hover { background: var(--teal-glow); color: var(--teal-deep); }
.cart-badge {
  position: absolute; top: 2px; left: 22px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--teal); color: #fff; border-radius: 99px;
  font-size: 0.65rem; font-weight: 600; display: grid; place-items: center;
}
.action-label { font-size: 0.8rem; font-weight: 500; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer;
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: 0.25s var(--ease);
}
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-glow); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

/* Hero — full bleed */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: grid; align-items: end;
  color: var(--white); overflow: hidden;
  background:
    linear-gradient(105deg, rgba(7,19,31,0.92) 0%, rgba(7,19,31,0.72) 42%, rgba(8,60,55,0.45) 100%),
    radial-gradient(circle at 70% 40%, rgba(13,138,124,0.35), transparent 45%),
    linear-gradient(160deg, #0a1c2e 0%, #0d3d38 55%, #07131f 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%);
  animation: grid-drift 28s linear infinite;
}
@keyframes grid-drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-64px, -32px, 0); }
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: 10%; width: min(55vw, 620px); height: min(55vw, 620px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,138,124,0.28) 0%, transparent 68%);
  filter: blur(10px);
  animation: pulse-orb 6s ease-in-out infinite alternate;
}
@keyframes pulse-orb {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.08); opacity: 1; }
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 5rem 1.25rem 4.5rem;
}
.hero-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.8rem); letter-spacing: -0.04em;
  line-height: 0.95; margin-bottom: 0.85rem;
  animation: rise 0.9s var(--ease) both;
}
.hero-headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem); letter-spacing: -0.02em;
  color: rgba(255,255,255,0.88); margin-bottom: 1.1rem;
  animation: rise 0.9s 0.1s var(--ease) both;
}
.hero-copy {
  max-width: 34rem; color: rgba(255,255,255,0.72); font-size: 1.05rem;
  margin-bottom: 2rem; animation: rise 0.9s 0.18s var(--ease) both;
}
.hero-cta { animation: rise 0.9s 0.26s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category strip */
.cat-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
}
.cat-link {
  display: block; padding: 1.15rem 1rem; color: var(--ink);
  border-bottom: 2px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s;
}
.cat-link:hover {
  border-bottom-color: var(--teal); transform: translateY(-3px); color: var(--teal-deep);
  background: rgba(255,255,255,0.9);
}
.cat-link strong {
  display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.25rem;
}
.cat-link span { font-size: 0.8rem; color: var(--slate); }

/* Product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.product-tile {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}
.product-tile:hover { transform: translateY(-4px); }
.product-visual {
  aspect-ratio: 4/3;
  background:
    linear-gradient(145deg, #102536 0%, #0d4a44 55%, #163047 100%);
  position: relative; overflow: hidden;
}
.product-visual::before {
  content: ""; position: absolute; inset: 18% 22%;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.product-visual::after {
  content: attr(data-label);
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--font-display); font-weight: 700; color: rgba(255,255,255,0.9);
  font-size: 1.15rem; letter-spacing: -0.02em;
}
.product-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product-meta h3 { font-size: 1.15rem; margin: 0; }
.product-meta h3 a { color: inherit; }
.product-meta h3 a:hover { color: var(--teal-deep); }
.price { font-weight: 600; color: var(--teal-deep); white-space: nowrap; }
.product-short { color: var(--slate); font-size: 0.9rem; margin: 0; flex: 1; }
.product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Trust band */
.trust-band {
  background: var(--ink); color: rgba(255,255,255,0.82); padding: 3.5rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.trust-item h3 {
  color: #fff; font-size: 1.25rem; margin-bottom: 0.5rem;
}
.trust-item p { margin: 0; font-size: 0.95rem; }

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,138,124,0.06), transparent);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.page-hero p { color: var(--slate); max-width: 40rem; margin: 0; font-size: 1.05rem; }

/* Forms */
.form-panel { max-width: 520px; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--slate); }
.form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }

/* Contact channels */
.contact-channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem;
}
.channel {
  padding: 1.5rem 0; border-top: 2px solid var(--teal);
}
.channel h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.channel p { color: var(--slate); margin: 0; font-size: 0.95rem; }

/* Product detail */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0;
}
.product-gallery .product-visual { aspect-ratio: 1; min-height: 360px; }
.product-info .badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; background: var(--mist); color: var(--ink-soft); border-radius: var(--radius);
}
.badge-coa { background: var(--teal-glow); color: var(--teal-deep); }
.product-info h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.product-info .lead { color: var(--slate); font-size: 1.05rem; }
.buy-row {
  display: flex; gap: 0.75rem; align-items: center; margin: 1.5rem 0; flex-wrap: wrap;
}
.qty-input { width: 88px; }
.tabs { margin-top: 2rem; border-top: 1px solid var(--line); }
.tab-list { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab-btn {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 0.9rem 1rem; cursor: pointer; color: var(--slate); font-weight: 500;
}
.tab-btn.is-active { color: var(--teal-deep); border-bottom-color: var(--teal); }
.tab-panel { display: none; padding: 1.5rem 0; color: var(--ink-soft); }
.tab-panel.is-active { display: block; animation: rise 0.4s var(--ease); }
.tab-panel ul { list-style: disc; padding-left: 1.25rem; }
.tab-panel li { margin-bottom: 0.4rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.spec-table th { width: 40%; color: var(--slate); font-weight: 500; }
.research-notice {
  margin-top: 1.5rem; padding: 1rem 1.15rem;
  background: rgba(201, 133, 42, 0.1); border-left: 3px solid var(--amber);
  font-size: 0.9rem; color: var(--ink-soft);
}

/* Cart / checkout */
.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate); font-weight: 600; padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 1.1rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-name { font-family: var(--font-display); font-weight: 700; color: inherit; }
.cart-item-meta { font-size: 0.85rem; color: var(--slate); }
.summary-box {
  padding: 1.5rem; background: rgba(255,255,255,0.7); border: 1px solid var(--line);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.summary-box h2 { font-size: 1.25rem; }
.summary-row {
  display: flex; justify-content: space-between; padding: 0.55rem 0; color: var(--ink-soft);
}
.summary-row.total {
  border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 1rem;
  font-weight: 700; color: var(--ink); font-size: 1.1rem;
}
.empty-state { padding: 4rem 0; text-align: center; }
.empty-state h2 { margin-bottom: 0.5rem; }

/* Account */
.account-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; padding: 2.5rem 0 4rem;
}
.account-nav a {
  display: block; padding: 0.65rem 0; color: var(--ink-soft); border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.account-nav a.is-active, .account-nav a:hover { color: var(--teal-deep); }
.auth-shell {
  max-width: 440px; margin: 3rem auto 4rem; padding: 0 1.25rem;
}
.auth-shell h1 { font-size: 2rem; }
.order-list { display: grid; gap: 1rem; }
.order-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.order-row h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.muted { color: var(--slate); font-size: 0.9rem; }

/* About / shipping content */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.split-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}

/* Toasts */
.toast {
  max-width: 1180px; margin: 0.75rem auto 0; padding: 0.85rem 1.25rem;
  font-size: 0.9rem; font-weight: 500;
}
.toast-success { color: var(--success); background: rgba(31,122,77,0.1); }
.toast-error { color: var(--danger); background: rgba(179,58,58,0.1); }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.7); margin-top: 2rem;
  padding: 3.5rem 0 0;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 2.5rem;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem;
}
.footer-name {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: 1.35rem; margin: 0 0 0.35rem; letter-spacing: -0.02em;
}
.footer-tagline { color: var(--teal); font-weight: 500; margin-bottom: 1rem; }
.footer-disclaimer { font-size: 0.82rem; line-height: 1.55; max-width: 28rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h3 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600;
}
.footer-cols a { color: rgba(255,255,255,0.65); font-size: 0.9rem; display: inline-block; padding: 0.25rem 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.15rem 1.25rem; text-align: center; font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .contact-channels, .split-2,
  .product-detail, .cart-layout, .checkout-layout, .account-layout, .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(245,248,251,0.97); border-bottom: 1px solid var(--line);
    padding: 1rem; display: none; max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; display: none; padding-left: 0.5rem;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .action-label { display: none; }
  .header-actions { order: 2; }
  .brand { order: 1; }
  .nav-toggle { order: 3; margin-left: 0; }
  .product-grid, .cat-strip, .footer-cols, .form-row.two { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 3rem; }
}
