/* SYNERGY45 Public Website – polished interactive version */
:root {
  --bg: #f8f7f4;
  --bg2: #f1efe9;
  --surface: #ffffff;
  --text: #1c1917;
  --text2: #44403c;
  --muted: #78716c;
  --border: #e7e5e4;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --accent-dark: #0f766e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 30px -5px rgba(0,0,0,0.08);
  --max: 1100px;
  --header-h: 64px;
  --announce-h: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); margin-bottom: 0.55em; }
h3 { font-size: 1.3rem; margin-bottom: 0.35em; }
p { margin-bottom: 1em; color: var(--text2); }
.lead { font-size: 1.125rem; color: var(--text2); max-width: 38rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 4.25rem 0; }
.section-sm { padding: 2.75rem 0; }
.grid-2 { display: grid; gap: 2.25rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* First-batch announcement */
.announce-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: var(--announce-h);
  background: #1c1917;
  color: #f5f0e6;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem 1rem;
  line-height: 1.35;
}
.announce-bar strong { color: #e8d5a3; font-weight: 600; }
@media (min-width: 640px) {
  .announce-bar { font-size: 0.8rem; letter-spacing: 0.06em; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: "DM Sans", sans-serif;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent-dark); }

.nav { display: none; gap: 1.6rem; align-items: center; }
.nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text2);
  text-decoration: none; position: relative; padding: 0.25rem 0;
}
.nav a:hover { color: var(--accent-dark); text-decoration: none; }
.nav a.active { color: var(--accent-dark); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.nav .btn { margin-left: 0.35rem; }

.nav-toggle {
  display: flex; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text);
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 0 1.25rem; border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.7rem 0; font-weight: 500; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px; font-weight: 600; font-size: 0.925rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: white; box-shadow: 0 4px 14px rgba(13,148,136,0.35); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid #a8a29e;
  min-height: 48px;
}
.btn-secondary:hover { border-color: var(--text); text-decoration: none; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

/* Hero */
.hero { padding: 3.75rem 0 4.5rem; text-align: center; }
@media (max-width: 639px) {
  :root { --announce-h: 36px; }
  .announce-bar { padding: 0.4rem 0.75rem; font-size: 0.7rem; }
  .hero { padding: 2.25rem 0 2.5rem; }
  .hero .lead { margin-bottom: 1.15rem; }
}
.hero .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 0.9rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin: 0 auto 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--text2);
}
.hero-note a { font-weight: 600; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); }

/* Image placeholders – intentional frames */
.img-placeholder {
  background: linear-gradient(145deg, #e7e5e4 0%, #f5f5f4 50%, #e7e5e4 100%);
  border: 1px dashed #d6d3d1;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); text-align: center; gap: 0.45rem;
  position: relative; overflow: hidden;
}
.img-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 8px,
    rgba(255,255,255,0.35) 8px, rgba(255,255,255,0.35) 16px
  );
  opacity: 0.6;
}
.img-placeholder .ph-icon { position: relative; z-index: 1; opacity: 0.5; }
.img-placeholder .ph-label {
  position: relative; z-index: 1; font-size: 0.78rem; font-weight: 500;
  max-width: 85%; line-height: 1.35;
}
.img-placeholder.hero-img { aspect-ratio: 4/5; max-width: 300px; margin: 0 auto 1.75rem; }
.img-placeholder.product-main { aspect-ratio: 1/1; width: 100%; }
.img-placeholder.product-side { aspect-ratio: 4/3; }
.img-placeholder.thumb { aspect-ratio: 1; width: 68px; border-radius: 10px; flex-shrink: 0; }

