/* Medical Coding Command — Landing / marketing page
   Clean, light, student-friendly. Matches the app's brand palette. */
:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #65717f;
  --brand: #305f72;
  --brand-2: #568ea3;
  --brand-deep: #24485a;
  --accent: #f2b84b;
  --accent-ink: #6a4e12;
  --success: #3f8f68;
  --line: #e6e0d6;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(31, 41, 51, .12);
  --shadow-sm: 0 6px 18px rgba(31, 41, 51, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% -10%, #fff8e7 0, transparent 40%),
              radial-gradient(circle at 100% 0%, #eaf3f6 0, transparent 45%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------------- Nav ---------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--brand-deep); }
.nav .logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; font-size: .95rem;
  padding: 12px 20px; border-radius: 999px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid #cdd9de; }
.btn-ghost:hover { background: #fff; border-color: var(--brand); }
.btn-gold { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------------- Hero ---------------- */
.hero { padding: 46px 0 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block; background: #eaf3f6; color: var(--brand);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); line-height: 1.1; margin: 0 0 16px; color: var(--brand-deep); letter-spacing: -.01em; }
.hero p.lead { font-size: 1.12rem; color: #45535f; margin: 0 0 26px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.hero-visual {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 18px; position: relative; overflow: hidden;
}
.hero-visual .bar { height: 12px; border-radius: 6px; background: #eef3f5; margin: 0 0 12px; }
.hero-visual .bar.short { width: 55%; }
.hero-visual .chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.hero-visual .chip { font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 6px; }
.chip-icd { background: #e8720c; color: #fff; }
.chip-cpt { background: #c99700; color: #3a2f00; }
.chip-dn  { background: #fdecec; color: #b3261e; border: 1px solid #e6a6a6; }
.chip-code { background: #e7f4ed; color: #226b48; }
.hero-visual .card-mini { border: 1px solid var(--line); border-left: 5px solid var(--brand-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.hero-visual .card-mini strong { color: var(--brand-deep); }

/* ---------------- Sections ---------------- */
section { padding: 46px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brand-deep); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; background: #eaf3f6; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--brand-deep); }
.feature p { margin: 0; color: #51606c; font-size: .96rem; }

/* ---------------- Pricing ---------------- */
.pricing { background: linear-gradient(180deg, transparent, #fbf8f2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 22px; justify-content: center; }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.plan.prime { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan.lifetime { border: 2px solid #7c5cff; box-shadow: var(--shadow); }
.plan.lifetime .price { color: #5b3fd6; }
.plan .badge-life {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #7c5cff; color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.plan .badge-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.plan h3 { margin: 0 0 4px; font-size: 1.35rem; color: var(--brand-deep); }
.plan .price { font-size: 2.6rem; font-weight: 900; color: var(--ink); margin: 8px 0 2px; }
.plan .price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .price-sub { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: .97rem; color: #46535f; }
.plan li .tick { color: var(--success); font-weight: 900; flex: 0 0 auto; }
.plan li.off { color: #a2adb6; }
.plan li.off .tick { color: #c7ced4; }
.plan .btn { width: 100%; }
.pricing-foot { text-align: center; color: var(--muted); margin-top: 24px; font-size: .95rem; }

/* ---------------- Reassurance strip ---------------- */
.trust { background: var(--brand-deep); color: #eaf1f4; border-radius: 22px; padding: 34px; text-align: center; margin: 8px 0; }
.trust h2 { color: #fff; margin: 0 0 8px; }
.trust p { margin: 0 auto 20px; max-width: 60ch; color: #cfdde3; }

/* ---------------- Footer ---------------- */
footer { padding: 40px 0; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .nav-links a:not(.btn) { display: none; }
}
