/* ============================================================
   SMARTLOG TRADER — Shared Stylesheet
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg-secondary: #f7f6f2;
  --bg-dark: #111110;
  --text-primary: #1a1a18;
  --text-secondary: #5a5a56;
  --text-tertiary: #9a9a94;
  --text-inverse: #f5f4f0;
  --border: rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.18);
  --accent: #1a1a18;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Playfair Display', serif; }

/* ── LAYOUT ── */
.page { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
.site-nav {
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-cta {
  font-size: 12px;
  padding: 7px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--bg-secondary); }

/* ── FOOTER ── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 11px;
  color: var(--text-tertiary);
  width: 100%;
}

/* ── HERO ── */
.hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 0.5px solid var(--border);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
}
.hero-hook {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.hero-hook em { font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  border-left: 2px solid var(--border-strong);
  padding-left: 12px;
}
.hero-deck {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-deck strong { color: var(--text-primary); font-weight: 500; }
.author-line {
  font-size: 13px;
  color: var(--text-tertiary);
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 1.75rem;
}
.author-line span { color: var(--text-secondary); font-weight: 500; }

/* ── BOOK BANNER ── */
.book-banner {
  padding: 1.25rem 1.5rem;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.book-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.book-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
}

/* ── SECTIONS ── */
.section { padding: 2.5rem 0; border-bottom: 0.5px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.section-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

/* ── SYMPTOMS GRID ── */
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0.5rem; }
.symptom {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.symptom-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-tertiary); flex-shrink: 0; }

/* ── ARC STEPS ── */
.arc { display: flex; flex-direction: column; }
.arc-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 0.5px solid var(--border);
}
.arc-step:last-child { border-bottom: none; }
.arc-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--text-tertiary);
  width: 22px;
  flex-shrink: 0;
  padding-top: 2px;
}
.arc-content strong { font-size: 14px; font-weight: 500; display: block; margin-bottom: 3px; }
.arc-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; font-weight: 400; }

/* ── MODULE GRID ── */
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.module-card {
  padding: 1rem 1.1rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
}
.module-num { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 5px; }
.module-title { font-size: 13px; font-weight: 500; margin-bottom: 5px; line-height: 1.4; }
.module-hook { font-size: 12px; color: var(--text-secondary); line-height: 1.55; font-weight: 300; }
.phase-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 1rem 0 0.4rem;
  grid-column: 1 / -1;
  border-top: 0.5px solid var(--border);
  margin-top: 4px;
}
.phase-label:first-child { border-top: none; padding-top: 0; }

/* ── LOG FIELDS ── */
.log-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.log-field {
  padding: 10px 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
}
.log-field span { display: block; font-size: 11px; color: var(--text-tertiary); font-weight: 300; margin-top: 3px; line-height: 1.4; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.price-card {
  padding: 1.4rem 1.1rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}
.price-card.featured { border: 1.5px solid var(--border-strong); }
.badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-strong);
  border-radius: 100px;
  padding: 2px 12px;
  white-space: nowrap;
  color: var(--text-secondary);
}
.price-tier { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.price-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.price-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; font-weight: 300; }
.price-includes { font-size: 11px; color: var(--text-tertiary); line-height: 1.7; list-style: none; }
.price-includes li::before { content: "— "; }
.price-was { font-size: 11px; color: var(--text-tertiary); text-decoration: line-through; }
.price-amount { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; line-height: 1.1; }
.price-amount sub { font-size: 12px; font-weight: 300; color: var(--text-secondary); font-family: 'DM Sans', sans-serif; vertical-align: baseline; }
.price-saving { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.iotaf-note {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  line-height: 1.5;
}
.price-cta {
  font-size: 12px;
  padding: 9px 0 0;
  border-top: 0.5px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  background: none;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  margin-top: auto;
  transition: color 0.15s;
  text-decoration: none;
  display: block;
}
.price-cta:hover { color: var(--text-primary); }

/* ── ABOUT / INSTRUCTOR ── */
.about-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.about-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0.5px solid var(--border-strong);
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-name { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.about-role { font-size: 12px; color: var(--text-tertiary); margin-bottom: 0.75rem; }
.about-bio { font-size: 14px; line-height: 1.8; color: var(--text-secondary); font-weight: 300; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  background: none;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--bg-secondary); }
.btn-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-color: var(--bg-dark);
}
.btn-dark:hover { background: #2a2a28; }
.btn-sm { font-size: 12px; padding: 9px 20px; }

/* ── FOOTER CTA BAND ── */
.cta-band {
  padding: 3.5rem 0;
  text-align: center;
  border-top: 0.5px solid var(--border);
  margin-top: 1rem;
}
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 0.75rem; }
.cta-band p { font-size: 15px; color: var(--text-secondary); font-weight: 300; margin-bottom: 1.75rem; line-height: 1.7; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ── STAT ROW ── */
.stat-row { display: flex; gap: 0; border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1rem; }
.stat {
  flex: 1;
  padding: 1.1rem 1.25rem;
  border-right: 0.5px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-tertiary); line-height: 1.4; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 3rem 0 2rem; border-bottom: 0.5px solid var(--border); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-hero p { font-size: 16px; color: var(--text-secondary); font-weight: 300; max-width: 540px; line-height: 1.75; }

/* ── ARTICLE LIST ── */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.article-item:hover { opacity: 0.7; }
.article-item:last-child { border-bottom: none; }
.article-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-tertiary); margin-bottom: 5px; }
.article-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; line-height: 1.4; }
.article-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; font-weight: 300; }
.article-arrow { font-size: 16px; color: var(--text-tertiary); flex-shrink: 0; margin-top: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero-hook { font-size: 30px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .symptoms { grid-template-columns: 1fr; }
  .log-fields { grid-template-columns: 1fr 1fr; }
  .book-banner { flex-direction: column; align-items: flex-start; }
  .stat-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 0.5px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .page-hero h1 { font-size: 28px; }
}