/* Product tabs */
.tabs {
  display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.6rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tab-btn {
  background: none; border: none; padding: 0.7rem 1.05rem;
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.tab-panel { display: none; animation: fadeUp 0.28s ease; }
.tab-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Expandable ingredients */
.ingredient {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.ingredient:hover { box-shadow: var(--shadow); }
.ingredient-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; cursor: pointer; gap: 1rem;
  user-select: none;
}
.ingredient-header h3 {
  margin: 0; font-size: 1.12rem; display: flex; align-items: center;
  gap: 0.55rem; flex-wrap: wrap;
}
.ingredient-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.3rem;
}
.ingredient.open .ingredient-body {
  max-height: 1400px;
  padding: 0 1.3rem 1.35rem;
}
.ingredient-toggle {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.2s;
  color: var(--muted);
}
.ingredient.open .ingredient-toggle { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent-dark); }

.badge {
  font-family: "DM Sans", sans-serif;
  font-size: 0.66rem; font-weight: 600;
  padding: 0.16rem 0.48rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  letter-spacing: 0.02em;
}
.badge.limited { background: #fef3c7; color: #92400e; }
.badge.moderate { background: #e0e7ff; color: #3730a3; }

.evidence-meta { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0.8rem; }

.research-block {
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem; margin-top: 0.95rem;
}
.research-block h4 {
  font-family: "DM Sans", sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.55rem;
}
.research-item {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
}
.research-item:last-child { border-bottom: none; padding-bottom: 0; }
.research-item .ref-title { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.research-item .ref-summary { font-size: 0.8rem; color: var(--text2); line-height: 1.4; }
.research-item .ref-actions { display: flex; gap: 0.55rem; margin-top: 0.25rem; flex-wrap: wrap; }
.research-item a.ref-link {
  font-size: 0.76rem; font-weight: 500; color: var(--accent-dark);
}
.ref-copy {
  font-size: 0.72rem; background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 0.15rem 0.45rem; cursor: pointer;
  color: var(--muted); font-family: inherit;
}
.ref-copy:hover { border-color: var(--accent); color: var(--accent-dark); }

/* System cards */
.system-grid {
  display: grid; gap: 0.95rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .system-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .system-grid { grid-template-columns: repeat(3, 1fr); } }
.system-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.system-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.system-card.current {
  border-color: var(--accent);
  background: linear-gradient(to bottom, #f0fdfa, var(--surface));
}
.system-card .label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.3rem;
}
.system-card h3 { font-size: 1.08rem; margin-bottom: 0.28rem; }
.system-card p { font-size: 0.86rem; margin-bottom: 0; }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.15rem 0; font-family: inherit; font-size: 1.02rem;
  font-weight: 600; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-question:hover { color: var(--accent-dark); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  transition: transform 0.3s; color: var(--muted);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent-dark); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0;
}
.faq-item.open .faq-answer {
  max-height: 420px;
  padding: 0 0 1.15rem;
}
.faq-answer p { margin-bottom: 0; font-size: 0.93rem; }

/* Sticky buy bar (mobile) */
.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  z-index: 90;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.sticky-buy.visible { transform: translateY(0); }
.sticky-buy-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.8rem;
}
.sticky-buy .btn { flex: 1; }
.sticky-buy-info { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.sticky-buy-info strong { display: block; color: var(--text); font-size: 0.9rem; }
@media (min-width: 900px) {
  .sticky-buy { display: none !important; }
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #a8a29e;
  padding: 3.25rem 0 1.75rem;
  margin-top: 2.5rem;
}
.site-footer a { color: #d6d3d1; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.25rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: white; margin-bottom: 0.7rem; }
.footer-col h4 {
  font-family: "DM Sans", sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #a8a29e; margin-bottom: 0.85rem;
}
.footer-col a { display: block; margin-bottom: 0.4rem; font-size: 0.88rem; text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #44403c; padding-top: 1.35rem;
  font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}

/* Utility */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.disclaimer {
  font-size: 0.78rem; color: var(--muted);
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem; margin-top: 1.4rem; line-height: 1.45;
}
.fade-in {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

.product-hero-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 800px) {
  .product-hero-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
}
.thumb-row { display: flex; gap: 0.55rem; margin-top: 0.7rem; }
