/* IMDY — modern static site */
:root {
  --primary: #1b3c07;
  --secondary: #425d31;
  --bg: #c3d2ae;
  --bg-soft: #d8e4c8;
  --tertiary: #edfadb;
  --cream: #f7faf2;
  --ink: #14260a;
  --muted: #4a5c3c;
  --card: #ffffff;
  --accent: #6b8f3c;
  --border: rgba(27, 60, 7, 0.12);
  --shadow: 0 12px 40px rgba(20, 38, 10, 0.08);
  --radius: 16px;
  --max: 720px;
  --wide: 1100px;
  --font-display: "Literata", "Lora", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-ui: "Lato", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Subtle preview banner */
.staging-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--tertiary);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  box-shadow: none;
  opacity: 0.95;
}
.staging-banner span { opacity: 0.75; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }

/* Header */
.site-header {
  position: relative;
  z-index: 1100;
  backdrop-filter: blur(10px);
  background: rgba(195, 210, 174, 0.85);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(27,60,7,0.15);
  background: #fff;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.brand-text small {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--secondary);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--tertiary);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  font-family: var(--font-ui);
  background: var(--primary);
  color: var(--tertiary);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  min-height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  border-radius: 0;
}
.hero-photo .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  z-index: 0;
}
.hero-photo .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Lighter so the couple + mountains stay visible */
  background:
    linear-gradient(90deg, rgba(12, 24, 6, 0.72) 0%, rgba(12, 24, 6, 0.42) 40%, rgba(12, 24, 6, 0.16) 68%, rgba(12, 24, 6, 0.06) 100%),
    linear-gradient(180deg, rgba(12, 24, 6, 0.18) 0%, rgba(12, 24, 6, 0.38) 100%);
}
.hero-photo .hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 62vh, 640px);
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: #edfadb;
  font-weight: 700;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.55);
}
.hero-photo .eyebrow {
  color: #c3d2ae;
}
.hero-copy .lede {
  font-size: 1.12rem;
  color: rgba(237, 250, 219, 0.9);
  margin: 0 0 1.5rem;
  max-width: 34rem;
}
.hero-photo .btn-ghost {
  border-color: rgba(237, 250, 219, 0.45);
  color: #edfadb;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.hero-photo .btn-ghost:hover {
  background: rgba(237, 250, 219, 0.18);
  color: #fff;
}
.hero-art {
  display: none;
}
.hero-art img {
  display: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--tertiary);
}
.btn-primary:hover { background: var(--secondary); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: rgba(27,60,7,0.25);
  color: var(--primary);
}
.btn-ghost:hover { background: var(--tertiary); color: var(--primary); }

