/* ==========================================================
   eBillio landing — Zinc-Emerald, premium SaaS
   No external deps; system fonts; mobile-first.
   ========================================================== */

:root {
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --cyan-500:    #06b6d4;
  --zinc-50:     #fafafa;
  --zinc-100:    #f4f4f5;
  --zinc-200:    #e4e4e7;
  --zinc-300:    #d4d4d8;
  --zinc-400:    #a1a1aa;
  --zinc-500:    #71717a;
  --zinc-700:    #3f3f46;
  --zinc-900:    #18181b;
  --zinc-950:    #0a0a0a;
  --bg:          var(--zinc-50);
  --fg:          var(--zinc-950);
  --muted:       var(--zinc-500);
  --border:      var(--zinc-200);
  --card:        #ffffff;
  --shadow-sm:   0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-md:   0 4px 14px 0 rgb(0 0 0 / 0.06);
  --shadow-lg:   0 12px 40px -6px rgb(16 185 129 / 0.18);
  --radius:      14px;
  --radius-sm:   8px;
  --maxw:        1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 250 250 / 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgb(255 255 255 / 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--zinc-700);
}
.nav-links a:hover { color: var(--emerald-600); }
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-cta .btn { padding: 8px 14px; font-size: 14px; }
.menu-btn {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--zinc-700);
}
.menu-btn:hover { background: var(--zinc-100); }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

/* Mobile dropdown via :target */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 8px 24px 18px;
}
.mobile-menu a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--zinc-700);
  border-bottom: 1px solid var(--zinc-100);
}
.mobile-menu a:last-child { border-bottom: none; }
#m:target ~ .mobile-menu { display: block; }
@media (min-width: 880px) {
  .mobile-menu, #m:target ~ .mobile-menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald-500);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--emerald-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--zinc-900);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--zinc-300);
  background: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--zinc-700);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--emerald-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--zinc-700);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.18);
}
.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 18px 0 18px;
  font-weight: 800;
  max-width: 900px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--emerald-500), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 18px;
  color: var(--zinc-700);
  max-width: 720px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.trust {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--zinc-300);
}
@media (min-width: 720px) {
  .hero { padding: 132px 0 110px; }
  .hero h1 { font-size: 64px; }
  .hero p.lede { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 76px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p {
  color: var(--zinc-500);
  font-size: 17px;
  margin: 0;
}
@media (min-width: 720px) {
  .section-head h2 { font-size: 42px; }
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.feature:hover {
  border-color: var(--zinc-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature:hover::before { transform: scaleX(1); }
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgb(16 185 129 / 0.1);
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--zinc-500);
  line-height: 1.55;
}

/* ---------- How it works ---------- */
.how-bg { background: var(--zinc-100); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgb(16 185 129 / 0.12);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 700;
}
.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--zinc-500);
  line-height: 1.55;
}

/* ---------- Why list ---------- */
.why-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.why-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
}
.why-list .check {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.why-list strong { font-weight: 700; color: var(--zinc-900); }

/* ---------- Pricing ---------- */
.pricing-bg { background: var(--zinc-100); }
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 880px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

/* Two-column variant for the simpler Shared Cloud pricing layout */
.tiers-2col { max-width: 820px; }
@media (min-width: 720px) {
  .tiers-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
.tier {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.tier.popular {
  border-color: var(--emerald-500);
  box-shadow: 0 16px 40px -12px rgb(16 185 129 / 0.25);
  position: relative;
}
.tier.popular::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-500);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier h3 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tier .desc {
  color: var(--zinc-500);
  font-size: 14px;
  margin: 0 0 18px;
}
.tier .price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--zinc-900);
  margin-bottom: 4px;
  line-height: 1.1;
}
.tier .price .price-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--zinc-500);
  letter-spacing: 0;
  margin-left: 4px;
}
.tier .price-extra {
  font-size: 13px;
  color: var(--zinc-500);
  margin-bottom: 18px;
  line-height: 1.5;
}
.tier ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--zinc-700);
}
.tier ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tier ul li::before {
  content: "";
  flex: 0 0 16px;
  width: 16px; height: 16px;
  margin-top: 4px;
  background: var(--emerald-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}
.tier .btn { margin-top: auto; justify-content: center; }
.pricing-cta-bottom {
  text-align: center;
  margin-top: 40px;
  color: var(--zinc-500);
  font-size: 15px;
}
.pricing-cta-bottom a { color: var(--emerald-600); font-weight: 600; }
.pricing-cta-bottom a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  background: var(--zinc-950);
  color: var(--zinc-400);
  padding: 60px 0 28px;
}
.foot-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand .brand { color: #fff; }
.foot-brand p {
  font-size: 14px;
  color: var(--zinc-400);
  max-width: 360px;
  margin: 14px 0 0;
}
.foot-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.foot-col a {
  color: var(--zinc-400);
  font-size: 14.5px;
}
.foot-col a:hover { color: var(--emerald-400); }
.foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 13px;
  color: var(--zinc-500);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.foot-bottom .built {
  display: inline-flex; align-items: center; gap: 8px;
}
.foot-bottom .built::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-500);
}
