/* ============================================================================
   Make Chart Posts - sales site styles
   Dark, chart-video aesthetic: black stage, green up / red down accents.
   ==========================================================================*/

:root {
  --bg: #0a0d12;
  --bg-elev: #11161d;
  --bg-card: #151b23;
  --border: #232c38;
  --text: #eef2f6;
  --muted: #9aa7b4;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --accent: #3b82f6;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 50% -200px, #16202c 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green);
  color: #04180c;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.btn-primary:hover { background: #2ee06a; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--muted); background: var(--bg-elev); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(10, 13, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
/* CSS-drawn triangle mark (no font glyph dependency) */
.tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid currentColor;
  vertical-align: baseline;
}
.brand .spark {
  color: var(--green);
  border-left-width: 7px; border-right-width: 7px; border-bottom-width: 12px;
}
/* Inline dot separator (replaces middot glyph) */
.sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  vertical-align: middle;
  margin: 0 8px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: 0.9rem; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 20px 0 16px;
  font-weight: 800;
}
.hero h1 .up { color: var(--green); }
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* ---- Dashboard panel ---- */
.dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 8px;
}
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 8px;
  flex-wrap: wrap;
}
.dash-title { font-size: 0.9rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.dash-total { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.dash-total .cur { color: var(--muted); font-weight: 700; }
.dash-badge {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.dash-sub { color: var(--muted); font-size: 0.85rem; padding: 0 24px; margin: 0; }
.chart-holder { padding: 12px 12px 20px; }
canvas#earningsChart { width: 100%; height: 300px; display: block; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.dash-stat { background: var(--bg-card); padding: 16px 20px; }
.dash-stat .k { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.dash-stat .v { font-size: 1.2rem; font-weight: 800; margin-top: 2px; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* ---- Proof ---- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
}
.proof-card img { width: 100%; height: auto; border-radius: 10px; display: block; }
.proof-card .cap { color: var(--muted); font-size: 0.85rem; padding: 12px 6px 4px; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.tag {
  position: absolute;
  top: -12px; right: 22px;
  background: var(--green);
  color: #04180c;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.price-card .kicker { color: var(--muted); margin: 0 0 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
.price .cur { font-size: 1.4rem; color: var(--muted); font-weight: 700; }
.price .per { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 28px; color: var(--text); }
/* CSS-drawn checkmark (no font glyph dependency) */
.features li::before {
  content: "";
  position: absolute;
  left: 5px; top: 4px;
  width: 6px; height: 11px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.price-card .btn { margin-top: auto; width: 100%; }
.price-card .fine { color: var(--muted); font-size: 0.82rem; margin: 12px 0 0; text-align: center; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- Thanks page ---- */
.thanks-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.thanks-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 36px;
  max-width: 560px;
}
.thanks-card .check {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 2px solid var(--green);
}
/* CSS-drawn checkmark (no font glyph dependency) */
.thanks-card .check::after {
  content: "";
  position: absolute;
  left: 27px; top: 17px;
  width: 12px; height: 24px;
  border: solid var(--green);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}
.thanks-card h1 { margin: 0 0 12px; font-size: 1.9rem; }
.thanks-card p { color: var(--muted); margin: 0 0 10px; }
.thanks-card .muted-small { font-size: 0.85rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 28px; }
  .dash-stats { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