/* Sections */
.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0;
  color: var(--primary);
}
.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.protocol-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.protocol-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.3;
}
.protocol-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.pill {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tertiary);
  color: var(--secondary);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.pillar {
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.pillar strong {
  display: block;
  font-family: var(--font-ui);
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.pillar span { color: var(--muted); font-size: 0.95rem; }

/* Article layout */
.article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.article-hero {
  margin-bottom: 2rem;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.2;
  margin: 0.4rem 0 0.85rem;
  color: var(--primary);
}
.byline {
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.byline strong { color: var(--primary); }

.prose h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}
.prose h3 {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}
.prose li { margin: 0.35rem 0; }
.prose .callout {
  background: var(--tertiary);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.prose .closer {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}

/* Product / affiliate cards */
.product-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.product-card {
  background: var(--card);
  border: 1px dashed rgba(27,60,7,0.35);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
}
.product-card .label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7a2e0e;
  background: #fde8d8;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}
.product-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--primary);
}
.product-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.product-card .status {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--bg-soft);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* About */
.about-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(195, 210, 174, 0.45);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-inner strong { color: var(--primary); }
.footer-note {
  background: #fff4e8;
  border: 1px solid #f0c9a0;
  color: #6a3a12;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  max-width: 28rem;
}

/* Mobile */
@media (max-width: 860px) {
  .hero-photo .hero-copy { min-height: 70vh; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-copy h1 { max-width: 12ch; }
  .card-grid, .pillars { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 0.5rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .product-card { grid-template-columns: 1fr; }
  .product-card.has-cover,
  .product-card.has-thumb { grid-template-columns: 56px 1fr; }
  .product-card.has-cover .status,
  .product-card.has-thumb .status { display: none; }
}

/* Affiliate disclosure + ASIN notes (affiliate UI) */
.affiliate-disclosure {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #6a3a12;
  background: #fff4e8;
  border: 1px solid #f0c9a0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1.25rem 0 0.5rem;
}
.affiliate-disclosure strong { color: #7a2e0e; }
.product-card .asin-note {
  margin: 0.55rem 0;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--tertiary);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}
.product-card .asin-note code {
  font-size: 0.84em;
  background: rgba(27,60,7,0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}


/* Community Wins */
.community-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  color: var(--primary);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.2;
  max-width: 18ch;
}
.community-lede { max-width: 38rem; color: var(--muted); }
.win-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}
.win-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}
.win-form input[type="text"],
.win-form textarea,
.win-form input[type="file"] {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}
.win-form .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--muted);
}
.win-form .checkbox-row input { margin-top: 0.2rem; }
.field-hint {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.wins-feed {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}
.win-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.win-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.win-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tertiary);
  color: var(--primary);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(27,60,7,0.12);
}
.win-meta {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.win-card h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.win-card p { margin: 0 0 0.85rem; color: var(--ink); }
.win-video-placeholder {
  background: linear-gradient(135deg, #1b3c07, #425d31);
  color: var(--tertiary);
  border-radius: 12px;
  min-height: 160px;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.win-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.chip {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--tertiary);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: not-allowed;
  opacity: 0.85;
}
.win-comments {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-size: 0.95rem;
}
.win-comments p { margin: 0.35rem 0; color: var(--muted); }
.win-comments strong { color: var(--primary); }


/* Community interactive demo extras */
.demo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.demo-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 7.5rem;
  box-shadow: var(--shadow);
}
.demo-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--primary);
  line-height: 1.1;
}
.demo-stat span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.filter-chip {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--primary);
  color: var(--tertiary);
  border-color: var(--primary);
}
.win-form select,
.win-form input[type="number"] {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}
.chip-active {
  cursor: pointer;
  opacity: 1;
}
.chip-active:hover {
  background: var(--primary);
  color: var(--tertiary);
  border-color: var(--primary);
}
.win-video {
  margin: 0 0 0.85rem;
}
.win-video video {
  width: 100%;
  max-height: 280px;
  border-radius: 12px;
  background: #0f1a0a;
  object-fit: cover;
}
.video-caption {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.video-preview-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-preview-wrap video {
  width: 100%;
  max-height: 220px;
  display: block;
  background: #0f1a0a;
}
.encourage-box {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  flex-wrap: wrap;
}
.encourage-input {
  flex: 1;
  min-width: 12rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
}
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--tertiary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2000;
}

/* Pillar library */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27,60,7,0.35);
  color: inherit;
}
.pillar-card h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
}
.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.compare-table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table th {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tertiary);
  color: var(--secondary);
}
@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
}


/* Free ebook / membership */
.nav-cta {
  background: var(--primary) !important;
  color: var(--tertiary) !important;
}
.nav-cta:hover {
  background: var(--secondary) !important;
  color: #fff !important;
}
.ebook-band {
  padding-top: 0.5rem;
}
.ebook-band-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--tertiary);
  border-radius: calc(var(--radius) + 4px);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.ebook-band-inner h2 {
  font-family: var(--font-display);
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: #edfadb;
}
.ebook-band-inner p {
  margin: 0;
  max-width: 36rem;
  color: rgba(237, 250, 219, 0.9);
}
.ebook-band-inner .eyebrow { color: #c3d2ae; }
.ebook-band-inner .btn-primary {
  background: #edfadb;
  color: var(--primary);
}
.ebook-band-inner .btn-primary:hover {
  background: #fff;
  color: var(--primary);
}
.ebook-band-inner .btn-ghost {
  border-color: rgba(237, 250, 219, 0.45);
  color: #edfadb;
}
.ebook-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  max-width: var(--wide);
  margin: 0 auto;
}
.ebook-pillars {
  margin: 1rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
}
.ebook-pillars li { margin: 0.45rem 0; }
.ebook-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.ebook-card h2 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.ebook-card-lede {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}
.ebook-success {
  background: var(--tertiary);
  border-radius: 12px;
  padding: 1.25rem;
}
.ebook-success h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-family: var(--font-display);
}
.member-strip {
  margin: 1rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 860px) {
  .ebook-layout { grid-template-columns: 1fr; }
}


