:root {
  --navy: #0b1d32; --navy-2: #13304f; --blue: #1765e9; --blue-soft: #e7efff; --ink: #142238; --muted: #5f6f86;
  --line: #dfe6ef; --bg: #f3f6fb; --card: #ffffff; --red: #b3203a; --red-soft: #ffebee; --green: #137a4a; --green-soft: #e3f6ec;
  --amber: #a86400; --amber-soft: #fff6e0; --radius: 14px; --tap: 52px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { font-size: 16px; line-height: 1.45; }
a { color: var(--blue); }
.hidden { display: none !important; }

/* Header + nav */
.topbar { background: var(--navy); color: #fff; padding: 14px 16px; position: sticky; top: 0; z-index: 20; }
.topbar .inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: .3px; color: #fff; text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: #a9c0dc; letter-spacing: 0; }
.who { font-size: 13px; color: #cfdcec; text-align: right; }
.topbar .brand { margin-right: auto; }
.topbar button.back { min-height: 40px; padding: 6px 12px 6px 8px; background: #ffffff1f; color: #fff; border-radius: 10px;
  font-size: 22px; line-height: 1; font-weight: 700; flex-shrink: 0; }
.topbar button.back span { font-size: 15px; margin-left: 2px; }
.topbar button.back:active { background: #ffffff38; }
.topbar button.back[hidden] { display: none; }
@media (max-width: 480px) { .topbar button.back span { display: none; } .topbar .brand { white-space: nowrap; } }
@media (max-width: 380px) { .brand small { display: none; } }
@media (max-width: 340px) { .topbar .who { display: none; } }
.offline { background: var(--amber-soft); color: var(--amber); text-align: center; padding: 8px; font-size: 14px; font-weight: 600; }
main { max-width: 980px; margin: 0 auto; padding: 16px 16px 110px; }
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex;
  justify-content: center; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
nav.tabs a { flex: 1; max-width: 140px; text-align: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 6px 2px; border-radius: 10px; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
nav.tabs a .ic { font-size: 20px; line-height: 1; }
nav.tabs a.active { background: var(--blue-soft); color: var(--blue); }

/* Type */
h1 { font-size: 24px; margin: 4px 0 14px; }
h2 { font-size: 19px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 14px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }

/* Cards & tiles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 8px #0b1d320a; }
.card + .card { margin-top: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .value { font-size: 22px; font-weight: 800; margin-top: 4px; overflow-wrap: anywhere; }
.tile.red .value { color: var(--red); } .tile.green .value { color: var(--green); }
.tile.hero { grid-column: 1 / -1; background: var(--navy); color: #fff; border: 0; }
.tile.hero .label { color: #a9c0dc; } .tile.hero .value { font-size: 30px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tile.hero { grid-column: span 2; } }

/* Big action buttons */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
@media (min-width: 720px) { .actions { grid-template-columns: repeat(4, 1fr); } }
.action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 76px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink);
  font-weight: 750; font-size: 16px; }
.action .ic { font-size: 22px; }
.action.primary { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Buttons & forms */
button, .btn { appearance: none; border: 0; border-radius: 12px; min-height: var(--tap); padding: 12px 18px; font: inherit; font-weight: 700;
  cursor: pointer; background: #e8eef7; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; }
button.primary, .btn.primary { background: var(--blue); color: #fff; }
button.danger, .btn.danger { background: var(--red-soft); color: var(--red); }
button.ghost, .btn.ghost { background: transparent; color: var(--blue); padding-left: 6px; padding-right: 6px; }
button.block, .btn.block { width: 100%; }
button.sm, .btn.sm { min-height: 40px; padding: 8px 12px; font-size: 14px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.row-btns > * { flex: 1 1 160px; }
label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-height: var(--tap); border: 1px solid #c9d5e4; border-radius: 12px; padding: 12px 14px;
  font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 1px; }
.amount-input { font-size: 26px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; background: #fff; border: 1px solid #c9d5e4; color: var(--ink); min-height: 46px; padding: 8px 12px; }
.seg button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 24px; min-height: 24px; height: 24px; }

/* Lists */
.list { display: grid; gap: 8px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); min-height: 60px; }
button.item { width: 100%; text-align: left; font-weight: 400; }
.item .main { min-width: 0; }
.item .title { font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: 13px; color: var(--muted); }
.item .end { text-align: right; flex-shrink: 0; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--blue-soft); color: #1759b5; }
.pill.overdue { background: var(--red-soft); color: var(--red); }
.pill.paid { background: var(--green-soft); color: var(--green); }
.pill.written_off, .pill.cancelled { background: #eceff3; color: #56657a; }
.pill.partial { background: var(--amber-soft); color: var(--amber); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 10px 0; }
.chips button { min-height: 40px; padding: 6px 14px; background: #fff; border: 1px solid #c9d5e4; font-size: 14px; white-space: nowrap; }
.chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #edf1f6; text-align: left; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); background: #f8fafd; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.reversed td { color: #8a96a8; text-decoration: line-through; }

/* Notices */
.notice { border-left: 4px solid #e9a837; background: var(--amber-soft); padding: 12px 14px; border-radius: 10px; font-size: 14px; margin: 12px 0; }
.notice.info { border-color: var(--blue); background: var(--blue-soft); }
.notice.error { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.notice.ok { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* Steps */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: #d6e0ec; }
.steps span.on { background: var(--blue); }
.step-label { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; font-weight: 700; text-align: right; }

/* Toast + modal */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px;
  border-radius: 12px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 24px #0004; }
.toast.error { background: var(--red); }
.modal-bg { position: fixed; inset: 0; background: #0b1d3266; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh; overflow: auto; position: relative; }
.modal > .modal-x { position: absolute; top: 10px; right: 10px; min-height: 40px; width: 40px; padding: 0; border-radius: 50%;
  background: #eef2f8; color: var(--muted); font-size: 16px; }
.modal > .modal-x + h2 { padding-right: 44px; margin-top: 4px; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }

/* Login */
.login { max-width: 420px; margin: 8vh auto 0; }
.login .brand-big { text-align: center; margin-bottom: 18px; }
.login .brand-big b { display: block; font-size: 32px; color: var(--navy); }

/* Receipt / print */
.receipt { max-width: 460px; margin: 0 auto; background: #fff; border: 1px dashed #b8c4d4; border-radius: 12px; padding: 22px; }
.receipt h2 { margin: 0; text-align: center; }
.receipt .rno { text-align: center; color: var(--muted); margin-bottom: 14px; }
.receipt .big { font-size: 30px; font-weight: 800; text-align: center; margin: 10px 0; }
@media print {
  .topbar, nav.tabs, .no-print, .toast, .offline { display: none !important; }
  main { padding: 0; max-width: none; }
  body, html { background: #fff; }
  .receipt { border: 0; }
  .card, .tile, .table-wrap { box-shadow: none; }
}

/* V1.1: sign-up, applications */
.login.wide { max-width: 520px; }
.center { text-align: center; }
.btn.google { background: #fff; color: #1f1f1f; border: 1px solid #c9d5e4; font-weight: 700; }
.btn.google .g { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font-weight: 900; font-size: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply-cta { display: grid; gap: 6px; margin-top: 12px; }
.steps-list { padding-left: 20px; margin: 6px 0; } .steps-list li { margin: 6px 0; }
.bring { margin: 6px 0 0; padding-left: 20px; } .bring li { margin: 3px 0; }
details summary { cursor: pointer; margin: 6px 0; }
code { background: #eef2f8; padding: 1px 5px; border-radius: 6px; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline li { position: relative; padding: 0 0 16px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2px solid #c9d5e4; box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: #dfe6ef; }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.done::before { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; text-align: center; line-height: 18px; }
.timeline li.now::before { border-color: var(--blue); background: var(--blue-soft); }
.timeline li.no::before { background: var(--red); border-color: var(--red); content: "✕"; color: #fff; font-size: 12px; text-align: center; line-height: 18px; }
.timeline b { display: block; } .timeline span { font-size: 14px; color: var(--muted); }
.pill.app-approved, .pill.app-loan_issued { background: var(--green-soft); color: var(--green); }
.pill.app-submitted { background: var(--amber-soft); color: var(--amber); }
.pill.app-declined { background: var(--red-soft); color: var(--red); }
.pill.app-withdrawn { background: #eceff3; color: #56657a; }
.list > h2 { margin: 14px 0 2px; }
.summary dt, .summary dd { min-width: 0; overflow-wrap: anywhere; }
.item .end.btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 55%; }
.item .main .title { overflow-wrap: anywhere; }
.perms { display: grid; gap: 2px; }
.perms .check { margin: 6px 0; font-weight: 600; font-size: 15px; }
.perms input:disabled + * , .perms .check:has(input:disabled) { opacity: .5; }
.doc-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.doc-head > div { min-width: 0; }
.doc-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.doc-file a { overflow-wrap: anywhere; }
label.btn { margin: 0; flex-shrink: 0; }

/* ===== V1.4: proposal features ===== */
:root { --gold: #c9a227; --teal: #0f6b5c; }
.tile.link { text-decoration: none; color: inherit; display: block; }
.value.neg { color: var(--red); }

/* Notification bell */
.topbar button.bell { position: relative; min-height: 40px; width: 44px; padding: 0; background: #ffffff1f; border-radius: 10px; font-size: 19px; flex-shrink: 0; }
.topbar button.bell .count { position: absolute; top: -4px; right: -4px; background: #e5484d; color: #fff; border-radius: 999px; font-size: 11px;
  min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; font-weight: 800; }

/* Desktop sidebar (office layout from the proposal); phones keep the bottom tabs */
aside.side { display: none; }
@media (min-width: 1024px) {
  body.staff aside.side { display: flex; flex-direction: column; gap: 2px; position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--navy);
    padding: 16px 10px; z-index: 25; overflow-y: auto; }
  body.staff .side-brand { color: #fff; font-weight: 800; font-size: 22px; padding: 4px 12px 16px; }
  body.staff .side-brand small { display: block; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
  body.staff aside.side a { display: flex; align-items: center; gap: 10px; color: #cfdcec; text-decoration: none; padding: 11px 12px; border-radius: 10px;
    font-weight: 600; font-size: 15px; min-height: 44px; }
  body.staff aside.side a:hover { background: #ffffff14; color: #fff; }
  body.staff aside.side a.active { background: var(--teal); color: #fff; }
  body.staff aside.side .ic { width: 22px; text-align: center; }
  body.staff .topbar, body.staff main, body.staff .offline { margin-left: 236px; }
  body.staff .topbar .brand { visibility: hidden; }
  body.staff nav.tabs { display: none; }
  body.staff main { padding-bottom: 40px; max-width: 1180px; }
  body.staff .topbar .inner { max-width: 1180px; }
  body.staff .toast { bottom: 28px; }
}

/* Dashboard */
.dash-grid { display: grid; gap: 12px; margin-top: 18px; }
.dash-grid .card + .card { margin-top: 0; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1.3fr; } }
.table-wrap.flat { border: 0; }
.actions-wrap { position: relative; }
.actions-hint { display: none; }
@media (max-width: 719px) {
  .actions { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .actions::-webkit-scrollbar { display: none; }
  .actions .action { flex: 0 0 calc(50% - 5px); scroll-snap-align: start; }
  .actions-hint { display: block; position: absolute; right: 0; top: -22px; font-size: 12px; font-weight: 700; color: var(--blue); }
  .actions-hint[hidden] { display: none; }
}
@media (min-width: 720px) { .actions { grid-template-columns: repeat(5, 1fr); } }

/* Charts */
.chart svg { width: 100%; height: auto; display: block; }
.chart rect.s1, .legend i.s1 { fill: var(--teal); background: var(--teal); }
.chart rect.s2, .legend i.s2 { fill: var(--gold); background: var(--gold); }
.chart .bar-lbl { font-size: 13px; fill: var(--muted); text-anchor: middle; }
.chart .bar-val { font-size: 12px; fill: var(--ink); text-anchor: middle; font-weight: 700; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Swipe for more */
.swipe { position: relative; overflow: hidden; border-radius: 12px; }
.tiles > .swipe { border-radius: var(--radius); }
.tiles > .swipe.hero { grid-column: 1 / -1; }
@media (min-width: 720px) { .tiles > .swipe.hero { grid-column: span 2; } }
.swipe-content { position: relative; z-index: 1; transition: transform .22s ease; touch-action: pan-y; background: var(--bg); }
.swipe-content > .item, .swipe-content > .tile { margin: 0; height: 100%; }
.tiles > .swipe > .swipe-content { height: 100%; }
.swipe-actions { position: absolute; inset: 0 0 0 auto; display: flex; align-items: stretch; z-index: 0; }
.swipe-actions .sa { min-width: 76px; min-height: 0; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 12px; font-weight: 700; text-decoration: none; color: #fff; background: #5f6f86; padding: 6px 8px; }
.swipe-actions .sa .ic { font-size: 20px; line-height: 1; }
.swipe-actions .sa.blue { background: var(--blue); } .swipe-actions .sa.green { background: var(--green); }
.swipe-actions .sa.dark { background: var(--navy-2); } .swipe-actions .sa.red { background: var(--red); }
.swipe-actions .sa:last-child { border-radius: 0 12px 12px 0; }
.swipe-more { display: none; }
@media (hover: hover) and (pointer: fine) {
  .swipe-more { display: flex; position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 30px; width: 30px; padding: 0;
    border-radius: 8px; background: #ffffffd9; color: var(--muted); font-size: 18px; opacity: 0; transition: opacity .15s; z-index: 2; }
  .swipe:hover .swipe-more, .swipe-more:focus-visible, .swipe.open .swipe-more { opacity: 1; }
  .swipe-content > .item .end { margin-right: 30px; }
}
.swipe-tip { font-size: 13px; color: var(--blue); background: var(--blue-soft); padding: 8px 12px; border-radius: 10px; margin: 0 0 10px; }

/* Portal */
.menu-list { display: grid; gap: 8px; margin: 16px 0; }
@media (min-width: 640px) { .menu-list { grid-template-columns: repeat(4, 1fr); } }
.menu-btn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 750; }
.menu-btn .ic { font-size: 20px; }
.menu-btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.radio-list { display: grid; gap: 8px; margin: 12px 0; }
.radio { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #c9d5e4; border-radius: 12px; padding: 14px; margin: 0; font-weight: 500; cursor: pointer; min-height: 56px; }
.radio input { width: 22px; min-height: 22px; height: 22px; flex-shrink: 0; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio.off { opacity: .6; cursor: not-allowed; }

/* Messages, notices, custom schedule */
.send-bar .msg-text { min-height: 120px; font-size: 15px; }
.send-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.send-btns > * { flex: 1 1 110px; }
.msg-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-row { align-items: flex-start; }
.notice-row .btns { display: flex; gap: 6px; justify-content: flex-end; }
.crow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 8px; }
.crow input { min-height: 46px; }
tr.muted td { color: var(--muted); }
@media print { aside.side, .bell, .swipe-actions, .swipe-more, .swipe-tip, .actions-wrap { display: none !important; }
  body.staff .topbar, body.staff main { margin-left: 0 !important; } .swipe-content { transform: none !important; } }
.swipe-content a { -webkit-user-drag: none; }
.swipe-content { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- V1.5: collections tools + QA fixes ---------- */
/* QA: the Recent payments table made the Home grid wider than the phone (574px). */
.dash-grid > * { min-width: 0; }
.dash-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
/* QA: tap targets at least 44px. */
button.sm, .btn.sm { min-height: 44px; }
.chips button { min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .swipe-more { min-height: 36px; width: 36px; } .swipe-content > .item .end { margin-right: 36px; } }
/* Big two-line choice buttons (promise amount/day). */
#pamt button, #pday button { line-height: 1.25; padding: 8px 10px; }
.seg-2 button { flex: 1 1 45%; }
.extras { margin-top: 8px; }
.extras button { flex: 1 1 auto; }
/* Week ahead day tabs */
.daytabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0; }
.daytabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; min-height: 64px;
  background: #fff; border: 1px solid #c9d5e4; color: var(--ink); font-weight: 500; }
.daytabs button b { font-size: 18px; }
.daytabs button small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.daytabs button.today { border-color: var(--blue); }
.daytabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.daytabs button.on small { color: #dbe6f5; }
.item.contact .title { font-weight: 650; }
details.notice summary { cursor: pointer; }
.daytabs button > span { font-size: 13px; white-space: nowrap; }

/* V1.5.2 item photos */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs .thumb { width: 64px; height: 64px; min-height: 64px; padding: 0; border-radius: 10px; overflow: hidden; background: var(--blue-soft); flex-shrink: 0; }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; border: 2px dashed var(--line); background: transparent; color: var(--ink); }
.thumbs .thumb.add span { font-size: 11px; font-weight: 700; }
.photo-full { display: block; width: 100%; max-height: 65vh; object-fit: contain; border-radius: 12px; background: #0b1b30; }

/* V1.5.2 search everything */
.topbar .search-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 40px; width: 44px; padding: 0; background: #ffffff1f; border-radius: 10px; font-size: 18px; flex-shrink: 0; }
.search-group h2 { margin-top: 18px; }
.search-group .match { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .03em; }
mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------------------------------------------------------------- Public landing page (#/ signed out, js/landing.js) */
.login-home { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login-home a { text-decoration: none; font-weight: 600; }
body.landing { background: #fff; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.lp { max-width: none; padding: 0; }
.lp-top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; }
.lp-bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.lp-logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: .3px; margin-right: auto; line-height: 1.1; display: inline-flex; align-items: center; }
.lp-logo small { display: block; font-size: 12px; font-weight: 500; color: #a9c0dc; letter-spacing: 0; }
/* V1.11.2 — render the uploaded PNG wordmark in the header. The <img> is the only visible
   piece of the link; the <span.lp-logo-text> stays in the DOM for screen readers. */
.lp-logo-img { display: block; height: 52px; width: auto; max-width: 220px; }
.lp-logo-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.landing .lp-logo { color: var(--lp-royal); }
.lp-nav { display: none; gap: 4px; }
.lp-nav a { color: #cfdcec; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.lp-nav a:hover { color: #fff; background: #ffffff14; }
.lp-top-btns { display: flex; gap: 8px; }
.lp-top-btns .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn.lp-signin { background: #ffffff1f; color: #fff; }
@media (min-width: 900px) { .lp-nav { display: flex; } .lp-logo { margin-right: 12px; } .lp-nav { margin-right: auto; } }

.lp-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #1b4a7a 100%); color: #fff; padding: 40px 0 56px; }
.lp-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; } .lp-hero { padding: 72px 0 88px; } }
.lp-hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; margin: 6px 0 16px; letter-spacing: -.5px; }
.lp-hero h1 span { color: #8fb8ff; }
.lp-lead { font-size: 18px; color: #d5e2f2; max-width: 560px; margin: 0 0 22px; }
.lp-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-hero-btns .btn { text-decoration: none; display: inline-flex; align-items: center; }
.btn.lp-cta { font-size: 17px; padding: 14px 24px; }
.btn.lp-ghost { background: transparent; color: #fff; border: 1px solid #ffffff55; }
.lp-closed { color: #ffd88a; font-weight: 600; }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #cfdcec; font-size: 15px; }
.lp-checks li::before { content: "✓"; color: #6fd6a0; font-weight: 900; margin-right: 6px; }
.lp-eyebrow { text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; font-weight: 800; color: var(--blue); margin: 0; }
.lp-eyebrow.light { color: #8fb8ff; }

.lp-widget { color: var(--ink); padding: 20px; box-shadow: 0 20px 50px #00000040; border: 0; max-width: 440px; width: 100%; justify-self: center; }
.lp-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.lp-tabs button { min-height: 44px; background: transparent; color: var(--muted); font-size: 15px; }
.lp-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px #0b1d321f; }
.lp-widget-sub { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.lp-widget-foot { margin: 12px 0 0; font-size: 14px; text-align: center; color: var(--muted); min-height: 1.2em; }

.lp-sec { padding: 56px 0; scroll-margin-top: 64px; }
.lp-sec.alt { background: var(--bg); }
.lp-sec h2 { font-size: clamp(26px, 4vw, 36px); margin: 6px 0 12px; line-height: 1.15; color: var(--navy); }
.lp-intro { font-size: 17px; color: var(--muted); max-width: 680px; margin: 0 0 26px; }
.lp-h3 { font-size: 20px; margin: 40px 0 16px; color: var(--navy); }
.lp-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .lp-cards { grid-template-columns: repeat(3, 1fr); } }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lp-sec.alt .lp-card { box-shadow: 0 2px 8px #0b1d320a; }
.lp-card h3 { margin: 10px 0 6px; font-size: 18px; } .lp-card p { margin: 0; color: var(--muted); }
.lp-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); align-items: center; justify-content: center; font-size: 22px; }

.lp-calc { display: grid; gap: 20px; padding: 22px; margin-top: 18px; }
@media (min-width: 820px) { .lp-calc { grid-template-columns: 1.2fr 1fr; } .lp-calc .lp-fine { grid-column: 1 / -1; } }
.lp-calc input[type=range] { padding: 0; min-height: 36px; border: 0; accent-color: var(--blue); }
.lp-amt { display: block; font-size: 34px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.lp-calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-calc-out { margin: 0; display: grid; gap: 10px; align-content: center; }
.lp-calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.lp-calc-out dt { color: var(--muted); font-weight: 600; } .lp-calc-out dd { margin: 0; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
.lp-calc-out .lp-total { background: var(--navy); color: #fff; } .lp-calc-out .lp-total dt { color: #a9c0dc; } .lp-calc-out .lp-total dd { font-size: 24px; }
.lp-fine { font-size: 13px; color: var(--muted); margin: 0; }

.lp-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 720px) { .lp-steps { grid-template-columns: repeat(4, 1fr); } }
.lp-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lp-steps h3 { margin: 12px 0 6px; } .lp-steps p { margin: 0; color: var(--muted); }
.lp-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; }
.lp-bring { margin-top: 18px; } .lp-bring h3 { margin-top: 0; } .lp-bring ul { margin: 6px 0 10px; padding-left: 20px; } .lp-bring li { margin: 4px 0; }

.lp-about { display: grid; gap: 24px; font-size: 17px; }
@media (min-width: 860px) { .lp-about { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.lp-about p { margin: 0 0 12px; }
.lp-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-stats li { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.lp-stats b { font-size: 24px; } .lp-stats span { color: #a9c0dc; font-size: 14px; }
.lp-owner { display: grid; gap: 20px; margin-top: 26px; align-items: center; font-size: 17px; }
@media (min-width: 720px) { .lp-owner { grid-template-columns: 180px 1fr; } }
.lp-owner h3 { margin: 2px 0 10px; font-size: 22px; } .lp-owner p { margin: 0 0 10px; }
.lp-owner-pic { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; justify-self: center; }
.lp-owner-pic span { font-size: 48px; font-weight: 800; letter-spacing: 2px; }
.lp-owner-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lp-portal { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 820px) { .lp-portal { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 17px; }
.lp-list li { padding-left: 30px; position: relative; } .lp-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 900; }
.lp-portal-cta h3 { margin-top: 0; }

.lp-faq { display: grid; gap: 10px; margin-top: 18px; max-width: 820px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.lp-faq summary { font-weight: 700; padding: 12px 0; margin: 0; }
.lp-faq details p { margin: 0 0 14px; color: var(--muted); }

.lp-contact { display: grid; gap: 24px; margin-top: 12px; font-size: 17px; }
@media (min-width: 860px) { .lp-contact { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.lp-contact-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.lp-contact-list li { display: flex; gap: 10px; align-items: baseline; }
.lp-signin-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lp-signin-cards { grid-template-columns: repeat(3, 1fr); } }
.lp-signin-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px #0b1d320a; }
.lp-signin-card:hover { border-color: var(--blue); }
.lp-signin-card span { font-size: 24px; } .lp-signin-card small { color: var(--muted); }

.lp-foot { background: var(--navy); color: #cfdcec; padding: 36px 0 24px; font-size: 15px; }
.lp-foot-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .lp-foot-grid { grid-template-columns: 1fr 1fr 1.6fr; } }
.lp-foot p { margin: 6px 0 0; } .lp-foot .lp-fine { color: #a9c0dc; }
.lp-foot nav { display: grid; gap: 8px; align-content: start; } .lp-foot nav a { color: #fff; text-decoration: none; }
.lp-copy { border-top: 1px solid #ffffff22; margin: 24px 0 0; padding-top: 16px; font-size: 13px; color: #a9c0dc; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- V1.8: loan agreement, monthly report, next-loan offers ---------- */
.agreement { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 820px; margin: 12px auto; color: var(--ink); }
.agreement h1 { font-size: 22px; margin: 0 0 4px; } .agreement h2 { font-size: 17px; margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.agreement h3 { font-size: 15px; margin: 14px 0 6px; } .agreement header p { margin: 4px 0; }
.agreement table { width: 100%; border-collapse: collapse; font-size: 14px; } .agreement th, .agreement td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.agreement .num { text-align: right; white-space: nowrap; }
.ag-terms { padding-left: 20px; } .ag-terms li { margin: 6px 0; }
.ag-blank { display: inline-block; min-width: 180px; border-bottom: 1px solid #8a97a8; height: 1em; }
.ag-sigs { display: grid; gap: 26px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 640px) { .ag-sigs { grid-template-columns: 1fr 1fr; } }
.ag-sig { font-size: 13px; color: var(--muted); } .ag-line { border-bottom: 1px solid #333; height: 40px; } .ag-line.short { width: 50%; height: 26px; }
@media print { .agreement { border: 0; padding: 0; max-width: none; margin: 0; } .agreement h2 { break-after: avoid; } .ag-sigs { grid-template-columns: 1fr 1fr; break-inside: avoid; } }

/* ---------- V1.9: landing restyle (layout ideas from an REA teardown of a Jamaican lender's page; our own copy) ---------- */
body.landing { --lp-royal: #1c49b1; --lp-bright: #0057e1; --lp-sun: #f0e80c; --lp-ink: #333; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body.landing .lp-top { background: #fff; color: var(--lp-royal); border-bottom: 1px solid #e2e2e2; }
body.landing .lp-logo { color: var(--lp-royal); } body.landing .lp-logo small { color: #4682b4; }
body.landing .lp-nav a { color: var(--lp-ink); } body.landing .lp-nav a:hover { color: var(--lp-bright); background: #0057e10f; }
.lp-top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
body.landing .btn.lp-signin { background: #fff; color: #4682b4; border: 1px solid #003a96; }
body.landing .lp-top-btns .btn { border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; transition: background .2s, color .2s; }
body.landing .btn.lp-signin:hover { background: var(--lp-bright); color: #fff; }
body.landing .lp-top-btns .btn.primary { background: var(--lp-royal); }
.lp-call { font-size: 12px; font-weight: 700; color: #4682b4; text-decoration: none; }
@media (max-width: 559px) { .lp-call { display: none; } }

body.landing .lp-hero { background: linear-gradient(135deg, var(--lp-bright) 0%, var(--lp-royal) 75%); }
body.landing .lp-hero h1 span { color: var(--lp-sun); }
body.landing .lp-hero h1 { text-shadow: 0 2px 10px #00000030; }
.lp-example { font-size: 19px; margin: -4px 0 16px; color: #fff; } .lp-example b { color: var(--lp-sun); }
body.landing .lp-lead { color: #e3ecff; } body.landing .lp-checks { color: #e3ecff; } body.landing .lp-checks li::before { color: var(--lp-sun); }
body.landing .lp-eyebrow.light { color: #cfe0ff; }
body.landing .btn.lp-cta { background: #fff; color: var(--lp-royal); letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; }
body.landing .btn.lp-ghost { border-radius: 4px; }

.lp-benefits { background: #fff; padding: 36px 0 8px; }
.lp-benefit-grid { display: grid; gap: 22px; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 720px) { .lp-benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-benefit span { font-size: 40px; display: block; } .lp-benefit h3 { margin: 8px 0 4px; font-size: 20px; font-weight: 500; color: var(--lp-ink); }
.lp-benefit p { margin: 0 auto; max-width: 260px; color: #595959; font-size: 15px; }

.lp-band { background: var(--lp-royal); color: #fff; text-align: center; padding: 52px 0; }
.lp-band h2 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.35; margin: 0 auto 18px; max-width: 900px; font-weight: 700; }
.lp-band p { max-width: 680px; margin: 0 auto 18px; font-size: 17px; }
.lp-band.yellow { background: var(--lp-sun); color: var(--lp-royal); } .lp-band.yellow p { color: #1f2f5c; }
.btn.lp-band-btn { display: inline-flex; background: #fff; color: var(--lp-ink); border-radius: 4px; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; padding: 12px 28px; text-decoration: none; transition: color .2s, background .2s; }
.btn.lp-band-btn:hover { color: #595959; }
.btn.lp-band-btn.outline { border: 1px solid var(--lp-bright); color: var(--lp-bright); } .btn.lp-band-btn.outline:hover { background: var(--lp-bright); color: #fff; }

.lp-uses { padding: 40px 0; background: #fff; }
.lp-uses h2 { text-align: center; color: var(--lp-royal); font-size: clamp(22px, 3vw, 28px); margin: 0 0 20px; }
.lp-uses ul { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 14px 28px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lp-uses ul { grid-template-columns: 1fr 1fr; } }
.lp-uses li { display: flex; align-items: center; gap: 12px; color: var(--lp-royal); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.lp-uses li span { font-size: 26px; width: 34px; text-align: center; }

.lp-req { scroll-margin-top: 64px; }
.lp-req-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .lp-req-grid { grid-template-columns: 2fr 3fr; min-height: 420px; } }
.lp-req-head { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lp-req-head > div { max-width: 360px; } .lp-req-head h2 { color: var(--lp-royal); font-size: clamp(30px, 4.5vw, 50px); line-height: 1.15; margin: 6px 0 12px; }
.lp-req-head p:last-child { color: #595959; font-size: 17px; margin: 0; }
.lp-req-panel { background: var(--lp-royal); color: #fff; padding: 40px 24px; display: flex; flex-direction: column; justify-content: center; }
.lp-req-panel ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; max-width: 520px; }
.lp-req-panel label { display: flex; gap: 12px; align-items: center; font-size: 18px; letter-spacing: .02em; cursor: pointer; color: #fff; margin: 0; padding: 6px 0; font-weight: 400; }
.lp-req-panel input[type=checkbox] { width: 24px; height: 24px; min-height: 0; accent-color: var(--lp-sun); flex: none; }
.lp-elig-out { min-height: 1.4em; font-size: 17px; max-width: 520px; margin: 4px 0 12px; } .lp-elig-out b { color: var(--lp-sun); font-weight: 600; }
.lp-elig-out .btn { margin-top: 10px; }
.lp-req-note { font-size: 14px; color: #cfe0ff; max-width: 520px; margin: 0; }

body.landing .lp-foot { background: var(--lp-royal); color: #e3ecff; }
body.landing .lp-foot .lp-logo { color: #fff; }
body.landing .lp-sec h2 { color: var(--lp-royal); }
body.landing .lp-num { background: var(--lp-royal); }
body.landing .lp-stats li { background: var(--lp-royal); }
body.landing .lp-calc-out .lp-total { background: var(--lp-royal); }

.lp-mbar { display: none; }
@media (max-width: 719px) {
  .lp-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #e2e2e2; box-shadow: 0 -4px 14px #0000001a; }
  .lp-mbar .btn { flex: 1; min-height: 46px; padding: 8px; font-size: 15px; text-decoration: none; justify-content: center; display: inline-flex; align-items: center; }
  .lp-mbar .btn.primary { background: var(--lp-royal); }
  body.landing { padding-bottom: 72px; }
}

/* V1.13: subtle, respectful animations. No new libraries, GPU-only properties, respects
   prefers-reduced-motion. Browser-fallback for animation-timeline: view() so Firefox users
   still see static cards. Total weight ~2.1 KB CSS + ~120 bytes inline SVG. */

@keyframes ezi-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ezi-view-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ezi-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .ezi-enter, .ezi-enter-2, .ezi-enter-3, .ezi-enter-4 {
    animation: ezi-rise .55s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: var(--ezi-d, 0ms);
  }
  .ezi-enter-2 { --ezi-d: 90ms; }
  .ezi-enter-3 { --ezi-d: 180ms; }
  .ezi-enter-4 { --ezi-d: 270ms; }
  .ezi-view {
    animation: ezi-view-rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
  .ezi-rule line {
    animation: ezi-draw 1s cubic-bezier(.2,.7,.2,1) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
  /* Hover sweep for primary CTAs (preserves the white default background at rest). */
  body.landing .btn.lp-cta { transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease; }
  body.landing .btn.lp-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -8px rgb(28 73 177 / .55); }
  body.landing .btn:hover:not(:disabled) { transform: translateY(-1px); }
}
@supports not (animation-timeline: view()) {
  .ezi-view, .ezi-rule line { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ezi-enter, .ezi-enter-2, .ezi-enter-3, .ezi-enter-4, .ezi-view {
    animation: none; opacity: 1; transform: none;
  }
  .ezi-rule line { animation: none; stroke-dashoffset: 0; }
  .lp-cta, body.landing .btn { transition: none; transform: none; }
}

/* V1.13: glass-blur calculator card. -webkit- prefix still needed for Safari iOS (2026). */
body.landing .lp-calc.card {
  background: rgb(255 255 255 / .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgb(28 73 177 / .12);
}
@media (max-width: 600px) {
  body.landing .lp-calc.card {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.landing .lp-calc.card {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* V1.13: hover lift on services + promises tiles. Touch devices (hover: none) get no lift. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lp-card:hover { transform: translateY(-3px); border-color: rgb(28 73 177 / .5); box-shadow: 0 8px 24px -12px rgb(28 73 177 / .25); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-card { transition: none; }
}

/* V1.13: chevron rotation for FAQ accordion (no JS). */
.faq .chev, .lp-faq summary::after {
  transition: transform .2s ease;
  transform-origin: 50% 50%;
}
details[open] summary::after { transform: rotate(90deg); }

/* V1.13: stroke-draw rule (width 80px → 200px max). */
.ezi-rule { display: block; width: min(220px, 60%); height: 2px; margin: -8px 0 22px; }

/* V1.13: blog styles — index + post pages. */
.lp-blog-body { background: #fff; }
.lp-blog-hero { background: linear-gradient(135deg, var(--lp-bright) 0%, var(--lp-royal) 80%); color: #fff; padding: 60px 0 56px; }
.lp-blog-hero h1 { color: #fff; margin: 4px 0 12px; font-size: clamp(28px, 4vw, 40px); text-shadow: 0 2px 10px #00000030; }
.lp-blog-hero .lp-lead { color: #e3ecff; max-width: 720px; font-size: 17px; }
.lp-blog-hero .lp-eyebrow { color: #cfe0ff; }

.lp-blog-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lp-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lp-blog-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lp-blog-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 14px; padding: 22px; display: block; text-decoration: none; color: var(--ink); position: relative; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .lp-blog-card:hover { transform: translateY(-3px); border-color: var(--lp-bright); box-shadow: 0 8px 24px -10px rgb(0 87 225 / .25); } }
.lp-blog-card h3 { margin: 6px 0 8px; color: var(--lp-royal); font-size: 19px; line-height: 1.3; }
.lp-blog-cat { color: var(--lp-bright); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.lp-blog-excerpt { color: #595959; font-size: 15px; line-height: 1.5; margin: 4px 0 12px; }
.lp-blog-meta { color: #888; font-size: 12.5px; margin: 0; }
.lp-blog-arrow { position: absolute; right: 18px; bottom: 18px; color: var(--lp-bright); font-size: 24px; line-height: 1; }

/* V1.15.2 blog post: readable column with side gutters on every screen, tables that scroll inside the post
   on phones (never the page), a CTA that stacks on phones, and a "More from the blog" row. */
.lp-post { max-width: 720px; margin: 0 auto; padding: 28px 18px 56px; color: #1f2937; overflow-wrap: break-word; }
@media (min-width: 720px) { .lp-post { padding: 44px 24px 72px; } }
.lp-post-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #e8edf6; }
.lp-post h1 { color: var(--lp-royal); font-size: clamp(26px, 6.4vw, 42px); margin: 8px 0 10px; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.lp-post-meta { color: #6b7280; font-size: 14px; margin: 0; }
.lp-post-body { font-size: 17px; line-height: 1.7; }
@media (min-width: 720px) { .lp-post-body { font-size: 18px; } }
.lp-post-lede { font-size: 1.15em; color: #111827; line-height: 1.55; margin: 0 0 22px; }
.lp-post-body h2 { color: var(--lp-royal); font-size: clamp(21px, 4.6vw, 26px); line-height: 1.25; margin: 38px 0 12px; text-wrap: balance; }
.lp-post-body h3 { color: var(--lp-royal); font-size: clamp(18px, 4vw, 20px); line-height: 1.3; margin: 26px 0 8px; }
.lp-post-body p { margin: 0 0 16px; }
.lp-post-body ul, .lp-post-body ol { padding-left: 1.4em; margin: 0 0 18px; }
.lp-post-body li { margin: 0 0 8px; padding-left: 2px; }
.lp-post-body li::marker { color: var(--lp-bright); font-weight: 700; }
.lp-post-body strong { color: #111827; }
.lp-post-body a { color: var(--lp-bright); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.lp-post-body blockquote { border-left: 4px solid var(--lp-sun); background: #f5f8ff; padding: 14px 18px; margin: 18px 0 22px; color: #1f2f5c; border-radius: 0 10px 10px 0; }
.lp-post-body blockquote p:last-child { margin-bottom: 0; }
.lp-post-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 32px 0; }
.lp-post-fine { font-size: 14px; color: #6b7280; margin-top: 24px; line-height: 1.55; }
.lp-post-sources { font-size: 14px; color: #4b5563; line-height: 1.55; overflow-wrap: anywhere; }
.lp-post-sources a { color: var(--lp-bright); }
.lp-post-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 22px; border: 1px solid #e2e8f0; border-radius: 12px; }
.lp-post-tablewrap + .lp-post-swipe { display: none; }
@media (max-width: 600px) { .lp-post-tablewrap + .lp-post-swipe { display: block; font-size: 13px; color: #6b7280; margin: -14px 0 20px; } }
.lp-post-body table, .lp-post-table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.45; }
.lp-post-body th, .lp-post-body td { border: 0; border-bottom: 1px solid #edf1f6; padding: 10px 14px; text-align: left; vertical-align: top; white-space: normal; }
.lp-post-body th { background: #f5f8ff; color: var(--lp-royal); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.lp-post-body tr:last-child td { border-bottom: 0; }
.lp-post-body td:first-child { font-weight: 600; white-space: nowrap; }
.lp-post-cta { margin-top: 40px; padding: 26px 20px; background: linear-gradient(135deg, var(--lp-bright), var(--lp-royal)); color: #fff; border-radius: 16px; text-align: center; }
.lp-post-cta h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.lp-post-cta p { margin: 0 0 16px; color: #e3ecff; }
.lp-post-cta .btn { margin: 4px 6px; min-width: 160px; }
.lp-post-cta .btn.primary { background: #fff; color: var(--lp-royal); border-color: #fff; }
.lp-post-cta .btn.outline { background: transparent; color: #fff; border: 1.5px solid #ffffffb0; }
@media (max-width: 480px) { .lp-post-cta .btn { display: block; width: 100%; margin: 8px 0 0; } }
.lp-post-more { margin-top: 40px; }
.lp-post-more h2 { color: var(--lp-royal); font-size: 20px; margin: 0 0 14px; }
.lp-post-more .lp-blog-grid { gap: 14px; }
@media (min-width: 720px) { .lp-post-more .lp-blog-grid { grid-template-columns: 1fr 1fr; } }
/* The phone menu panel never shows on desktop (it showed as a stray row of links ≥900 px before V1.15.2). */
@media (min-width: 900px) { .lp-menu { display: none !important; } }
/* Blog cards: side gutters and tidy spacing on phones. */
@media (max-width: 600px) { .lp-blog-hero { padding: 40px 0 36px; } .lp-blog-card { padding: 18px 18px 22px; } .lp-backbar .lp-wrap { gap: 12px; } }

/* V1.11.1: the hero + landing-page top bar tuned for phones.
   - the docked .lp-mbar already offers Apply + Sign in, so the top-bar pills duplicate and wrap on phones.
     Hide them on phones; keep the logo + (desktop) nav.
   - tighten the hero and the calculator card so the slider/total are above the fold. */
/* V1.13.2: hamburger menu — visible only on phones (<=900px), hidden on desktop where the
   top-bar nav is used. The .lp-menu panel is a slide-down that exposes all sections + Sign in +
   Apply, so the 6 page sections and the Blog link are reachable from a phone.
   V1.14.1: show via .lp-menu--open class (not [hidden] attribute) so UA / specificity cannot hide
   it. The menu also positions itself right under the sticky header via inline top=*. */
.lp-burger { display: none; }
@media (max-width: 899px) {
  .lp-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; margin-left: 8px;
    background: transparent; border: 1px solid currentColor; border-radius: 8px; cursor: pointer;
    color: inherit; -webkit-tap-highlight-color: transparent;
    flex: 0 0 auto;
  }
  .lp-burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; transition: transform .25s ease, opacity .2s ease; }
  .lp-burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .lp-burger.on span:nth-child(2) { opacity: 0; }
  .lp-burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Mobile menu: hidden by default. Opens via .lp-menu--open (added by JS). */
  .lp-menu {
    display: none; position: fixed; left: 0; right: 0; top: 60px; z-index: 30;
    background: var(--navy); color: #fff; padding: 12px 20px 18px;
    border-top: 1px solid #ffffff14;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  body.landing .lp-menu { background: #fff; color: var(--lp-ink); border-top: 1px solid #e2e2e2; }
  .lp-menu.lp-menu--open { display: block; animation: lp-menu-slide .2s ease-out; }
  .lp-menu a {
    display: block; padding: 12px 8px; color: #cfdcec; text-decoration: none;
    font-weight: 600; font-size: 16px; border-radius: 8px;
  }
  body.landing .lp-menu a { color: var(--lp-ink); }
  .lp-menu a:hover, .lp-menu a.on { background: #ffffff14; color: #fff; }
  body.landing .lp-menu a:hover, body.landing .lp-menu a.on { background: #0057e10f; color: var(--lp-bright); }
  .lp-menu a.lp-menu-cta { background: var(--lp-bright); color: #fff; margin-top: 8px; text-align: center; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
  body.landing .lp-menu a.lp-menu-cta { background: var(--lp-royal); }
  body.lp-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes lp-menu-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .lp-menu:not([hidden]) { animation: none; }
  .lp-burger span { transition: none; }
}

/* V1.13.2: animated graphics — coin stack + floating circles in the hero gradient.
   All GPU-only properties; reduced-motion users see them frozen. The coin stack + circles
   are absolutely-positioned, decorative only, and pointer-events:none so they never
   interfere with the calc card or links. */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero-decor { position: absolute; pointer-events: none; z-index: 0; }
.lp-hero-grid { position: relative; z-index: 1; }
.lp-coinstack { right: 8%; top: 12%; width: 220px; height: auto; opacity: .9;
  filter: drop-shadow(0 8px 16px rgb(0 0 0 / .25)); }
.lp-circles { inset: 0; width: 100%; height: 100%; }
.lp-circle { fill: #fff; mix-blend-mode: screen; }
.lp-circle-1 { opacity: .06; }
.lp-circle-2 { opacity: .05; }
.lp-circle-3 { opacity: .07; }

@media (prefers-reduced-motion: no-preference) {
  .ezi-float-slow { animation: ezi-float 6s ease-in-out infinite; }
  .ezi-coin-3 { transform-origin: 100px 160px; animation: ezi-coin-bob 4s ease-in-out infinite; }
  .ezi-coin-2 { transform-origin: 100px 100px; animation: ezi-coin-bob 4s ease-in-out infinite .4s; }
  .ezi-coin-1 { transform-origin: 100px 60px; animation: ezi-coin-bob 4s ease-in-out infinite .8s; }
  .ezi-spark circle { transform-origin: center; animation: ezi-spark-twinkle 2.4s ease-in-out infinite; }
  .ezi-spark circle:nth-child(2) { animation-delay: .3s; }
  .ezi-spark circle:nth-child(3) { animation-delay: .6s; }
  .ezi-spark circle:nth-child(4) { animation-delay: .9s; }
  .ezi-spark circle:nth-child(5) { animation-delay: 1.2s; }
  .ezi-spark circle:nth-child(6) { animation-delay: 1.5s; }
  .lp-circle-1 { animation: ezi-circle-drift-1 14s ease-in-out infinite; transform-origin: 700px 80px; }
  .lp-circle-2 { animation: ezi-circle-drift-2 18s ease-in-out infinite; transform-origin: 60px 500px; }
  .lp-circle-3 { animation: ezi-circle-drift-3 16s ease-in-out infinite; transform-origin: 430px 540px; }
}
@media (prefers-reduced-motion: reduce) {
  .ezi-float-slow, .ezi-coin-3, .ezi-coin-2, .ezi-coin-1, .ezi-spark circle, .lp-circle-1, .lp-circle-2, .lp-circle-3 {
    animation: none !important;
  }
}
@keyframes ezi-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ezi-coin-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.02); } }
@keyframes ezi-spark-twinkle { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes ezi-circle-drift-1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -12px); } }
@keyframes ezi-circle-drift-2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 18px); } }
@keyframes ezi-circle-drift-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -16px); } }

/* Hide the coin stack on small phones so the calc card stays above the fold; the circles stay
   (they're just ambient drift). */
@media (max-width: 540px) {
  .lp-coinstack { right: 4%; top: auto; bottom: 8%; width: 130px; opacity: .55; }
  .lp-circles { display: none; }
}

/* V1.13.2: visible "Apply now ›" arrow that nudges right on hover, in addition to the
   translateY lift. The currentV1.13 hover-lift only does 1px; this is a stronger signal. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn.lp-cta::after, .btn.lp-band-btn::after, .btn.primary.lp-band-btn::after {
    content: '›'; display: inline-block; margin-left: 6px;
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .btn.lp-cta:hover::after, .btn.lp-band-btn:hover::after { transform: translateX(4px); }
}

/* V1.13.2: animated H2 underlines — sun-yellow SVG line that draws on scroll-entry.
   Used on all sections that have an h2 inside lp-sec, not just "How it works". */
.lp-sec h2 { position: relative; padding-bottom: 14px; }
.lp-sec h2::after {
  content: ''; display: block; position: absolute; left: 0; bottom: 0;
  width: min(80px, 30%); height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lp-sun) 0%, var(--lp-bright) 100%);
  transform-origin: left center; transform: scaleX(0);
}
@media (prefers-reduced-motion: no-preference) {
  .lp-sec h2 { animation-name: lp-sec-h2-rise; animation-duration: .55s; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-fill-mode: both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
  .lp-sec h2::after { animation: lp-sec-h2-draw 1.1s cubic-bezier(.2,.7,.2,1) both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
}
@keyframes lp-sec-h2-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-sec-h2-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .lp-sec h2 { animation: none; }
  .lp-sec h2::after { transform: scaleX(1); animation: none; }
}
@supports not (animation-timeline: view()) {
  .lp-sec h2 { animation: none; }
  .lp-sec h2::after { transform: scaleX(1); animation: none; }
}

/* V1.14: "From the blog" teaser on the landing page. Mirrors the blog index card pattern so visitors
   see the same look in both places. The .slider-m class handles mobile horizontal scroll;
   on desktop it becomes a 1/2/3-column grid like the blog index. */
.lp-blog-teaser { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lp-blog-teaser { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .lp-blog-teaser { grid-template-columns: 1fr 1fr 1fr; } }
.lp-blog-teaser-card {
  display: block; background: #fff; border: 1px solid #e2e2e2; border-radius: 14px;
  padding: 22px; text-decoration: none; color: var(--ink); position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lp-blog-teaser-card:hover { transform: translateY(-3px); border-color: var(--lp-bright); box-shadow: 0 8px 24px -10px rgb(0 87 225 / .25); }
}
.lp-blog-teaser-card h3 { margin: 6px 0 8px; color: var(--lp-royal); font-size: 18px; line-height: 1.3; }
.lp-blog-teaser-card .lp-blog-cat { color: var(--lp-bright); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.lp-blog-teaser-card .lp-blog-excerpt { color: #595959; font-size: 14px; line-height: 1.5; margin: 4px 0 12px; }
.lp-blog-teaser-card .lp-blog-meta { color: #888; font-size: 12.5px; margin: 0; }
.lp-blog-teaser-card .lp-blog-arrow { position: absolute; right: 18px; bottom: 18px; color: var(--lp-bright); font-size: 24px; line-height: 1; }
.lp-blog-teaser-cta { margin: 22px 0 0; text-align: center; }

/* V1.14.1: Install the app section. Sits between the blog teaser and the band. */
.lp-install { display: flex; justify-content: center; }
.lp-install-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 540px; width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
  color: var(--lp-ink);
  border: 1px solid #d8e0ee; border-radius: 14px;
  padding: 22px 22px 18px;
  text-align: center;
  box-shadow: 0 6px 24px -16px rgb(0 87 225 / .35);
}
.lp-install-illu svg { display: block; margin: 0 auto; }
.lp-install-card h3 { margin: 2px 0 2px; color: var(--lp-royal); font-size: 22px; }
.lp-install-card p { margin: 0; line-height: 1.55; color: #3b3b3b; font-size: 15px; }
.lp-install-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 6px; width: 100%; max-width: 360px; }
.lp-install-android {
  background: #0b1d32; color: #fff; border: 0; border-radius: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  padding: 13px 18px; min-height: 44px;
  cursor: pointer;
}
.lp-install-android:hover { background: #15355e; }
.lp-install-android:focus-visible { outline: 3px solid var(--lp-sun); outline-offset: 2px; }
.lp-install-hint {
  margin: 0; padding: 12px 14px;
  background: #f6f9fd; border: 1px solid #d8e0ee; border-radius: 10px;
  font-size: 13.5px; line-height: 1.55; color: #2c3a4d; text-align: left;
}
.lp-install-hint strong { color: var(--lp-royal); }
.lp-install-state { margin: 4px 0 0; font-size: 13px; color: #1a7a40; }
.lp-install-state.error { color: #b02121; }

@media (max-width: 719px) {
  body.landing .lp-top-btns { display: none; }
  body.landing .lp-call { display: none; }
  body.landing .lp-top { padding: 8px 0; }
  body.landing .lp-top .lp-bar { gap: 10px; }
  body.landing .lp-logo { min-width: 0; }
  body.landing .lp-logo small { display: none; }

  body.landing .lp-hero { padding: 18px 0 28px; }
  body.landing .lp-hero-grid { gap: 16px; }
  body.landing .lp-hero h1 { font-size: clamp(26px, 7vw, 36px); margin: 2px 0 10px; letter-spacing: -.3px; line-height: 1.06; }
  body.landing .lp-eyebrow.light { font-size: 11px; letter-spacing: 1.4px; margin: 0 0 6px; }
  body.landing .lp-example { font-size: 14px; margin: 0 0 10px; }
  body.landing .lp-lead { font-size: 15px; line-height: 1.45; margin: 0 0 14px; max-width: none; }
  body.landing .lp-hero-btns { gap: 8px; margin-bottom: 6px; }
  body.landing .lp-hero-btns .btn { padding: 11px 16px; font-size: 14px; min-height: 40px; }
  body.landing .lp-checks { gap: 4px 14px; margin-top: 12px; font-size: 13px; }
  body.landing .lp-checks li { line-height: 1.35; }

  /* Calculator card: compact, all controls + total in first screen-worth. */
  body.landing .lp-hero-calc { padding: 14px 14px 16px; gap: 8px; max-width: 100%; border-radius: 14px; }
  body.landing .lp-hero-calc h2 { font-size: 17px; }
  body.landing .lp-hero-calc .lp-calc-in { gap: 6px; }
  body.landing .lp-hero-calc .lp-calc-in label { font-size: 12px; }
  body.landing .lp-hero-calc .lp-amt { font-size: 18px !important; }
  body.landing .lp-hero-calc .lp-calc-row { gap: 8px; }
  body.landing .lp-hero-calc .lp-calc-row label { font-size: 12px; }
  body.landing .lp-hero-calc .lp-calc-row select { font-size: 14px; min-height: 36px; }
  body.landing .lp-hero-calc .lp-calc-out { gap: 4px; padding: 10px 0; margin: 0; }
  body.landing .lp-hero-calc .lp-calc-out > div { padding: 4px 0; }
  body.landing .lp-hero-calc .lp-calc-out dt { font-size: 12px; }
  body.landing .lp-hero-calc .lp-calc-out dd { font-size: 15px; }
  body.landing .lp-hero-calc .lp-total dd { font-size: 20px; }
  body.landing .lp-hero-calc .primary { padding: 11px 14px; font-size: 14px; min-height: 42px; }
  body.landing .lp-hero-calc .lp-fine { font-size: 11px; line-height: 1.4; margin-top: 2px; }
}
.step-of { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 3px 8px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
body.landing .lp-widget .primary { background: var(--lp-royal); }

/* V1.10: the calculator sits in the hero instead of the sign-in widget. */
.lp-hero-calc { color: var(--ink); margin-top: 0; gap: 14px; box-shadow: 0 20px 50px #00000040; border: 0; max-width: 480px; width: 100%; justify-self: center; grid-template-columns: 1fr !important; }
.lp-hero-calc h2 { margin: 0; font-size: 20px; color: var(--navy); }
.lp-hero-calc .lp-fine { grid-column: auto; }
body.landing .lp-hero-calc .primary { background: var(--lp-royal); }

/* ---------- V1.11: sliding widget blocks on phones, customer portal in the landing-page look, payouts ---------- */
.slider-dots { display: none; }
@media (max-width: 719px) {
  .slider-m { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; -webkit-overflow-scrolling: touch;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 10px; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .slider-m::-webkit-scrollbar { display: none; }
  .slider-m > * { flex: 0 0 84%; max-width: 84%; scroll-snap-align: start; min-width: 0; }
  .slider-m.home-tiles > *, .slider-m.pt-quick > * { flex-basis: 72%; max-width: 72%; }
  .slider-m > .tile.hero { flex-basis: 88%; max-width: 88%; }
  .lp-wrap.slider-m { margin: 0; padding: 4px 16px 10px; text-align: left; }
  .lp-benefit-grid.slider-m > * { background: #f5f8ff; border-radius: var(--radius); padding: 18px; text-align: center; }
  .slider-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 14px; }
  .slider-dots button { width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: #c5d0e0; transition: width .2s, background .2s; }
  .slider-dots button.on { width: 22px; background: var(--blue); }
  body.landing .slider-dots button.on, body.portal .slider-dots button.on { background: #1c49b1; }
}
@media print { .slider-dots { display: none !important; } .slider-m { display: grid !important; overflow: visible; margin: 0; padding: 0; } }

/* Dashboard blocks carry their shortcut buttons (no hidden swipe needed). */
.tile-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tile-acts a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  text-decoration: none; background: var(--blue-soft); color: var(--blue); }
.tile.hero .tile-acts a { background: #ffffff1f; color: #fff; }
.home-tiles > .tile { display: flex; flex-direction: column; } .home-tiles > .tile .tile-acts { margin-top: auto; padding-top: 10px; }

/* Customer portal: royal blue like the landing page. */
body.portal { --p-royal: #1c49b1; --p-bright: #0057e1; --p-sun: #f0e80c; }
body.portal .topbar { background: #fff; color: var(--p-royal); border-bottom: 1px solid #e2e2e2; }
body.portal .topbar .brand { color: var(--p-royal); } body.portal .topbar .brand small { color: #4682b4; }
body.portal .topbar .who { color: #4a5a72; }
body.portal .topbar button.back { background: #1c49b114; color: var(--p-royal); }
body.portal .btn.primary, body.portal button.primary { background: var(--p-royal); }
body.portal main h1 { color: var(--p-royal); }
.pt-hero { background: linear-gradient(135deg, #0057e1 0%, #1c49b1 75%); color: #fff; border-radius: 18px; padding: 22px 20px; margin: 4px 0 16px; box-shadow: 0 14px 34px #1c49b140; }
.pt-hero p { margin: 0; } .pt-hi { font-size: 20px; font-weight: 700; margin-bottom: 10px !important; }
.pt-label { font-size: 13px; color: #cfe0ff; font-weight: 600; letter-spacing: .02em; }
.pt-bal { font-size: clamp(32px, 9vw, 44px); font-weight: 800; line-height: 1.15; margin: 2px 0 12px !important; text-shadow: 0 2px 10px #00000030; }
.pt-bal-sm { font-size: 19px; margin: 4px 0 12px !important; }
.pt-bar { height: 10px; border-radius: 999px; background: #ffffff38; overflow: hidden; }
.pt-bar span { display: block; height: 100%; border-radius: inherit; background: #f0e80c; transition: width .4s ease; }
.pt-bar.sm { height: 7px; background: #e6ecf7; margin-top: 8px; } .pt-bar.sm span { background: #1c49b1; }
.pt-bar-txt { font-size: 13px; color: #e3ecff; margin-top: 6px !important; }
.pt-loan .pt-bar-txt { color: var(--muted); }
.pt-next { margin-top: 12px !important; font-size: 16px; } .pt-next b { color: #f0e80c; }
.pt-next.late { background: #ffffff1f; padding: 8px 10px; border-radius: 10px; }
.pt-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn.pt-cta { background: #fff; color: #1c49b1; text-transform: uppercase; letter-spacing: .06em; border-radius: 6px; font-size: 14px; }
.btn.pt-ghost { background: transparent; color: #fff; border: 1px solid #ffffff80; border-radius: 6px; }
.pt-h { color: #1c49b1; margin-top: 22px; }
.pt-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 4px; }
.pt-q { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px #0b1d320a; }
.pt-q span { font-size: 26px; } .pt-q b { color: #1c49b1; font-size: 16px; } .pt-q small { color: var(--muted); font-size: 12.5px; }
.pt-loans, .pt-opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pt-loan { background: #fff; border: 1px solid var(--line); border-top: 4px solid #1c49b1; border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 8px #0b1d320a; }
.pt-loan.overdue { border-top-color: var(--red); } .pt-loan.paid { border-top-color: var(--green); }
.pt-loan header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.pt-loan header a { color: var(--ink); text-decoration: none; }
.pt-loan .pt-label { color: var(--muted); } .pt-loan-bal { font-size: 26px; font-weight: 800; margin: 0; }
.pt-loan .row-btns { margin-top: 10px; } .pt-loan .neg { color: var(--red); }
.pt-payout { font-size: 13px; background: var(--amber-soft); color: #6b4300; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.pt-payout.ok { background: var(--green-soft); color: #0c5a35; }
.pt-opt { background: #f5f8ff; border-radius: var(--radius); padding: 16px; }
.pt-opt span { font-size: 28px; } .pt-opt h3 { margin: 6px 0 4px; color: #1c49b1; font-size: 17px; } .pt-opt p { margin: 0; color: var(--muted); font-size: 14px; }
.pt-calc { margin-top: 12px; } .pt-calc h3 { color: #1c49b1; margin-top: 0; }
.pt-calc input[type=range] { width: 100%; accent-color: #1c49b1; }
.pt-calc-amt { display: block; font-size: 28px; font-weight: 800; color: #1c49b1; margin: 4px 0 10px; }
.pt-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.pt-calc-out div { background: #f5f8ff; border-radius: 10px; padding: 10px; } .pt-calc-out dt { font-size: 12.5px; color: var(--muted); }
.pt-calc-out dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; } .pt-calc-out .tot { background: #1c49b1; color: #fff; } .pt-calc-out .tot dt { color: #cfe0ff; }
.pt-how { margin-top: 16px; } .pt-how h3 { color: #1c49b1; margin-top: 0; }
.pt-how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pt-how-list li { display: flex; gap: 12px; align-items: flex-start; } .pt-how-list li > span { font-size: 24px; width: 32px; text-align: center; }
@media (max-width: 719px) { .pt-quick { grid-template-columns: 1fr 1fr; } }

/* Office: a loan whose money still has to be sent. */
.card.payout-due { border: 2px solid var(--amber); background: var(--amber-soft); margin-top: 12px; }
.card.payout-due h3 { margin-top: 0; }

/* V1.15: "Install the app" pop-up (bottom sheet on phones, centred card on wider screens). Opened by any
   [data-install] link, the /download share link, or once automatically for visitors who don't have the app. */
.lp-ip-bg { position: fixed; inset: 0; z-index: 60; background: rgba(8, 20, 40, .55); display: flex; align-items: flex-end; justify-content: center; animation: lp-ip-fade .2s ease-out; }
.lp-ip { position: relative; width: 100%; max-width: 440px; background: #fff; color: #1b2433; border-radius: 20px 20px 0 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); animation: lp-ip-up .25s ease-out; }
@media (min-width: 600px) { .lp-ip-bg { align-items: center; } .lp-ip { border-radius: 20px; padding-bottom: 22px; } }
.lp-ip-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); display: block; margin: 0 auto 10px; }
.lp-ip h2 { margin: 0 0 6px; font-size: 21px; color: #1c49b1; }
.lp-ip-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #3b4656; }
.lp-ip-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; color: #5a6575; cursor: pointer; border-radius: 50%; }
.lp-ip-steps { text-align: left; margin: 0 0 14px; padding: 12px 14px 12px 34px; background: #f4f7fc; border: 1px solid #dbe3f0; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.lp-ip-steps li + li { margin-top: 8px; }
.lp-ip-ic { display: inline-block; min-width: 22px; padding: 0 4px; border: 1px solid #b9c6dc; border-radius: 6px; text-align: center; background: #fff; font-weight: 700; }
.lp-ip .btn.block { width: 100%; min-height: 50px; justify-content: center; font-size: 16px; }
.lp-ip .btn.primary { background: #1c49b1; color: #fff; border-color: #1c49b1; }
.lp-ip-later { margin-top: 8px; background: #fff; }
.lp-ip-state { margin: 8px 0 0; min-height: 1em; font-size: 14px; color: #1a7a40; }
.lp-ip-state:empty { display: none; }
.lp-install-illu img { display: block; margin: 0 auto; border-radius: 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.lp-mbar .lp-mbar-install { flex: 0 0 auto; padding: 8px 12px; }
@keyframes lp-ip-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-ip-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lp-ip-bg, .lp-ip { animation: none; } }
@media (display-mode: standalone) { .lp-mbar-install, #lp-install, .hide-installed { display: none !important; } }
body.landing .lp-menu a.lp-menu-cta, body.landing .lp-menu a.lp-menu-cta:hover { color: #fff; }

/* V1.15.1 Back buttons on the public pages (sign-in, apply, blog). The installed app has no browser Back button. */
.pub-back { min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 10px; background: #1c49b114; color: #1c49b1;
  font-size: 15px; font-weight: 700; border: 0; cursor: pointer; }
.pub-back:active { background: #1c49b130; }
.lp-backbar { background: #f5f8ff; border-bottom: 1px solid #e2e8f5; }
.lp-backbar .lp-wrap { display: flex; align-items: center; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.lp-backbar a { color: #1c49b1; font-weight: 600; text-decoration: none; font-size: 15px; }
.lp-backbar a:last-child { margin-left: auto; }
/* The customer portal has room for the word "Back" on phones. */
@media (max-width: 480px) { body.portal .topbar button.back span { display: inline; } }

/* V1.15.2 whole-screen swipe between the bottom-menu screens (js/swipe.js): the new screen slides in from the side. */
@media (prefers-reduced-motion: no-preference) {
  .swipe-in-next { animation: swipe-in-next .22s ease-out; }
  .swipe-in-prev { animation: swipe-in-prev .22s ease-out; }
  @keyframes swipe-in-next { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes swipe-in-prev { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
}
body.staff main, body.portal main { overflow-x: clip; }

/* V1.16.1 responsive polish. Tile grids may shrink below their longest amount (1fr alone cannot), so the loan
   screen's tiles no longer spill off the right edge on small phones; amounts scale down a little on narrow screens. */
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile .value { font-size: clamp(18px, 5.2vw, 22px); }
.tile.hero .value { font-size: clamp(26px, 8vw, 30px); }

/* V1.17.0 device-aware install pop-up: Android APK button, a note about allowing installs, and "Other devices".
   The sheet can now be taller than a small phone, so it scrolls inside itself. */
.lp-ip { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.lp-ip a.btn.block { display: flex; align-items: center; text-decoration: none; }
.lp-ip-note { margin: 10px 0 12px; font-size: 14px; line-height: 1.5; color: #3b4656; text-align: left; background: #fffbe0; border: 1px solid #efe08a; border-radius: 10px; padding: 10px 12px; }
.lp-ip-go:not(.primary) { margin-bottom: 4px; }
.lp-ip-other { text-align: left; margin: 4px 0 6px; border-top: 1px solid #e3e9f3; padding-top: 10px; font-size: 14px; line-height: 1.5; color: #3b4656; }
.lp-ip-other summary { cursor: pointer; font-weight: 700; color: #1c49b1; min-height: 32px; display: flex; align-items: center; }
.lp-ip-other ul { margin: 6px 0 8px; padding-left: 18px; }
.lp-ip-other li + li { margin-top: 8px; }
.lp-ip-other li b:first-child { display: block; color: #1b2433; }
.lp-ip-other a { color: #0057e1; font-weight: 600; }
.lp-ip-other p { margin: 6px 0 0; }

/* V1.17.0 phone hero calculator: the shaded result rows had no side padding, so "Total to repay" sat on the
   edge of its blue box. */
@media (max-width: 719px) {
  body.landing .lp-hero-calc .lp-calc-out > div { padding: 6px 12px; border-radius: 10px; }
}
