/* ============================================================
   PayVia — design system
   ============================================================ */
:root {
  --brand:      #0E7C6B;
  --brand-700:  #0A5F52;
  --brand-600:  #0C6D5E;
  --brand-50:   #E7F3F1;
  --ink:        #14202E;
  --ink-soft:   #3C4A5A;
  --muted:      #6B7787;
  --line:       #E3E8E7;
  --line-soft:  #EEF1F1;
  --bg:         #F5F8F7;
  --paper:      #FFFFFF;
  --paper-2:    #FBFCFC;
  --accent:     #F2A900;
  --ok:         #0E7C6B;
  --ok-bg:      #E7F3F1;
  --warn:       #B45309;
  --warn-bg:    #FFF6E6;
  --bad:        #B3261E;
  --bad-bg:     #FBEBEA;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(20,32,46,.06), 0 1px 3px rgba(20,32,46,.04);
  --shadow-md:  0 4px 12px rgba(20,32,46,.08), 0 2px 4px rgba(20,32,46,.04);
  --shadow-lg:  0 18px 40px rgba(20,32,46,.14), 0 6px 14px rgba(20,32,46,.08);
  --maxw:       1080px;
  --maxw-narrow: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* Layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-narrow); margin-left: auto; margin-right: auto; }
main.wrap { padding-top: 8px; padding-bottom: 8px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-700); background: var(--brand-50);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 620px) { .brand img { height: 38px; } }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: .93rem; font-weight: 500; }
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav form.inline { display: inline; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --_bg: var(--brand); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--_bg); color: var(--_fg); border: 1px solid transparent; cursor: pointer;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .98rem;
  line-height: 1; text-align: center; transition: transform .04s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-700); text-decoration: none; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 14px; font-size: .875rem; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--muted); }
