/* Steady State Studio (WellnessVidBox template) — shared stylesheet.
   Palette matches admin/console/login.html: dark olive bg, lime-green accent. */
:root {
  --bg: #1a1a18;
  --bg-card: rgba(255,255,255,.05);
  --bg-card-solid: #232320;
  --border: rgba(184,227,92,.22);
  --accent: #8fb83e;
  --accent-dark: #1a1a18;
  --text: #f3f3ef;
  --muted: #b9b9ae;
  --danger-bg: rgba(220,90,90,.12);
  --danger-text: #f3c9c9;
  --ok-bg: rgba(143,184,62,.15);
  --ok-text: #cfe8a0;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---- Header / nav ---- */
header.site-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(26,26,24,.92);
  backdrop-filter: blur(6px);
  z-index: 20;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; flex-shrink: 0;
}
nav.site-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
nav.site-nav a { color: var(--muted); font-weight: 600; font-size: .92rem; }
nav.site-nav a.active, nav.site-nav a:hover { color: var(--text); }
nav.site-nav .btn { color: var(--accent-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  text-align: center;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
.btn.small { padding: 8px 16px; font-size: .85rem; }
.btn.block { width: 100%; display: block; }

/* ---- Layout helpers ---- */
.hero { padding: 64px 0 48px; }
.hero h1 { font-size: 2.3rem; margin: 0 0 16px; line-height: 1.15; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.hero .actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

section { padding: 44px 0; }
section h2 { font-size: 1.6rem; margin-bottom: 8px; }
section .section-sub { color: var(--muted); margin-bottom: 28px; max-width: 640px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }

/* ---- Content library cards ---- */
.item-card { display: flex; flex-direction: column; gap: 10px; }
.item-card .thumb {
  aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #2a2e1f, #1e2417);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem;
}
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .meta { display: flex; gap: 10px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.08); color: var(--muted);
}
.badge.locked { background: rgba(220,90,90,.15); color: #f3b8b8; }
.badge.unlocked { background: var(--ok-bg); color: var(--ok-text); }
.item-card video, .item-card audio { width: 100%; border-radius: 10px; }

/* ---- Pricing ---- */
.plan-card { text-align: center; border: 1px solid var(--border); }
.plan-card .price { font-size: 2.2rem; font-weight: 900; margin: 10px 0 4px; }
.plan-card .price span { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan-card p.desc { color: var(--muted); min-height: 44px; }

/* ---- Forms ---- */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; margin-bottom: 6px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04); color: var(--text); font-size: .95rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }

.form-status { margin-top: 14px; font-size: .9rem; display: none; padding: 12px 14px; border-radius: 10px; }
.form-status.show { display: block; }
.form-status.error { background: var(--danger-bg); color: var(--danger-text); }
.form-status.ok { background: var(--ok-bg); color: var(--ok-text); }

/* ---- Disclaimer ---- */
.disclaimer {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .84rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--text); }

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 40px 0 30px;
  margin-top: 40px;
  color: var(--muted);
  font-size: .85rem;
}
footer.site-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--text); }

/* ---- Utility ---- */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.loading { color: var(--muted); font-size: .9rem; padding: 20px 0; }
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,.06); border: 1px dashed var(--accent);
  border-radius: 10px; padding: 16px; font-size: 1.05rem; letter-spacing: .03em;
  word-break: break-all; text-align: center;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  nav.site-nav { gap: 12px; }
  section { padding: 32px 0; }
}
