/* ============================================================
   JustInvoice Landing + Pricing Pages
   Clean, professional, mobile-first marketing site.
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ──────────────────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.landing-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.landing-nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.landing-nav .logo span { color: var(--blue); }
.landing-nav nav { display: flex; gap: 0.25rem; align-items: center; }
.landing-nav nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s;
}
.landing-nav nav a:hover { color: var(--ink); }
.landing-nav nav a.btn-primary {
  background: var(--blue);
  color: #fff;
}
.landing-nav nav a.btn-primary:hover { background: var(--blue-dark); color: #fff; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-alt); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-sub-cta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Section base ────────────────────────────────────── */
.section {
  padding: 5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.section-alt { background: var(--bg-alt); }
.section-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ── How it works ────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ── Features grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.feature-icon svg { color: var(--blue); }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ── Pricing card ────────────────────────────────────── */
.pricing-wrapper {
  display: flex;
  justify-content: center;
}
.pricing-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 2.5rem 3rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.pricing-card .price {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-card .price span { font-size: 1.25rem; font-weight: 500; color: var(--muted); }
.pricing-card .price-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-features li svg { color: #16a34a; flex-shrink: 0; }
.pricing-card .btn-primary { width: 100%; }

.pricing-comparison {
  margin-top: 3rem;
  overflow-x: auto;
}
.pricing-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pricing-comparison th, .pricing-comparison td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-comparison th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pricing-comparison td:first-child { font-weight: 600; }
.pricing-comparison .check { color: #16a34a; }
.pricing-comparison .cross { color: #dc2626; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 640px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
details[open] summary { color: var(--ink); font-weight: 600; }
summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
details[open] summary::after { content: '−'; }
.faq-answer {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 0 1.25rem;
}

/* ── Footer ──────────────────────────────────────────── */
.landing-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 3rem 1.5rem;
  margin-top: 0;
}
.landing-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.landing-footer .logo { color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
.landing-footer .logo span { color: var(--blue); }
.landing-footer nav { display: flex; gap: 1.5rem; }
.landing-footer nav a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 0.9rem; }
.landing-footer nav a:hover { color: #fff; }
.landing-footer small { font-size: 0.8rem; }

/* ── Pricing page extras ─────────────────────────────── */
.pricing-page-hero { padding: 4rem 1.5rem 2rem; text-align: center; }
.pricing-page-hero h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.pricing-page-hero p { color: var(--muted); font-size: 1.1rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .section { padding: 3.5rem 1.25rem; }
  .pricing-card { padding: 2rem 1.5rem; }
  .landing-footer-inner { flex-direction: column; text-align: center; }
  .landing-footer nav { justify-content: center; }
}
