/* SuperPeptide — all-light coral/orange theme. White + pale tint surfaces,
   deep slate-navy headings, soft slate body text, one coral accent family. */

:root {
  --bg: #ffffff;
  --tint: #fff6f1;
  --tint-strong: #ffe9e1;
  --ink: #1f2a44;
  --body: #4b5568;
  --muted: #656d80;
  --line: #efe6e1;
  --line-strong: #e6d7cf;
  --accent: #ff6b3d;
  --accent-mid: #cf4015;
  --accent-deep: #b83a14;
  --sale-ink: #b83a14;
  --sale-pill: #ffe9e1;
  --ok: #16a34a;
  --neutral-pill: #eef0f4;
  --neutral-ink: #525a6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(217, 72, 26, 0.05), 0 12px 28px rgba(217, 72, 26, 0.07);
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { color: var(--ink); font-weight: 700; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Top notice bar — pale tint, slate text, small coral dot */
.notice-bar {
  margin: 0;
  background: var(--tint);
  color: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line-strong);
}
.notice-bar::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55em;
  vertical-align: 0.08em;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wordmark { margin: 0; }
.wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}
.wordmark-glyph {
  width: 1.35em;
  height: 1.35em;
  border: 2px solid var(--accent);
  border-radius: 5px;
  position: relative;
  flex: none;
}
.wordmark-glyph::after {
  content: "";
  position: absolute;
  inset: 0.32em;
  background: var(--accent);
  border-radius: 2px;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--tint); color: var(--accent-deep); }
.site-nav .nav-cta {
  background: var(--tint-strong);
  color: var(--accent-deep);
  font-weight: 700;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 62rem;
  margin: 0 auto;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 24ch;
}
.hero-lede { font-size: 1.08rem; color: var(--body); margin: 0 0 1.1rem; max-width: 52ch; }
.hero-note {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--tint);
  color: var(--accent-deep);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin: 0 0 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }

/* Buttons — one coral family; white bold text passes AA at the lightest stop */
.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.2rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.button-primary {
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-deep));
  color: #fff;
}
.button-primary:hover {
  background: linear-gradient(135deg, var(--accent-deep), #a33110);
}
.button-ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--tint); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

/* Sections */
.section {
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  max-width: 74rem;
  margin: 0 auto;
}
.section-head { max-width: 62rem; margin-bottom: 1.6rem; }
.section-head h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
}
.section-sub { color: var(--muted); margin: 0; max-width: 60ch; }

/* Catalog controls */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1.1rem;
}
.tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tab {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--body);
  background: var(--tint);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.tab:hover { color: var(--accent-deep); border-color: var(--accent); }
.tab.is-active {
  background: var(--tint-strong);
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  font-weight: 700;
}

.catalog-tools { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; align-items: center; }
.tool-label { font-size: 0.88rem; font-weight: 600; color: var(--body); display: inline-flex; align-items: center; gap: 0.45rem; }
.tool-label input, .tool-label select {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.catalog-count {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Product grid & cards */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(217, 72, 26, 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* CSS-only vial illustration (decorative; amount text is duplicated from the card) */
.card-vial {
  display: flex;
  justify-content: center;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 0 1rem;
  margin: 0 0 0.15rem;
}
.vial {
  position: relative;
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vial-cap {
  display: block;
  width: 28px;
  height: 13px;
  background: linear-gradient(180deg, var(--accent), var(--accent-mid));
  border-radius: 5px 5px 3px 3px;
  box-shadow: 0 1px 2px rgba(217, 72, 26, 0.25);
}
.vial-body {
  position: relative;
  display: block;
  width: 54px;
  height: 88px;
  margin-top: -1px;
  border: 1px solid var(--line-strong);
  border-radius: 9px 9px 15px 15px;
  background: linear-gradient(105deg, var(--bg) 0%, var(--bg) 52%, var(--tint-strong) 100%);
  box-shadow: inset 0 -8px 12px rgba(217, 72, 26, 0.06);
}
.vial-body::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  bottom: 14px;
  width: 5px;
  border-radius: 4px;
  background: rgba(217, 72, 26, 0.08);
}
.vial-label {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  padding: 0.35rem 0.3rem;
  border-radius: 3px;
}

.card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.badge-sale {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sale-ink);
  background: var(--sale-pill);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.card-name { font-size: 1rem; font-weight: 700; margin: 0.1rem 0 0; line-height: 1.35; }
.card-amount { font-size: 0.84rem; color: var(--muted); margin: 0; }
.card-price { display: flex; align-items: baseline; gap: 0.5rem; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.compare-at { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.oos-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neutral-ink);
  background: var(--neutral-pill);
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  align-self: flex-start;
}
.in-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neutral-ink);
  align-self: flex-start;
}
.in-stock-tag::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ok);
}
.product-card.is-oos .card-name, .product-card.is-oos .price { color: var(--muted); }
.card-notify { margin-top: auto; }
.card-notify .button { width: 100%; padding: 0.55rem 1rem; font-size: 0.92rem; }