.btn.on-brand { background: #fff; color: var(--brand-700); }
.btn.on-brand:hover { background: rgba(255,255,255,.9); }
.btn.danger { background: #fff; color: var(--bad); border-color: #EEC9C6; box-shadow: none; }
.btn.danger:hover { background: var(--bad-bg); }
button.link { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { color: var(--ink); }
form.inline { display: inline; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 76px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 18px; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.hero-trust svg { flex: none; }

/* Hero mockup: a payment link card + a receipt card, stacked */
.mockup { position: relative; }
.mockup .card-float {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px;
}
.mockup .pay-card { position: relative; z-index: 2; }
.mockup .receipt-card {
  position: absolute; right: -18px; bottom: -46px; width: 62%; z-index: 3;
  padding: 16px 18px; font-size: .82rem;
}
.mockup .m-row { display: flex; justify-content: space-between; align-items: center; }
.mockup .m-biz { font-weight: 700; }
.mockup .m-amt { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.mockup .m-qr {
  width: 120px; height: 120px; margin: 14px auto 6px; border-radius: 12px;
  background:
    linear-gradient(45deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    conic-gradient(from 0deg, var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0);
  background-size: 22px 22px, 22px 22px, 40px 40px;
  border: 6px solid #fff; box-shadow: inset 0 0 0 1px var(--line);
  opacity: .9;
}
.mockup .m-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--brand-700);
}
.mockup .m-link { font-size: .76rem; color: var(--muted); word-break: break-all; margin-top: 10px; }
.mockup .m-check { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .8rem; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip { padding: 26px 0; background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-strip .row { display: flex; align-items: center; justify-content: center; gap: 12px 30px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: .92rem; }
.trust-strip .row .who { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.trust-strip .row .who svg { color: var(--brand); }

/* ============================================================
   Steps / how it works
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); position: relative;
}
.step .n {
  counter-increment: step; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-50); color: var(--brand-700); font-weight: 800;
  display: grid; place-items: center; margin-bottom: 12px; font-size: .95rem;
}
.step .n::before { content: counter(step); }
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ============================================================
   Feature cards
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); margin-bottom: 14px;
}
.feature h3 { margin: 0 0 7px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.tm-band { background: linear-gradient(160deg, #0E2A26, #0E7C6B); color: #fff; }
.tm-band .section-head h2, .tm-band .section-head p { color: #fff; }
.tm-band .section-head p { color: rgba(255,255,255,.82); }
.tm-band .eyebrow { background: rgba(255,255,255,.15); color: #fff; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tm {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
}
.tm .stars { color: var(--accent); letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }
.tm blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.55; color: #fff; }
.tm .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: .95rem; background: rgba(255,255,255,.2);
}
.tm .who .name { font-weight: 700; font-size: .92rem; }
.tm .who .role { font-size: .82rem; color: rgba(255,255,255,.72); }
.tm-note { text-align: center; margin-top: 26px; font-size: .8rem; color: rgba(255,255,255,.6); }

/* ============================================================
   Reassurance / no-middleman
   ============================================================ */
.reassure {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  background: var(--brand-50); border: 1px solid #CDE6E1; border-radius: var(--radius);
  padding: 26px 28px;
}
.reassure .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.reassure h3 { margin: 0 0 6px; }
.reassure p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq details p { color: var(--ink-soft); padding: 14px 0 4px; margin: 0; font-size: .95rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact-card {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin: 0 0 6px; }
.contact-card p { margin: 0; }
.contact-detail { text-align: right; }
.contact-detail .c-name { font-weight: 700; font-size: 1.02rem; }
.contact-detail .c-email { font-size: 1.02rem; }
@media (max-width: 560px) { .contact-detail { text-align: left; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--ink); color: #fff; border-radius: 0; padding: 60px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0 auto 26px; max-width: 46ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 0; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.site-footer .about { max-width: 320px; }
.site-footer .about .brand { margin-bottom: 12px; }
.site-footer .about .brand img { height: 46px; width: auto; display: block; }
.site-footer .about p { font-size: .88rem; color: var(--muted); margin: 0; }
.site-footer .lcol h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.site-footer .lcol a { display: block; font-size: .9rem; color: var(--ink-soft); margin-bottom: 8px; }
.site-footer .fcontact-name { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid var(--line-soft); padding-top: 20px; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   App pages (dashboard / auth / pay / receipt / verify)
   ============================================================ */
.app-main { padding: 32px 0 64px; }
.app-main h1 { font-size: 1.55rem; margin: 6px 0 4px; }
.app-main h2 { font-size: 1.2rem; }
.app-main .lead { font-size: 1rem; }
h1.page { font-size: 1.55rem; margin: 8px 0 6px; }
.lede { color: var(--muted); margin-top: 0; }
p.small.muted a { color: var(--brand-700); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 18px 0; box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0; font-size: 1.2rem; }
.card h3 { margin-top: 18px; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=file], textarea, select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
textarea { min-height: 88px; resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field-row { display: flex; gap: 16px; }
.field-row > div { flex: 1; }
fieldset { border: 0; padding: 0; margin: 0; }

.alert { padding: 13px 15px; border-radius: var(--radius-sm); margin: 14px 0; font-size: .92rem; border: 1px solid; }
.alert.err  { background: var(--bad-bg);  border-color: #EEC9C6; color: var(--bad); }
.alert.ok   { background: var(--ok-bg);   border-color: #BFE0DA; color: var(--brand-700); }
.alert.info { background: #EAF2FB; border-color: #C7DEF6; color: #1C5390; }
.alert.warn { background: var(--warn-bg); border-color: #F3D9A8; color: var(--warn); }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: capitalize; letter-spacing: .01em; }
.pill.pending   { background: #EEF1F1; color: #43506A; }
.pill.submitted { background: #FDF0D6; color: #92600E; }
.pill.paid      { background: var(--ok-bg); color: var(--brand-700); }
.pill.canceled  { background: var(--bad-bg); color: #8F2018; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; box-shadow: var(--shadow-sm); transition: border-color .12s; }
.tile:hover { text-decoration: none; border-color: var(--muted); }
.tile .n { font-size: 1.4rem; font-weight: 800; }
.tile .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); }

.list { list-style: none; padding: 0; margin: 0; }
.list li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 9px; box-shadow: var(--shadow-sm); }
.list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); }
.list li a:hover { text-decoration: none; background: var(--paper-2); border-radius: var(--radius-sm); }
.list .desc { font-weight: 600; }
.list .meta { font-size: .8rem; color: var(--muted); }
.list .amt { font-weight: 700; white-space: nowrap; }

.pay-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.qr { text-align: center; }
.qr img { width: 232px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; gap: 12px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; word-break: break-word; }
.copy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy code { background: var(--line-soft); padding: 7px 10px; border-radius: 8px; font-size: .85rem; word-break: break-all; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; margin-bottom: 13px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 25px; height: 25px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.big-check { width: 46px; height: 46px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.receipt-total { font-size: 1.6rem; font-weight: 800; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero .lead { max-width: none; }
  .mockup { max-width: 420px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .tm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .hero { padding: 44px 0 40px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .field-row { flex-direction: column; gap: 0; }
  .site-nav { gap: 14px; font-size: .86rem; }
  .site-nav .hide-sm { display: none; }
  .mockup .receipt-card { position: static; width: 100%; margin-top: 16px; }
}
