/* =============================================
   THE QUANTITATIVE EDGE — Main Stylesheet
   Aesthetic: Refined editorial / financial data
   Fonts: DM Serif Display + Sora + DM Mono
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg2:      #f4f4f5;
  --bg3:      #e8e8ea;
  --border:   rgba(0,0,0,0.08);
  --border2:  rgba(0,0,0,0.14);
  --text:     #1c1c1e;
  --muted:    #6b6b6b;
  --subtle:   #d1d1d6;
  --accent:   #0e7490;       /* cool teal */
  --accent2:  #0e7490;       /* teal complement */
  --green:    #16a34a;
  --red:      #dc2626;
  --teal:     #0d9488;

  --serif: 'Inter', system-ui, sans-serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  --max-w: 1140px;
  --radius: 8px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; font-size: 18px; overflow-y: scroll; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: #1a1a1a; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text); }
code, pre { font-family: var(--mono); }

.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 2rem 0; }
.section-sm { padding: 1rem 0; }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1rem;
  color: #1a1a1a;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  padding: 2px 7px;
  border-radius: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active {
  color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: #ffffff !important;
  border-radius: 5px;
  padding: 0.4rem 1rem !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

.nav-mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}
.nav-mobile-menu a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:last-child { border-bottom: none; }

/* ---- HERO ---- */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(14,116,144,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(74,158,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-gold {
  background: var(--accent);
  color: #ffffff;
}
.btn-gold:hover { background: #0a5a6e; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Hero signup box */
.hero-signup {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-signup-top {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.hero-signup-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(22,101,52,0.08);
  color: var(--accent);
  border: 1px solid rgba(22,101,52,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.hero-signup-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.hero-signup-desc {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.hero-signup-list-wrap {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.hero-signup-list-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.hero-signup-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-signup-list li {
  font-size: 0.825rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.hero-signup-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.hero-signup-magnet {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-signup-magnet-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.hero-signup-magnet-desc {
  font-size: 0.825rem;
  color: var(--text);
  font-weight: 500;
}
.hero-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem 1rem;
}
.hero-signup-form input {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.hero-signup-form input:focus { border-color: var(--accent); }
.hero-signup-form input::placeholder { color: var(--muted); }
.hero-signup-form .btn { width: 100%; justify-content: center; }
.hero-signup-proof {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
  padding: 0 1.5rem 1.25rem;
}

/* Hero card */
.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}
.hero-card-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ticker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.ticker-row:last-of-type { border-bottom: none; }
.ticker-sym { font-family: var(--mono); font-weight: 500; color: #1a1a1a; }
.ticker-desc { font-size: 0.82rem; color: var(--muted); margin-top: 1px; }
.ticker-val { font-family: var(--mono); }
.up   { color: var(--green); }
.down { color: var(--red); }
.hero-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
}



/* ---- SECTION HEADINGS ---- */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-heading h2 { flex: none; }
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- PRODUCTS GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
}
.product-card:hover { background: var(--bg3); }

.products-grid--free { grid-template-columns: repeat(2, 1fr); }
.products-grid--paid { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.product-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.badge-teal  { background: rgba(45,212,191,0.12); color: var(--teal); border: 1px solid rgba(45,212,191,0.2); }
.badge-amber { background: rgba(14,116,144,0.10); color: var(--accent); border: 1px solid rgba(14,116,144,0.2); }
.badge-blue  { background: rgba(74,158,255,0.12); color: var(--accent2); border: 1px solid rgba(74,158,255,0.2); }
.badge-coral { background: rgba(251,113,133,0.12); color: #fb7185; border: 1px solid rgba(251,113,133,0.2); }
.badge-green { background: rgba(22,163,74,0.10); color: #16a34a; border: 1px solid rgba(22,163,74,0.2); }

.product-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.product-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.product-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.product-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}
.product-link:hover { gap: 0.6rem; }

/* ---- FEATURED CARD ---- */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  align-items: stretch;
}
.featured-card-img {
  overflow: hidden;
}
.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.featured-card:hover .featured-card-img img { transform: scale(1.03); }
.featured-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem 2rem 0;
}
.featured-card-body h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
}
.featured-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.featured-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 2px 9px;
  border-radius: 50px;
}

.featured-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 0.5rem;
}
@media (max-width: 700px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-body { padding: 1.25rem; }
}

/* ---- BLOG GRID ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.post-card-img {
  aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.post-cat {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.post-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
}
.post-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.post-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.post-read-more {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

/* ---- NEWSLETTER STRIP ---- */
.newsletter-strip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  align-items: center;
}
.newsletter-divider {
  background: var(--border);
  width: 1px;
  height: 100%;
  min-height: 120px;
  justify-self: center;
}
.newsletter-strip h2 { margin-bottom: 0.75rem; font-size: clamp(1.4rem, 2vw, 1.8rem); white-space: nowrap; }
.newsletter-strip p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-form input {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.newsletter-perks li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.newsletter-perks li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
}

/* ---- TRUST BAR ---- */
/* ---- TRUST BAR ---- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg2);
}
.trust-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 2rem;
  border-right: 1px solid var(--border2);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
.trust-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.trust-logo-link {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.trust-logo-link:hover { opacity: 1; }

.trust-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* trust bar — tablet */
@media (max-width: 860px) {
  .trust-item { padding: 0.6rem 1.25rem; }
  .trust-num  { font-size: 1.2rem; }
}

/* trust bar — mobile: single column, inline layout */
@media (max-width: 560px) {
  .trust-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .trust-item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.6rem;
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding: 0.75rem 1.25rem;
    text-align: left;
  }
  .trust-item:last-child { border-bottom: none; }
  .trust-num {
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .trust-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.trust-logo-link {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.trust-logo-link:hover { opacity: 1; }

.trust-lbl {
    font-size: 0.78rem;
    white-space: normal;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
  }
}

.about-social-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.about-social-links {
  display: flex;
  gap: 0.5rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
}

/* ---- ABOUT STRIP ---- */
.about-strip {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.about-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border2);
  overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.3rem; }
.about-creds { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.about-bio   { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.about-link  { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* ---- STICKY BAR ---- */
.sticky-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 0.6rem 1rem 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  white-space: nowrap;
  animation: slideUp 0.4s ease 1.5s both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.sticky-bar p {
  font-size: 0.8rem;
  color: var(--muted);
}
.sticky-bar strong { color: var(--text); }
.sticky-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
  margin-left: 0.25rem;
  transition: color 0.2s;
}
.sticky-close:hover { color: var(--text); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand p  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; max-width: 220px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a  { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ---- BLOG PAGE ---- */
.page-hero {
  padding: 7rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .label { margin-bottom: 1.5rem; display: block; }
.page-hero h1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0.75rem; font-weight: 400; }
.page-hero p  { color: var(--muted); font-size: 1rem; }

.search-bar-wrap {
  padding: 1rem 0 0;
}
.search-bar-wrap input {
  width: 100%;
  max-width: 480px;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar-wrap input:focus {
  border-color: var(--accent);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14,116,144,0.06);
}

/* ---- SINGLE POST ---- */
.single-hero {
  padding: 7rem 0 3rem;
  max-width: 780px;
}
.single-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.single-body h2 { font-size: 1.35rem; }
.single-body h3 { font-size: 1.15rem; }
.single-body h4 { font-size: 1rem; }
.single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.single-body {
  max-width: 720px;
  padding: 2.5rem 0 4rem;
}
.single-body h2,
.single-body h3 { margin: 2rem 0 0.75rem; }
.single-body p  { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.8; }
.single-body a  { color: var(--accent); text-decoration: underline; }
.single-body a:hover { color: var(--accent2); }
.single-body ul,
.single-body ol { margin: 0 0 1.25rem 1.5rem; }
.single-body li { line-height: 1.75; font-size: 0.95rem; margin-bottom: 0.3rem; }
.single-body pre {
  background: #0d1117 !important;
  border: none;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #d8dee9;
}
.single-body code {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.82em;
  color: var(--accent);
}
.single-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.single-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
.single-body img {
  border-radius: 8px;
  margin: 1.5rem 0;
  width: 100%;
}
.single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.single-body th {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border2);
  text-align: left;
}
.single-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 50px;
  transition: all 0.2s;
}
.post-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Related posts */
.related-posts { padding: 3rem 0 5rem; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--muted); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---- EDITION ANATOMY ---- */
.edition-anatomy {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
}
.edition-section {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.2s;
}
.edition-section:last-child { border-bottom: none; }
.edition-section:hover { background: var(--bg2); }
.edition-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  padding-top: 2px;
  flex-shrink: 0;
  width: 20px;
}
.edition-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.edition-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.edition-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- NEWSLETTER PROOF ---- */
.newsletter-proof {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
}
.newsletter-proof-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border2);
  background: var(--bg2);
}
.newsletter-proof-item:last-child { border-right: none; }
.newsletter-proof-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.newsletter-proof-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.newsletter-personal {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.newsletter-personal p { color: var(--text); margin: 0; }

.article-signup-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-signup-form input[type="email"] {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg3);
  color: var(--text);
  outline: none;
  width: 280px;
  transition: border-color 0.2s;
}
.article-signup-form input[type="email"]:focus { border-color: var(--accent); }

.contact-textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  width: 100%;
}
.contact-textarea:focus { border-color: var(--accent); }

/* ---- STATIC PAGES (Course, Coaching, etc.) ---- */
.static-page {
  max-width: 760px;
  padding: 7rem 0 5rem;
}
.static-page h1 { margin-bottom: 0.75rem; }
.static-page .page-sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 3rem; }
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14,116,144,0.08);
  color: var(--accent);
  border: 1px solid rgba(14,116,144,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.waitlist-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.waitlist-box h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.waitlist-box p  { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }
.waitlist-form {
  display: flex;
  gap: 0.75rem;
}
.waitlist-form input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  outline: none;
}
.waitlist-form input:focus { border-color: var(--accent); }
.name-row { display: flex; gap: 0.5rem; }

