:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --navy: #0f2741;
  --brand: #1769ff;        /* trustworthy fintech blue */
  --brand-ink: #ffffff;
  --good: #0f9d6b;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 28px rgba(15, 27, 45, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.brand .logo { font-size: 19px; }
.secure { color: var(--muted); font-size: 13px; font-weight: 500; }
.secure .lock { margin-right: 4px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* Order summary */
.summary { background: linear-gradient(180deg, #ffffff, #fbfcfe); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.summary h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.plan-desc { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.per { color: var(--muted); font-size: 15px; font-weight: 500; }
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.features li::before {
  content: "✓";
  position: absolute; left: 2px; top: 7px;
  color: var(--good); font-weight: 700;
}

/* Payment */
.pay { display: flex; flex-direction: column; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(23,105,255,.28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(23,105,255,.34); }
.btn.primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); font-size: 14px; padding: 12px; }
.btn.ghost:hover { border-color: #c7d0db; }

.powered { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.powered strong { color: var(--navy); }

.alt { display: flex; gap: 10px; margin-top: 18px; }
.alt .btn { flex: 1; }

.err {
  margin-top: 14px; padding: 11px 14px;
  background: #fdecec; border: 1px solid #f5c2c2; color: #b42318;
  border-radius: 10px; font-size: 13px;
}

.trust { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.trust li { color: var(--muted); font-size: 13px; padding: 5px 0; }

/* Plan picker (shown when no plan selected) */
.picker { margin-bottom: 18px; }
.hidden { display: none; }
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.plan-opt:hover { border-color: var(--brand); background: #f6f9ff; }
.plan-opt .po-name { font-weight: 600; font-size: 14px; }
.plan-opt .po-sub { color: var(--muted); font-size: 12px; }
.plan-opt .po-price { font-weight: 700; font-size: 16px; }
.plan-opt .badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand); background: #e9f1ff; padding: 2px 7px; border-radius: 999px; margin-left: 8px;
}

.footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 26px; color: var(--muted); font-size: 13px;
}
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---- Legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.legal .back { display: inline-block; margin-bottom: 18px; color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 600; }
.legal h1 { font-size: 30px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: #2b3a4d; font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--brand); }