/* Protocol tabs */
.protocol-tabs {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 28px;
  z-index: 50;
}
.protocol-tabs-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.protocol-tab {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--secondary);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.protocol-tab:hover,
.protocol-tab[aria-current="page"] {
  background: var(--primary);
  color: var(--tertiary);
}
.protocols-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .protocols-grid { grid-template-columns: 1fr; }
  .protocol-tabs { top: 26px; }
}


/* huberman-book-cover */
.book-buy-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin: 1.25rem 0 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid rgba(27,60,7,0.18);
  border-radius: var(--radius);
}
.book-buy-hero a.book-cover-link {
  display: block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.book-buy-hero a.book-cover-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.book-buy-hero img.book-cover {
  width: 160px;
  height: auto;
  display: block;
}
.book-buy-hero .book-buy-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  color: var(--primary);
}
.book-buy-hero .book-buy-copy p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.book-buy-hero .book-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
@media (max-width: 640px) {
  .book-buy-hero {
    grid-template-columns: 120px 1fr;
  }
  .book-buy-hero img.book-cover { width: 120px; }
}
.product-card.has-cover,
.product-card.has-thumb {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
}
.product-card.has-cover img.product-thumb,
.product-card.has-thumb img.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(27,60,7,0.08);
  padding: 4px;
  display: block;
}
/* Book covers can keep taller aspect when height is set via HTML attrs */
.product-card.has-cover img.product-thumb[height="108"] {
  height: auto;
  max-height: 108px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .product-card.has-cover,
  .product-card.has-thumb {
    grid-template-columns: 56px 1fr;
  }
  .product-card.has-cover .status,
  .product-card.has-thumb .status { display: none; }
  .product-card.has-cover img.product-thumb,
  .product-card.has-thumb img.product-thumb {
    width: 56px;
    height: 56px;
  }
  .product-card.has-cover img.product-thumb[height="108"] {
    height: auto;
    max-height: 84px;
  }
}


.book-buy-copy .label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7a2e0e;
  background: #fde8d8;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}
.pillar-card-with-cover,
.protocol-card-with-cover {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.pillar-cover-thumb {
  width: 72px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  display: block;
}


/* huberman-home-card */
.protocol-card.huberman-home-card {
  display: grid !important;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  align-items: center;
  flex-direction: unset;
}
.huberman-home-cover-link {
  display: block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.huberman-home-cover-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.huberman-home-cover {
  width: 140px;
  height: auto;
  display: block;
}
.huberman-home-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
@media (max-width: 640px) {
  .protocol-card.huberman-home-card {
    grid-template-columns: 100px 1fr;
  }
  .huberman-home-cover { width: 100px; }
}

/* page-hero-banners */

/* page-hero-banners */
.page-hero {
  position: relative;
  display: block;
  min-height: clamp(280px, 42vh, 460px);
  overflow: hidden;
  margin: 0;
}
.page-hero .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  z-index: 0;
}
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 24, 6, 0.78) 0%, rgba(12, 24, 6, 0.48) 48%, rgba(12, 24, 6, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 24, 6, 0.2) 0%, rgba(12, 24, 6, 0.48) 100%);
}
.page-hero .page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  min-height: clamp(280px, 42vh, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero .eyebrow {
  color: #c3d2ae;
  margin-bottom: 0.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  color: #edfadb;
  font-weight: 700;
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.6);
}
.page-hero .lede {
  margin: 0.75rem 0 0;
  color: rgba(237, 250, 219, 0.9);
  max-width: 36rem;
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .page-hero, .page-hero .page-hero-copy { min-height: 240px; }
}

/* logo-mark */

/* logo-mark — mountain + imndy letters, not the circular crop */
.logo-mark {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.logo-mark img {
  width: 88px;
  height: auto;
  border-radius: 10px; /* soft square, not a circle */
  border: 0;
  background: #000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand .footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--muted);
}
.footer-brand .footer-brand-text strong {
  color: var(--primary);
  font-size: 0.95rem;
}
.about-logo {
  margin: 0 0 1.25rem;
}
.about-logo img {
  width: 120px;
}

/* contact-page */
.contact-email-block {
  font-size: 1.15rem;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
}
.contact-email-block a {
  font-weight: 700;
  word-break: break-all;
}
.footer-contact {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }
