/* TradeKarma — shared styles (light theme)
   Palette derived from logo: green / orange / gold on a clean white base */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --bg-elev: #ffffff;
  --bg-elev-2: #f1f4f6;
  --border: #e4e8ec;
  --text: #1a2027;
  --text-muted: #5c6873;
  --green: #1f9d43;
  --green-deep: #17772f;
  --orange: #f26b1d;
  --gold: #d69a20;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(20, 30, 40, 0.08);
  --shadow-hover: 0 16px 40px rgba(20, 30, 40, 0.12);
  --font: "Inter", -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);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(31, 157, 67, 0.07), transparent 60%),
    radial-gradient(950px 460px at 92% -5%, rgba(242, 107, 29, 0.07), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; display: block; }
.brand .wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.2px; }
.brand .wordmark .k { color: var(--gold); }
.brand .wordmark .t { color: var(--orange); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #ffffff;
}
.btn-primary:hover { transform: translateY(-2px); color: #ffffff; box-shadow: 0 8px 22px rgba(242, 107, 29, 0.28); }
.btn-ghost {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 40px; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242, 107, 29, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 107, 29, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(242, 107, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 107, 29, 0); }
}
.hero-logo { width: 150px; height: auto; margin: 0 auto 22px; display: block; filter: drop-shadow(0 8px 24px rgba(20, 30, 40, 0.12)); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--orange); }
.hero .tagline {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Progress ---------- */
.progress-wrap { max-width: 520px; margin: 44px auto 0; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px;
}
.progress-bar {
  height: 10px; border-radius: 999px;
  background: var(--bg-elev-2); overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar > span {
  display: block; height: 100%; width: 35%;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--orange));
  border-radius: 999px;
}

/* ---------- Product cards ---------- */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 1.7rem; font-weight: 800; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-hover); }
.card .kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.card.options .kicker { color: var(--orange); }
.card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.card p { color: var(--text-muted); margin: 0 0 16px; font-size: 0.98rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

/* ---------- Signup ---------- */
.signup {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px;
}
.signup h3 { margin: 0 0 8px; font-size: 1.4rem; }
.signup p { color: var(--text-muted); margin: 0 0 20px; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
}
.signup input[type="email"]:focus { outline: none; border-color: var(--orange); }
.signup .note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: var(--bg-soft);
}
.footer-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 34px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.disclaimer {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  padding: 16px 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.disclaimer strong { color: var(--green-deep); }
.copyright { margin-top: 18px; text-align: center; font-size: 0.82rem; }

/* ---------- Newsletter page ---------- */
.news-header { padding: 56px 0 20px; text-align: center; }
.news-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 8px; }
.news-header p { color: var(--text-muted); margin: 0; }
.issue {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.issue-date {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.5px; margin-bottom: 6px;
}
.issue h2 { margin: 4px 0 14px; font-size: 1.5rem; }
.issue .meta { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 18px; }
.issue-body { color: var(--text); }
.issue-body p { color: var(--text-muted); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(31,157,67,0.10); color: var(--green-deep);
  border: 1px solid rgba(31,157,67,0.25); margin-right: 6px;
}
.tag.orange { background: rgba(242,107,29,0.10); color: var(--orange); border-color: rgba(242,107,29,0.25); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .big { font-size: 3rem; margin-bottom: 10px; }

/* ---------- Feature items ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.feature .ico { font-size: 1.6rem; margin-bottom: 10px; }
.feature h4 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--gold));
}
.step h4 { margin: 0 0 6px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; max-width: 860px; margin: 0 auto; }
.price-card {
  position: relative;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--orange); box-shadow: 0 18px 44px rgba(242,107,29,0.16); }
.price-card .plan-name { font-size: 0.78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.price-card.featured .plan-name { color: var(--orange); }
.price-card .price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 6px 0 2px; }
.price-card .price .per { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.price-card .tagline { color: var(--text-muted); font-size: 0.92rem; margin: 8px 0 20px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.price-card ul li { padding: 8px 0 8px 26px; position: relative; font-size: 0.94rem; color: var(--text); border-top: 1px solid var(--border); }
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-card ul li.muted { color: var(--text-muted); }
.price-card ul li.muted::before { content: "+"; color: var(--orange); }
.price-card .btn { width: 100%; text-align: center; }
.popular-badge {
  position: absolute; top: -12px; right: 22px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 24px; }

/* ---------- Discount / offer ---------- */
.offer-banner {
  max-width: 860px; margin: 0 auto 28px; text-align: center;
  background: linear-gradient(135deg, rgba(242,107,29,0.10), rgba(214,154,32,0.10));
  border: 1px solid rgba(242,107,29,0.30); color: var(--text);
  border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 0.92rem;
}
.offer-banner strong { color: var(--orange); }
.price-card .price-orig {
  color: var(--text-muted); text-decoration: line-through;
  font-size: 1.15rem; font-weight: 700; margin-bottom: -2px;
}
.discount-badge {
  position: absolute; top: -12px; left: 22px;
  background: var(--green); color: #fff;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px;
}
.price-card ul li .li-orig { color: var(--text-muted); text-decoration: line-through; margin-right: 4px; }

/* ---------- Credibility / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat {
  text-align: center; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px; box-shadow: var(--shadow);
}
.stat .num {
  font-size: 2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--green), var(--gold), var(--orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--text-muted); font-size: 0.86rem; margin-top: 8px; }
.builder-lede { max-width: 720px; margin: 0 auto; text-align: center; color: var(--text-muted); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.skill-tags span {
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Form states ---------- */
.form-msg { margin-top: 14px; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--green-deep); }
.form-msg.err { color: #c0392b; }
button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .brand .wordmark { display: none; }
  .footer-top { flex-direction: column; }
}
