@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --text: #2c2a26;
  --text-muted: #5c574e;
  --sage: #8a9a7b;
  --sage-dark: #6d7c5f;
  --sage-deep: #56644a;   /* text-safe sage: 5.7:1 on bg, 6.3:1 with white */
  --muted-light: #6b655b;
  --link: #4f5d43;
  --nav: #3d3a34;
  --border: #d9d3c9;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .logo, .page-title, .section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  background: var(--bg);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Source Sans 3', sans-serif;
  transition: background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--sage-deep);
  color: var(--white);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-header {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  display: block;
  text-align: center;
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sage-deep);
  text-align: center;
  margin: 0.15rem 0 0.4rem;
  letter-spacing: 0.01em;
}

.nav-links {
  justify-content: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}


.hero {
  position: relative;
  min-height: 58vh;
  background: linear-gradient(135deg, #4f5d43 0%, #56644a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 760px;
  padding: 2.5rem 1.1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 1.75rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.98rem;
  border: 1.5px solid var(--sage);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  user-select: none;
}

.btn:active,
.btn.active-fill {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn-primary {
  border-color: var(--sage);
  color: var(--white);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-secondary:active,
.btn-secondary.active-fill {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
}

.section, .page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.25rem 1.1rem;
  flex: 1;
}

.section-title, .page-title {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 1.1rem;
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.content p { margin-bottom: 1rem; }

.card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.list { display: flex; flex-direction: column; gap: 0.6rem; }

.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  font-weight: 600;
}

.product-image {
  height: 140px;
  background: #efece6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.center { text-align: center; margin-top: 1.25rem; }

.footer {
  background: var(--nav);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 1.1rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-sub { opacity: 0.75; margin-top: 0.3rem; }

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 50vh; }
  .section, .page { padding: 1.75rem 1rem; }
}

/* Phase 4 */
.footer a { color: inherit; }
.footer-links { margin-top: 0.5rem; }
.footer-crisis { margin-top: 0.4rem; font-weight: 600; }
.draft-banner { max-width: 700px; margin: 0 auto 1.25rem; padding: 0.75rem 1rem; border: 2px solid #b5651d; background: #fff4e5; border-radius: 6px; }
.content ul { margin: 0 0 1rem 1.25rem; }
.content h2.section-title { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; text-align: left; }
.gentle-note, .disclaimer { font-size: 0.95rem; padding: 0.75rem 1rem; border-left: 3px solid var(--sage-dark); background: rgba(0,0,0,0.03); }
.form-note { font-size: 0.85rem; }

/* Sandy's content */
.content ol { margin: 0 0 1rem 1.25rem; }
.pricing-grid { margin-bottom: 1.5rem; }
.pricing-card { display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-card .btn { margin-top: auto; align-self: flex-start; }
.placeholder-btn, .placeholder-btn.btn-primary { background: #ebe7df; color: var(--text-muted); border: 1.5px dashed var(--muted-light); pointer-events: none; cursor: default; }
.placeholder-note { font-size: 0.85rem; font-style: italic; color: var(--text-muted); margin-top: 0.35rem; }
.card-soon { border-style: dashed; }
.closing-line { text-align: center; font-size: 1.15rem; margin: 1.5rem auto; max-width: 700px; }
.quote { text-align: center; }

/* Contrast fixes */
a { color: var(--link); }
.nav-links a, .card, .btn { text-decoration: none; }
.card { color: inherit; }
/* Buttons on light backgrounds: solid deep sage, white text (6.3:1) */
.btn-primary { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.btn-primary:active, .btn-primary.active-fill { background: var(--link); border-color: var(--link); }
.btn:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.footer a { color: var(--white); }
.footer-sub { opacity: 1; color: #d6d3cc; }
.hero .btn-primary { background: var(--white); border-color: var(--white); color: var(--sage-deep); }

/* Built by */
.built-by { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-top: 1rem; }
.built-by-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d6d3cc; }
.built-by img { display: block; height: 60px; width: auto; }
.savings-note { color: var(--sage-deep); font-size: 0.95rem; }

/* ---------- Admin panel (Batch A). Reuses the site's colors, cards and buttons. ---------- */
.admin-page { max-width: 1200px; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.admin-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; position: sticky; top: 1rem; }
.admin-cat + .admin-cat { margin-top: 0.9rem; }
.admin-cat-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 0.3rem; }
.admin-cat a { display: block; padding: 0.3rem 0.6rem; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.admin-cat a:hover { background: var(--bg); }
.admin-cat a.active { background: var(--sage-deep); color: var(--white); }
.admin-cat a.admin-soon-link { color: var(--text-muted); }
.admin-cat a.admin-soon-link.active { color: var(--white); }
.admin-main { min-width: 0; outline: none; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-title { font-size: 1.5rem; }
.admin-sub { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.2rem; }
.admin-section { margin: 1.5rem 0 0.6rem; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.9rem; cursor: pointer; }
.admin-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.admin-filters input, .admin-filters select, .admin-form input, .admin-form select, .admin-form textarea {
  font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--white); color: var(--text); }
.admin-search { min-width: 240px; flex: 1; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table pre { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; margin-top: 0.3rem; }
.admin-form { display: flex; flex-direction: column; gap: 0.8rem; max-width: 640px; }
.admin-field { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-field > span { font-weight: 600; font-size: 0.9rem; }
.admin-field small { color: var(--text-muted); }
.admin-check { flex-direction: row; align-items: center; gap: 0.5rem; }
.admin-check > span { font-weight: 400; }
.admin-stats .card { text-decoration: none; }
.admin-stat-n { font-size: 2rem; font-weight: 700; color: var(--sage-deep); line-height: 1.1; }
.admin-empty { text-align: center; color: var(--text-muted); }
.admin-badge { background: var(--sage-deep); color: var(--white); padding: 0.15rem 0.45rem; border-radius: 4px; display: inline-block; }
.admin-badge.warn { background: #f3e2c7; color: #6b4410; }
.admin-detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 0.4rem 1rem; margin-bottom: 1rem; }
.admin-detail dt { color: var(--text-muted); }
.admin-secret { border: 2px solid var(--sage-deep); margin-bottom: 1rem; }
.admin-code { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: 0.05em; margin: 0.5rem 0; }
.admin-note { margin-bottom: 1rem; }
.admin-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--nav); color: var(--white); padding: 0.6rem 1.1rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 50; }
.admin-toast.show { opacity: 1; }
.admin-toast.error { background: #8a2f2f; }
@media (max-width: 800px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-table thead { display: none; }
  .admin-table tr { display: block; border-bottom: 1px solid var(--border); padding: 0.4rem 0; }
  .admin-table td { display: flex; gap: 0.6rem; border: none; padding: 0.25rem 0.8rem; }
  .admin-table td::before { content: attr(data-label); min-width: 110px; color: var(--text-muted); font-size: 0.85rem; }
}

/* Public: promoted video + member quote */
.promo-video { max-width: 860px; margin: 0 auto; }
.promo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.promo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.member-quote { max-width: 700px; margin: 0 auto; text-align: center; }
.member-quote blockquote { font-size: 1.2rem; font-style: italic; }
.member-quote cite { display: block; margin-top: 0.5rem; color: var(--text-muted); font-style: normal; font-size: 0.95rem; }
.pw-rules { font-size: 0.85rem; color: var(--text-muted); list-style: none; }
.pw-rules li::before { content: '○ '; }
.pw-rules li.met { color: var(--sage-deep); }
.pw-rules li.met::before { content: '✓ '; }
.auth-ok { color: var(--sage-deep) !important; }
[hidden] { display: none !important; }

/* ---------- Batch B: admin extras, profile, checkout, reviews ---------- */
.admin-list { margin: 0.5rem 0 0 1.2rem; }
.admin-picks { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem; border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem; background: var(--white); }
.admin-dl, .profile-dl { display: grid; grid-template-columns: 170px 1fr; gap: 0.35rem 1rem; margin: 0.6rem 0 1rem; }
.admin-dl dt, .profile-dl dt { color: var(--text-muted); }
progress { width: 100%; height: 0.6rem; accent-color: var(--sage-deep); }
.profile-section { max-width: 900px; margin: 0 auto 2rem; }
.profile-section > h2 { margin-bottom: 0.75rem; }
.video-player { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; }
.video-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.reader { width: 100%; height: 80vh; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.reader-wrap { position: relative; }
.review-form textarea { font: inherit; padding: 0.6rem; border: 1px solid var(--border); border-radius: 6px; width: 100%; }
.reviews-list .card p:first-child { font-style: italic; }
.review-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.seat-status { text-align: center; margin: 0 auto 1.25rem; max-width: 700px; }
.checkout-box { max-width: 520px; margin: 0 auto 2rem; }
.test-banner { border: 2px dashed #b5651d; background: #fff4e5; border-radius: 6px; padding: 0.6rem 0.9rem; margin: 0.75rem 0; font-size: 0.9rem; }
@media (max-width: 600px) { .admin-dl, .profile-dl { grid-template-columns: 1fr; } }

/* ---------- Batch C ---------- */
.admin-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.admin-warn ul { margin: .5rem 0 1rem 1.25rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin: 1rem 0; }
.slot-list .btn { width: 100%; }
.block-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.receipt { max-width: 720px; margin: 2rem auto; background: #fff; padding: 2.5rem; }
.receipt-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; border-bottom: 1px solid #ddd; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.receipt-head img { max-height: 72px; }
.receipt table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.receipt td, .receipt th { text-align: left; padding: .5rem 0; border-bottom: 1px solid #eee; }
.receipt-foot { margin-top: 2rem; font-size: .9rem; color: #555; white-space: pre-line; }
@media print {
  header, footer, nav, .no-print { display: none !important; }
  .receipt { margin: 0; padding: 0; max-width: none; }
  body { background: #fff; }
}
.product-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }
