/* ============================================
   Zoom-Out — Design System
   ============================================ */

:root {
  --bg: #0a0d0b;
  --bg-alt: #10140f;
  --surface: #161b16;
  --surface-2: #1d231d;
  --border: #2a322a;
  --text: #f3f5f2;
  --text-dim: #a7b2a5;
  --text-faint: #6f7a6d;
  --green: #4caf50;
  --green-bright: #8fd858;
  --green-deep: #2e6b31;
  --red: #e2503e;
  --red-deep: #7a2d24;
  --white: #ffffff;

  --max-w: 1160px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --font-head: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; padding: 96px 0; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--green-bright);
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-bright);
  display: inline-block;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 640px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-bright);
  color: #08240c;
  box-shadow: 0 10px 30px -8px rgba(143, 216, 88, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(143, 216, 88, 0.7); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green-bright); color: var(--green-bright); transform: translateY(-2px); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--white); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); display: block; transition: 0.2s; }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
}
@media (max-width: 859px) {
  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 10px;
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.22), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { max-width: 900px; }
.hero h1 .accent { color: var(--green-bright); }
.hero .lede { max-width: 560px; margin: 18px auto 34px; text-align: center; font-size: 1.25rem; }

.hero-mark {
  width: 168px;
  margin: 8px auto 44px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 3px solid var(--green-bright);
  padding: 4px 0 4px 28px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  max-width: 720px;
}
.quote-block cite { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 0.9rem; color: var(--text-faint); font-style: normal; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse .split-media { order: -1; }
@media (min-width: 880px) { .split.reverse .split-media { order: 1; } }

/* ---------- Trap vs Zoom-Out comparison (brand card motif) ---------- */
.face-off {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 720px) { .face-off { grid-template-columns: 1fr 1fr; } }

.face-card {
  border-radius: var(--radius-m);
  padding: 30px;
  border: 1px solid;
  background: var(--surface);
}
.face-card.trap { border-color: var(--red-deep); }
.face-card.zoom { border-color: var(--green-deep); }

.face-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid;
  margin-bottom: 18px;
}
.face-tag.trap { color: var(--red); border-color: var(--red-deep); }
.face-tag.zoom { color: var(--green-bright); border-color: var(--green-deep); }

.face-card ul { margin: 0; padding: 0; list-style: none; }
.face-card li {
  font-family: var(--font-head);
  font-size: 1.05rem;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.face-card li:first-of-type { border-top: none; }
.face-card.trap li { color: #f0b6ac; }
.face-card.zoom li { color: #cdeeb0; }

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--green-deep); box-shadow: var(--shadow-card); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-bright);
  background: rgba(76, 175, 80, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-bright); font-size: 0.92rem; margin-top: 14px; }
.card-link .arrow { transition: transform 0.2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 1.05rem; }
.checklist .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--green-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ---------- Product / book ---------- */
.book-cover {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  max-width: 340px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.book-cover:hover { transform: translateY(-6px) rotate(-1deg); }

.card-pack-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 460px;
  margin: 0 auto;
}
@media (min-width: 640px) { .card-pack-grid { max-width: 100%; grid-template-columns: repeat(4, 1fr); } }
.card-pack-grid img {
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-pack-grid img:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-card); }

/* ---------- Socials ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.social-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.social-pill:hover { border-color: var(--green-bright); color: var(--green-bright); transform: translateY(-2px); }

/* ---------- Banner / CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--green-deep), #163417);
  border-radius: var(--radius-l);
  padding: 64px 40px;
  text-align: center;
  border: 1px solid var(--green-deep);
}
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: #d3e8c4; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.page-hero .lede { margin: 0 auto; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-alt); }
.footer-top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand img { width: 34px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-dim); font-weight: 600; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Blog list ---------- */
.blog-card .tag { color: var(--text-faint); background: var(--surface-2); }

.filter-box { max-width: 480px; margin: 28px auto 0; }
.filter-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--font-body);
  font-size: 16px; /* keep >=16px: iOS Safari auto-zooms the page on focus below this */
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-input::placeholder { color: var(--text-faint); }
.filter-input:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(143, 216, 88, 0.18);
}

/* ---------- Video grid ---------- */
.video-card { position: relative; overflow: hidden; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 18px 20px 22px; }
.video-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.video-body p { font-size: 0.88rem; margin: 0; }

/* ---------- Lightbox ---------- */
.card-pack-grid img.lightbox-trigger { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 7, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  /* generous top padding so the close button never overlaps the image,
     on any viewport size or orientation */
  padding: 76px 20px 20px;
  box-sizing: border-box;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--green-bright); color: var(--green-bright); }

/* ---------- Exercise callout (workshop pages) ---------- */
.exercise-box {
  background: var(--surface);
  border: 1px solid var(--green-deep);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin: 24px 0 32px;
}
.exercise-box .exercise-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--green-bright);
  margin-bottom: 10px;
}
.exercise-box p:last-child { margin-bottom: 0; }

/* ---------- Blog post / migrated article content ---------- */
.post-header { padding: 48px 0 24px; }
.post-meta { color: var(--text-faint); font-size: 0.9rem; margin: 0; }

.post-body { max-width: 720px; margin: 0 auto; padding-bottom: 32px; }
.post-body p { color: var(--text-dim); font-size: 1.05rem; }
.post-body ul, .post-body ol { color: var(--text-dim); padding-left: 1.4em; margin-bottom: 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 2px; }

.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.4em; }

.post-body figcaption { color: var(--text-faint); font-size: 0.85rem; margin-top: 10px; }

blockquote.post-quote {
  border-left: 3px solid var(--green-bright);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
}

.post-image,
.post-image-full {
  margin: 2em 0;
  text-align: center;
}
.post-image img { margin: 0 auto; border-radius: var(--radius-m); }
.post-image-full img { border-radius: var(--radius-m); width: 100%; }

.post-body table.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}
.post-body table.post-table th,
.post-body table.post-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.post-body table.post-table th { background: var(--surface-2); color: var(--text); }

.post-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5em 0;
}

.post-embed {
  position: relative;
  padding-top: 56.25%; /* fallback 16:9; individual posts override inline with their embed's real ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  margin: 2em 0;
}
.post-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-facade {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}
.embed-facade-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 13, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.embed-facade:hover .embed-facade-play { transform: scale(1.08); background: rgba(76, 175, 80, 0.85); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 0; border: none; }
.small-note { font-size: 0.85rem; color: var(--text-faint); }