/* Catalog error / notes */
.catalog-error {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  max-width: 42rem;
}
.catalog-error p { margin: 0.25rem 0; }
.js-note { font-size: 0.9rem; color: var(--muted); }
.js .js-only-hidden { display: none; }

/* Quality section */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}
.quality-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}
.quality-card h3 { font-size: 1.02rem; margin: 0 0 0.45rem; }
.quality-card p { margin: 0; color: var(--body); font-size: 0.95rem; }

/* Forms */
.wl-form {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem clamp(1rem, 3vw, 1.8rem);
  max-width: 34rem;
  display: grid;
  gap: 0.95rem;
}
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent-deep); }
.field .opt { color: var(--muted); font-weight: 500; }
.field input[type="email"], .field input[type="text"], .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}
.field textarea { resize: vertical; }
.field-check { display: flex; align-items: flex-start; gap: 0.55rem; }
.field-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--accent-mid); flex: none; }
.field-check label { font-weight: 500; font-size: 0.92rem; }
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-ok { color: var(--accent-deep); }
.form-status.is-err { color: var(--accent-deep); }

/* FAQ */
.faq-item {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem;
  max-width: 46rem;
  margin-bottom: 0.7rem;
}
.faq-item h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.faq-item p { margin: 0; color: var(--body); font-size: 0.95rem; }

/* Footer — light, coral small-caps labels */
.site-footer {
  background: var(--tint);
  color: var(--body);
  border-top: 1px solid var(--line-strong);
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 1.6rem;
  margin-top: 3rem;
}
.site-footer .wordmark { color: var(--ink); margin-bottom: 1.4rem; }
.site-footer .wordmark a { color: var(--ink); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem 2.5rem;
  max-width: 74rem;
  margin: 0 auto 1.6rem;
}
.footer-cols h2 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.5rem;
}
.footer-cols p { font-size: 0.88rem; line-height: 1.65; margin: 0; }
.footer-fine {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem;
  margin: 0;
}

/* Dialog */
.notify-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
}
.notify-dialog::backdrop { background: rgba(31, 42, 68, 0.4); }
.notify-dialog .wl-form { background: var(--bg); border: none; padding: 1.4rem 1.5rem; max-width: none; }
.notify-dialog h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.dialog-product {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  margin: 0 0 0.4rem;
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }

/* Small screens */
@media (max-width: 560px) {
  .site-header { position: static; flex-direction: column; align-items: flex-start; }
  .catalog-controls { align-items: stretch; flex-direction: column; }
  .catalog-tools { justify-content: space-between; }
  .tool-label { flex: 1; justify-content: space-between; }
  .tool-label select { flex: none; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Subtle card reveal (neutralised under prefers-reduced-motion above) */
@keyframes sp-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.product-card { animation: sp-rise 320ms ease both; }
