/* myFiPay public site — no external assets, mobile-first */
:root {
  --ink: #142019;
  --muted: #5b6b62;
  --bg: #ffffff;
  --paper: #f3f7f4;
  --brand: #0b7a4b;
  --brand-dark: #075c38;
  --brand-soft: #e2f2e9;
  --accent: #f5b301;
  --line: #dde5e0;
  --danger: #b3261e;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo .fi { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-size: 0.95rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { padding: 72px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15;
  letter-spacing: -0.03em; max-width: 720px; margin: 0 auto 18px;
}
.hero p.sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .trust { margin-top: 26px; font-size: 0.88rem; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); }
.section-title { font-size: 1.7rem; letter-spacing: -0.02em; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 40px; }

/* Steps + feature grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.step-no {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 14px;
}

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing-wrap { overflow-x: auto; }
.pricing-table th, .pricing-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pricing-table th { background: var(--paper); font-weight: 600; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .rate { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.badge {
  display: inline-block; background: var(--accent); color: #3a2c00;
  font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}

/* Forms */
.form-page { max-width: 440px; margin: 48px auto; padding: 0 20px; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-card h1 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.form-card p.lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-alt { text-align: center; font-size: 0.92rem; color: var(--muted); margin-top: 20px; }

.alert { padding: 12px 14px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; }
.alert-ok { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #bfe3d0; }

/* Role toggle (signup) */
.role-toggle { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 22px; }
.role-toggle button {
  flex: 1; padding: 10px; font-size: 0.92rem; font-weight: 600; font-family: inherit;
  background: var(--bg); color: var(--muted); border: none; cursor: pointer;
}
.role-toggle button.active { background: var(--brand); color: #fff; }

/* Account page */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 16px; }
.stat .label { font-size: 0.8rem; color: var(--muted); }
.stat .value { font-size: 1.3rem; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; color: var(--muted); }
