/* iCard site. One stylesheet for the home page, the forms and the portal. */
:root {
  --bg: #ffffff; --panel: #f6f8f7; --fg: #0b1512; --muted: #5a6662;
  --line: #e3e8e6; --primary: #0b7a62; --primary-hover: #086551; --on-primary: #ffffff;
  --accent: #34d399; --ok: #0f7a4a; --ink: #13271f; --ink-line: #2a463c;
  --ink-fg: #f2f8f5; --ink-muted: #b0c4bc; --radius: 14px;
  --shadow: 0 1px 2px rgba(7, 17, 14, .06), 0 8px 24px rgba(7, 17, 14, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08100d; --panel: #0f1a16; --fg: #eef5f2; --muted: #9db3aa; --line: #1f332c;
    --primary: #34d399; --primary-hover: #6ee7b7; --on-primary: #05231a; --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .logo { font-family: "Inter Tight", "Inter", system-ui, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { width: 26px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #0b7a62, #34d399); position: relative; flex: none; }
.logo span::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 3px; background: rgba(0, 0, 0, .28); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--fg); }
header.dark { background: var(--ink); border-color: var(--ink-line); color: var(--ink-fg); }
header.dark nav a { color: var(--ink-muted); }
header.dark nav a:hover { color: var(--ink-fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary); padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: background .15s; }
.btn:hover { background: var(--primary-hover); }
nav a.btn, nav a.btn:hover { color: var(--on-primary); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--panel); }
.btn.light { background: transparent; color: var(--ink-fg); border: 1px solid #3a5c50; }
.btn.light:hover { background: rgba(255, 255, 255, .06); }
.btn.bright { background: #34d399; color: #05231a; }
.btn.bright:hover { background: #6ee7b7; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn.ghost { border: 1px solid var(--line); }

/* hero */
.hero { background: var(--ink); color: var(--ink-fg); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(600px 320px at 85% 20%, rgba(52, 211, 153, .18), transparent 70%),
  radial-gradient(500px 300px at 10% 110%, rgba(11, 122, 98, .35), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 80%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 80%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #34d399; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25); padding: 4px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.hero h1 em { font-style: normal; color: #34d399; }
.hero p.sub { font-size: 19px; color: var(--ink-muted); max-width: 540px; margin: 0 0 34px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 26px; font-size: 14px; color: var(--ink-muted); display: flex; gap: 8px 20px; flex-wrap: wrap; }
.hero .fine span::before { content: "✓"; color: #34d399; margin-right: 7px; font-weight: 700; }

/* product picture in the hero (plain HTML, so it stays sharp and editable) */
.mock { position: relative; min-height: 470px; }
.mock .card { background: #fff; color: #0b1512; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.invoice { padding: 24px; width: min(380px, 100%); margin: 64px 0 0 auto; position: relative; z-index: 1; }
.invoice .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.invoice .firm { font-weight: 700; font-family: "Inter Tight", sans-serif; }
.invoice .small { font-size: 12px; color: #6b7672; }
.invoice .tag { font-size: 11px; font-weight: 700; color: #a16207; background: #fef6d8; padding: 3px 9px; border-radius: 999px; }
.invoice .line { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed #e3e8e6; }
.invoice .total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; }
.invoice .total b { font-size: 28px; font-family: "Inter Tight", sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.invoice .pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invoice .pay span { text-align: center; font-size: 13px; font-weight: 600; padding: 10px; border-radius: 9px; border: 1px solid #e3e8e6; }
.invoice .pay span.on { background: #0b7a62; color: #fff; border-color: #0b7a62; }
.toast { position: absolute; left: 0; top: 0; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 14px 16px; width: 260px; }
.toast .dot { width: 34px; height: 34px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-weight: 800; flex: none; }
.toast b { display: block; font-size: 14px; }
.toast span { font-size: 12px; color: #6b7672; }
.payout { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 16px 18px; width: 280px; }
.payout .k { font-size: 12px; color: #6b7672; }
.payout .v { font-size: 22px; font-weight: 700; font-family: "Inter Tight", sans-serif; font-variant-numeric: tabular-nums; }
.payout .meter { height: 6px; border-radius: 99px; background: #e3e8e6; margin-top: 10px; overflow: hidden; }
.payout .meter i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, #0b7a62, #34d399); }

/* strip under the hero */
.strip { border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; gap: 12px 36px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 18px; height: 18px; color: var(--primary); }

/* home page bands */
.band { padding: 96px 0; }
.band.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }
.lede { color: var(--muted); margin: 0 0 40px; max-width: 620px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(52, 211, 153, .14); color: var(--primary); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .lede { margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.stat b { display: block; font-family: "Inter Tight", sans-serif; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { counter-increment: s; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.secure { background: var(--ink); color: var(--ink-fg); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; position: relative; overflow: hidden; border: 1px solid var(--ink-line); }
.secure::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(52, 211, 153, .18), transparent 70%); }
.secure .kicker { color: #34d399; }
.secure p { color: var(--ink-muted); position: relative; }
.secure h2 { position: relative; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
ul.checks li { padding-left: 32px; position: relative; color: var(--ink-fg); font-size: 15px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: rgba(52, 211, 153, .16); color: #34d399; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

.cta { text-align: center; }
.cta .lede { margin: 0 auto 30px; }
.cta .ctas { justify-content: center; }

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.contact .k { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* forms (apply, login, reset) */
.narrow { max-width: 580px; margin: 0 auto; padding: 56px 20px 80px; }
.narrow > h1 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 8px; }
.narrow .lede { margin-bottom: 28px; font-size: 17px; }
.narrow form { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.progress { display: flex; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.progress span { flex: 1; border-top: 3px solid var(--line); padding-top: 8px; }
.progress span.on { border-color: var(--primary); color: var(--fg); font-weight: 600; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; accent-color: var(--primary); }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--muted); margin: 18px 0; }
.msg { margin-top: 16px; font-size: 15px; }
.msg:empty { margin: 0; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap, .split, .secure { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .grid, .steps, .contact { grid-template-columns: 1fr 1fr; }
  .secure { padding: 36px 24px; gap: 28px; }
}
@media (max-width: 640px) {
  nav .sec { display: none; }
  nav { gap: 14px; }
  .grid, .steps, .contact, .stat-grid, form .row { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .mock { min-height: 0; padding-bottom: 70px; }
  .toast { width: 240px; }
  .invoice { margin-top: 74px; }
  .payout { left: auto; right: 0; width: 240px; }
  .narrow form { padding: 20px; }
}

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal .summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 32px; font-size: 15px; }
.legal .summary p { margin: 0 0 8px; } .legal .summary p:last-child { margin: 0; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--primary); }
.legal .toc { columns: 2; font-size: 14px; padding-left: 18px; margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 4px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--panel); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .legal .toc { columns: 1; } }

/* card acceptance marks, in the brands' own colors */
.marks { display: inline-flex; gap: 8px; align-items: center; }
.mark { display: inline-grid; place-items: center; width: 62px; height: 40px; background: #fff; border: 1px solid #e3e8e6; border-radius: 7px; overflow: hidden; }
.mark b { display: block; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.m-visa { width: 50px; height: 50px; background: #1A1F71; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/visa.svg"); }
.m-amex { width: 32px; height: 32px; background: #2E77BC; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/americanexpress.svg"); }
.m-disc { width: 56px; height: 56px; background: #FF6000; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/discover.svg"); }
.strip svg.m-mc, .m-mc { width: 46px; height: 30px; }
.contact .muted { color: var(--muted); font-size: 14px; }