/* ---- THANK YOU PAGE ---- */
.thank-you-page { padding: 8rem 0 5rem; }
.thank-you-box {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.thank-you-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  line-height: 64px;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}
.thank-you-box h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.thank-you-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.thank-you-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}
.thank-you-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}
.step-num {
  display: inline-block;
  min-width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  line-height: 30px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.thank-you-icon {
  display: block;
  text-align: center;
}
.thank-you-spam {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: all 0.2s;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

/* ---- UTILITIES ---- */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; }
  .hero-card        { display: none; }
  .blog-grid        { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .products-grid--free, .products-grid--paid { grid-template-columns: 1fr; }
  .newsletter-strip { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
  .newsletter-divider { width: 100%; height: 1px; min-height: unset; }
  .newsletter-strip h2 { white-space: normal; font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .related-grid     { grid-template-columns: 1fr 1fr; }
  .trust-item       { padding: 0.5rem 1.5rem; }
}
@media (max-width: 640px) {
  .nav-links        { display: none; }
  .nav-mobile-btn   { display: block; color: #111; border-color: #ccc; }
  .blog-grid        { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: 1fr; }
  .trust-bar-inner  { gap: 0; }
  .trust-item       { padding: 0.75rem 1rem; width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .sticky-bar p     { font-size: 0.75rem; }
  .waitlist-form    { flex-direction: column; }
  .name-row         { flex-direction: column; gap: 0.75rem; }
  .cf-turnstile     { transform: scale(0.82); transform-origin: left center; margin-bottom: -0.5rem; }
  .about-strip      { grid-template-columns: 1fr; }
  .newsletter-strip { padding: 1.5rem; }
  .newsletter-strip h2 { font-size: 1.5rem; }
  .single-hero      { padding: 6rem 0 2rem; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ---- FREE RESOURCES PAGE ---- */
.free-resource-item { margin-bottom: 4rem; }
.free-resource-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.free-resource-title { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0.4rem 0 0.6rem; font-weight: 400; }
.free-resource-desc  { color: var(--muted); font-size: 0.95rem; max-width: 65ch; line-height: 1.7; }
.free-resource-download { white-space: nowrap; flex-shrink: 0; }
.free-resource-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.free-resource-seo-body {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.free-resource-seo-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; font-weight: 500; }
.free-resource-seo-body p  { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.free-resource-seo-body ul { margin: 0 0 1rem 1.25rem; }
.free-resource-seo-body li { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.3rem; }
.free-resource-seo-body a  { color: var(--accent); text-decoration: underline; }

/* ---- PDF VIEWER PAGE ---- */
.pdf-viewer-page { max-width: 860px; margin: 0 auto; }

.pdf-embed-wrap {
  width: 100%;
  min-height: 700px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
}

.pdf-embed {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

.pdf-viewer-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

/* prevent .single-body a from clobbering button text colour */
.single-body a.btn { text-decoration: none; }
.single-body a.btn-gold { color: #ffffff; }
.single-body a.btn-gold:hover { color: #ffffff; }

@media (max-width: 600px) {
  .pdf-embed, .pdf-embed-wrap { min-height: 420px; height: 420px; }
  .pdf-viewer-actions .btn { width: 100%; justify-content: center; }
}

/* Syntax highlight overrides */
.highlight pre { background: #0d1117 !important; border: none; border-radius: 8px; }
