/* ------------------------------------------------------------------
   Billmint — demo SaaS landing page
   Plain CSS, no build step. Mobile-first with a 768px / 1024px breakpoints.
   ------------------------------------------------------------------ */

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --amber-100: #fef3c7;
  --amber-700: #b45309;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;
  --white: #ffffff;
  --red-600: #dc2626;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.28);
  --container: 1140px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; color: var(--ink-900); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 780px; }

.section { padding: 72px 0; }
.section-alt { background: var(--ink-50); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; color: var(--ink-500); }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: 0 6px 16px -6px rgba(5, 150, 105, 0.6); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn-ghost:hover { background: var(--ink-50); }
.btn-outline { background: var(--white); color: var(--green-700); border-color: var(--green-500); }
.btn-outline:hover { background: var(--green-50); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.logo-mark { display: inline-flex; }

.nav { display: none; }
.nav a { font-weight: 500; color: var(--ink-700); }
.nav a:not(.btn):hover { color: var(--ink-900); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu (open state) */
.nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 12px 20px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
}
.nav.is-open a { padding: 12px 8px; border-radius: var(--radius-sm); }
.nav.is-open a:not(.btn):hover { background: var(--ink-50); }
.nav.is-open .btn { margin-top: 8px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 70%),
    linear-gradient(180deg, var(--white) 0%, var(--ink-50) 100%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy .lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--ink-500);
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 0.9rem; color: var(--ink-500); }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Fake app window */
.hero-visual { position: relative; max-width: 520px; margin: 0 auto; }
.mock-window {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200); }
.mock-body { padding: 20px; }
.mock-header { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-title { font-weight: 700; color: var(--ink-900); }
.mock-sub { font-size: 0.85rem; color: var(--ink-500); }
.mock-rows { margin-top: 16px; font-size: 0.9rem; }
.mock-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--ink-200); }
.mock-row.total { border-bottom: 0; font-weight: 700; color: var(--ink-900); }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-100); }
.mock-chart .bar { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: var(--green-100); }
.mock-chart .bar.active { background: var(--green-500); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-green { background: var(--green-100); color: var(--green-700); }
.pill-amber { background: var(--amber-100); color: var(--amber-700); }

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-100);
  font-size: 0.8rem;
  color: var(--ink-500);
  animation: float 6s ease-in-out infinite;
}
.float-1 { top: -18px; right: -8px; }
.float-2 { bottom: -18px; left: -8px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Logos ---------- */
.logos { padding: 28px 0; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.logos-label { text-align: center; font-size: 0.85rem; color: var(--ink-500); }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-300);
  letter-spacing: -0.01em;
}

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 20px; }
.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--green-50);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin-top: 8px; color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0; background: var(--ink-900); color: var(--white); }
.stats-grid { display: grid; gap: 28px; text-align: center; }
.stats strong { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: #6ee7b7; }
.stats span { color: var(--ink-300); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  margin-top: 24px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink-100);
}
.toggle-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-500);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toggle-btn.is-active { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.save-tag { padding: 2px 8px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 0.7rem; }

.pricing-grid { display: grid; gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-200);
}
.plan h3 { font-size: 1.3rem; }
.plan-desc { margin-top: 6px; color: var(--ink-500); font-size: 0.95rem; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 2px; margin: 18px 0 22px; color: var(--ink-900); }
.price .currency { font-size: 1.3rem; font-weight: 700; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .period { margin-left: 6px; color: var(--ink-500); font-size: 0.95rem; }
.plan-features { margin-top: 24px; display: grid; gap: 10px; font-size: 0.95rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-featured {
  border-color: var(--green-500);
  box-shadow: 0 0 0 1px var(--green-500), var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Testimonial ---------- */
.testimonial blockquote {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  text-align: center;
}
.testimonial blockquote p {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.5;
}
.testimonial footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; text-align: left; }
.testimonial footer strong { display: block; color: var(--ink-900); }
.testimonial footer span { font-size: 0.85rem; color: var(--ink-500); }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-600);
  color: var(--white);
  font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion-item {
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  overflow: hidden;
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}
.accordion-trigger:hover { background: var(--ink-50); }
.accordion-icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-50);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) rotate(0); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.accordion-panel > p {
  overflow: hidden;
  padding: 0 20px;
  color: var(--ink-500);
  transition: padding 0.25s ease;
}
.accordion-panel.is-open { grid-template-rows: 1fr; }
.accordion-panel.is-open > p { padding: 0 20px 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-copy p { margin-top: 14px; color: var(--ink-500); font-size: 1.05rem; }
.contact-points { margin-top: 24px; display: grid; gap: 10px; }
.contact-points li { display: flex; gap: 10px; align-items: flex-start; }
.contact-points li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.contact-form {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-900); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--red-600); }
.error { min-height: 1em; font-size: 0.8rem; color: var(--red-600); }
.form-note { font-size: 0.8rem; color: var(--ink-500); text-align: center; }
.form-success {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 10px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  text-align: center;
}
.form-success[hidden] { display: none; }
.form-success span { font-size: 0.875rem; color: var(--ink-500); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; background: var(--ink-900); color: var(--ink-300); }
.footer-grid { display: grid; gap: 28px; }
.logo-light { color: var(--white); }
.site-footer p { margin-top: 10px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-300); font-weight: 500; }
.footer-links a:hover { color: var(--white); }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-note p { font-size: 0.85rem; color: var(--ink-500); margin: 0; }
.footer-note a { color: #6ee7b7; font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 96px 0; }
  .nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-toggle { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .float-1 { right: -28px; }
  .float-2 { left: -28px; }
}

@media (min-width: 1024px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: translateY(-12px); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}
