/* InvoiceKit landing — plain CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg-dark: #020617;
  --surface: #ffffff;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dark: #f1f5f9;
  --text-muted-dark: #94a3b8;
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;
  --border: #e2e8f0;
  --border-dark: #1e293b;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 25px 50px -12px rgb(15 23 42 / 0.12);
  --shadow-dark: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  --max: 72rem;
  --font: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body {
    color: var(--text-dark);
    background: var(--bg-dark);
  }
}

/* Optional: force light landing regardless of OS — remove this block to follow system */
body.force-light {
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: dark) {
  .nav {
    border-color: var(--border-dark);
    background: rgb(15 23 42 / 0.85);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: inherit;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgb(79 70 229 / 0.35);
}

.btn-primary:hover {
  background: var(--brand-hover);
  text-decoration: none;
  box-shadow: 0 6px 20px rgb(79 70 229 / 0.4);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .btn-ghost {
    border-color: var(--border-dark);
    color: var(--text-dark);
  }

  .btn-ghost:hover {
    background: rgb(30 41 59 / 0.6);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -30%, rgb(99 102 241 / 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgb(139 92 246 / 0.12), transparent);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero-bg {
    background:
      radial-gradient(ellipse 80% 60% at 50% -30%, rgb(99 102 241 / 0.18), transparent),
      radial-gradient(ellipse 60% 50% at 100% 0%, rgb(139 92 246 / 0.1), transparent);
  }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  .badge {
    background: rgb(49 46 129 / 0.45);
    color: #c7d2fe;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

@media (prefers-color-scheme: dark) {
  .hero-lead {
    color: var(--text-muted-dark);
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-cta .btn-primary {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Video */
.video-section {
  padding: 0 0 5rem;
}

.video-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

@media (prefers-color-scheme: dark) {
  .section-lead {
    color: var(--text-muted-dark);
  }
}

.video-frame {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

@media (prefers-color-scheme: dark) {
  .video-frame {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-dark);
  }
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 50%, #1e293b 100%);
  color: #e2e8f8;
}

.video-placeholder p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.85;
  max-width: 24rem;
}

.video-placeholder code {
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  background: rgb(0 0 0 / 0.35);
  border-radius: 0.375rem;
}

/* Features */
.features {
  padding: 2rem 0 5rem;
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .features {
    border-color: var(--border-dark);
  }
}

.features h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgb(99 102 241 / 0.35);
  box-shadow: 0 12px 40px rgb(15 23 42 / 0.06);
}

@media (prefers-color-scheme: dark) {
  .feature-card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
  }

  .feature-card:hover {
    border-color: rgb(99 102 241 / 0.4);
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.25);
  }
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
  .feature-icon {
    background: rgb(49 46 129 / 0.4);
    color: #a5b4fc;
  }
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  .feature-card p {
    color: var(--text-muted-dark);
  }
}

/* Pricing */
.pricing-section {
  padding: 2rem 0 5rem;
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .pricing-section {
    border-color: var(--border-dark);
  }
}

.pricing-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  max-width: 44rem;
  margin-inline: auto;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (prefers-color-scheme: dark) {
  .price-card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
  }
}

.price-card-highlight {
  border-color: rgb(99 102 241 / 0.45);
  box-shadow: 0 12px 40px rgb(79 70 229 / 0.12);
}

@media (prefers-color-scheme: dark) {
  .price-card-highlight {
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
  }
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.price-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.price-amount {
  margin: 0;
  line-height: 1.2;
}

.price-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  .price-period {
    color: var(--text-muted-dark);
  }
}

.price-features {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex: 1;
}

@media (prefers-color-scheme: dark) {
  .price-features {
    color: var(--text-muted-dark);
  }
}

.price-features li + li {
  margin-top: 0.35rem;
}

.price-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 2rem auto 0;
}

@media (prefers-color-scheme: dark) {
  .pricing-footnote {
    color: var(--text-muted-dark);
  }
}

/* FAQ */
.faq-section {
  padding: 0 0 5rem;
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .faq-section {
    border-color: var(--border-dark);
  }
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.faq-list {
  margin: 0;
  max-width: 40rem;
  margin-inline: auto;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .faq-item {
    border-color: var(--border-dark);
  }
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item dt {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.faq-item dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  .faq-item dd {
    color: var(--text-muted-dark);
  }
}

.video-caption {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 1rem auto 0;
}

@media (prefers-color-scheme: dark) {
  .video-caption {
    color: var(--text-muted-dark);
  }
}

/* CTA band */
.cta-band {
  margin: 2rem 0 4rem;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #6366f1 45%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgb(79 70 229 / 0.35);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
}

.cta-band .btn-primary:hover {
  background: #f8fafc;
  color: var(--brand-hover);
}

/* Footer */
.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  .footer {
    border-color: var(--border-dark);
    color: var(--text-muted-dark);
  }
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: inherit;
  font-weight: 500;
}

.footer a:hover {
  color: var(--brand);
}
