/* site.css — shared styles for mysecrettoantiaging.com (anti-aging + peptides).
   Premium, warm palette. Adapted structure from elitehomesaver /cooling. */

:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --ink: #2a2230;
  --muted: #6b6270;
  --line: #ece4dd;
  --gold: #c9a24b;
  --gold-dark: #a9843a;
  --rose: #b76e79;
  --rose-soft: #f3e6e8;
  --plum: #574052;
  --accent: #8a5a72;
  --ok: #2e7d59;
  --warn: #b4442f;
  --shadow: 0 12px 34px rgba(87, 64, 82, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--plum);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--plum);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand b { color: var(--gold-dark); }
.header-right { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 18px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--plum); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---- Language selector (dropdown, injected by site-i18n.js) ---- */
.msta-lang { position: relative; display: inline-block; font-size: 0.85rem; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.msta-lang--floating { position: fixed; top: 8px; right: 8px; z-index: 1080; }
.msta-lang-current, .msta-lang-option {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent;
  cursor: pointer; font: inherit; color: var(--ink); line-height: 1; text-align: left; white-space: nowrap;
}
.msta-lang-current {
  gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-weight: 600;
}
.msta-lang-current:hover, .msta-lang.is-open .msta-lang-current { border-color: var(--gold); }
.msta-lang svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); display: block; flex: 0 0 auto; }
.msta-lang-caret {
  margin-left: 2px; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg); transition: transform 0.15s ease;
}
.msta-lang.is-open .msta-lang-caret { transform: translateY(2px) rotate(-135deg); }
.msta-lang-menu {
  position: absolute; top: calc(100% + 5px); right: 0; min-width: 100%; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 1080;
}
.msta-lang-menu[hidden] { display: none; }
.msta-lang-option { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.msta-lang-option:hover { background: var(--rose-soft); color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px; text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700; font-size: 1.02rem; text-align: center; cursor: pointer; border: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--rose), var(--accent));
  box-shadow: 0 8px 20px rgba(138, 90, 114, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(138, 90, 114, 0.4); }
.btn-gold { color: #3a2e12; background: linear-gradient(135deg, #e6c877, var(--gold)); box-shadow: 0 8px 20px rgba(201,162,75,0.3); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--plum); background: #fff; border: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { padding: 64px 0 52px; background: radial-gradient(120% 90% at 50% -10%, #fff 0%, var(--bg) 60%); text-align: center; }
.eyebrow {
  display: inline-block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 20px auto 14px; max-width: 15ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }
.hero .btn { margin: 6px; }

/* ---- Sections ---- */
section { padding: 52px 0; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 36px; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .rank { font-family: -apple-system, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rose); }
.card .btn { margin-top: auto; }
.card .stars { color: var(--gold); letter-spacing: 2px; }

/* Two-track cards (peptides hub) */
.tracks { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.track { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.track h3 { font-size: 1.35rem; }

/* ---- Feature rows ---- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { text-align: center; padding: 10px; }
.feature .ico { font-size: 1.8rem; }
.feature h4 { margin: 8px 0 6px; color: var(--plum); font-family: -apple-system, sans-serif; }
.feature p { color: var(--muted); margin: 0; }

/* ---- FAQ ---- */
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--plum); padding: 12px 0; font-family: -apple-system, sans-serif; }
.faq p { color: var(--muted); margin: 0 0 14px; }

/* ---- Disclaimer / RSOC ---- */
.disclaimer {
  background: var(--rose-soft); border: 1px solid #e6cdd1; border-radius: 10px; padding: 16px 20px;
  color: #6b4a50; font-size: 0.92rem;
}
.disclaimer strong { color: #7a2f38; }
.rsoc-slot {
  min-height: 90px; border: 1px dashed #d8cabb; border-radius: 10px; background: #fff8ee;
  display: flex; align-items: center; justify-content: center; color: #b09666; font-size: 0.85rem;
  font-family: -apple-system, sans-serif; margin: 18px 0;
}

/* ---- Lead form ---- */
.lead-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.lead-box .field { margin-bottom: 14px; }
.lead-box label { display: block; font-family: -apple-system, sans-serif; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--plum); }
.lead-box input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: #fff;
}
.lead-box input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.lead-msg { margin-top: 12px; font-family: -apple-system, sans-serif; font-size: 0.92rem; }
.lead-msg.ok { color: var(--ok); }
.lead-msg.err { color: var(--warn); }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; margin-top: 20px; color: var(--muted); font-size: 0.85rem; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--plum); }
.site-footer .fine { font-size: 0.78rem; line-height: 1.5; }

/* ---- Non-US layout: de-emphasize US-only product offers, surface RSOC ---- */
.lang-nonus .us-offer { opacity: 0.72; }
.lang-nonus .us-only-note { display: block; }
.us-only-note { display: none; font-size: 0.8rem; color: var(--muted); font-family: -apple-system, sans-serif; margin-top: 6px; }
.lang-nonus .rsoc-slot { border-color: var(--rose); background: #fff; }
/* RSOC units that appear only for non-US (DE/FR) visitors, where offers are US-gated. */
.nonus-only { display: none; }
.lang-nonus .nonus-only { display: flex; }

/* ---- Utility ---- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.badge-sale { display: inline-block; background: var(--rose); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-family: -apple-system, sans-serif; }
