/* Beyond the Shot Member Hub — sage / cream / charcoal (matches marketing) */
:root {
  --sage-50: #f4f7f4;
  --sage-100: #e6efe6;
  --sage-200: #c8d9c8;
  --sage-400: #7a9e7e;
  --sage-600: #4a6b4e;
  --sage-700: #3a5540;
  --sage-800: #2d4232;
  --cream: #faf8f4;
  --cream-dark: #f0ebe3;
  --charcoal: #1c1f1c;
  --charcoal-soft: #3a3f3a;
  --muted: #5c655c;
  --gold: #b8956c;
  --gold-soft: #d4b896;
  --danger: #9b3d3d;
  --danger-bg: #f8eaea;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(28, 31, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(28, 31, 28, 0.1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --header-h: 3.75rem;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sage-700); text-underline-offset: 0.18em; }
a:hover { color: var(--sage-800); }
:focus-visible { outline: 2px solid var(--sage-600); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 520px); }

/* Compliance banners */
.compliance {
  background: var(--sage-100);
  border-bottom: 1px solid var(--sage-200);
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}
.compliance a { font-weight: 600; }
.compliance strong { color: var(--sage-800); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage-200);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sage-800);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand span { color: var(--gold); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a.active { color: var(--sage-700); }
.nav .btn { margin-left: 0.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--sage-700);
  color: var(--white);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--sage-800); color: var(--white); }
.btn:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--white);
  color: var(--sage-800);
  border: 1.5px solid var(--sage-200);
}
.btn-secondary:hover { background: var(--sage-50); color: var(--sage-800); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: #a68358; color: var(--charcoal); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
}
.card + .card { margin-top: 1rem; }
.card-header {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.5rem;
  margin-bottom: 1rem;
}
.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Forms */
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--sage-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
  margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage-400);
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.25);
}
textarea { min-height: 100px; resize: vertical; }
.form-row {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin: -0.65rem 0 1rem; }

/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - 4rem);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 0;
}
.auth-card { width: min(100%, 420px); }
.auth-card .logo {
  text-align: center;
  margin-bottom: 1.25rem;
}
.auth-card .logo .mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-800);
}
.error-box {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.success-box {
  background: var(--sage-100);
  color: var(--sage-800);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* Alerts / missed */
.alert {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-warn {
  background: #fbf3e6;
  border-color: var(--gold-soft);
  color: #6b4e2e;
}
.alert-info {
  background: var(--sage-50);
  border-color: var(--sage-200);
  color: var(--sage-800);
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--sage-100);
  vertical-align: top;
}
th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
tr:hover td { background: var(--sage-50); }
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--sage-100);
  color: var(--sage-800);
}
.badge-missed { background: var(--danger-bg); color: var(--danger); }
.badge-gold { background: #f5ebe0; color: #7a5a32; }
.badge-1on1 { background: #e8eef8; color: #3a4f7a; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}
.filters .field { flex: 1 1 140px; min-width: 120px; }
.filters input, .filters select { margin-bottom: 0; }

/* Messaging */
.msg-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 55vh; overflow-y: auto; padding: 0.25rem; }
.bubble {
  max-width: min(85%, 480px);
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: var(--sage-100);
  align-self: flex-start;
}
.bubble.mine {
  background: var(--sage-700);
  color: var(--white);
  align-self: flex-end;
}
.bubble .meta { font-size: 0.75rem; opacity: 0.75; margin-bottom: 0.25rem; }
.compose {
  display: flex; gap: 0.5rem; margin-top: 1rem;
  align-items: flex-end;
}
.compose textarea { margin-bottom: 0; flex: 1; min-height: 64px; }

/* Learn */
.learn-nav {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .learn-nav { grid-template-columns: 1fr 1fr; }
}
.learn-nav a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.learn-nav a:hover { border-color: var(--sage-400); color: var(--sage-800); }
.learn-nav a small { display: block; font-weight: 400; color: var(--muted); margin-top: 0.25rem; }
.prose h2 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Zoom CTA */
.zoom-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--sage-700), var(--sage-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}
.zoom-cta p { margin: 0.25rem 0 0; opacity: 0.9; font-size: 0.95rem; }
.zoom-cta .btn { background: var(--white); color: var(--sage-800); }
.zoom-cta .btn:hover { background: var(--sage-50); }

.page { padding: 1.5rem 0 3rem; }
.hidden { display: none !important; }
.footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 2rem 1rem;
}

/* Support Inbox (Phase 2) */
.inbox-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.inbox-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .inbox-layout {
    grid-template-columns: minmax(240px, 340px) 1fr;
    align-items: start;
  }
}
.inbox-list-pane { min-height: 200px; }
.inbox-thread-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 65vh; overflow-y: auto; }
.inbox-thread-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sage-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.inbox-thread-item:hover { border-color: var(--sage-400); background: var(--sage-50); }
.inbox-thread-item.active {
  border-color: var(--sage-700);
  background: var(--sage-50);
  box-shadow: inset 3px 0 0 var(--sage-700);
}
.inbox-thread-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.2rem;
}
.inbox-thread-subj {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.inbox-msgs { max-height: 50vh; }
.inbox-compose { flex-wrap: wrap; }
.inbox-compose .field label { font-size: 0.78rem; }
.inbox-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 96vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.inbox-dialog::backdrop { background: rgba(30, 40, 35, 0.45); }
.alert-box {
  background: #fdf6e8;
  border: 1px solid #e8c98a;
  color: #6b4e16;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
