/* BillMint landing page — builds on app.css tokens. Ledger-paper aesthetic:
   fine grid texture, perforated receipt edges, tabular monospace numerals. */

.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 10px;
}
.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(640px 420px at 95% 8%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--border-soft) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border-soft) 55%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
}
.hero-chip { margin-bottom: 22px; animation: rise .6s ease both; }
.hero-copy h1 { animation: rise .6s .06s ease both; }
.hero-sub { font-size: 1.12rem; max-width: 34rem; margin-top: 14px; animation: rise .6s .12s ease both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; animation: rise .6s .18s ease both; }
.trust-line { margin-top: 18px; font-size: .88rem; color: var(--text-dim); animation: rise .6s .24s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Hero visual — layered receipt mock */
.hero-visual { position: relative; min-height: 420px; animation: rise .7s .2s ease both; }
.doc-back {
  position: absolute; top: 8px; right: 4px; width: 78%;
  padding: 20px; transform: rotate(4deg);
  opacity: .85;
}
.db-row { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--text-mut); margin-bottom: 16px; }
.db-line { height: 9px; border-radius: 5px; background: var(--bg-elev2); margin-bottom: 10px; }
.db-line.w80 { width: 80%; } .db-line.w60 { width: 60%; } .db-line.w70 { width: 70%; }
.db-total { display: flex; justify-content: space-between; border-top: 1px dashed var(--border); margin-top: 16px; padding-top: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

.receipt {
  position: relative; width: min(340px, 92%); margin-top: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  transition: transform .3s ease;
}
.receipt:hover { transform: rotate(-1deg) translateY(-4px); }
.receipt-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px dashed var(--border);
}
.receipt-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; letter-spacing: -.02em; }
.logo-mini {
  width: 20px; height: 20px; border-radius: 6px; background: var(--brand-grad);
  color: #fff; font-size: 12px; font-weight: 900; display: inline-grid; place-items: center;
}
.receipt-no { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .68rem; color: var(--text-mut); letter-spacing: .06em; }
.receipt-body { padding: 16px 18px 22px; }
.r-row { display: flex; justify-content: space-between; gap: 14px; font-size: .84rem; padding: 6px 0; }
.r-row span { color: var(--text-mut); }
.r-row strong { text-align: right; font-weight: 600; }
.r-amt { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 12px; }
.r-amt strong { font-size: 1.2rem; font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.r-words { margin-top: 10px; font-size: .74rem; font-style: italic; color: var(--text-mut); }
.stamp {
  position: absolute; right: 16px; bottom: 42px;
  font-weight: 900; font-size: 1.05rem; letter-spacing: .28em; color: var(--ok);
  border: 3px solid var(--ok); border-radius: 8px; padding: 3px 10px 3px 14px;
  transform: rotate(-14deg); opacity: .75;
}
.receipt-tear {
  position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: radial-gradient(circle at 9px -1px, transparent 7px, var(--bg-elev) 7.5px);
  background-size: 18px 10px; background-repeat: repeat-x;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.18));
}
.float-chip {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: var(--bg-elev2); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; box-shadow: var(--shadow);
}
.fc-1 { top: 30px; left: -8px; animation: bob 5s ease-in-out infinite; }
.fc-2 { bottom: 8px; right: 10px; animation: bob 6s .8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-chip, .hero-copy h1, .hero-sub, .hero-cta, .trust-line, .hero-visual { animation: none; }
  .fc-1, .fc-2 { animation: none; }
}

/* ============ Stats strip ============ */
.stats { border-block: 1px solid var(--border-soft); background: var(--bg-elev); }
.stats-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding-block: 26px; text-align: center;
}
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .84rem; color: var(--text-dim); }

/* ============ Sections rhythm ============ */
.features, .showcase, .compare, .pricing-teaser, .proof, .faq { padding: 84px 0 0; }

/* ============ Features ============ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.feat { padding: 26px 22px; transition: transform .18s ease, border-color .18s ease; }
.feat:hover { transform: translateY(-4px); border-color: var(--brand); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent); margin-bottom: 16px;
}
.feat h3 { font-size: 1.05rem; }
.feat p { font-size: .92rem; margin: 0; }
.feat-hi { border-color: color-mix(in srgb, var(--brand-2) 55%, var(--border)); position: relative; }
.feat-hi::before {
  content: 'Differentiator'; position: absolute; top: -10px; right: 14px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--brand-grad); color: #fff; padding: 3px 10px; border-radius: 999px;
}

/* ============ Templates showcase ============ */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.cat-chip {
  font-family: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-elev2); color: var(--text-dim); border: 1px solid var(--border);
  transition: all .15s ease;
}
.cat-chip:hover { color: var(--text); border-color: var(--brand); }
.cat-chip.active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tpl-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 18px;
  color: var(--text); transition: transform .18s ease, border-color .18s ease;
}
.tpl-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--brand); }
.tpl-card[hidden] { display: none; }
.tc-icon { font-size: 26px; }
.tc-name { font-weight: 700; letter-spacing: -.01em; }
.tc-desc { font-size: .84rem; color: var(--text-dim); flex: 1; }
.tc-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.showcase-more { margin-top: 30px; }

/* ============ Comparison ============ */
.compare-scroll { overflow-x: auto; margin-top: 30px; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--border-soft); }
.compare-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mut); background: var(--bg-elev2); }
.compare-table tbody th { font-weight: 600; color: var(--text-dim); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.col-us { background: color-mix(in srgb, var(--brand) 8%, transparent); }
thead .col-us { color: var(--brand); font-weight: 800; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--danger); }
.mid { color: var(--warn); }

/* ============ Pricing teaser ============ */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; margin-top: 34px; }
.price-card { padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.price-card h3 { font-size: 1.2rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.price .amt { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.price .per { color: var(--text-mut); font-size: .92rem; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.price-card li { padding: 7px 0; font-size: .93rem; color: var(--text-dim); border-bottom: 1px dashed var(--border-soft); }
.price-card li:last-child { border-bottom: 0; }
.price-pro { border-color: var(--brand); position: relative; box-shadow: 0 14px 44px -14px var(--ring); }
.price-pro .badge-pro { position: absolute; top: -13px; left: 28px; }

/* ============ Social proof ============ */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.quote { margin: 0; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-size: .97rem; color: var(--text); line-height: 1.6; }
.quote blockquote::before { content: '“'; display: block; font-size: 2.2rem; line-height: .6; color: var(--brand); margin-bottom: 10px; font-family: Georgia, serif; }
.quote figcaption { font-size: .82rem; font-weight: 600; color: var(--text-mut); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 760px; }
.faq-item { margin-top: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 20px;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--brand); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; font-size: .93rem; }

/* ============ CTA band ============ */
.cta-band { margin-top: 90px; padding: 74px 0; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border-soft); background: radial-gradient(600px 300px at 50% 120%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%), var(--bg-elev); }
.cta-in p { max-width: 32rem; margin-inline: auto; }
.center-cta { justify-content: center; margin-top: 24px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; max-width: 420px; margin-inline: auto; width: 100%; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { flex: 1; }
  .features, .showcase, .compare, .pricing-teaser, .proof, .faq { padding-top: 60px; }
}
@media (max-width: 400px) {
  .tpl-grid { grid-template-columns: 1fr; }
}
