/* MaBa Bank website. Plain CSS, mobile first, light and dark. */

:root {
  color-scheme: light dark;
  --brand: #2bb673;
  --brand-soft: #e3f6ec;
  --primary: #1b7547;          /* button fill: 5.6:1 against white */
  --on-primary: #ffffff;
  --bg: #f6fbf7;
  --surface: #ffffff;
  --surface-2: #edf6f0;
  --text: #15241b;
  --muted: #4b5d52;
  --line: #d7e6dc;
  --link: #17683f;
  --sky: #dcefff;
  --sun: #fff4d6;
  --shadow: 0 1px 2px rgb(20 40 28 / 6%), 0 8px 24px rgb(20 40 28 / 8%);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fcf88;
    --brand-soft: #173326;
    --primary: #3fcf88;
    --on-primary: #06210f;
    --bg: #0e1612;
    --surface: #16211b;
    --surface-2: #1c2a22;
    --text: #e8f3ec;
    --muted: #a9bcb0;
    --line: #2a3a31;
    --link: #6fe0a6;
    --sky: #17283a;
    --sun: #2e2915;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 8px; }

.moved { margin: 0; padding: 10px 16px; text-align: center; background: var(--brand-soft); font-size: 0.95rem; font-weight: 600; }

/* Header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.logo img { width: 40px; height: 40px; border-radius: 12px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-weight: 700; font-size: 0.98rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-app { color: var(--link); }
@media (max-width: 479px) { .site-nav .nav-how { display: none; } }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px;
  border-radius: 14px; background: var(--surface); border: 2px dashed var(--line); color: var(--muted);
  line-height: 1.2; font-size: 0.85rem;
}
.store-badge svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-badge strong { display: block; color: var(--text); font-size: 1.05rem; }

/* Hero */
.hero { padding: 20px 0 48px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.92rem; margin-bottom: 18px;
}
.hero .small { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
@media (min-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; }
}

/* Phone frames */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phone {
  width: 220px; flex: none; border-radius: 34px; padding: 8px; background: #101814;
  box-shadow: var(--shadow); position: relative;
}
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.phones .phone + .phone { margin-left: -48px; transform: translateY(28px) rotate(4deg); }
.phones .phone:first-child { transform: rotate(-3deg); z-index: 1; }
@media (max-width: 420px) { .phone { width: 180px; } .phones .phone + .phone { margin-left: -60px; } }

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.eyebrow { color: var(--link); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 8px; }
.intro { max-width: 40em; color: var(--muted); font-size: 1.1rem; }

.no-money {
  background: var(--sun); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px 20px;
  grid-template-columns: auto 1fr; align-items: center;
}
.no-money .big { font-size: 2.6rem; line-height: 1; }
.no-money h2 { font-size: 1.45rem; margin: 0; }
.no-money p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
@media (min-width: 700px) { .no-money { grid-template-columns: auto 1fr; } .no-money p { grid-column: 2; } }

.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 10px; display: block; }
.card p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
}
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 2rem 1fr; gap: 8px; }
.ticks li > span:first-child { font-size: 1.3rem; line-height: 1.4; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #06210f; font-weight: 800; margin-bottom: 10px;
}
.steps p { margin: 0; color: var(--muted); }

.gallery {
  display: flex; gap: 18px; overflow-x: auto; padding: 12px 4px 20px; margin-top: 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery figure { margin: 0; flex: none; width: 200px; scroll-snap-align: start; }
.gallery .phone { width: 100%; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 10px; font-weight: 600; }

.cta { text-align: center; }
.cta .buttons { justify-content: center; margin-top: 20px; }
.cta img { width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 16px; }

/* Long-form pages */
.page { padding: 24px 0 64px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--muted); }
.summary { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; }

details { background: var(--surface); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 16px; }

.contact { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-top: 32px; }
.contact p:last-child { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.94rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* MaBa's own pictures (copied from app/assets/art) in place of emoji */
.art-inline { width: 1.25em; height: 1.25em; vertical-align: -0.28em; }
.art-tick { width: 1.6rem; height: 1.6rem; display: block; }
.art-card { width: 2.6rem; height: 2.6rem; display: block; }
.art-big { width: 3.4rem; height: 3.4rem; display: inline-block; }
